From: Charles S. <men...@gm...> - 2011-01-12 21:57:44
|
I've been using Rails to run different 18xx games that I have. However there are a few that aren't even in the Rails program but would like to play using it. Once our group started using Rails we have a hard time trying to run one without, it just saves a lot of time and calculations. I'm looking into creating the game files for Rails to use for the games it doesn't currently have. I'm also looking at creating my own 18xx to be used in Rails. I was wondering how would I do this? I'm not a stranger to basic programming, html, etc. so the technical learning curve isn't an issue (that and I'm a quick learner). |
From: brett l. <bre...@gm...> - 2011-01-12 22:30:22
|
Charles - Welcome to the list! Creating games is a combination of configuration and coding, depending on what the game entails. The map, stock market, and other basic details are configured via XML files. For games that simply re-use the rules of existing, already implemented games, it's fairly easy to write-up the XML, drop it into the correct locations, updating the master game lists, and have Rails begin attempting to play a new game. The game rules, if they deviate from already implemented game rules, will require additional coding to implement those special cases. This requires extending the game code, which is written in Java. Your first steps should be to set up your IDE (most of us use Eclipse), check out the code from SVN, and begin familiarizing yourself with the code base as well as looking through the mailing list archives. If you have any questions (or patches you'd like applied to SVN), feel free to post them to the list. :-) ---Brett. On Wed, Jan 12, 2011 at 1:57 PM, Charles Strong <men...@gm...> wrote: > I've been using Rails to run different 18xx games that I have. However there > are a few that aren't even in the Rails program but would like to play using > it. Once our group started using Rails we have a hard time trying to run one > without, it just saves a lot of time and calculations. > > I'm looking into creating the game files for Rails to use for the games it > doesn't currently have. I'm also looking at creating my own 18xx to be used > in Rails. I was wondering how would I do this? I'm not a stranger to basic > programming, html, etc. so the technical learning curve isn't an issue (that > and I'm a quick learner). > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > > |
From: Charles S. <men...@gm...> - 2011-01-15 20:23:41
|
I've got svn with eclipse. I'm not sure how to compile it after making changes or what steps I should do with it. Also I've been editing the XML files to create new games. I'm having some major bugs and/or issues. When I copy a game then I can only use tiles from the game I copied. Once I try putting in a tile from a different game then my tile manifest will show zero tiles available and I can't start public companies on that tile if it's a city tile. Even when I edit tiles.xml file it won't show the changes. I think the problem is in the game.xml file. When I copy over an existing game like 1830 and then change the game name to something like 18Test the game won't start up and it errors out. If I keep it at 1830 but change the gamelist.xml file then it shows up in the menu as 18Test but with the problems above. I guess the question is how do I start a game from scratch? And if this isn't possible how do I pull in tiles from other games if I copy a game over? This has been very frustrating. |
From: Erik V. <eri...@xs...> - 2011-01-16 12:38:07
|
For some answes\rs, see blow. Erik. Van: Charles Strong [mailto:men...@gm...] Verzonden: zaterdag 15 januari 2011 21:24 Aan: rai...@li... Onderwerp: Re: [Rails-devel] Rails 1.4 Creating games I've got svn with eclipse. I'm not sure how to compile it after making changes or what steps I should do with it. EV: I always set Eclipse to autocompile on save. Also I've been editing the XML files to create new games. I'm having some major bugs and/or issues. When I copy a game then I can only use tiles from the game I copied. Once I try putting in a tile from a different game then my tile manifest will show zero tiles available and I can't start public companies on that tile if it's a city tile. Even when I edit tiles.xml file it won't show the changes. EV: You need to change both Tiles.xml and TileSet.xml. Best is to start with the latter, and then fill the game-specific Tiles.xml with copies of the corresponding tile definitions from the generic Tiles.xml (under tiles). You can also generate Tiles.xml from TileSet.xml with class tools.MakeGameTileSets. Or I can do that for you, as well as create any new tiles that are not yet included in the generic Tiles.xml. I think the problem is in the game.xml file. When I copy over an existing game like 1830 and then change the game name to something like 18Test the game won't start up and it errors out. If I keep it at 1830 but change the gamelist.xml file then it shows up in the menu as 18Test but with the problems above. EV: You need to do both. I guess the question is how do I start a game from scratch? And if this isn't possible how do I pull in tiles from other games if I copy a game over? This has been very frustrating. |