How to override lua from mods?

Xony

Chieftain
Joined
Mar 9, 2016
Messages
99
Is there a way to override lua-files like for ui from other mods via a modmod? I tried it with VFS = true and the same name, but it doesn't seem to override.
 
At a guess, "Compatibility/CultureOverview.lua/xml" is not being treated as the same filename as the one it's meant to replace
 
It's in his dependencies or reference tags, I believe.
Code:
  <Dependencies>
	<Mod id="ce8aa614-7ef7-4a45-a179-5329869e8d6d" minversion="0" maxversion="999" title="Enlightenment Era" /> 
  </Dependencies>
  <References>
    <Mod id="8411a7a8-dad3-4622-a18e-fcc18324c799" minversion="0" maxversion="999" title="Community Balance Patch" />
  </References>
If I can recall, there's two components of the CP package in which one is for EUI and one is for non-EUI and that version has another CultureOverView.lua as well. So, the game doesn't know which is which so it loads whatever was selected first or something, so his changes are being override by another CultureOverView.lua file.
 
Hmm, I'll change it to the exact same path then and see what happens.

For me, the lua.log prints only the EE-CultureOverview at the moment and not any of the cp ones. I'll add the references and try again.
 
you can only have one CultureOverview.lua active within the VFS at the same time. If you were thinking you could have more than one active in the VFS and that they'd all do their thing in-game independantly of each other, then no, this won't work.

Essentially, as each additional mod loads that has another copy of a CultureOverview.lua file, this new file over-writes whichever one was in the VFS previously.
 
Sorry for the bad description. I want one CultureOverview to overwrite all the others in the VFS, but from what I see in the Lua.log, the one functioning is the EE one instead of my modmod, that should theoretically overwrite it.

I added references and checked for the path again. Does still seem to use the wrong CultureOverview though. Does the md5-code have to be the same as in the EE mod, too?
 

Attachments

Back
Top Bottom