How do I replace base LUA files with custom ones?

FractalAdvocate

Chieftain
Joined
Apr 1, 2017
Messages
37
I've created a modified copy of the CityStates LUA.
To try to test it, I used Import Files in FrontEnd Actions, with the following options:
File: \Assets\UI\PartialScreens\CityStates.lua
ID: UI
Custom Properties: None

And it doesn't seem to be overriding the original CityStates LUA, or in fact doing anything, since any of the obvious/stupid changes I try on it neither do what I intend or horribly break things.

What am I missing/doing wrong?
 
Ah, sorry, I could have worded that better.

It is the file in my mod---I was giving the mod the same path structure in an attempt to get it to work. The above subpath/file it points to is in my mod folder, not in the original civ location.
 
You don't have to recreate a folder structure. Only the file name must be the same.
Anyway, if the file you are replacing is in PartialScreens, it's used during gameplay, not in front end. So, you can't use FrontEnd Actions.
 
Back
Top Bottom