[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Adonthell-devel] Saving/Loading todos
From: |
Kai Sterker |
Subject: |
[Adonthell-devel] Saving/Loading todos |
Date: |
Mon, 11 Jun 2012 13:27:38 +0200 |
Hey Chris, All,
find the updated worldtest in the saving_loading branch:
https://github.com/ksterker/adonthell/commit/3170086e7c3eba087f8ff5605051fb060dc8acc7
I hope the comments added make it clear enough what to do in each
case, but if not we can discuss the details here.
A few general hints will certainly help, however:
* The initial game data is kept in the toplevel data directory (i.e.
adonthell/test/data/) and can be recognized by the .data extension.
It's probably in zipped binary format.
* The script adonthell/test/convert_data.py can be used to convert
back and forth between binary and XML data. Useful if you need to edit
stuff in the data files directly.
* The script adonthell/test/filereport.py lists the contents of data
files (both binary and XML) in case you only want to look at them.
* Usually when I had to update contents of any data file I would
implement saving first and leave loading compatible with the old
format. Then add code to worldtest to correctly setup all the data,
then save it. Afterwards, update loading for the new data format and
remove hard coded initialization from worldtest again. (For minor
changes, editing the XML data is probably quicker, though).
Kai
- [Adonthell-devel] Saving/Loading todos,
Kai Sterker <=
- Re: [Adonthell-devel] Saving/Loading todos, Chris Frey, 2012/06/11
- Re: [Adonthell-devel] Saving/Loading todos, Chris Frey, 2012/06/12
- Re: [Adonthell-devel] Saving/Loading todos, Kai Sterker, 2012/06/12
- Re: [Adonthell-devel] Saving/Loading todos, Chris Frey, 2012/06/12
- Re: [Adonthell-devel] Saving/Loading todos, Chris Frey, 2012/06/12
- Re: [Adonthell-devel] Saving/Loading todos, Josh Glover, 2012/06/13
- Re: [Adonthell-devel] Saving/Loading todos, Kai Sterker, 2012/06/13
- Re: [Adonthell-devel] Saving/Loading todos, Josh Glover, 2012/06/13
- Re: [Adonthell-devel] Saving/Loading todos, Chris Frey, 2012/06/13