Jump to content

[V 2.0 - General] Savefile stays unchanged in RAM after overwriting


wulf 21

Recommended Posts

This thing I metioned in other threads when I was playing around with savefiles nearly drove me mad for some time :confused:. Because I kept being reset to earlier game states while testing and wondered if I really did press that F5 button or forgot it?

But now I did do it in a way that makes it clear for me this is actually happening and made a screenshot each step. And I intentionally did not use the quicksave for it, so I wouldn't have to ask myself what I really pressed after that.

  • made sure I had no preexisting savefile named test (deleted them)
  • started the game from desktop, started a new game and placed my base in Latin Americe (Screenshot 1)
  • saved the new game as "test" (Screenshot 2)
  • quit to desktop
  • started game from desktop again, started a new game and placed my base in Asia Pacific (Screenshot 3)
  • saved the game as "test" again and confirmed the question if it should overwrite the savefile (Screenshot 4)
  • loaded the "test" I did just create (Screenshot 5) ... aaaand magic! the base was suddenly back in Latin America (Screenshot 6)
  • quit to main menu, then loaded the savefile again (Screenshot 7) ... and the base STILL is in Latin Americe (Screenshot 8) - so if you stop here you could think that game failed to actually save, but it gets better
  • quit to desktop
  • load "test" again and here comes the real magic: The base is suddenly in Asia Pacific, right where it was before saving the test a second time! (Screenshot 9)

So I think what really happens here is that for loading savefiles there was used some part of code that is intended for files that stay unchanged during the whole runtime of the game (like sprites, sounds, models). So upon accessing the save directories on game start, the engine just thinks "let's load these small files into cache right now, might save time if I need them later". And upon loading the file it would then just load what was already in RAM and never access the file system again to load the actual file, so it appears like the savefile was not saved again until quitting the game to desktop again.

Screenshot 1:

2019-02-07_1919_1.thumb.png.f3937869300766dfe63f87d9f62b9ae2.png

Screenshot 2:

2019-02-07_1919_2.thumb.png.43f0a6302f2ed2cea413f1167edfe0f2.png

Screenshot 3:

2019-02-07_1920_1.thumb.png.9a1cdd27ce9ca7baad3bb0ed83a3f29a.png

Screenshot 4:

2019-02-07_1921_1.thumb.png.dd3719c2386dd1a771d161b3fcf34aa0.png

Screenshot 5:

2019-02-07_1921_2.thumb.png.013df51c20b2bf4f116e0267080b369b.png

Screenshot 6:

2019-02-07_1921_3.thumb.png.03d6584a3647dc389ac87dafab144100.png

Screenshot 7:

2019-02-07_1922_1.thumb.png.337cb58cb416316985d4aaac6c0a2778.png

Screenshot 8:

2019-02-07_1922_2.thumb.png.7178618dcde5bed8a48812a13635b2bb.png

Screenshot 9:

2019-02-07_1923_1.thumb.png.fdf68289920cd589326ebd95844d1d3c.png

 

  • Thanks 1
Link to comment
Share on other sites

 

21 hours ago, wulf 21 said:

This thing I metioned in other threads when I was playing around with savefiles nearly drove me mad for some time :confused:. Because I kept being reset to earlier game states while testing and wondered if I really did press that F5 button or forgot it?

Yeah, you're right - somthing we only discovered ourselves a few days ago because of your bug report with the personnel slots. This is fixed in the hotfix and the game no longer caches the save games.

I appreciate you pointing that out, by the way, as I think it would have caused us a lot of problems further down the line.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...