thanks a lot, since I managed to work around it I'll wait until I have another issue with it, something weird to me is that interfacemodes, lets say you create a new one, it gets the id 24 (-1 is error, 0 is debug, and the first game value is 1 and it goes all the way to 23) but once it gets assigned to a variable to use (lua or dll) it uses id minus 1 (they are probably dropping the debug one somewhere and I never found it). So whenever I was setting or testing for my id as-is, everything went wrong (a trade route interfacemode is 23 so I guess that's why the button showed on caravans).
I feel xml/sql should be loaded first, then dll (because it can have inits that depend on the modified tables) then lua, but I dont know how it goes.
I also solved this differently, but is there a way to include a lua file into the VFS but not have it execute? I wanted to add a new file for UI Generic Popup to include (it includes files dynamically when it loads), and that loaded, but then the game would try to also load the custom lua on its own, and failed since it doesnt have includes on its own.
I feel xml/sql should be loaded first, then dll (because it can have inits that depend on the modified tables) then lua, but I dont know how it goes.
I also solved this differently, but is there a way to include a lua file into the VFS but not have it execute? I wanted to add a new file for UI Generic Popup to include (it includes files dynamically when it loads), and that loaded, but then the game would try to also load the custom lua on its own, and failed since it doesnt have includes on its own.