utv
New Member
Posts: 18
|
Post by utv on Sept 25, 2015 15:52:35 GMT -8
Hello all,
I have been working on my web-based version of ggp and I am looking for match visualisation the same as Tiltyard. My choice is using Tiltyard javascript match visualisation. Is it possible to do that and what should I concern? I would like to hear the feedback before looking at the code.
Thank you.
|
|
utv
New Member
Posts: 18
|
Post by utv on Sept 26, 2015 20:08:18 GMT -8
Okay, I found a game visualiser using XSLT and user interface by javascript. What to do next when I have match result in xml? I don't know how to use that javascript to render a match.
Thank you.
|
|
utv
New Member
Posts: 18
|
Post by utv on Sept 27, 2015 9:36:40 GMT -8
I have found three options for the visualisation 1. Tiltyard 2. Stanford game master(Using javascript) 3. GGP.org(xslt + js)
Which one do you recommend? And please guide me how to get started with it. Thank you.
|
|
|
Post by alandau on Sept 27, 2015 17:31:08 GMT -8
The Javascript used by ggp.org is to support interactive user interfaces for human players. The XSLT is used for actually displaying the state.
Stanford's games, on the other hand, do actually use JS for the visualization.
JS is probably easier to work with, as XSLT is not very flexible.
If you're looking to write a new visualization, for simple games, you'd probably want to start by copying and tweaking an existing visualization.
On the other hand, if your question is about how to render existing visualizations, you should check the existing sources. For the XSLT this is available in GGP-Base; it does some manipulation, turns the game state into an XML to be transformed, and then applies the XSLT transformation to turn the XML into HTML. (It then uses the Flying Saucer library to render the HTML into an image, but on the web you can skip that part.) For the Stanford part, you'd presumably need to check the sources on the relevant pages on the Gamemaster server.
|
|
utv
New Member
Posts: 18
|
Post by utv on Sept 27, 2015 22:00:50 GMT -8
Thank you so much. I want to render existing visualisation and I will look at the JS one since it is more flexible.
|
|
|
Post by alandau on Sept 27, 2015 22:08:34 GMT -8
It's worth also mentioning that Sam Schreiber, who maintains ggp.org, is also interested in moving to JavaScript-based visualizations at some point, away from XSLT. I don't think he's had a chance to evaluate the current Stanford approach, since they haven't documented their standard yet.
|
|
utv
New Member
Posts: 18
|
Post by utv on Sept 27, 2015 22:15:30 GMT -8
I don't see Stanford game master source on Github. I will try looking at their code and see what I can do. Thank you.
|
|
utv
New Member
Posts: 18
|
Post by utv on Sept 27, 2015 23:14:17 GMT -8
I just tried the visualisation by XSLT, it displays only last state. Could it go through each state of a match by clicking left or right arrow key?
I will try the JS one later because it might take more time. Thank you.
|
|
|
Post by Andrew Rose on Sept 27, 2015 23:25:56 GMT -8
Once a match is finished, Tiltyard *can* go through each state of the match by pressing left or right keys on your keyboard.
|
|
utv
New Member
Posts: 18
|
Post by utv on Sept 30, 2015 13:27:14 GMT -8
I want to apply Stanford game viewer(JS) but it doesn't work now. Is this current version of it?
|
|