General > Off Topic

wxBots

<< < (3/3)

Numsgil:
Explain the save file format to me.  I was thinking of doing something similar.  Is is the sort of thing that I could unzip separate from the program and make changes by hand?

goffrie:
I'm using Boost.Serialization to handle the saving/loading, but basically if you use 'gzip' or a compatible program to decompress the save file (adding a .gz extension would be helpful) you can see the XML with somewhat descriptive tags.

Numsgil:
Hah, that's really cool.  I'm gonna try it now.

It works!  Sorta...  Is there binary embedded in the XML?  I'm seeing a lot of stuff that doesn't look quite right:


--- Code: ---    <storecost>0.039999999</storecost>
    <agecost>9.9999997e-005</agecost>
    <botdensity>1</botdensity>
    <vegfeed>100<9ity>
    <vegfeed>100<9ity>
    <vetem>item_version>
                        <item>2</item>
                        <62>2</item>
tem>
                        <62>2</item>
tem>
                        <62>2</item>
tem>
                        <62>2</item>
tem>
>2</item>
tem>
>2<
--- End code ---

Followed by a bunch of gibberish that looks like binary.  I used winace to unzip it, let me try it with 7zip.

EDIT: 7zip said my save was broken.  Maybe it was a bad save or bug or something.  I'm done tinkering for now, but you might want to give it a try.

goffrie:
Huh, it looks like the Windows compilation was broken, it doesn't save valid files but the (theoretically identical) Linux version does. I'll look into this.

Navigation

[0] Message Index

[*] Previous page

Go to full version