Check out Grant Acedrex, our featured variant for April, 2024.


[ 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 Later
@ Fergus Duniho[All Comments] [Add Comment or Rating]
Diceroller is Fire wrote on Wed, Jul 13, 2022 01:07 PM UTC:Excellent ★★★★★

Where can I create my piece set? Please answer. Good site, thank You!


H. G. Muller wrote on Thu, Jul 14, 2022 04:00 PM UTC in reply to Diceroller is Fire from Wed Jul 13 01:07 PM:

Where can I create my piece set?

For what purpose? If you want to use your own piece graphics in the Interactive Diagram you can just upload the images to the page belonging to your article, and point the Diagram to the corresponding directory.


Diceroller is Fire wrote on Mon, Sep 19, 2022 04:33 PM UTC in reply to H. G. Muller from Thu Jul 14 04:00 PM:

For Diagram Designer it is same? I uploaded my files in chessvariants , but what I should do to upload in Diagram Designer?


🕸Fergus Duniho wrote on Sun, Nov 12, 2023 09:49 PM UTC in reply to Diceroller is Fire from Mon Sep 19 2022 04:33 PM:

For Diagram Designer it is same? I uploaded my files in chessvariants , but what I should do to upload in Diagram Designer?

Game Courier uses set files that list the pieces in a set. Each set file is a PHP script that sets at least two variables. One is the $dir variable, which contains the location of the pieces relative to the main directory of the website. The other is the $pieces directory, which is an associative array with piece labels keyed to file names of graphic images. Sometimes, other variables are included. Shogi sets include $width and $height to set the dimensions of spaces, the $flip variable to indicate that the set may be flipped, and the $setdesc variable to provide a text description of the set when it's used in Game Courier. Some also include a $flipped variable, which is like the $piece variable for images to use when the piece set is flipped for Shogi-like games.

Set files go into the /play/pbm/sets directory, and there is also a sets.php script that needs to be filled in with information about each set. These details can be handled by an editor once you make your pieces available and provide the set files you want used.


H. G. Muller wrote on Mon, Nov 13, 2023 08:54 AM UTC in reply to Fergus Duniho from Sun Nov 12 09:49 PM:

To elaborate a bit on what Fergus said: the PHP set scripts assign a piece label (usually a single letter) to each image, which then can be used in the FEN fed to the Diagram Designer. But some sets are 'automatic', which means they scan the image directory for any images for which they haven't defined a piece label yet, and include these in the set with the root of the image name as label. This is the kind of thing you would want here. To give an example, I printed the auto-alfaeriePNG.php script below:

<?
include_once "/home/chessvariants/public_html/play/pbm/constants.php";
$dir = "/graphics.dir/alfaeriePNG/";
$dirname = CVP_ROOT . "/graphics.dir/alfaeriePNG/";
$maindir = opendir($dirname);
$pieces = array();
$width = $height = 50;
while ($filename = readdir($maindir)) {
    $fullname = $dirname . $filename;
    if (!is_file($fullname))
        continue;
    $t = mime_content_type($fullname);
    if (($t != "image/gif") && ($t != "image/png"))
        continue;
    list($w, $h, $t) = getimagesize($fullname);
    if (($t != IMAGETYPE_GIF) && ($t != IMAGETYPE_PNG))
        continue;
    if (($w > $width) || ($h > $height))
        continue;
    $key = substr($filename, 1, strlen($filename)-5);
    if (($filename[0] == "w") || ($filename[0] == "W"))
        $key = strtoupper($key);
    elseif (($filename[0] == "b") || ($filename[0] == "B"))
        $key = strtolower($key);
    else
        $key = $filename[0] . $key;
    $pieces[$key] = $filename;
    $width = max($width, $w);
    $height = max($width, $h);
}
$pieces["P"] = $pieces["PAWN"];
$pieces["p"] = $pieces["pawn"];
$pieces["N"] = $pieces["KNIGHT"];
$pieces["n"] = $pieces["knight"];
$pieces["B"] = $pieces["BISHOP"];
$pieces["b"] = $pieces["bishop"];
$pieces["R"] = $pieces["ROOK"];
$pieces["r"] = $pieces["rook"];
$pieces["Q"] = $pieces["QUEEN"];
$pieces["q"] = $pieces["queen"];
$pieces["K"] = $pieces["KING"];
$pieces["k"] = $pieces["king"];
$pieces["C"] = $pieces["CANNON"];
$pieces["c"] = $pieces["cannon"];
$pieces["A"] = $pieces["CARDINAL"];
$pieces["a"] = $pieces["cardinal"];
$pieces["M"] = $pieces["CHANCELLOR"];
$pieces["m"] = $pieces["chancellor"];
$pieces["E"] = $pieces["ELEPHANTFERZ"];
$pieces["e"] = $pieces["elephantferz"];
$pieces["J"] = $pieces["CAMEL"];
$pieces["j"] = $pieces["camel"];
$pieces["D"] = $pieces["DRAGON"];
$pieces["d"] = $pieces["dragon"];
$pieces["W"] = $pieces["WILDEBEEST"];
$pieces["w"] = $pieces["wildebeest"];
$pieces["L"] = $pieces["LION"];
$pieces["l"] = $pieces["lion"];
$pieces["U"] = $pieces["UNICORN"];
$pieces["u"] = $pieces["unicorn"];
$pieces["F"] = $pieces["BIRD"];
$pieces["f"] = $pieces["bird"];
$pieces["Z"] = $pieces["AMAZON"];
$pieces["z"] = $pieces["amazon"];
$pieces["G"] = $pieces["GRYPHON"];
$pieces["g"] = $pieces["gryphon"];
closedir ($maindir);
$width = $height = 50;
asort ($pieces);
?>

A. M. DeWitt wrote on Sun, Dec 17, 2023 03:28 AM UTC:

I have PHP set files for my Seireigi graphics available for Game Courier.

Set Group: Seireigi Pieces

/membergraphics/MSchuseireigi/seireigi-set-files.zip


🕸Fergus Duniho wrote on Sun, Dec 17, 2023 06:22 PM UTC in reply to A. M. DeWitt from 03:28 AM:

Okay, I have added them to the sets/ directory, and I have put them all in a Seireigi group in sets.php.


A. M. DeWitt wrote on Mon, Dec 18, 2023 02:48 AM UTC in reply to Fergus Duniho from Sun Dec 17 06:22 PM:

Thank you. However, it looks like I made some mistakes when defining the sets, which I have fixed in the updated set files below.

/membergraphics/MSchuseireigi/seireigi-set-files-v2.zip


🕸Fergus Duniho wrote on Mon, Dec 18, 2023 05:00 PM UTC in reply to A. M. DeWitt from 02:48 AM:

Okay, I unzipped this to the sets/ directory.


A. M. DeWitt wrote on Mon, Dec 18, 2023 05:14 PM UTC in reply to Fergus Duniho from 05:00 PM:

Thank you. I double-checked the sets again, and everything is mapped properly.


A. M. DeWitt wrote on Mon, Dec 18, 2023 07:19 PM UTC:

I noticed one last set of mistakes involving flipped pieces in the Mnemonic Seireigi set file, which escaped my attention during the earlier inspection. I have corrected that in the zipped folder below.

/membergraphics/MSchuseireigi/seireigi-mnemonic-set-file-corrected.zip


🕸Fergus Duniho wrote on Mon, Dec 18, 2023 08:18 PM UTC in reply to A. M. DeWitt from 07:19 PM:

Okay, I unzipped that file to sets/.


A. M. DeWitt wrote on Tue, Dec 26, 2023 04:57 AM UTC:

I have updated set files for the Seireigi piece sets, to account for an added piece type.

/membergraphics/MSchuseireigi/seireigi-set-files-v4.zip

Also, It seems that some wires got crossed in the code for Game Courier's piece sets. Whenever a set file with flip set to true is used, the pieces appear to be flipped when the board is not and vice versa.


Gerd Degens wrote on Wed, Dec 27, 2023 04:01 PM UTC:

May I briefly refer to my post of Mon, Dec 25 04:51 PM CET.


A. M. DeWitt wrote on Thu, Jan 4 02:39 PM UTC:

Dai Seireigi's Rules page needs re-published, as I deleted and re-posted as a last resort it during the File Manager fiasco.


🕸Fergus Duniho wrote on Thu, Jan 4 04:31 PM UTC in reply to A. M. DeWitt from 02:39 PM:

Okay, I have republished it.


Bob Greenwade wrote on Thu, Jan 4 04:42 PM UTC in reply to Fergus Duniho from 04:31 PM:

In case you missed it (which is likely), I've updated my SVG page.

(Also, the Icon Clearinghouse and all of my variants are, as far as I can determine, ready to be published -- though I'll still probably want to make an IC Part 6.)


A. M. DeWitt wrote on Fri, Jan 5 03:42 PM UTC:

I have updated set files for the Seireigi graphics.

https://www.chessvariants.com/membergraphics/MSchuseireigi/seireigi-set-files-v5.zip


🕸Fergus Duniho wrote on Fri, Jan 5 05:03 PM UTC in reply to A. M. DeWitt from 03:42 PM:

I have now unzipped this to the sets directory.


A. M. DeWitt wrote on Fri, Jan 5 10:14 PM UTC in reply to Fergus Duniho from 05:03 PM:

Thanks.


Bob Greenwade wrote on Sun, Jan 7 04:41 PM UTC in reply to Bob Greenwade from Thu Jan 4 04:42 PM:

In case you missed it (which is likely), I've updated my SVG page.

(Also, the Icon Clearinghouse and all of my variants are, as far as I can determine, ready to be published -- though I'll still probably want to make an IC Part 6.)

Sorry to be a pest about this, but it's still waiting.


Aurelian Florea wrote on Mon, Jan 8 08:26 AM UTC:

Hello Fergus! Many thanks for publishing the games in my collection of games inspired by Kevin Pacey. I was at an orthodox chess tournament these days and did not had time for the effort needed to publish the games. Before that, I was using chatGPT in order to write code for frog chess, Hannibal chess and waffle chess. It comes much more easy to me to do it this way as I understand the theory well enough but I just can't focus enough to write some instructions!


A. M. DeWitt wrote on Wed, Jan 17 01:26 AM UTC:

@Fergus

It seems I made a slight mistake in my Seireigi set files. Here is the corrected version.

https://www.chessvariants.com/membergraphics/MSchuseireigi/seireigi-set-files-final-corrected.zip


🕸Fergus Duniho wrote on Wed, Jan 17 02:17 AM UTC in reply to A. M. DeWitt from 01:26 AM:

Okay, I unzipped them.


A. M. DeWitt wrote on Wed, Jan 17 02:26 AM UTC in reply to Fergus Duniho from 02:17 AM:

Thanks.


A. M. DeWitt wrote on Mon, Jan 22 02:58 AM UTC:

@Fergus,

Since the last update to the Seireigi set files didn't seem to go through, here is the same .zip file with a new name.

For best results, refresh your browser cache before downloading.

https://www.chessvariants.com/membergraphics/MSchuseireigi/seireigi-set-files-final-correction.zip

Also, something has gone seriously wrong with Game Courier. The GAME Code works fine, but for some reason whenever I pull up certain presets, that preset doesn't display the board properly on the preset pages. The main ones I see this problem on are the ones with Shogi-style hands. Here are some examples:

Shogi

Seireigi

Kamikaze Mortal Shogi

Pocket+Shogi+Copper


🕸Fergus Duniho wrote on Mon, Jan 22 01:41 PM UTC in reply to A. M. DeWitt from 02:58 AM:

For best results, refresh your browser cache before downloading.

That wasn't the issue, since I downloaded nothing and unzipped them in the shell while using PuTTY. It looks like the issue was that I unzipped them to the wrong directory. Thinking I might have done that, I searched /play/pbm/ for your set files and found them there. So, I just moved them to /play/pbm/sets/. They are dated Jan 20, which is when I originally unzipped your latest files.

Also, something has gone seriously wrong with Game Courier. The GAME Code works fine, but for some reason whenever I pull up certain presets, that preset doesn't display the board properly on the preset pages. The main ones I see this problem on are the ones with Shogi-style hands. Here are some examples:

Okay, I switched the default for render back to table. One thing this rendering method does that the CSS one does not is allow separate columns with the same coordinates, and the Shogi presets depend upon this.


🕸Fergus Duniho wrote on Mon, Jan 22 11:13 PM UTC in reply to A. M. DeWitt from 02:58 AM:

I have now updated the CSS method for rendering square boards to work with Shogi and other games with similar boards. These boards used the same coordinates for the two null files separating the board from the in hand areas. Since the CSS method was identifying each grid cell by its coordinates, this was causing duplication that was throwing things off. To fix this, I did the layout in terms of the integers used to represent coordinates internally instead of the notational coordinates used in the game.


A. M. DeWitt wrote on Tue, Jan 23 12:01 AM UTC in reply to Fergus Duniho from Mon Jan 22 01:41 PM:

Thanks for fixing these.


A. M. DeWitt wrote on Wed, Jan 24 03:16 PM UTC:

Is there another way to approve a submission other than going directly into the database and updating the IsHidden field for the submission's row in the Item table?

Edit: I answered my own question. Now I feel silly.


A. M. DeWitt wrote on Fri, Apr 12 07:08 PM UTC:

Since I am an editor now, I should be able to update my set files for the Seireigi games myself (I am in the process of updating the larger games for the final time).

However, I am not sure where these set files are stored, nor am I sure how to upload the new versions to the site. Any help for future uploads would be greatly appreciated.

For now, here is the .zip file with the up-to-date files:

/membergraphics/MSchuseireigi/seireigi-graphics-set-files-gc-final.zip


H. G. Muller wrote on Fri, Apr 12 07:26 PM UTC in reply to A. M. DeWitt from 07:08 PM:

/play/pbm/sets/*.php


🕸Fergus Duniho wrote on Fri, Apr 12 07:57 PM UTC in reply to A. M. DeWitt from 07:08 PM:

I am not sure where these set files are stored,

They are stored in

/home/chessvariants/public_html/play/pbm/sets/

nor am I sure how to upload the new versions to the site.

Do you know how to use SCP or SFTP? Do you still have the passwords I sent you by email?


A. M. DeWitt wrote on Fri, Apr 12 09:50 PM UTC in reply to Fergus Duniho from 07:57 PM:

They are stored in

/home/chessvariants/public_html/play/pbm/sets/

Thanks.

Do you know how to use SCP or SFTP?

Do you still have the passwords I sent you by email?

I have not used either SCP or SFTP before, but I should be able to figure out how to use WinSCP.

I still have the passwords you sent me. I figured out pretty quickly that it was best to save the email.

Edit: I have updated the set files, and now know the basics for uploading via WinSCP.


34 comments displayed

EarliestEarlier Reverse Order Later

Permalink to the exact comments currently displayed.