[Modding Question] How does the game handle file collision

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

biship

Sergeant
99 Badges
Jul 5, 2012
52
16
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Pre-order
  • Warlock 2: Wrath of the Nagas
  • Warlock 2: The Exiled
  • Stellaris
  • Sword of the Stars II
  • Sword of the Stars
  • Europa Universalis IV: Res Publica
  • Majesty 2
  • Magicka
  • Europa Universalis IV: Cossacks
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Cities in Motion 2
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Knights of Pen and Paper 2
  • Stellaris: Necroids
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Warlock: Master of the Arcane
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
ONE: The game only loads the alphabetically highest mod name's files when the filenames are the same.

Example:
  • modZ zz_defines.lua will not load (at all) if there is a modA zz_defines.lua
Even if they have completely different contents.

In this example, the Final Frontier file loads, and moretechnologies file is not loaded at all.
  • \Paradox Interactive\Stellaris\workshop\content\281990\683851819\moretechnologies\common\technology\00_phys_tech.txt
  • \Paradox Interactive\Stellaris\mod\Final Frontier\common\technology\00_phys_tech.txt
This means you can not set a priority or preference.


TWO:
If multiple mod's have different names for files that are in the same respective folder, the lowest file alphabetically takes precedence.

Example:
  • modA zz_defines.lua overwrites modZ aa_defines.lua (only for duplicate variables)

This means the mod order in settings.txt, or the mod installed order or enabled order all mean nothing.


FIXES


Allow us to set a load order in the stupidly tiny, non scroll bar launcher.

Enforce file loading order by mod loading order.

Permit the loading of duplicate files by mod loading order.
 

MatuX

Sergeant
65 Badges
Feb 6, 2013
75
41
  • Sword of the Stars II
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Cities in Motion
  • Victoria: Revolutions
  • Semper Fi
  • Sword of the Stars
  • Europa Universalis IV: Res Publica
  • Victoria 2: A House Divided
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Sunset Invasion
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • For the Motherland
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Victoria 2
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: El Dorado
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Crusader Kings III: Royal Edition
  • Hearts of Iron IV: Colonel
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
What I'd like to be able to do is to modify specific parts of a given piece of code. For example, my keyboard has no keypad, so in vanilla, I've no way to increase/decrease speed.

So I had to create a mod that binds that to a different set of keys. Since I had to modify main.gui, now I can't use *almost any* UI mods just because of a keybind change.