| Author |
Message |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 7 Registered: 10-2013
| | Posted on Monday, October 28, 2013 - 12:24 am: | |
Zillions of games loads this error: "While reading a set-attribute, the following non-piece-attribute was encountered: "never-moved?"" Can you help me? |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 83 Registered: 9-2000
| | Posted on Monday, October 28, 2013 - 12:31 am: | |
Can you provide your code? Or are you trying to load an existing game? |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 9 Registered: 10-2013
| | Posted on Monday, October 28, 2013 - 12:47 am: | |
It's mine, https://www.dropbox.com/sh/8qu3w4dni7f0h3i/B9W-yV4MRv YOU CAN SEE IT HERE |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 10 Registered: 10-2013
| | Posted on Monday, October 28, 2013 - 1:03 am: | |
OR HERE (define Jump ($1(verify not-empty?) $1 (verify empty?)add) ) (define Castle (e e e e (verify empty?) cascade from e add)) (define Castle1 (w w w w w (verify empty?) cascade from w add)) (define leap1 ($1 (verify not-friend?) add) ) (define leap2 ($1 (verify not-friend?) add) ) (define leap1ride ($1 (while empty? add $1 ) (verify not-friend?) add) ) (define shift2 ($1 (verify empty?) $2 (verify not-friend?) add) ) (define King-shift ($1 (verify not-friend?) (set-attribute never-moved? false) add) ) (define Rider-moves (leap1ride ne) (leap1ride nw) (leap1ride se) (leap1ride sw) ) (define Rook-moves (leap1ride n) (leap1ride s) (leap1ride e) (leap1ride w) ) (define Knight-moves (leap2 k1) (leap2 k2) (leap2 k3) (leap2 k4) (leap2 k5) (leap2 k6) (leap2 k7) (leap2 k8) (leap2 k9) (leap2 k10) (leap2 k11) (leap2 k12) ) (define King-moves (King-shift n) (King-shift e) (King-shift s) (King-shift w) (King-shift ne) (King-shift nw) (King-shift se) (King-shift sw) ) (define Pawn-start (n n(verify never-moved?)add) ) (define Pawn-foward (n (verify empty?) (if (in-zone? promotion-zone) (add Knight Rider Rook Queen)) (if (in-zone? promotion-zone1) (add Knight Rider Rook Queen)) add) ) (define Pawn-capture1 (ne (verify (and not-empty? not-friend?)) add) ) (define Pawn-capture2 (nw (verify (and not-empty? not-friend?)) add) ) (define Pawn-moves (Pawn-start) (Pawn-foward) (Pawn-capture1) (Pawn-capture2) ) (define Squire-start (n n n(verify never-moved?)add) ) (define Squire-foward1 (n (verify empty?) (if (in-zone? promotion-zone) (add Knight Rider Rook Queen Archer Prince Chancellor Cavalryman Tower)) ;Only Squires can promote to all pieces, including the Tower/RookArcher (if (in-zone? promotion-zone1) (add Knight Rider Rook Queen Archer Prince Chancellor Cavalryman Tower Emperor )) ; Only corner Squires can promote the Emperor/DeadEmperor add) ) (define Squire-foward2 (n n (verify empty?) (if (in-zone? promotion-zone) (add Knight Rider Rook Queen Archer Prince Chancellor Cavalryman Tower)) ;Only Squires can promote to all pieces, including the Tower/RookArcher (if (in-zone? promotion-zone1) (add Knight Rider Rook Queen Archer Prince Chancellor Cavalryman Tower Emperor )) ; Only corner Squires can promote the Emperor/DeadEmperor add) ) (define Squire-capture1 (ne (verify (and not-empty? not-friend?)) add) ) (define Squire-capture2 (nw (verify (and not-empty? not-friend?)) add) ) (define Squire-moves (Squire-start) (Squire-foward1) (Squire-foward2) (Squire-capture1) (Squire-capture2) ) (define Board-Definitions-12x12 (image "images\ROYALCHESS\Tablero.bmp") (grid (start-rectangle 5 5 53 53) (dimensions ("a/b/c/d/e/f/g/h/i/j/k/l" (55 0)) ; files ("12/11/10/9/8/7/6/5/4/3/2/1" (0 55)) ; ranks ) (directions (n 0 -1) (e 1 0) (s 0 1) (w -1 0) (ne 1 -1) (nw -1 -1) (se 1 1) (sw -1 1) (k1 1 -2) (k2 1 2) (k3 -1 2) (k4 -1 -2) (k5 2 1) (k6 2 -1) (k7 -2 1) (k8 -2 -1) ) ) (zone (name promotion-zone) (players White) (positions b12 c12 d12 e12 f12 g12 h12 i12 j12 k12) ) (zone (name promotion-zone) (players Black) (positions b1 c1 d1 e1 f1 g1 h1 i1 j1 k1) ) (zone (name promotion-zone1) (players White) (positions a12 l12) ) (zone (name promotion-zone1) (players Black) (positions a1 l1) ) (zone (name Center) (players White) (positions e6 f6 g6 h6 i6) ) (zone (name Center) (players Black) (positions e7 f7 g7 h7 i7) ) ) (game (title "Royal Chess") (history "This game was invented by Mariano Morán") (strategy "Save your corner Squire to bring back from death the Emperor/DeadEmperor, and the other Squires to build a RookArcher/Tower.") (music "Sounds\Opening.mid") (opening-sound "Sounds\Opening.wav") (win-sound "Sounds\Win.wav") (loss-sound "Sounds\G.wav") (click-sound "Audio\Pickup.wav") (move-sound "Audio\Metal3.wav") (release-sound "Audio\WoodThunk.wav") (capture-sound "Audio\Click3.wav") (change-sound "Audio\WoodThunk.wav") (players White Black) (turn-order White Black) (board (Board-Definitions-12x12)) (board-setup (White (Pawn a4 b4 c4 d4 e4 f4 g4 h4 i4 j4 k4 l4) (Squire a2 b2 c2 d2 e2 f2 g2 h2 i2 j2 k2 l2) (Knight b1 k1) (Rider c1 j1) (Rook a1 l1) (Chancellor d1) (Cavalryman e1) (Archer h1) (Prince i1) (Queen f1) (King g1) ) (Black (Pawn a9 b9 c9 d9 e9 f9 g9 h9 i9 j9 k9 l9) (Squire a11 b11 c11 d11 e11 f11 g11 h11 i11 j11 k11 l11) (Knight b12 k12) (Rider c12 j12) (Rook a12 l12) (Chancellor d12) (Cavalryman e12) (Archer h12) (Prince i12) (Queen f12) (King g12) ) ) (define slide (while (empty? $1) $1) ) (piece (name King) (notation "K") ; Short for King (image White "images\ROYALCHESS\WKing.bmp" Black "images\ROYALCHESS\BKing.bmp") (moves (move-type normaltype) (King-shift n) (King-shift e) (King-shift s) (King-shift w) (King-shift ne) (King-shift nw) (King-shift se) (King-shift sw) (Castle) (Castle1) ) ) (piece (name Queen) (notation "Q") ; Short for Queen (image White "images\ROYALCHESS\WQueen.bmp" Black "images\ROYALCHESS\BQueen.bmp") (moves (move-type normaltype) (Rider-moves) (Rook-moves) ) ) (piece (name Knight) (notation "N") ; Short for Knight (image White "images\ROYALCHESS\WKnight.bmp" Black "images\ROYALCHESS\BKnight.bmp") (moves (move-type normaltype) (Knight-moves) ) ) (piece (name Rook) (notation "R") ; Short for Rook (image White "images\ROYALCHESS\WRook.bmp" Black "images\ROYALCHESS\BRook.bmp") (moves (move-type normaltype) (Rook-moves) ) ) (piece (name Archer) (notation "A") ; Short for Archer (image White "images\ROYALCHESS\WArcher.bmp" Black "images\ROYALCHESS\BArcher.bmp") (moves (move-type normaltype) (Rider-moves) (King-moves)) ) (piece (name Rider) (notation "B") ; Short for Rider (image White "images\ROYALCHESS\WRider.bmp" Black "images\ROYALCHESS\BRider.bmp") (moves (move-type normaltype) (Rider-moves) ) ) (piece (name Pawn) (notation "W") ; Short for Pawn (image White "images\ROYALCHESS\WPawn.bmp" Black "images\ROYALCHESS\BPawn.bmp") (moves (move-type normaltype) (Pawn-moves) ) ) (piece (name Squire) (notation "S") ; Short for Squire (image White "images\ROYALCHESS\WSquire.bmp" Black "images\ROYALCHESS\BSquire.bmp") (moves (move-type normaltype) (Squire-moves) ) ) (piece (name Emperor) (notation "E") ; Short for Emperor/DeadEmperor (image White "images\ROYALCHESS\WDeadEmperor.bmp" Black "images\ROYALCHESS\BDeadEmperor.bmp") (moves (move-type normaltype) (Rider-moves) (Knight-moves) (Rook-moves)) ) (piece (name Tower) (notation "T") ; Short for Tower (image White "images\ROYALCHESS\WRookArcher.bmp" Black "images\ROYALCHESS\BRookArcher.bmp") (moves (move-type normaltype) (Rook-moves) (King-moves)) ) (piece (name Cavalryman) (notation "J") ; Short for Cavalryman (image White "images\ROYALCHESS\WCavalryman.bmp" Black "images\ROYALCHESS\BCavalryman.bmp") (moves (move-type normaltype) (Rider-moves) (Knight-moves)) ) (piece (name Chancellor) (notation "C") ; Short for Chancellor (image White "images\ROYALCHESS\WChancellor.bmp" Black "images\ROYALCHESS\BChancellor.bmp") (moves (move-type normaltype) (Rook-moves) (Knight-moves)) ) (piece (name Prince) (notation "P") ; Short for Prince (image White "images\ROYALCHESS\WPawn.bmp" Black "images\ROYALCHESS\BPawn.bmp") (moves (move-type normaltype) (Knight-moves) (King-moves)) ) (loss-condition (White Black)(checkmated King)) (draw-condition (White Black) stalemated) (draw-condition (total-piece-count 2)) ) |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 11 Registered: 10-2013
| | Posted on Monday, October 28, 2013 - 1:07 am: | |
the thread is on: pawn-moves, squire-moves and on the top at: set-attribute never-moved?..... |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 12 Registered: 10-2013
| | Posted on Monday, October 28, 2013 - 1:36 am: | |
Can someone tell me what the mistake is? |
Andreas Speiger (Andique)
New member Username: Andique
Post Number: 16 Registered: 11-2007
| | Posted on Monday, October 28, 2013 - 7:31 am: | |
I think you must give the relevant pieces in the piece-definition the macro (attribute never-moved? true) before the movesection. |
Andreas Speiger (Andique)
New member Username: Andique
Post Number: 17 Registered: 11-2007
| | Posted on Monday, October 28, 2013 - 7:34 am: | |
for example: (piece (name Squire) (notation "S") ; Short for Squire (image White "images\ROYALCHESS\WSquire.bmp" Black "images\ROYALCHESS\BSquire.bmp") (attribute never-moved? true) (moves (move-type normaltype) (Squire-moves) ) |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 15 Registered: 10-2013
| | Posted on Monday, October 28, 2013 - 5:26 pm: | |
thank u |
Sam Trenholme (Vktj)
New member Username: Vktj
Post Number: 21 Registered: 7-2013
| | Posted on Tuesday, October 29, 2013 - 12:02 am: | |
For what it is worth, I have taken Mariano’s files and have made a .zip file out of them. The game appears to be playable, and it is a good first attempt at making a Zillions file. Since the sound files add 150 megs to a file that is otherwise under one megabyte in size, I have removed those. http://microblog.samiam.org/ZoG/other/TRC.zip |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 17 Registered: 10-2013
| | Posted on Tuesday, October 29, 2013 - 3:07 am: | |
Oh thats cool,, is there possible to use this command?: verify in-zone? If not, how can i express that? |
Garry Francis (Warrigal) New member Username: Warrigal
Post Number: 5 Registered: 7-2012
| | Posted on Tuesday, October 29, 2013 - 10:25 am: | |
You have to define a zone first using the 'zone' keyword. You would normally use this to define something like special cells, a destination area or a promotion area. There is a good example of the latter in the online help. |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 20 Registered: 10-2013
| | Posted on Tuesday, October 29, 2013 - 6:37 pm: | |
Also sometimes the pc craetes pieces from nowhere, i think its a bug, how to prevent this? |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 84 Registered: 9-2000
| | Posted on Tuesday, October 29, 2013 - 8:01 pm: | |
Do you know which piece is being added or which source piece it says is being moved? Usually, to add a piece out of nowhere, you need either a drop command or a situation involving cascade where you get more than one piece added during a move. One thing which is jumping out at me, why does the Knight moves set map to m1 through m8? It happens for both sides. The "fixed" version by Sam instead maps it to k1 through k12, but that probably isn't right either. I assume you want that to work like a regular chess knight?
In general, can you describe each piece's movement? It's difficult for us to figure out if your pieces are doing what they're supposed to when we don't know what they're supposed to do. |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 85 Registered: 9-2000
| | Posted on Tuesday, October 29, 2013 - 9:40 pm: | |
I think I understand everything except the castle maneuver, which is the one which is the one which is generating the error messages involving a move being generated on B12 with no piece there. I'm going to assume that castling always places the king two steps to one side and involves the rook (and all of those attendant bits where you have to have empty spaces in-between, not attacked on any of those spaces, etc). As a general thing I've found when implementing wider boards, this makes castling more difficult, since it involves more spaces that need to be cleared. Once I set that up, I'll provide a link to the ZRF and you can let me know whether it fits what you expect. |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 86 Registered: 9-2000
| | Posted on Tuesday, October 29, 2013 - 10:44 pm: | |
Check this out and see if it works for you. I did some guess-work on the Squire piece. It looks like it acts like a Pawn except that it can always move forward two (risking En Passant by Pawns and Squires) and can promote to all of those other exotic pieces (which never happens when I play in Zillions, but that may be an artifact of how it handles piece value). https://www.dropbox.com/s/1zs1f00dr9n61fp/TheRoyalChess.zrf |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 21 Registered: 10-2013
| | Posted on Wednesday, October 30, 2013 - 4:03 am: | |
thanks, and i figured out a bug the k12, check my dropbox link, but the one remaining was the creating pieces, thank u |
Sam Trenholme (Vktj)
New member Username: Vktj
Post Number: 22 Registered: 7-2013
| | Posted on Wednesday, October 30, 2013 - 12:01 pm: | |
New link of this package: http://microblog.samiam.org/ZoG/other/TRC-rev2.zip |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 87 Registered: 9-2000
| | Posted on Wednesday, October 30, 2013 - 1:29 pm: | |
It was a good first try. Really, the one thing you missed was cribbing mechanics from the version of chess that shipped with it. That's how I did a lot of my chess variants, reading the code that exists and figuring out how to change it. Incidentally, did I guess right on the Squire movement? |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 22 Registered: 10-2013
| | Posted on Wednesday, October 30, 2013 - 6:11 pm: | |
Thank u for teaching me lots of things, well the squire on its initial move goes 3, the castling i couldnt put it for (o-o-o-o)(o-o-o-o-o) but the rest was like i designed it, just perfect. Check my first official version of the game on this link, read the description to know the rules if you wish and the details https://www.dropbox.com/s/c6eel4kasmtipzl/ROYALCHESS.zip |
Sam Trenholme (Vktj)
New member Username: Vktj
Post Number: 23 Registered: 7-2013
| | Posted on Thursday, October 31, 2013 - 1:10 am: | |
I have cleaned up the zip file and have a trimmed version of it here: http://microblog.samiam.org/ZoG/other/ROYALCHESS-edit.zip - Sam |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 88 Registered: 9-2000
| | Posted on Thursday, October 31, 2013 - 2:28 am: | |
Huh. I'll admit that I don't quite get what you intend with the O-O-O-O and O-O-O-O-O maneuvers. Both of them require more movement than can be done without moving the King first. And, out of curiosity, how do you feel Zillions doesn't properly handle castling correctly? I know there's a common misconception that the rook can't be threatened anywhere in transit if that's what you're thinking of. Lastly, your Squire still won't move 3 spaces for their first move, but that should be easy enough for you to implement based on how the Pawn does it (protip: Add a 3rd row zone and check that after the first two moves). You might want to reconsider how en-passant works if you want to avoid the Squires stepping three and escaping attack. |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 89 Registered: 9-2000
| | Posted on Thursday, October 31, 2013 - 2:44 am: | |
Make that, add a 4th row zone since it's two from the 2nd row. :-P |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 23 Registered: 10-2013
| | Posted on Thursday, October 31, 2013 - 5:32 am: | |
Thank u for the suggestion, it worked perfectly the Squire 3 forward check it on https://www.dropbox.com/s/1zs1f00dr9n61fp/TheRoyalChess.zrf The castling (o-o-o-o)(o-o-o-o-o) means a castling of four squares(short one) and of five squares (long one) |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 24 Registered: 10-2013
| | Posted on Friday, November 01, 2013 - 4:48 am: | |
Im glad to say i fixed the Castling so im gonna publish the final fixed first version Check the same dropbox link |
Jon Steven Nelson (Jonn99)
New member Username: Jonn99
Post Number: 10 Registered: 2-2013
| | Posted on Friday, November 01, 2013 - 4:20 pm: | |
ZOG will be contractually deleted on FEB 28, 2015 -> Mallett and Lefler split 'n' quit -> when the ZOG site domain expires on FEB 28, 2015, the devs will not be working together to re-new it -> LOAD ALL THE Z.R.F.'s IF YOU WANT, they'll all be gone when the ZOG server corp-firm has to delete ZOG on FEB 28, 2015. ZOG domain info at: MOSTPOPULARWEBSITES.net |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 25 Registered: 10-2013
| | Posted on Friday, November 01, 2013 - 6:26 pm: | |
thanks ive backuped all |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 90 Registered: 9-2000
| | Posted on Friday, November 01, 2013 - 6:36 pm: | |
Yeah. That guy has been writing that doom-and-gloom message for a year or so, changing the dates as the deadlines pass. Zillions of Games doesn't seem to be advancing anywhere, but they also don't seem to be going away either. |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 26 Registered: 10-2013
| | Posted on Saturday, November 02, 2013 - 3:34 am: | |
Test the game, I finished writing the first version, I hope youll enjoy it Sean |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 91 Registered: 9-2000
| | Posted on Saturday, November 02, 2013 - 4:25 am: | |
So, you do intend for castling to be two spaces for the King? |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 27 Registered: 10-2013
| | Posted on Saturday, November 02, 2013 - 4:57 am: | |
2?, ((its 4 (o-o) and 5(o-o-o) I kept the 2 Os and the 3 Os for the idea of short and long castling)o) I intend to keep it as in the dropbox link version is |
Mariano Moran Fougerat (Marianomf)
New member Username: Marianomf
Post Number: 28 Registered: 10-2013
| | Posted on Sunday, November 03, 2013 - 8:11 am: | |
http://www.chessvariants.org/index/msdisplay.php?itemid=MStheroyalchess I edited this page with my game's rules |