16KB limit on save files?

For topics that do not fit in another sub-forum.

Moderator: Oberlus

Post Reply
Message
Author
Fuzzer
Space Krill
Posts: 4
Joined: Thu Dec 29, 2016 5:51 am

16KB limit on save files?

#1 Post by Fuzzer »

I have had problems in two games in a row where the auto save and save function both error out. The common point may be when the save file is greater then 16KB. New install, Win10, and version v0.4.6[2016-09-16.49F9123]. Its late in the games and "winning" is not really in doubt, but its annoying since there is the error message every turn.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: 16KB limit on save files?

#2 Post by Geoff the Medio »

Fuzzer wrote:The common point may be when the save file is greater then 16KB. New install, Win10, and version v0.4.6[2016-09-16.49F9123].
Do you mean 16 MB? A turn 1 autosave should be ~ 80 KB with default settings.

Such an error could occur if it's unable to allocate enough memory to store all the save data, and as a result can't decompress it.

Have you tried enabling binary save serialization?
Attachments
binary serialization option
binary serialization option
binary_serialization.png (189.84 KiB) Viewed 1537 times

Fuzzer
Space Krill
Posts: 4
Joined: Thu Dec 29, 2016 5:51 am

Re: 16KB limit on save files?

#3 Post by Fuzzer »

:lol: I did indeed mean 16MB. The last save that worked was 16091KB. I will try the Binary save file. I had not noticed it under the "Other" tab. Thanks.

Fuzzer
Space Krill
Posts: 4
Joined: Thu Dec 29, 2016 5:51 am

Re: 16KB limit on save files?

#4 Post by Fuzzer »

It seems to have worked. The save files bloated up to 64MB, but working well.
Thanks!

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: 16KB limit on save files?

#5 Post by Geoff the Medio »

Could you clarify how the error first appeared? When saving, or when trying to load a previously-successfully created save?

Fuzzer
Space Krill
Posts: 4
Joined: Thu Dec 29, 2016 5:51 am

Re: 16KB limit on save files?

#6 Post by Fuzzer »

It started on a save, and also effected auto saves. (May have started on the auto saves as well, but I think not...) The save would error out, and the save file would be 0KB, same as for the auto saves.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: 16KB limit on save files?

#7 Post by Geoff the Medio »

In that case, another instance of backup-code could be added to revert to binary save if the compressed XML save fails.

Post Reply