Hey, we have forums!

Author Topic: [tool] Savefile Packer/unpacker  (Read 7686 times)

0 Members and 1 Guest are viewing this topic.

Offline False.Genesis

  • Administrator
  • Super Bit
  • **********
  • Posts: 461
  • PRESS COMPILE FOR RAINBOWS
    • View Profile
    • My source code!
[tool] Savefile Packer/unpacker
« on: May 29, 2011, 05:07:58 am »
Because noone has made one yet.
This tool converts .aqs files to XML and back.
May be interesting for modders to mess with save files (or anyone else to re-enable the veil moment, or stock up on resources, and whatnot ;) ).

Usage:
From commandline, just give it a file and it will autodetect what to do.
On windows, you can also drag a file onto the exe instead.

Windows exe and source  is included, and it should also compile on linux (and mac too?), with cmake. Packing and unpacking routines were taken from Aquaria source.

>>> Download <<<

Have fun.

Offline Alphasoldier

  • Dream Bit
  • **********
  • Posts: 1810
  • Zero Suit!
    • View Profile
Re: [tool] Savefile Packer/unpacker
« Reply #1 on: May 31, 2011, 09:44:23 am »
That's one bigass xml file that came out of only 100kb, wouldn't have a clue where to find what. xD
Any examples?
God sees and knows everything, but at least he won't gossip about it.

Offline GMMan

  • Giant Bit
  • ******
  • Posts: 254
  • "Uh... I'll be right here after you're done..."
    • View Profile
Re: [tool] Savefile Packer/unpacker
« Reply #2 on: June 01, 2011, 03:12:32 am »
Ahh... Would have made one myself. You beat me to it!

@Alphasoldier: Try reading the source code of Aquaria to see what you could do with it. Specifically, look in Continuity.cpp. Continuity::loadFile() is where Aquaria begins when loading a save, but the other load functions load static game data such as eats, treasures, etc.
Follow me on Twitter: @gmman_bzflag