alexbatalov / fallout1-ce

Fallout for modern operating systems
Other
2.21k stars 150 forks source link

[Linux] Can't save the game #102

Open nake90 opened 1 year ago

nake90 commented 1 year ago

Hello! I get the following error while trying to save the game on linux:

Playing movie: ovrintro.mve
Direct Playing at (0, 0)  not scaled
Movie aborted
Frames 20, dropped 0
OVERRIDE_MAP_START: x: 90, y: 88
[Party Member 0]: Max Stone

[Party Members]:
Total Critter Count: 21

LOADSAVE: Backing up save slot files..

LOADSAVE: 0 map files backed up.

LOADSAVE: Save name: SAVEGAME\SLOT01\SAVE.DAT
LOADSAVE: Save function #0 data size written: 0 bytes.
LOADSAVE: Save function #1 data size written: 4 bytes.
LOADSAVE: Save function #2 data size written: 2473 bytes.

 Saving ".SAV" map.V13ENT.SAV saved.
AUTOMAP: Saving AutoMap DB index 35, level 0

LOADSAVE: ** Error writing save function #3 data! **

LOADSAVE: Restoring save file backup...

LOADSAVE: Erasing save(bad) slot...

LOADSAVE: Erasing save(bad) slot...

Scripts: [Game Reset]

I am using 1db15fe6b5d65cbf7aaa3e5f543e3291b6eb547d (current master).

I was checking the source code but I can't find what the cause of the issue is... Any help is appreciated.

Just in case, a bit more info:

Thanks for the help in advance!

nake90 commented 1 year ago

Alright, what a mess of a bug report. Sorry about that.

I tried v1.0.0 and it didn't start saying that the master file does not exist. So I did:

ln -s MASTER.DAT master.dat
ln -s CRITTER.DAT critter.dat

And I could start v1.0.0. Then I thought that maybe the fix to start even if master.dat is called MASTER.DAT was not applied to the save game system? So I recompiled main and it does work.

So the workaround to my 15min old issue is link or rename MASTER.DAT and CRITTER.DAT to lowercase.

However, I keep this bug report open as the issue is still there and hard to figure out what is happening.