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
11 Replies
Automated responses for Jean Michel (532279861088223232)
Key Details for SMMDebug-2025-02-22-09-39-52.zip
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.
Which kind of mod module is this?
I don't understand your question
Top right corner of the editor window, it should say the parent class
Your screenshot doesn't show it, though
Game World Module
Solution
Ah, try making it a Game Instance Module instead
OK
And you should be saving the CDOs to variables (you can just add them to an array of objects)
Yesss, work perfectly
Thanks
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)
👍🏽