|
Post by grayed on Jan 9, 2016 3:47:59 GMT -8
Hi all, I'm new to ggp and as part of my learning process I'd like to create one, or two new game packs for ggp base. Games I'd like to implement are: diaballik join fiveDo you think that those games are worth of adding? As far as I know they are not implemented yet. Thanks!
|
|
|
Post by Andrew Rose on Jan 9, 2016 7:31:49 GMT -8
I really like the look of Diaballik - it's a bit different to most of the current games.
For "Join Five", we've already got a couple of similar looking Solitaire variants, but we don't have the 2-player games. That would be interesting to see.
Andrew
|
|
|
Post by alandau on Jan 9, 2016 14:41:01 GMT -8
I'm not aware of any GDL versions of Morpion solitaire.
|
|
|
Post by grayed on Jan 14, 2016 13:46:17 GMT -8
Thanks for answers!
I wrote some GDL for diaballik, but I have difficulties with testing it. I created new folder in ggp-base/games/games, I put METADATA and diaballik.klf in it. Unfortunately when I run Validator or Server app, new game is not listed in "Local Game Repository". When I select game source as "Local Game Repository" some new exceptions appear in eclipse stdout/err log. I presume that there is something wrong with newly created game package, but exception is "java.net.SocketException: Unexpected end of file from server" and stack trace doesn't tell much. Any hints on how to debug it?
Also, just from looking at the code I don't see a way to test if xsl and js files included in game package are correct. How to test those files, should I set up tiltyard server locally and upload new package to it?
|
|
|
Post by alandau on Jan 14, 2016 20:33:01 GMT -8
If you don't need to use the visualization, you can put the .kif file in ggp-base/games/test and use the Test repository. If you want to include a visualization (xsl) and/or a human interface for the kiosk (js), you can do that in the Local repository. You just need to include a reference to them in the METADATA file if they're present. To get the Local repository working for you, it would help to give the stacktrace(s) and the contents of the METADATA file. If you have a GitHub account, you could create an Issue there regarding the problem, which would be somewhat more convenient for those of us maintaining the project: github.com/ggp-org/ggp-base/issues
|
|
|
Post by Andrew Rose on Jan 15, 2016 1:48:16 GMT -8
grayed - I note also that you've written diaballik.klf (kilo *lima* foxtrot) in your message above. Perhaps that's just a typo, but these are conventionally named .kif (kilo *india* foxtrot). Whatever you've called it, the filename in the METADATA file must exactly match the filename on disk.
|
|
|
Post by grayed on Jan 15, 2016 2:50:02 GMT -8
Thanks for tips guys. Andrew Rose - nice catch, METADATA contained other file ending then in filename, when I fixed it, Server and Validator apps were able to load diaballik rules (shame on me).
|
|
|
Post by grayed on Jan 15, 2016 7:51:50 GMT -8
alandau - You mentioned that js file would be used for human kiosk interface, but by looking at kiosk app from ggp base I'm under impression that this app does not use js files, but custom java classes for each board, am I right? If so what is the best way to test human interface written in js?
|
|
|
Post by alandau on Jan 15, 2016 21:05:07 GMT -8
You're right, the Kiosk doesn't use the .js files. I believe they're for matches involving a human player on Tiltyard; that capability isn't used much, so it's not really necessary for putting a game on Tiltyard. I've never made one, personally; I think they're all by Sam Schreiber.
|
|