I already posted the results of my experiments in another thread, but I feel that they are potentially useful enough to some modders that it warrants the increased exposure of a new thread.
I ran my tests using a very simple edict mod. I created two mods that were very similar. Test Mod 1 gave you an edict that boosted your physics tile output by 100%. Test Mod 2 gave a similar edict that boosted by 50%. Localisation was slightly different so that the two could be told apart.
Renaming the file names from 00_ to 01_ or 02_ causes no negative effects. In fact, it might be good modding practice to name your files starting with 01_ because doing this makes the game load both the vanilla files and the mod files. Duplicating vanilla file names in your mod causes the game to ignore the vanilla files and load just your mod files. This would cut down on mod file size (a little bit) and also just makes for less hassle because there is no need to copy over the entire contents of the vanilla file into your mod.
I also learned some important info about how Stellaris handles mod load order. It appears that the game will attempt to merge (to the best of its ability) files that have different names but have conflicting content. e.g. with my edicts, keeping the file names different but having the edict names within the files be identical led to the game loading both edicts but only using the localisation for one. So having a higher numbered file name does not, according to my tests with edicts, mean that the higher file number will be loaded after the lower one and any conflicts overwritten.
However, there does appear to be a built in mod load order system in Stellaris. Stellaris seems to load its mods in reverse alphanumeric order, starting at the bottom of the list of selected mods in the launcher and progressing up. That means that my Test Mod 1 would be loaded after my Test Mod 2 because Test Mod 1 appears above Test Mod 2 in the launcher. I tested this by naming the edicts file of both mods the same thing and loading both of them. Test Mod 1 won every time. When I renamed Test Mod 2 to A Test Mod 2 (so that it was higher than Test Mod 1 in the launcher), A Test Mod 2 won.
While not as good as a dedicated mod load order tool that would allow us to specify exactly the order the mods should be loaded in, this is very important and useful information for modders. As a disclaimer, I only tested this with edicts because they were very easy to write. The results could be different and may not apply with other, and especially more complex, features.
I ran my tests using a very simple edict mod. I created two mods that were very similar. Test Mod 1 gave you an edict that boosted your physics tile output by 100%. Test Mod 2 gave a similar edict that boosted by 50%. Localisation was slightly different so that the two could be told apart.
Renaming the file names from 00_ to 01_ or 02_ causes no negative effects. In fact, it might be good modding practice to name your files starting with 01_ because doing this makes the game load both the vanilla files and the mod files. Duplicating vanilla file names in your mod causes the game to ignore the vanilla files and load just your mod files. This would cut down on mod file size (a little bit) and also just makes for less hassle because there is no need to copy over the entire contents of the vanilla file into your mod.
I also learned some important info about how Stellaris handles mod load order. It appears that the game will attempt to merge (to the best of its ability) files that have different names but have conflicting content. e.g. with my edicts, keeping the file names different but having the edict names within the files be identical led to the game loading both edicts but only using the localisation for one. So having a higher numbered file name does not, according to my tests with edicts, mean that the higher file number will be loaded after the lower one and any conflicts overwritten.
However, there does appear to be a built in mod load order system in Stellaris. Stellaris seems to load its mods in reverse alphanumeric order, starting at the bottom of the list of selected mods in the launcher and progressing up. That means that my Test Mod 1 would be loaded after my Test Mod 2 because Test Mod 1 appears above Test Mod 2 in the launcher. I tested this by naming the edicts file of both mods the same thing and loading both of them. Test Mod 1 won every time. When I renamed Test Mod 2 to A Test Mod 2 (so that it was higher than Test Mod 1 in the launcher), A Test Mod 2 won.
While not as good as a dedicated mod load order tool that would allow us to specify exactly the order the mods should be loaded in, this is very important and useful information for modders. As a disclaimer, I only tested this with edicts because they were very easy to write. The results could be different and may not apply with other, and especially more complex, features.
- 4