DeclanTKatt
Chieftain
Hello,
I hope I am posting this in the correct forum, and that someone will stumble across it. Anyways, I'm current working on my first mod for Civ 5 (first ever, actually) and although I don't know lua at all, I'm starting to kinda piece it all together.
Anyways, suppose I wanted to create a really simple mod where all I did was take a .lua file that is already in the game such as:
assets\UI\InGame\CityView\CityView.lua
and all I did to it was remove one line of code from the file, and that's it. Sounds easy enough, but here's the question.
The only way I know to get this to work, is to copy over the original .lua to the ModBuddy, remove my desired line of code, save the new .lua, and set it's "Import to VFS" to true.
But this means that I'm practically feeding in an identical .lua into the game and it would not be compatible with any other mods that attempt to alter this particular .lua since my VFS has been set to true.
Is there anyway that I can just simply remove a line of code from a .lua without having to reiterate the entire file? This would be analogous to just doing an <Update> to an XML file.
Any help would be appreciated. Thanks alot!
I hope I am posting this in the correct forum, and that someone will stumble across it. Anyways, I'm current working on my first mod for Civ 5 (first ever, actually) and although I don't know lua at all, I'm starting to kinda piece it all together.
Anyways, suppose I wanted to create a really simple mod where all I did was take a .lua file that is already in the game such as:
assets\UI\InGame\CityView\CityView.lua
and all I did to it was remove one line of code from the file, and that's it. Sounds easy enough, but here's the question.
The only way I know to get this to work, is to copy over the original .lua to the ModBuddy, remove my desired line of code, save the new .lua, and set it's "Import to VFS" to true.
But this means that I'm practically feeding in an identical .lua into the game and it would not be compatible with any other mods that attempt to alter this particular .lua since my VFS has been set to true.
Is there anyway that I can just simply remove a line of code from a .lua without having to reiterate the entire file? This would be analogous to just doing an <Update> to an XML file.
Any help would be appreciated. Thanks alot!