[BTS] civ4save - New .CivBeyondSwordSave file parsing tool

danofsteel32

Chieftain
Joined
May 6, 2022
Messages
1
Not sure if anyone would find this useful or interesting but I wrote a library and command line tool for parsing .CivBeyondSwordSave files. It only works with unmodded saves as that's all I play but there's no reason it couldn't parse modded saves in the future. It also does not parse the entire file yet. Just up to the end of the CvPlot array.

This screenshot shows some data extracted from one of my save files but it's only a small part of the what you can get.
civ4save.png


You can install it with python3 -m pip install civ4save and in the source repo https://github.com/danofsteel32/civ4save you can find:
  • More screenshots
  • Usage examples
  • Example save files to play with in the tests/saves/ directory
There are still bugs and it's a long way from a 1.0 release so please feel free to open an issue on github or comment here if you find anything broken.
 
Thanks for sharing. About half-way done it seems. I was aware that saves are zlib-compressed, but I hadn't seen working code for uncompressing them before. :thumbsup:
 
Top Bottom