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
Interactive diagrams. (Updated!) Diagrams that interactively show piece moves.[All Comments] [Add Comment or Rating]
A. M. DeWitt wrote on Sat, Apr 10, 2021 02:49 PM UTC in reply to Greg Strong from Tue Apr 6 02:28 PM:

It shouldn't be too hard to implement the majority of the features. The main problem I am currently facing is how to implement the display of legal moves from XBetza notation, which becomes quite complicated, especially when you take into account the way multi-moves work. Once the display of legal moves is fully implemented, the Universal Chessboard will enter its Beta stage.


Aurelian Florea wrote on Tue, Apr 20, 2021 08:35 AM UTC:

Is there a way to use the alfaerie many graphics from the diagram designer and game courier in the interactive diagrams?


Greg Strong wrote on Tue, Apr 20, 2021 05:26 PM UTC in reply to Aurelian Florea from 08:35 AM:

The generated code has variables for updating the image format, folder, and filenames for each piece, so I see no reason why this should be an issue.


Aurelian Florea wrote on Wed, Apr 21, 2021 04:58 AM UTC in reply to Greg Strong from Tue Apr 20 05:26 PM:

How can I do it? I see only the default images. I need to somehow use the names for the other images.


Greg Strong wrote on Wed, Apr 21, 2021 07:34 AM UTC in reply to Aurelian Florea from 04:58 AM:

Use the images that ere there while you are designing. Then, edit the generated code to use different images.


Aurelian Florea wrote on Wed, Apr 21, 2021 07:47 AM UTC in reply to Greg Strong from 07:34 AM:

Got it.


Aurelian Florea wrote on Wed, Apr 21, 2021 08:04 AM UTC in reply to Greg Strong from 07:34 AM:

It still does not work. Try for example : zebrawazir


Aurelian Florea wrote on Wed, Apr 21, 2021 08:05 AM UTC in reply to Greg Strong from 07:34 AM:

I probably can do it if I change to directory from default to: graphics.dir/alfaeriemisc/


Aurelian Florea wrote on Wed, Apr 21, 2021 08:27 AM UTC in reply to Greg Strong from 07:34 AM:

I am not sure on how to put the file directory for a child directory. For example if I set graphicsDir to ../graphics.dir/alfaeriemisc/ then I need acces to it's subdirectories to acces the zebrawazir. How can I do it?


Greg Strong wrote on Wed, Apr 21, 2021 01:06 PM UTC in reply to Aurelian Florea from 08:27 AM:

I'm not sure. It may not be possible to use images that are not all in the same directory. If it can be done, H.G. would have to tell us, but I haven't seen him around here lately. I hope he's OK!


🕸Fergus Duniho wrote on Wed, Apr 21, 2021 02:09 PM UTC:

When I used alfaerie pieces for an interactive diagram, I put all the images I needed in the directory for the game.


Aurelian Florea wrote on Wed, Apr 21, 2021 02:13 PM UTC in reply to Fergus Duniho from 02:09 PM:

I assumed this cannot be done by a non editor.


🕸Fergus Duniho wrote on Wed, Apr 21, 2021 03:13 PM UTC in reply to Aurelian Florea from 02:13 PM:

It's easier for an editor, but you can download images to your computer and use the file manager to upload them to a directory.


Aurelian Florea wrote on Wed, Apr 21, 2021 03:18 PM UTC in reply to Fergus Duniho from 03:13 PM:

All right, Thanks Fergus, I'll try it.


Aurelian Florea wrote on Wed, Apr 21, 2021 04:05 PM UTC in reply to Aurelian Florea from 03:18 PM:

How do I create a directory?

Also, How do I upload images?


💡📝H. G. Muller wrote on Wed, Apr 21, 2021 04:52 PM UTC:

If you create an article, this automatically creates a directory /membergraphics/MSarticle-name/ for any files you upload. So you could upload all the images you want to use to such a directory, and specify that as graphicsDir in the Interacive Diagram definition. You have to make sure the squareSize, graphicsType and white/blackPrefix match that of the uploaded graphics.

You cannot use sets that are scattered over several directories. Because the diagram builds the image filenames as prefix + root name + exetension (where the exension is the specified graphicsType). So giving the root name as a pahname, like subdir/quagga, would no work, because it will prefix the directory name with the color ('wsubdir/quagga.gif') rather than the image name ('subdir/wquagga.gif'). This should be easy to fix, btw; I could make the diagram split any given roo name at the slashes, prefix the last part with the color, and then put them together again.


Aurelian Florea wrote on Wed, Apr 21, 2021 04:54 PM UTC in reply to H. G. Muller from 04:52 PM:

Thanks for the input, HG!


Aurelian Florea wrote on Wed, Apr 21, 2021 05:10 PM UTC in reply to H. G. Muller from 04:52 PM:

Honestly HG, I'd prefer that you manage to do the relative path. It would be very helpful!


Aurelian Florea wrote on Thu, Apr 22, 2021 04:00 AM UTC in reply to Greg Strong from Wed Apr 21 01:06 PM:

Greg, Can you help me by drawing a ferz-alfil-trebuchet? I tried using my own tools but it goes kind of bad.


💡📝H. G. Muller wrote on Thu, Apr 22, 2021 08:29 AM UTC:

Oh, I see that the Diagram already supports a way to include 'custom graphics' for the pieces. I had forgotten all about that.

To include an image that doesn't use the specified graphicsDir or graphicsType, just write the full URL of the image, but with the color prefix replaced by a % sign. The script will replace that % sign by the whitePrefix or blackPrefix, as needed. So you are still limited to image names that use the same color prefixes. E.g. if you specify as image name in the piece definition:

/membergraphics/MSelven-chess/%cobra.png

you could use the cobra image there, no matter what graphics you specified for the other pieces. Note you should also explicitly mention the file exension.


catugo wrote on Thu, Apr 22, 2021 08:44 AM UTC in reply to H. G. Muller from 08:29 AM:

Ok HG, I'll get to work. Thanks!


Aurelian Florea wrote on Thu, Apr 22, 2021 08:44 AM UTC in reply to H. G. Muller from 08:29 AM:

Thanks HG!


Aurelian Florea wrote on Thu, Apr 22, 2021 09:11 AM UTC in reply to H. G. Muller from 08:29 AM:

I still could not make work. I cannot add the wazirzebra here:

https://www.chessvariants.com/invention/grand-apothecary-chess-alert

from here:

bzebrawazir.gif (49×49) (chessvariants.com)


💡📝H. G. Muller wrote on Thu, Apr 22, 2021 10:11 AM UTC:

OK, my bad. I was wrong about adding the file exension; this was already done at an earlier stage, before replacing the % by a color prefix. This means you should NOT specify an extension in the 'custom image', and that it then will always use the same extension as the regular images. That means you cannot use the cobra from the se in the Elven-Chess directory with alfaerie (because it is png, and alfaerie is gif). But you should not have problems using an alfaerie image from another directory. When you do not put the .gif in the custom name.

BTW, if it doesn't work, you can open the piece legend of the diagram, and right-click the 'missing image' symbol in it, and select 'View Image' from the context menu. This will give a 404 error, but in the adress bar of your browser you should then be able to see what the filename was that it finally made from the parameters you supplied. Which often tells you what went wrong.


Aurelian Florea wrote on Thu, Apr 22, 2021 11:51 AM UTC in reply to H. G. Muller from 10:11 AM:

Ok, for some reason when trying this: graphics.dir/alfaeriemisc/compounds/%zebrawazir it results in this: https://www.chessvariants.com/rules/graphics.dir/alfaeriemisc/compounds/bzebrawazir.gif


25 comments displayed

EarliestEarlier Reverse Order LaterLatest

Permalink to the exact comments currently displayed.