From: Kåre H. J. <ka...@gm...> - 2010-05-02 08:20:01
|
Dear Sean, Thank you for your prompt reply. Sounds like the GameDataManager.loadGame function is a good place to start. I will let you know if anything useful transpires. Best regards, Kåre On Wed, Apr 28, 2010 at 3:16 AM, Sean Bridges <sbr...@ya...> wrote: > It will be hard unless you are doing it in java. Saved games are compressed serialized java objects, and they are not friendly to parse from the command line. > > If you are using java, look at GameDataManager.loadGame(File ...), then once you have a GameData object, you can look at it's History, and walk the tree. > > Sean > > > ----- Original Message ---- > From: Kåre Hartvig Jensen <ka...@gm...> > To: tri...@li... > Cc: Nicolai Kragh-Hansen <nic...@gm...> > Sent: Tue, April 27, 2010 10:43:56 AM > Subject: [Triplea-develop] What is the best way to extract data from savegames? > > Dear triplea devs, > > First, thank you for developing and maintaining this great game. > > I have a simple question, and I was hoping that some of you > could point me in the right direction. > > What is the best way to extract data (e.g. a post turn summary) from > savegames? Ideally, I would like to be able to extract the data > by running a bash script with the .tsvg-file as an argument, getting > the data out in a XML style format. > > Best regards, > Kåre Hartvig Jensen > > ------------------------------------------------------------------------------ > _______________________________________________ > Triplea-developers mailing list > Tri...@li... > https://lists.sourceforge.net/lists/listinfo/triplea-developers > > > > > |