How to make Create Game load order match Load Game load order?

isau

Deity
Joined
Jan 15, 2007
Messages
3,071
Hey guys,

I've seen threads about this come and go but I am curious if we ever came to a definitive answer on how to make the order that mods are loaded when you Create Game versus Load Game match.

When you Create Game it seems like mods are loaded in reverse order of ID number.

When you Load Game it seems like this is reversed, or at least not the same as when you Create Game.

This creates major issues in mod stability when a player has multiple mods running. It will seem to work until they save and reload, load the mods in the wrong order, and mess up all the values.

Was a fix found? Is this just a major Firaxis bug in need of patching? Totally stuck until I get an answer. Thanks!
 
Last edited:
Did some more testing on this and here is a case study example. Look at the load order of Moar Units and Quo's Combined Tweaks. The other IDs are for DLCS (Aztecs, Poland, extra city states and natural wonders), as well as the AI+ mod and a second mod I use for debugging.


Creating a game the mods load in this order:

[3067660.068] Status: 02A8BDDE-67EA-4D38-9540-26E685E3156E
[3067660.069] Status: 3809975F-263F-40A2-A747-8BFB171D821A
[3067660.069] Status: 2F6E858A-28EF-46B3-BEAC-B985E52E9BC1
[3067660.070] Status: 70c9b163-18cb-46bf-a326-e8369666d722
[3067660.070] Status: Moar Units! (8342b98d-80c7-4002-87bb-419646bd9b54)
[3067660.071] Status: 000f78a3-dd12-4980-bbda-6a2f9f9b1292
[3067660.071] Status: 'Quo's Combined Tweaks v2.7.2' (10000c74-086c-4a94-9618-3d96183a2d55)


But when loading a game they load in this order:

[3067849.025] Status: 000f78a3-dd12-4980-bbda-6a2f9f9b1292
[3067849.025] Status: 02A8BDDE-67EA-4D38-9540-26E685E3156E
[3067849.026] Status: 'Quo's Combined Tweaks v2.7.2' (10000c74-086c-4a94-9618-3d96183a2d55)
[3067849.026] Status: 2F6E858A-28EF-46B3-BEAC-B985E52E9BC1
[3067849.027] Status: 3809975F-263F-40A2-A747-8BFB171D821A
[3067849.027] Status: 70c9b163-18cb-46bf-a326-e8369666d722
[3067849.028] Status: Moar Units! (8342b98d-80c7-4002-87bb-419646bd9b54)


So, we when loading a game, for the "Tweaks" mod loads almost at the beginning, which means any changes it applies to units loaded after it runs don't get made. I just can't wrap my head around this.

At a minimum, it seems like I need to increase the unique ID of Quo's Combined to come after the ID of the various DLCs, so at least those are consistently affected (as they were before I deliberately edited the ID number to come before Moar Units). But how do I ensure the mod loads last in almost any scenario short of hardcoding dependencies?
 
They are loaded by ID number. 0 first then 1, 2, 3 ect when reloading. And by order listed in the Modding.sqlite (First installed ect) when creating a new game.
 
They are loaded by ID number. 0 first then 1, 2, 3 ect when reloading. And by order listed in the Modding.sqlite (First installed ect) when creating a new game.

Thanks for that. Is there some way to force my mod to go to the end of that list by updating the Config database? I can't think of how that would work though. It sounds like at a minimum what I need to do is give the mod a very high ID#.
 
Back
Top Bottom