From: Erik V. <eri...@xs...> - 2010-01-11 22:42:44
|
See my response to Rick, which I think answers your question. Erik. -----Original Message----- From: Phil Davies [mailto:de...@gm...] Sent: Monday 11 January 2010 11:06 To: rai...@li... Subject: Re: [Rails-devel] Rails-devel Digest, Vol 27, Issue 5 I'm keen to try and understand the relationships here as well, with the recent 'tile 4' problem I saw that it was incorrect both in the Tiles.xml, as well as the TileDictionary files. Is there a script that I've been unable to locate that builds the game specific Tiles.xml given the TileSet.xml, or are the changes for each tile propagated manually each time there is an update? Phil 2010/1/11 Rick Westerman <wes...@pu...>: > Date: Sun, 10 Jan 2010 20:55:36 -0500 > From: Rick Westerman <wes...@pu...> > Subject: [Rails-devel] Tiles.xml, TileSet.xml, and svg files > To: "Development list for Rails: an 18xx game" > <rai...@li...> > Message-ID: <D20...@pu...> > Content-Type: text/plain; charset="us-ascii" > > This may another one of those "I should not go there" type of > questions. If so apologies in advance. Or I may be missing something > obvious. At the moment I am learning the source of Rails via > experimentation rather than intensive reading of the code. > > ============= > > A tile for a given game is defined in three places: > > The per-game TileSet.xml seems reasonable as it has a list of the > tiles in the given game, quantity of tiles, upgrade path, and which > SVG picture to use. > > The per-game Tiles.xml has the same list of tiles but this time > with the colour of the tile (not the actual color on the time but the > color phase), how many cities and towns and their positions; values > of the cities/towns and a list of how the track is laid out (e.g., > from side 0 to side 2, from side 1 to side 5). > > The whole-rails SVG files have the graphics for each of the tiles. > > Now for a given tile the relationship of the tile's SVG file and > the tile's entry in Tiles.xml is fixed. In other words I can not a > take a tile in the Tiles.xml file and change its track layout from > 'side 0 to side 2' to 'side 0 to side 3' and expect that the tile > will show up properly. Instead it will retain it's SVG > representation. Ditto if I try to change the number of cities or > their position. So ... why not have a global Tiles.xml file with > three items in it and reduce the duplication across the games? That > would make the per-game Tiles.xml smaller and more readable (and thus > easier to debug). And/or combine the reduced per-game Tiles.xml file > into the TileSet.xml file thus reducing another source of duplication > and error. > > > As I said this may have been hashed out before and there may be > good reasons for the above files. In any case I will deal with what > is current. > > ============= > > BTW#1: Is there any routine to display all of the SVG files? > > BTW#2: The README in the 'tiles' directory says that the XML > files in said directory are not important. IMHO it should also say > that the svg sub-directory is critically important. As you can > imagine by my comment it took me a while to realize the importance of > said directory. > > -- Rick ---------------------------------------------------------------------------- -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |