smellymummy
King
- Joined
- Jul 31, 2002
- Messages
- 705
edit: see post #4 for solutions
has anyone tried including lua context lines in the other context xml files?
for example, civ5\assets\UI\InGame\LeaderHead\DiscussLeader.xml, a really small file that seems to deal with the first diplo discussion window (discuss, trade, exit, etc), and putting a luacontext line there loads up a lua file just fine, as opposed to ingame, after looking at it some more, seems to have some important stuff in that could get updated or modified
also anyone know any other mod action controls asides from onmodactivated / updatedatabase? i noticed packaged lua files are automatically included in the main state IncludeFileList table; halfway there from being loaded up as a state for the game, so there's got to be an easier way to have them load outside of the xml <Context>.
sql doesnt seem to work here, and i have no idea where context even gets loaded. just about each vanilla lua file has one, but replicating that with unique named files doesnt seem to do the trick
has anyone tried including lua context lines in the other context xml files?
for example, civ5\assets\UI\InGame\LeaderHead\DiscussLeader.xml, a really small file that seems to deal with the first diplo discussion window (discuss, trade, exit, etc), and putting a luacontext line there loads up a lua file just fine, as opposed to ingame, after looking at it some more, seems to have some important stuff in that could get updated or modified
also anyone know any other mod action controls asides from onmodactivated / updatedatabase? i noticed packaged lua files are automatically included in the main state IncludeFileList table; halfway there from being loaded up as a state for the game, so there's got to be an easier way to have them load outside of the xml <Context>.
sql doesnt seem to work here, and i have no idea where context even gets loaded. just about each vanilla lua file has one, but replicating that with unique named files doesnt seem to do the trick