Comments/Ratings for a Single Item
For some reason, that didn't work out right, and it recreated the log file I had deleted.
I tried replacing the text of the log with that of the backup in my text editor before saving it to the site. My SCP program complained that it couldn't replace the file. But it did update its time stamp, and when I checked again, it identified you as the winner.
From what I had understood reading fairychess again today is that I the regular king move does not worth much. the subs Castle, Castlepos and King need to be all changed inside my presets as they are otherwise incompatible with the regular way of castling. So back to work!
I added a new default variable called $players. This gets set once when an invitation is accepted, and it keep the same value throughout the game. Its value is set to a space-separated string containing the userid of the first player to move followed by the userid of the second player to move. Since this value never changes, it can be used to determine which player actually moved first. This will affect only new games going forward, and so far, all it does is give me some data I can check when I examine a log. I have not changed Game Courier to make any use of it.
I am having the same problem as Dax00. Armin has resing our chushogi game but he is now considered the winner.
In this case, it's different. The game was ended by a resignation, not the won command, and the log has one more move than the backup. It says that Armin, who played Black, resigned. It shows the first player resigning, but that is Black in Shogi. This is in line with what you have told me.
I'm not sure about what you have done but now it is fixed.
Thank you!
I did nothing. It said you were the winner when I looked at it.
I don't know then.
Have you had the time to look at the links with presets I had sent you?Once again:
https://www.chessvariants.com/play/pbm/play.php?game=Frog+Chess&settings=FastCastling
https://www.chessvariants.com/play/pbm/play.php?game=Hannibal+Chess&settings=FastCastling
https://www.chessvariants.com/play/pbm/play.php?game=Waffle+Chess&settings=FastCastling
The code at the bottom of the page is supposed to allow full king moves once the king has already moved but for the first move it should not be allowed to move sideways. Those moves are left aside because they can also be castling moves and this case needs treating separately.
Fergus,
I had managed to solve the errors in question but still I have not managed to write a function for the king that castles free. It has to have the normal move once it has moved before, but only the three forward move otherwise. This is done because the first lateral move may be a regular move or a castling move and this ambiguity would be treated later with the ask command.
Thinking about the problem the thought crossed my mind about if you can do an tutorial on expresions with more examples. I have trouble with this and asking you, Fergus, everytime something goes wrong is counter productive.
I want to make castling in this game: https://www.chessvariants.com/play/pbm/play.php?game=Capablanca+Random+Chess&log=makov333-cvgameroom-2020-117-516 but cannot do this because of preset. can someone help me?
There was a bug in the findpiece function that stopped it from finding the location of the Rooks. That's now been fixed, and castling will work.
I updated addcomment.php and safe_email() today. When it sends email to the author(s) or inventor(s) associated with a page, it will now use a subject line that includes what the page is called, and the body of the email will include the comment. This is to make people more likely to read the emails that are sent when a comment is made. I entered some comments to test and debug it, and after I got it working, I deleted them.
I'd like to modify the names of my apothecary1working preset to apothecary chess modern and apothecary2working preset to apothecary chess classic. If space cannot be used then an underscore is fine.
You can always save any settings file under a new name.
Hello Fergus,
Ok! I have done that. I have 2 questions though.
How do I get read of the old presets? I need a clean everything to start over.
Why the new presets for Apothecary Chess- Modern and Apothecary Chess- Classic (it is how I renamed the games) don't appear on the website in the games to play folder.
The Games to Play section lists webpages that feature Game Courier presets. It does not include direct links to settings files. To get your game included there, you have to create the right kind of webpage.
I got it. But in the "description of your submition" (I have earlier noticed that in other boxes of the same type.) I can't post any links as the ok button does not work in the url posting window.
It's not clear what you are talking about. Perhaps you are still confused about what to do, since you have not yet created any pages for Game Courier presets. Select "Post Your Own Game" from the menu and follow the instructions for Game Courier content.
No matter.
Now it works.
Microsoft edge got an update. I think that is the reason.
Thanks Fergus!
There seems to be a bug in my rule-enforcing presets for large Shogi variants (except for Shosu Shogi) that makes the legal moves displayed for a piece repeat after ten squares. For example, in the Suzumu Shogi preset, if I click on the black Vice General in the starting position, Game Courier will display the normal legal move to 16e, but it will also show another legal move on 6e (which is still treated as illegal by the preset). I have no idea how this is happening, as I haven't changed the code for displaying legal moves (which is based on stalemated subroutines from teh chess3 and shogi include files) in any of these presets. Any help I can get would be greatly appreciated.
[Edit] I also found another bug that prevents Game Courier from displaying legal moves after trying to make an illegal move by the mouse and then cancelling it.
I have no idea how this is happening
This is happening because the JavaScript for highlighting was changed, to do the highlighting based on the full move string rather than on arrays of [origin, destination] pairs. The new code is too careless in deciding whether a square coordinate is mentioned in a move string: it uses the JavaScript endsWith method. And when you write 16e as destination in a move, this also ends in 6e. So when it loops through all board spaces to see if these occur in a move that starts with the selected piece, it finds these spurious matches.
This can only happen with chess-style coordinates if the file name would be multiple letters. So it did slip through the testing.
Just wait until Fergus fixes it.
The new code is too careless in deciding whether a square coordinate is mentioned in a move string: it uses the JavaScript endsWith method.
Okay, I have corrected it to not use endsWith(). It now stores the final step into a variable before reducing the array to unique values, and it uses a comparison with that variable where it used to use endsWith(). I tested the new code on fission moves in Fusion Chess, and it worked.
I also found another bug that prevents Game Courier from displaying legal moves after trying to make an illegal move with the mouse and then cancelling it with the popup.
I also found another bug that prevents Game Courier from displaying legal moves after trying to make an illegal move with the mouse and then cancelling it with the popup.
That's now fixed. It wasn't resetting a new variable I started using.
I refreshed my browser cache. The Moves field works fine, but Game Courier still isn't displaying legal moves on the board after I try to make an illegal move with the mouse and then cancel it with the popup.
It worked in my tests. In case it helps, I have purged the script from Cloudflare's cache.
I refreshed my browser cache. The Moves field works fine, but Game Courier still isn't displaying legal moves on the board after I try to make an illegal move with the mouse and then cancel it with the popup.
I tried this on an Apothecary preset, and I also see this behavior. I think the problem is that the array 'clicks' is not cleared when canceling the move through the popup. It is cleared from resetBoard(), but the popup does not call that; it calls clearBorders().
I think the problem is that the array 'clicks' is not cleared when canceling the move through the popup.
That was the problem before I fixed it the other day.
It is cleared from resetBoard(), but the popup does not call that; it calls clearBorders().
The popup does call it. The Cancel button calls resetBoard() when it is clicked.
Well, if that was changed, it still did not trickle through to me. There is a nocache=true on the URL, and I cleared my browser cache, but the code remains the same and the behavior persist. But we might not be talking about the same popup. I am referring to the 'confirm' box:
if (legalList.includes(moveNotation) || confirm(moveNotation + " is not marked as legal.\nDo you still want to try it?")) submit.click(); else clearBorders();
Okay, I see we were talking about different things. I have now added a line to set clicks to [] after the code you quoted.
I encountered a bug when using presets I made for large Shogi variants such as Chu Shogi. The bug prevents the blue boxes that highlight legal moves from being displayed for the second part of a double move. Apart from that, everything works normally. I also tried this with the Balanced Marseillais Chess preset, but the bug was not present there. Any ideas as to what's causing this?
Also, the Marseillais Chess preset is exiting with an error as soon as you click the button for it on the game's Game Courier Preset page.
I encountered a bug when using presets I made for large Shogi variants such as Chu Shogi. The bug prevents the blue boxes that highlight legal moves from being displayed for the second part of a double move. Apart from that, everything works normally. I also tried this with the Balanced Marseillais Chess preset, but the bug was not present there. Any ideas as to what's causing this?
It wasn't correctly handling the move "pass". I made an adjustment so that it now works.
Also, the Marseillais Chess preset is exiting with an error as soon as you click the button for it on the game's Game Courier Preset page.
There were a couple typos in the include file for that game. I have now fixed them.
I have tried to make a Game Courier preset for my first time ever. I did it for Heavy Chess because it is easier as I borrowed almost everything to Kevin. I hope I did nothing wrong, if I did please forgive me.
Trying to make a preset for Very Heavy Chess, I would like to expend the Set "Sac Chess" with 2 pieces: a Templar (BKN) and a Heroine (RKN). I don't know how to do. It would be good also to have corresponding icons for those pieces in the Alfaerie type, similar to what has been done (for me) on the Chess Board Painting Tool that I have used to make the graphics on the Very Heavy Chess page. Thanks for any help
In Pocket Mutation Chess, the preset uses these graphics for BKN and RKN:
I can't think of any other games with these pieces to look at. Thinking about it, it would also be easy to make new pieces from these:
I could just draw a + on the Cardinal and an X on the Chancellor.
Yes Greg your second option would make it.
How to add them to the Sac set?
In the Alfarie: Many piece set there are already figurines for the NRF and NBW piece types available, if it's possible to transfer them to the Sac Chess piece set.
Practically where and how "open" the Sac set? My question is probably trivial, but I can't find how to do it. I believe it is not complicated but...
In the Alfarie: Many piece set there are already figurines for the NRF and NBW piece types available, if it's possible to transfer them to the Sac Chess piece set.
It isn't because the Sac Chess set is anti-aliased. Pieces that aren't in the SVG set will need to be created. What do the NRF and NBW pieces in the alfaerie many look like? There are hundreds of pieces so I don't know which ones you mean.
Practically where and how "open" the Sac set? My question is probably trivial, but I can't find how to do it. I believe it is not complicated but...
- Click here to go into Game Courier editor
- Change the Set Group to Sac Chess
- Change the Set to Sac Chess: Standard
- Click Test
Then, scroll to the bottom of the page and you'll see the pieces in the set. There are only 12 at the moment, so plenty of room to add new ones. (Each notation should be a single letter.)
Found These, Black and White Pieces Included
I was about to find it in the Pocket Mutation set but there's none so
Fergus, in Janggi, if I want to swap both pairs of horses and elephants with each other, do I have to do it in a single action?
Thank you Greg, it helps.
How can I add new pieces in the Sac set. What I would like to add are the 4 shown by Zhedric, they are fine for RKN and BKN. Letters can be H and T respectively (Heroine / Templar).
Merry Christmas everyone
Merry Christmas, everyone!
Ok, I have made anti-aliased versions of these pieces and added them to the Sac Chess piece set.
There is still a problem, though. The Sac Chess piece set group also contains an option for abstract graphics. So it would be best if we had abstract piece for RKN and BKN. I will see if I have any inspiration.
Fergus, in Janggi, if I want to swap both pairs of horses and elephants with each other, do I have to do it in a single action?
Yes. I have just fixed the preset to display the moves that are available for positioning these pieces. Move a Knight or Elephant to the adjacent Elephant or Knight to swap just those two. Move one to the other piece on the other side to swap both pairs. Move one to the same piece on the other side, or just click Pass, to leave their positions unchanged.
Merry Christmas to everyone. Joyeux Noël !
The preset for Very Heavy Chess seems now ready. Thanks to Greg and all friends for your help.
Yes, it looks correct. Thank you
But personally, I'm unable to see anything with the abstract pieces, even for the simpler ones. I understand how it works, it is a perfect logic, but it is a strong effort for my brain to decode what is seen by my eyes. I don't know if other people have other experience, probably they have.
How about these for BNK and RNK?
Those look good. I approve of adding these to the Abstract pieces.
Ok, they've been added into the Sac Chess Abstract set.
Still trying to understand how-to-do things. How can I edit the Set "Metamachy" in order to add more pieces ? Or maybe only editors can do it?
Only editors can. It involves editing PHP files stored on the server.
But if you let me know what you'd like to add, I'll be happy to add it.
So yes, please add me. Thank you
So yes, please add me. Thank you
Just let me know what pieces you would like added and what the notation should be.
OK yes, maybe it's simpler. The context is I notice that I have a full series of chessvariants (Shako, Metamachy, Teramachy, Gigachess II, Terachess II, Heavy C, Very Heavy C.) where I use 26 different pieces. So I wanted to make a set, using Alfaerie, and I was thinking expending Metamachy set for that.
This set has 12 pieces already; B, C, E, G, I, K, L, M, N, P, Q, R. The new pieces would be: (you can look at https://www.chessvariants.com/rules/terachess-ii)
A >> Amazon (QN)
D >> Duchess (KDAGH) (the Alfaerie for Falcon or for Duke would make it)
F >> buFFalo (NCZ)
H >> marsHal (RN)
J >> centaur or Judge (KN)
O >> sOrceress (leO). I use a star (8 legs) I don't know if there is one in Alfaerie
S >> admiral or Sailor (RK)
T >> Troll (GH+pawn) (the Alfaerie for Man maybe?)
U >> rhinoceros or Unicorn (W-then-B)
V >> crocodile or Vao (please put a crocodile not a bended cannon)
W >> War machine (WD)
X >> cardinal/archbishop (BN)
Y >> missionarY (BK)
Z >> giraffe or Zaraffa (Z)(please put a giraffe not a zebra)
Is it feasible? Thank you
Ok, this has been done. Let me know if you would like anything changed.
Also, the Metamachy piece set group also has an option for "Cazaux" graphics, so that set should be expanded with the extra pieces as well. Which brings me to a question...
The piece graphics you used in your new book. Do you have the files for those? What format are they in? We might be able to use those files to improve the appearance of the Cazaux graphics and make more pieces available.
I just wanna point out that there's no dark crocodile in the alfaerie set
@Greg: thanks a lot. 2 things:
-
the back crocodile is indeed missing
-
for the buffalo, I don't like the symbolic combined animal, it is not the spirit of that set. Could you replace it by the Ox ?
For cazauxgraphics, it is a very good question, I'm glad you ask because I had made this set >20 years ago for my 1st book and it is ugly for many pieces. I have much better, also much more complete, I'll send to you by PM.
Thanks again
Ok, these changes have been made. I used a wildebeest, thinking it looks more like a buffalo than an ox des, but I can change it to ox if you prefer. I have a graphic for that as well.
Sorry, I went too fast. For the U, could you put a Rhinoceros instead of a Unicorn? The rest is OK, Buffalo / Wildebeest is good
Sure, no problem :)
The move for the Camel is strangely written:
"can leap to any space at the opposite end of a 1x3 triangle"
Can it be changed to write, more conventionally:
"is a (3,1) leaper"
Thank you
I realize that my previous comment goes on a general page and then nobody knows what I'm talking about.
I was asking to just edit and rewrite the sentence about the move of the Camel in the rules presented for the Metamachy preset:
https://www.chessvariants.com/play/pbm/play.php?game=Metamachy&settings=default
It is said:
The Camel, a traditional piece from historic variants, can leap to any space at the opposite end of a 1x3 triangle.
"Triangle" is not clear in this context of board with squares. I would simply say:
The Camel, a traditional piece from historic variants, is a (3,1) leaper.
I can't do that change myself. Thank you
"Triangle" is not clear in this context of board with squares. I would simply say:
The Camel, a traditional piece from historic variants, is a (3,1) leaper.
The text has been updated
Hello. I wish someone could help me.
I have made a preset for Zanzibar-S. It works, but I confess that I have not understood everything. We have a game on-going.
Something is strange. The preset asks the invited player if he wants Black or White. If Black is chosen, the invited gets ... White. And vice-versa. Then the game goes normally, no problem, Black put the central pieces (like for Metamachy) and White play the 1st real stroke.
Just what is strange is it must be chosen White in order to get the Blacks.
Can anyone good at Game Courier Preset have a look and tell me what's wrong?
Thanks
It's having the same problem as Metamachy had. Presuming that your preset is otherwise similar enough to the one for Metamachy, you should check the checkbox for "Skip First Move".
Yes, indeed. Checking that box has solved the issue. I don't know why I had not checked it in Zanzibar-S whereas I did for Zanzibar-XL. Now, it's OK, thank you.
I made this preset to test a game idea but I think I messed up the html in the rules section and now I'm unable to save any changes to it
What happens when you try to save?
I'm sure I can clear out the HTML rules section if that's what's causing the issue.
I just get a blank page
It looks like there may still be a problem:
https://www.chessvariants.com/play/pbm/play.php?game=Zanzibar-S&log=bughouse-numerist-2021-2-221
This shows white winning (correct) but Paul Rapoport winning (not correct.) But maybe this game was started before the 'skip first move' was checked which could explain it.
https://www.chessvariants.com/play/pbm/play.php?game=Zanzibar-S&log=bughouse-numerist-2021-2-221
Yes,I believe that game was held before I changed and ticked the box of skipping first move.
It's my turn in these two games but when I try to open them I just get a message saying a previous move was illegal
https://www.chessvariants.com/play/pbm/play.php?game=Apothecary+Chess-Classic&log=sxg-arx-2021-4-524
https://www.chessvariants.com/play/pbm/play.php?game=Apothecary+Chess-Modern&log=sxg-arx-2021-4-524
That's partly my fault. I was working on the little used replace command today, but it turns out that drop and replace use most of the same code, and the drop command was used in these presets to randomize pieces. If Aurelian had saved the randomized position to a constant and had used the constant to recreate it, this problem would not have come up. I am currently comparing the two versions and rolling back my edits to try to figure out what change stopped drop from working as it had. While I'm doing this, it may or may not be working at times.
It's now fixed.
thank you!
I've been trying (and failing) to modify the King functions from the Apothecary presets. The problem I have is that if I remove the rank restriction for the king's jump, the preset just doesn't work anymore, unless I also remove the check to make sure the king isn't in check. So I can make the jump work, but jumping moves are still shown as legal even if the king is in check. This is what I have:
def King
checkleap #0 #1 0 2
or checkleap #0 #1 1 2
or checkleap #0 #1 2 2
or checkleap #0 #1 0 3
or checkleap #0 #1 1 3
or checkleap #0 #1 2 3
or checkleap #0 #1 3 3
// and not sub checked #0 If this line is uncommented the preset won't work?
and flag #0
or checkleap #0 #1 1 0
or checkleap #0 #1 1 1;
def King-Range mergeall
leaps #0 1 0
leaps #0 1 1
leaps #0 0 2
leaps #0 1 2
leaps #0 2 2
leaps #0 0 3
leaps #0 1 3
leaps #0 2 3
leaps #0 3 3;
sub King from to:
if checkleap #from #to 1 1 or checkleap #from #to 1 0:
return true;
endif;
move #to #from;
if checkleap #from #to 0 2
or checkleap #from #to 1 2
or checkleap #from #to 2 2
or checkleap #from #to 0 3
or checkleap #from #to 1 3
or checkleap #from #to 2 3
or checkleap #from #to 3 3
and flag #from :
if sub checked #from:
die You may not perform the special moves out of check.;
endif;
move #from #to;
return true;
endif;
endsub;
What am I missing?
// and not sub checked #0 If this line is uncommented the preset won't work?
This line calls the checked subroutine. If that subroutine has not been defined, your code will not work.
Ok, I've saved the preset here /play/pbm/play.php?game%3DTiger+Chess%26settings%3Dtiger
I'm including the fairychess file so I think the checked subroutine should be available, and it's called elsewhere without problems.
The same problem happens if I modify the Apothecary Chess-Modern preset by only removing the lines restricting the king to leaping to the back rank.
I just tried your preset, and it appeared to be working. If a particular move isn't working, you can let me know what it is.
The problem is that the king can still jump out of check. I saved it again after enabling the call to the checked subroutine and now it doesn't work
The problem is that the king can still jump out of check. I saved it again after enabling the call to the checked subroutine and now it doesn't work
It's giving me a 503 error when I try to access it. You can still edit it by appending "&submit=Edit" to the query string. Since the checked subroutine calls the functions for the pieces on the board, you should make sure these functions are all working correctly.
I tried editing it but the run, save, test, and update buttons just go to a blank page now. When I was able to test it all the other pieces seemed to work correctly.
EDIT
I still had the tab open where I was making the preset and I was able to edit it from there somehow and I think I fixed the problem. I still don't understand why, but I had to add a check to make sure the king wasn't jumping to his own starting square.
But I'm still unable to make any changes using "&submit=Edit"
It seems like a similar problem to this other preset I made where I'm unable to edit anything https://www.chessvariants.com/play/pbm/play.php?game=Decimate&settings=test
EDIT2
I think I solved that too actually. It was something about the piece set being unselected somehow so I had to change the set group and change it back and select the right piece set again and it works.
It seems like a similar problem to this other preset I made where I'm unable to edit anything https://www.chessvariants.com/play/pbm/play.php?game=Decimate&settings=test
When I looked into that one, I checked the error.log, noticed it was trying to load the file "sets/.php", and then went back and noticed that the Set field in the form was not set. I set it to Alfaerie: Many, but when I changed the group to Unique, the set switched to Alfaerie: All SVG. In sets.php, I noticed that Alfaerie: All SVG was not assigned a group. So, I assigned it to Unique and reloaded the page. But when I selected Alfaerie: Many and changed the group to Unique, it still changed it to Alfaerie: ALL SVG. I couldn't figure out why that is happening, but when I saved a test version of your preset with the set set to Alfaerie: ALL SVG, it at least displayed the board instead of giving me a blank screen, but it did not display anything further. When I added "&submit=Edit" to the query string, I saw that the change I made had been saved. For one further test, I deleted the Pre-Game code and saved it again. This time, it did not give me any problem. So, there may be something in your code that is not parsing properly or something.
This is what I cut into the clipboard:
alias E A e a W D w d H .WA h .wa G .H3 g .h3 C+ CW N+ NW c+ cw n+ nw E+ BD e+ bd W+ RW w+ rw;
empty c5 c6 d5 d6 e5 e6 f5 f6 g5 g6 h5 h6;
dump;
The only thing I can think of is that both presets used empty
. Could that be the problem?
Sorry about my first move. It was illegal. I didn't count right! We are playing where a piece has to move the full amount of alloted squares, although most pieces can do so in any direction or combination.
I have a problem with the Preset of Terachess II The White Missionary (Y) cannot move. I just need to add a "Y" in a string in Post-Move 1, I edited the file and added that character, but when I save it says it failed. Can someone help me?
What is the function of the "tag"? There is a tag "Jamison" on the preset of TerachessII. Is it because of that my saving is failing?
I just tried saving a change to a different preset and it didn't work either
I just tried saving a change to a different preset and it didn't work either
That should now be corrected. PHP runs as apache, but I had changed the owner of all files on the site to chessvariants. I added code to give any new settings file the permissions 0777, and I did a chmod on all existing settings files to make their permissions 0777. So, now apache will be able to write to files owned by chessvariants.
What is the function of the "tag"?
It's a crowd-sourced categorization method. Members tag pages, and we can browse through pages that share the same tag.
There is a tag "Jamison" on the preset of TerachessII.
No, that tag is on Game Courier itself. I should probably add the ability for editors to weed out inappropriate tags.
Is it because of that my saving is failing?
No, it's completely unrelated. See my previous comment on this page.
Thank you for the explanations and the correction. Now it works fine.
I have prepared a set of 16 icons to make a set of pieces for Jetan-of-Barsoom. Could an editor help me in making a set I could use to play this preset? Thanks a lot
Sure, email me the graphics and what you would like the notation to me and I'll make the piece set.
P.S. Sorry I haven't gotten around to updating the graphics in the Cazaux piece set, but I will get to it at some point.
100 comments displayed
Permalink to the exact comments currently displayed.
Do you mean this game?
https://www.chessvariants.com/play/pbm/play.php?game=Chu+Shogi&log=dax00-cvgameroom-2020-107-344
This game says that sxg played Black, and Black, who moves first in Shogi, made the last move and entered the won command with it. By all indications, your opponent won, and this is correctly recorded. Since none of the comments were personally identifying, I could not tell from them who was who. However, I then compared the log with its backup, and very curiously, all that was different between them was that the opponent and player were switched. According to the backup, you won. Since no new moves were made after the backup, I have deleted the log and renamed the backup to be the log. I'm also going to have to rewrite Game Courier to keep better track of who is who. I cannot have it relying on just swapping player and opponent values.