[eINFO] Folder and filename priority
One thing that was noticed in E:wom, and still holds true in the FE mod folder is the following details
1) If two files have the same filename, then only one gets read by the game. The other one is completely ignored (it is not read into the engine at all). This is both a danger and an opportunity for us modders. It is a danger because we must ensure that our filenames aren't the same by mistake. It is an opportunity because it allows us to release mods that purposefully have a higher priority than previous mod-files without overwriting them. (Edit: Note that filenames in the Mod folder do NOT cause conflicts with identical filenames from the core installation folder)
2) In order to understand what file gets read if there are multiple files with the same filename, we also have to understand the order the engine reads in the folders. If you have some experience of folder structure this should come as no surprise. The folders are read in hierarchy, numeric and then alphabetical order:
Mods\TestMod_V1\
Mods\TestMod_V1\Coremod\
Mods\TestMod_V1\Zzzmod\
Mods\TestMod_V1\Zzzmod\folder1\
Mods\TestMod_V1\Zzzmod\folder2\
Mods\Testmod_V2\
Mods\Testmod_V2\Coremod\
Mods\TestMod_V2\Zzzmod\
Mods\TestMod_V2\Zzzmod\folder1\
Mods\TestMod_V2\Zzzmod\folder2\
Mods\Testmod_VA\
Mods\Testmod_VB\
Note that, unlike filenames, sub-folders can have the same name without causing a conflict. But files within still cause conflict if they share filename.
Example one:
Mods\TestMod_V2\Test.xml
The second file in the V2 folder is read.
Example two:
Mods\TestMod_V2\Test.xml
The second file in the V2 folder is read.
Example three:
Mods\TestMod_V1\Coremod\Test.xml
Mods\TestMod_V2\Coremod\Test.xml
The second file in the V2\Coremod folder is read, and Test1.xml is also read.