What is in the savegame file ?
How is it laid out ?
How is the data saved in it ?
Artaxerxes
just by curiousity
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Re: just by curiousity
A savegame file is basically a zipped up copy of the gamedat/ directory. The original used a flex-like format to save it. Exult supports this too, but recently started using a zip instead of a flex file by default. (So that the savegames are a lot smaller)
In think u7tech.txt has some info on the file formats in the gamedat/ directory. The rest is in the exult source. Any particular info you're looking for?
In think u7tech.txt has some info on the file formats in the gamedat/ directory. The rest is in the exult source. Any particular info you're looking for?
-
- Site Admin
- Posts: 1310
- Joined: Thu May 14, 2020 1:34 pm
Re: just by curiousity
nothing in particular.
I just happened to tar several savegames and scp them over to another machine and I realized the savegame files are _huge_.
Artaxerxes
I just happened to tar several savegames and scp them over to another machine and I realized the savegame files are _huge_.
Artaxerxes
Re: just by curiousity
should be about 250K a piece, right?
-
- Site Admin
- Posts: 1310
- Joined: Thu May 14, 2020 1:34 pm
Re: just by curiousity
yeap
isn't it too big ? Can something be done to that or it is just the way it is ? (I know that U7 orig would make even bigger savegames)
Artaxerxes
isn't it too big ? Can something be done to that or it is just the way it is ? (I know that U7 orig would make even bigger savegames)
Artaxerxes
Re: just by curiousity
Well, it is smaller in Exult, because it's zipped whereas in the original it was "flexed" (i.e. no compression).
The size is determined by the fact that all of the contents of the gamedat directory have to be stored, which means all 144 ireg files plus scheduled usecode, npc flags, etc.
The size is determined by the fact that all of the contents of the gamedat directory have to be stored, which means all 144 ireg files plus scheduled usecode, npc flags, etc.
-
- Site Admin
- Posts: 1310
- Joined: Thu May 14, 2020 1:34 pm
Re: just by curiousity
well I guess I'll have to live with it.
no big deal... just asked.
Artaxerxes
no big deal... just asked.
Artaxerxes