Crash when re-load

In my Architecture+ mod, I configure the customizations with this code: If I save the game and reload it directly, so without leaving the game, it crashes I think that reloading does not empty the memory of the customizations and there is therefore a conflict How to empty the memory before reloading these customizations? I tried with the 3 outputs of Switch on ELifecyclePhase but it doesn't change anything
Solution:
Ah, try making it a Game Instance Module instead
Jump to solution
11 Replies
FICSIT-Fred
FICSIT-Fred2w ago
Automated responses for Jean Michel (532279861088223232)
Key Details for SMMDebug-2025-02-22-09-39-52.zip
SMM Version: 3.0.3
SML Version: 3.9.1
Installed Mods: 7
Game: WindowsClient CL 385279 from steam
Path: `c:\Program Files (x86)\Steam\steamapps\common\Satisfactory`
Command Line: cmd /C start steam://rungameid/526870-NO_EOS_OVERLAY
SMM Version: 3.0.3
SML Version: 3.9.1
Installed Mods: 7
Game: WindowsClient CL 385279 from steam
Path: `c:\Program Files (x86)\Steam\steamapps\common\Satisfactory`
Command Line: cmd /C start steam://rungameid/526870-NO_EOS_OVERLAY
Crash found in FactoryGame.log
It has been attached to this message.
Crash found in FactoryGame_be28b253_Local_Stable_WindowsClient.log
It has been attached to this message.
Rex
Rex2w ago
Which kind of mod module is this?
Jean Michel
Jean MichelOP2w ago
I don't understand your question
Rex
Rex2w ago
Top right corner of the editor window, it should say the parent class Your screenshot doesn't show it, though
Jean Michel
Jean MichelOP2w ago
Game World Module
Solution
Rex
Rex2w ago
Ah, try making it a Game Instance Module instead
Jean Michel
Jean MichelOP2w ago
OK
Rex
Rex2w ago
And you should be saving the CDOs to variables (you can just add them to an array of objects)
Jean Michel
Jean MichelOP2w ago
Yesss, work perfectly Thanks
Rex
Rex2w ago
For the record: ExampleMod's example CDO edit is (as of writing) done in a Game World Module, but this isn't great because it is executed every time a game world is loaded. I switched this to a Game Instance Module in https://github.com/satisfactorymodding/SatisfactoryModLoader/pull/335 (I needed to add a Game World Module for resource node spawning, so it made sense to fix the CDO edit example while at it)
Jean Michel
Jean MichelOP2w ago
👍🏽

Did you find this page helpful?