Check out Glinski's Hexagonal Chess, our featured variant for May, 2024.


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

Comments/Ratings for a Single Item

Later Reverse Order EarlierEarliest
Play Chess Variants with Jocly. Missing description[All Comments] [Add Comment or Rating]
A. M. DeWitt wrote at 03:54 PM UTC in reply to François Houdebert from 02:42 PM:

I updated the 3d image.

https://www.chessvariants.com/play/jocly/dist/browser/games/chessbase/res/visuals/chu-seireigi-600x600-3d.png

I'll update the svg occasionally, lightburn doesn't work at home (on linux).

I take it that's the program you use for making the SVG?

Also, while I was uploading the Jocly files to the CVP site, I took the opportunity to make the rule description for the Jocly Chu Seireigi preset more accurate. Your version has some discrepancies and doesn't describe everything, thought to be fair I was still finalizing everything then. I can provide you with the files you need if need be.

I did the same for the Seireigi and Hectochess rule descriptions to a far lesser extent, though I am not overly concerned about these two.


François Houdebert wrote at 02:42 PM UTC in reply to A. M. DeWitt from 02:15 PM:

I'll update the svg occasionally, lightburn doesn't work at home (on linux).

It doesn't really matter if there are extra spare parts, the main thing is that the game is complete.


A. M. DeWitt wrote at 02:15 PM UTC in reply to François Houdebert from 12:55 PM:

I've also been looking for ideas for a lion hawk icon distinct from the griffon icon.

If there were an acceptable candidate, it would probably still take quite some time to  to finalize.

If you want something that is nice and easy to make a diagram of via the Musketeer Chess site's board painter, the site should have the first and third icons available for use. Personally I'd recommend the first one, as it is a winged lion. The one used for Chu Seireigi can also work.

Here's a new setup picture for your rules description (refresh browser cache if old one shows up):

https://www.chessvariants.com/play/jocly/dist/browser/games/chessbase/res/visuals/chu-seireigi-600x600-2d.png

I'm working on a new 3d picture as well. I'll post another comment with it when I am done.

P.S. You may need to update the laser cutter SVG, but I am not overly concerned about that. You did include two extra Rooks in it though.


François Houdebert wrote at 12:55 PM UTC in reply to A. M. DeWitt from 12:53 AM:

I made the change.

I've also been looking for ideas for a lion hawk icon distinct from the griffon icon.

If there were an acceptable candidate, it would probably still take quite some time to  to finalize.


A. M. DeWitt wrote at 12:53 AM UTC:

@François Houdebert,

I made one last change to Chu Seireigi and Dai Seireigi, renaming the Lion to Lion Hawk to avoid confusion with the Chu Shogi Lion, while also keeping the Bishop + Squirrel move from before, whose Jocly code is shown below.

graph: this.cbDropGraph(geometry, [[-2,0],[-2,-1],[-2,-2],[-1,-2],[0,-2],[1,-2],[2,-2],[2,-1],[2,0],[2,1],[2,2],[1,2],[0,2],[-1,2],[-2,2],[-2,1]],[[1,1],[1,-1],[-1,1],[-1,-1]]),

(Keeping the Lion Hawk's value at 11 is reasonable, as it is basically equal in strength to a Queen, and may sometimes even have a light advantage)

In case you are wondering what a "Lion Hawk" is, I imagine it as a Japanese version of a griffin.

For the new diffusemap, simply use the Tenjiku Shogi Lion Hawk diffusemap.

For the 2D sprite, the best choice in my opinion for this piece may be the sprite two spaces to the left of the "gem" image in this spritesheet, as it resembles a griffin head with cat-like ears, at least to me. (If for some crazy reason you plan on implementing Dai Seireigi in Jocly, I would save the "falcon" image used for the griffin in other Jocly presets for the Flying Falcon or Cloud Eagle).

If you can implement these changes on the biscandine site that would be great.

P.S. Thanks for playing that test game with me. It helped me finalize the Lion Hawk's move.


Bob Greenwade wrote on Fri, May 3 09:21 PM UTC in reply to A. M. DeWitt from 07:36 PM:

I think I've mentioned in our game chat why I prefer KNAD (or, to me, KNS) for the Lion: it does at least have some history. I don't know of anywhere else where a Lion is BNS. (Even so, if it had an adjective on the name, reflected by a compound in the Greenwade graphic, I could deal with it.)


A. M. DeWitt wrote on Fri, May 3 07:36 PM UTC in reply to François Houdebert from Thu May 2 04:02 PM:

I'm actually starting to lean back towards the Bishop + Squirrel move for Chu Seireigi and Dai Seireigi, since in my test game of Chusei with you, if the Lion had the KNAD move you would be able to force mate in 3 with just the Lion, and I don't want one piece to steal all the show from the others.

Edit: Looking at the current position you can still force mate in 3, but you need to get more pieces involved.


François Houdebert wrote on Thu, May 2 05:21 PM UTC in reply to A. M. DeWitt from 04:55 PM:

false alarm : it was a cache issue


A. M. DeWitt wrote on Thu, May 2 04:55 PM UTC in reply to François Houdebert from 04:02 PM:

Thanks. I know you may be a little frustrated, and I apologize if you are, but it is an unfortunate truth of development for my more complex games that updating them can be quite laborious and tedious, especially when several options exist for playing them. As a general rule, I want my games to be well-thought out and high in quality, so I am willing to make changes like this to try and make my games better.

Check your rabbit in daiseireigi. they are promoted by default in stag.

Can you elaborate further on this, please? I'm not sure what you are trying to say here.

I did check the Running Rabbit in the diagram and the text, and everything seems to be in proper working order, including the text that shows the legal moves of the piece when clicked.


François Houdebert wrote on Thu, May 2 04:02 PM UTC in reply to A. M. DeWitt from 03:40 PM:

Done.

Check your rabbit in daiseireigi. they are promoted by default in stag.


A. M. DeWitt wrote on Thu, May 2 03:40 PM UTC in reply to François Houdebert from Wed May 1 03:51 PM:

I made one last change to Chu Seireigi, making the Lion move like its Cazaux form (a Chu Shogi Lion that lacks multi-move capabilities). If you could implement that on the biscandine site that would be great.

I'll even make it real simple for you on what you need to do. You'll need to go into your http://chu-seireigi-model.js and look for the Lion definitions (searching for "sh-lion should do"), which looks like this:

				66: {
					name: 'lion-w',
					aspect: 'sh-lion',
					graph: this.cbDropGraph(geometry, [[-2,0],[-2,-1],[-2,-2],[-1,-2],[0,-2],[1,-2],[2,-2],[2,-1],[2,0],[2,1],[2,2],[1,2],[0,2],[-1,2],[-2,2],[-2,1]],[[1,1],[1,-1],[-1,1],[-1,-1]]),
					value: 10,
					abbrev: 'LN',
					fenAbbrev: 'N',
					initial: [{s:1,p:55}],
					demoted: 67,
					hand: 18,
				},
				67: {
					name: 'lion-b',
					aspect: 'sh-lion',
					graph: this.cbDropGraph(geometry, [[-2,0],[-2,-1],[-2,-2],[-1,-2],[0,-2],[1,-2],[2,-2],[2,-1],[2,0],[2,1],[2,2],[1,2],[0,2],[-1,2],[-2,2],[-2,1]],[[1,1],[1,-1],[-1,1],[-1,-1]]),
					value: 10,
					abbrev: 'LN',
					initial: [{s:-1,p:168}],
					demoted: 66,
					hand: 18,
				},

Set the Lions values to 11 and replace the current graph definitions with the following:

					graph: this.cbDropGraph(geometry, [[-2,0],[-2,-1],[-2,-2],[-1,-2],[0,-2],[1,-2],[2,-2],[2,-1],[2,0],[2,1],[2,2],[1,2],[0,2],[-1,2],[-2,2],[-2,1],[1,1],[1,-1],[-1,1],[-1,-1],[1,0],[-1,0],[0,1],[0,-1]],[]),

Once that is done, the biscandine Jocly preset should play at least somewhat reasonably.


A. M. DeWitt wrote on Wed, May 1 05:25 PM UTC in reply to François Houdebert from 03:51 PM:

Thanks. It looks much better.


François Houdebert wrote on Wed, May 1 03:51 PM UTC in reply to A. M. DeWitt from Tue Apr 30 01:46 PM:

copied


A. M. DeWitt wrote on Tue, Apr 30 01:46 PM UTC:

@François Houdebert,

I've noticed for a while that for the 2D Classic Jocly sprites for Seireigi, all the promoted (red) kanjis being mirrored rather than being rotated 180 degrees like they should be, which looks a bit ugly and may confuse certain players, especially those who are used to single-kanji graphics.

Attached is a spritesheet that fixes this, which I would like uploaded to the biscandine site.

www.chessvariants.com/play/jocly/dist/browser/games/chessbase/res/shogi/seireigi-shogi-sprites.png


François Houdebert wrote on Sun, Apr 28 11:09 AM UTC in reply to H. G. Muller from 10:20 AM:

the command to filter chess game would be :

gulp --no-default-games --modules src/games/chessbase build --prod


H. G. Muller wrote on Sun, Apr 28 10:20 AM UTC in reply to François Houdebert from 06:48 AM:

We could also ask the more general question of not keeping anything other than chess variants. Something to think about.

Indeed, that occurred to me too. We could easily delete all lines in the jocly-allgames.js file that do not refer to chess variants.

OTOH, the preferred access to the variants on this website appears to be through the Jocly overview page, not through the 'other Jocly games' link that the applet always shows. It is a bit silly when you first have to select a variant you don't want to play, and then switch. And the switch works in the applet, but not for the rule description page we embedded the applet in.

But the overview page also needs refactoring; listing the available variants by date is not helpful at all to the unwary visitor of this website. I am not sure what the best presentation is, though. I suppose alphabetically, even though this competes with what you could do (with some more knowledge and effort) in the site's alphabetical index.

I am also thinking of 'modernizing' the install here. By replacing jocly.game.js the Jocly core is already fully compatible with the recent source code. The only variant in the CVP install that has not been back-ported to source yet is Tenjiku Shogi. Since all game-specific model and view files include a version of the chessbase model and view, there is no harm in different variants needing different versions of these.

So we could replace all model and view files in the chessbase folder by those from the most-recent compile, and the images and supporting info file these use in the chessbase/res sub-tree as well. I think Tenjiku Shogi exclusively uses sprites, mesh files and diffusemaps from the shogi2 subdirectory, which does not exist in the source tree. Only jocly-allgames.js must be made to always have the extra line defining Tenjiku Shogi, compared to the version created by building Jocly from source.


François Houdebert wrote on Sun, Apr 28 06:48 AM UTC:

I suggest you update jocly with HGM's version of capablanca and my timurid's version: they now have a prelude allowing you to select a sub-variant.
this will remove the need

  • carrera, janus, gothic
  • babur, wild mirza,wild babur, wild timurid

You could also add Fantastic XIII and bigorra.

We could also ask the more general question of not keeping anything other than chess variants. Something to think about.


A. M. DeWitt wrote on Fri, Apr 26 10:40 AM UTC in reply to François Houdebert from 08:19 AM:

That's perfect.


François Houdebert wrote on Fri, Apr 26 08:19 AM UTC in reply to A. M. DeWitt from 12:48 AM:

better like this ?


A. M. DeWitt wrote on Fri, Apr 26 12:48 AM UTC:

@François Houdebert,

I noticed a bug in the Hectochess implementation. When castling, the starting squares of the Champions and queenside Knights (b2/b9, c2/c9, and i2/i9) are not being checked to see if a piece is occupying them or not, allowing castling when it should not be possible to do so.


A. M. DeWitt wrote on Wed, Apr 24 11:30 AM UTC in reply to H. G. Muller from 08:33 AM:

Thanks.

Can you also do the same for normal Seireigi? It has the same problem with its 3d Kanji pieces.


H. G. Muller wrote on Wed, Apr 24 08:33 AM UTC in reply to A. M. DeWitt from Tue Apr 23 08:34 PM:

There appears to be a mismatch between the shogi graphics on CVP and that in the current source code. On CVP there are directories .../chessbase/res/shogi and .../chessbase/res/shogi2. The first contains the tile meshes and diffusemap for mini-Shogi, the second for Chu and Tenjiku Shogi. The current source code was derived from the latter, even though it reorganized the location where the diffusemaps are stored.

The problem occurs because the newly made Seireigi diffusemaps are made according to the Tenjiku design, (and placed so the view files can find them), but use the mini-Shogi tile mesh files. And it appears that these mesh files specify the use of a different part of the diffusemap for painting the top face: the mini-Shogi tiles use the top-left quarter, while the Chu-Shogi tiles use the bottom-left quarter of the maps.

I fixed the problem by editing the chu-seireigi-view.js file, to make it use the mesh files from the shogi2 folder. The kanji then appear. But apparently not all mesh files used by seireigi are there, as some of the pieces now disappear completely.

[Edit] The problem was in the map files: some Seireigi pieces use the diffusemap of Chu-Shogi pieces, and these are in a different location on CVP from where they are in the current source code (and have different filenames too). I adapted the path for the diffusemaps of Copper, Kirin, Phoenix, Lion and Queen to where these images are on CVP, and now the initial position of Chu Seireigi is correctly displayed.


A. M. DeWitt wrote on Tue, Apr 23 08:34 PM UTC:

For some reason, the 3d graphics for Seireigi and Chu Seireigi are only showing as blank Shogi pieces, and in the case of certain Chu Seireigi pieces, not showing at all. Any help would be greatly appreciated.

Also, I noticed a bug in the Hectochess file, where, when castling, the Champion starting square is not checked to see if a piece is there or not.


🕸Fergus Duniho wrote on Tue, Apr 23 04:25 PM UTC in reply to H. G. Muller from 12:17 PM:

Therefore Fergus created separate HTML pages for individual variants, which embed the Jocly applet preconfigured to run the corresponding variant, with a rule description. The overview page you refer to contains links to those individual game pages.

While I used to make separate HTML pages for individual variants, I replaced this practice with a PHP script that gets called through a semantic URL whose relative part starts with "/play/jocly/". If you want to review its code to see how it works, you can find the script at "/play/jocly/control.php". It relies on certain files being in place to display the description, rules and credits. It should work with games that have not been indexed yet, and if you do use it with unindexed games, you can, as an editor, add them to the index.


H. G. Muller wrote on Tue, Apr 23 01:30 PM UTC in reply to A. M. DeWitt from 12:25 PM:

Edit: Also, Hectochess doesn't have the 3d Queen, Marshall, and Cardinal for some reason...

Indeed, I noticed that too. I did upload a newer fairy-sprites file, and that made the Champion and Wizard appear.

[Edit] OK, that should be fixed now too. Hectochess was using the proper-*.js files for these 3d pieces, which differ from the original ones by a scale factor, to give them a more natural size. But these were not present on CVP.

[Edit2] I now moved a lot of the new 3d pieces to the CVP Jocly install as well. I had never payed much attention to the version here as far as updates go, because the CloudFlare caching made it pracically impossible to see any changes. But now that Fergus has exempted Jocly from this, it makes sense to bring the version here up to date as well. Makromachy already works. For Minjiku Shogi some of the promoted pieces seem to be still missing.


25 comments displayed

Later Reverse Order EarlierEarliest

Permalink to the exact comments currently displayed.