just by curiousity

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

just by curiousity

Post by artaxerxes »

What is in the savegame file ?

How is it laid out ?

How is the data saved in it ?

Artaxerxes
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: just by curiousity

Post by wjp »

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?
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: just by curiousity

Post by artaxerxes »

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
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: just by curiousity

Post by wjp »

should be about 250K a piece, right?
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: just by curiousity

Post by artaxerxes »

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
nadir
Site Admin
Posts: 407
Joined: Thu May 14, 2020 1:34 pm

Re: just by curiousity

Post by nadir »

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.
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: just by curiousity

Post by artaxerxes »

well I guess I'll have to live with it.
no big deal... just asked.

Artaxerxes
Locked