Check out Smess, our featured variant for February, 2025.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

EarliestEarlier Reverse Order LaterLatest
Game Courier Developer's Guide. Learn how to design and program Chess variants for Game Courier.[All Comments] [Add Comment or Rating]
Daniel Zacharias wrote on Tue, Feb 6, 2024 02:16 AM UTC:

I'm also having trouble with custom sets. I have this

{
    "custom-alfaerie-png": {
        "dir":"/graphics.dir/alfaeriePNG/",
        "pieces": {
            "P": "wpawn.png", "p": "bpawn.png",
            "N": "wknight.png", "n": "bknight.png",
            "B": "wbishop.png", "b": "bbishop.png",
            "R": "wrook.png", "r": "brook.png",
            "Q": "wqueen.png", "q": "bqueen.png",
            "K": "wking.png", "k": "bking.png",
            "I": "wbird.png", "i": "bbird.png",
            "Z": "wzebra.png", "z": "bzebra.png",
            "Y": "wgryphon.png", "y": "bgryphon.png"
        }
    },
    "custom-greenwade": {
        "dir":"/graphics.dir/svg/Greenwade/",
        "pieces": {
            "P": "wpawn.svg", "p": "bpawn.svg",
            "N": "wknight.svg", "n": "bknight.svg",
            "B": "wbishop.svg", "b": "bbishop.svg",
            "R": "wrook.svg", "r": "brook.svg",
            "Q": "wqueen.svg", "q": "bqueen.svg",
            "K": "wking.svg", "k": "bking.svg",
            "I": "wosprey.svg", "i": "bosprey.svg",
            "Z": "wzebra.svg", "z": "bzebra.svg",
            "Y": "wgriffin.svg", "y": "bgriffin.svg"
        }
    }
}

but if I try to select Custom set of Bob Greenwade's pieces it just says The set does not exist.


🕸📝Fergus Duniho wrote on Tue, Feb 6, 2024 02:20 AM UTC in reply to Daniel Zacharias from 02:16 AM:

The set name you want is "custom-greenwade-svg".


Daniel Zacharias wrote on Tue, Feb 6, 2024 02:30 AM UTC in reply to Fergus Duniho from 02:20 AM:

"custom-greenwade-svg" results in the set not showing up at all in the set menu


🕸📝Fergus Duniho wrote on Tue, Feb 6, 2024 02:49 AM UTC in reply to Daniel Zacharias from 02:30 AM:

Try it again. I made some corrections to sets.php.


Daniel Zacharias wrote on Tue, Feb 6, 2024 02:52 AM UTC in reply to Fergus Duniho from 02:49 AM:

Still doesn't show up with "custom-greenwade-svg" but if I use "custom-greenwade" I see "custom-greenwade" in the set menu but it doesn't work to select it


🕸📝Fergus Duniho wrote on Tue, Feb 6, 2024 03:13 AM UTC in reply to Daniel Zacharias from 02:52 AM:

I made some more corrections and got it to work. Here is what your custom sets should be:

{
    "custom-alfaerie-png": {
        "dir":"/graphics.dir/alfaeriePNG/",
        "pieces": {
            "P": "wpawn.png", "p": "bpawn.png",
            "N": "wknight.png", "n": "bknight.png",
            "B": "wbishop.png", "b": "bbishop.png",
            "R": "wrook.png", "r": "brook.png",
            "Q": "wqueen.png", "q": "bqueen.png",
            "K": "wking.png", "k": "bking.png",
            "I": "wbird.png", "i": "bbird.png",
            "Z": "wzebra.png", "z": "bzebra.png",
            "Y": "wgryphon.png", "y": "bgryphon.png"
        }
    },
    "custom-greenwade-svg": {
        "pieces": {
            "P": "wpawn.svg", "p": "wpawn.svg",
            "N": "wknight.svg", "n": "wknight.svg",
            "B": "wbishop.svg", "b": "wbishop.svg",
            "R": "wrook.svg", "r": "wrook.svg",
            "Q": "wqueen.svg", "q": "wqueen.svg",
            "K": "wking.svg", "k": "wking.svg",
            "I": "wosprey.svg", "i": "wosprey.svg",
            "Z": "wzebra.svg", "z": "wzebra.svg",
            "Y": "wgriffin.svg", "y": "wgriffin.svg"
        }
    }
}

Daniel Zacharias wrote on Tue, Feb 6, 2024 03:22 AM UTC in reply to Fergus Duniho from 03:13 AM:

Thanks, that works


Daniel Zacharias wrote on Thu, Feb 8, 2024 08:06 AM UTC:

I want a function that returns an array of all the spaces between two inputs. I've tried this

def getrange filter lambda (== direction #start #end direction #0 #end) (b3 c3 d3 e3 f3 g3 h3) =start =end;
set yy fn getrange b3 e3 ;
print #yy;

but the output is just an empty array. what am I doing wrong?


🕸📝Fergus Duniho wrote on Thu, Feb 8, 2024 05:12 PM UTC in reply to Daniel Zacharias from 08:06 AM:

Would path be what you want?


Daniel Zacharias wrote on Thu, Feb 8, 2024 07:40 PM UTC in reply to Fergus Duniho from 05:12 PM:

Probably!

I have a bigger problem now. I was working on this game but if I try to open it now I just get a blank page

https://www.chessvariants.com/play/pbm/play.php?game=Overboard&settings=overboard-1


🕸📝Fergus Duniho wrote on Thu, Feb 8, 2024 08:09 PM UTC in reply to Daniel Zacharias from 07:40 PM:

When a preset doesn't work properly because of something in your code, you can add "&submit=Edit" to the query string to edit your code without running it.


Daniel Zacharias wrote on Fri, Feb 9, 2024 09:49 PM UTC:

If I change the starting position for a game, would it break existing logs for that game?


🕸📝Fergus Duniho wrote on Fri, Feb 9, 2024 10:32 PM UTC in reply to Daniel Zacharias from 09:49 PM:

If I change the starting position for a game, would it break existing logs for that game?

Yes, it will unless you change the name of the settings file.


Daniel Zacharias wrote on Sun, Feb 18, 2024 12:48 AM UTC:

Could I get help with this?

set wbl (e3 f2);
def other cond == #0 #wbl.0 #wbl.1 cond == #0 #wbl.1 #wbl.0 0;
print fn other e3;

The result is always 0, but I would expect f2.


🕸📝Fergus Duniho wrote on Sun, Feb 18, 2024 01:26 AM UTC in reply to Daniel Zacharias from 12:48 AM:

I agree with you that it should produce f2, and that is what it produced when I ran it.


Daniel Zacharias wrote on Sun, Feb 18, 2024 01:28 AM UTC in reply to Fergus Duniho from 01:26 AM:

ok, now it does for me too. Thanks anyway.


Diceroller is Fire wrote on Sun, Feb 18, 2024 01:19 PM UTC:

How and where to set brouhaha squares?


H. G. Muller wrote on Sun, Feb 18, 2024 01:20 PM UTC in reply to Diceroller is Fire from 01:19 PM:

Through the Play-Test Applet?


Diceroller is Fire wrote on Sun, Feb 18, 2024 01:21 PM UTC in reply to H. G. Muller from 01:20 PM:

In preset made through Play-test


H. G. Muller wrote on Sun, Feb 18, 2024 01:55 PM UTC in reply to Diceroller is Fire from 01:21 PM:

Unfortunately creating holes in the PTA does currently not work, and for a long time I could not repair it, because a wrong classification of the format destroyed the page on any edit. But now that I changed the format to 'text' I can fix things again, so I guess it is high time I do that. In the PTA you would create a brouhaha square by creating a hole and placing a piece on it.

The simplest way to do it now is add a line to the Pre-Game code by hand:

set brouhaha (...);

with ... a space-separated list of the square labels of the squares you want to be brouhaha squares.


Diceroller is Fire wrote on Sun, Feb 18, 2024 04:03 PM UTC in reply to H. G. Muller from 01:55 PM:

Where, after which constants/words it should be to work properly? Now it isn’t.


H. G. Muller wrote on Sun, Feb 18, 2024 04:11 PM UTC in reply to Diceroller is Fire from 04:03 PM:

Basically anywhere theat is not inside the definition of another array. Just adding it as a line at the bottom should do.

If you want help in making a preset, it would be useful to post a link to it...


H. G. Muller wrote on Sun, Feb 18, 2024 05:00 PM UTC in reply to Diceroller is Fire from 04:31 PM:

Well, that works as designed. When you move the Radioactive Queen away from d1, d1 disappears.


Diceroller is Fire wrote on Sun, Feb 18, 2024 05:09 PM UTC in reply to H. G. Muller from 05:00 PM:

How to make other squares on 1 rank holes?


25 comments displayed

EarliestEarlier Reverse Order LaterLatest

Permalink to the exact comments currently displayed.