Ryan F. Mercer
Whys
smellymummy, I'm finding _G very interesting, thank you for mentioning it. A couple questions. First, how did you know to go looking for _G in the first place? You are the first person I've seen mention it. Two, is there a way to get to it from my own custom lua file, or just console?



The part of my code that I'm loading is the data collector which isn't tied to any particular UI component; it just sets up a couple of end turn functions to collect and store data. So, I found the UIAddin part of Kael's guide and said to myself "hey, that sounds right for something that's, essentially, independent of the UI" and it worked the first time I tried it. For all the other stuff, I thought it was absolutely necessary to include them as part of InGame.xml, my thinking being that InGame was some sort of uber-context that all contexts had to be children of.
I'm sure that we all will benefit from them sooner or later.