Comments/Ratings for a Single Item
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
Thank you for the explanations and the correction. Now it works fine.
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.
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.
I just tried saving a change to a different preset and it didn't work either
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 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?
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.
The only thing I can think of is that both presets used empty
. Could that be the problem?
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;
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.
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.
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
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.
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.
// 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.
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?
thank you!
It's now fixed.
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 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
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 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.
I just get a blank page
25 comments displayed
Permalink to the exact comments currently displayed.
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.