|
From: Maurits v. R. <ma...@va...> - 2003-12-03 22:12:04
|
Maurits van Rees wrote: > I committed something. > You can now put the config for your games in statsgen.rc. > I added a configreader.py to parse that. > Result: you can now do: > python myplanets.py gamename This didn't append the contents of standardoptions.txt to the output. That is handled now. Related new statsgen.rc option: addfile (specify which file to add). > I can probably add an output=blahblah option so that python puts its > output directly into a file instead of printing it to the screen. That is implemented now. output=econ result: existing file econ will be renamed to econ.old and the newly computed values will be printed in econ. Also added hooks in statsgen.rc for a default number of defense posts to build and a default end command, like 't b' for taxing the planet and building a starbase if possible. See statsgen.rc and README for more detailed info. 'python configreader.py [gamename]' will show you the values python deduces from your statsgen.rc I also added a few more lines to the top of the generated file with base game info: game name, player, turn number. For that I added a bit to the python-c wrapper. So if you update statsgen remember to update stats as well. -- Maurits van Rees | ma...@va... http://maurits.vanrees.org/ "Peace is not the absence of war; it is the absence of fear." |