16KB limit on save files?

For topics that do not fit in another sub-forum.
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 » Thu Dec 29, 2016 6:35 am

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: 12245
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: 16KB limit on save files?

#2 Post by Geoff the Medio » Thu Dec 29, 2016 9:08 am

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.png
binary serialization option
binary_serialization.png (189.84 KiB) Viewed 536 times

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

Re: 16KB limit on save files?

#3 Post by Fuzzer » Thu Dec 29, 2016 10:58 pm

: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 » Fri Dec 30, 2016 12:32 am

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: 12245
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: 16KB limit on save files?

#5 Post by Geoff the Medio » Fri Dec 30, 2016 11:10 am

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 » Sat Dec 31, 2016 7:44 pm

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: 12245
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: 16KB limit on save files?

#7 Post by Geoff the Medio » Sun Jan 01, 2017 12:37 pm

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

Post Reply