Jump to content

Photo

SaveSRAM() is freezing the game when used with Game->Save()


  • Please log in to reply
No replies to this topic

#1 Mitchfork

Mitchfork

    no fun. not ever.

  • Members
  • Real Name:Mitch
  • Location:Alabama

Posted 27 March 2021 - 05:37 PM

I'm using SaveSRAM() to make mapdata changes permanent to the save file. When using F6 to save, this works normally. However, when using "Game->Save()" to save the game (from an FFC scripted save point) this will lock the game and freeze it with the following error messages repeating:
e825f047ff.png
 
global script onSave{
	void run(){
		SaveSRAM("CrucibleCrest.zcsram",0x20);
	}
}
global script onSaveLoad{
	void run(){
		LoadSRAM("CrucibleCrest.zcsram",0x20);
	}
}
EDIT: I have done more testing by moving away from the onSave slot completely. If I put the following into an FFC script:
SaveSRAM("CrucibleCrest.zcsram",0x20);
Game->Save();
The game will crash as above. However, if I reverse the commands:
Game->Save();
SaveSRAM("CrucibleCrest.zcsram",0x20);
This will work with no issues. So it seems to be something caused by saving too soon after the SRAM is created, perhaps? Hopefully this info will help narrow down what's happening.

Edited by Mitchfork, 27 March 2021 - 07:01 PM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users