[SOLVED] Lua cross-referencing?

Geekob

Chieftain
Joined
Apr 30, 2017
Messages
20
I want to make Utils file for some utility functions, but I cant do that for some reason. I used require("..."), include("..") but nothing seems to work. I included that Utils.lua into LuaScripts, but console is still crying about not knowing the used function. Am I missing something?

Code:
include ("Utils.lua");
local utils = require("Utils");
...
utils.DoSomething();
 
"include" only works for the files Firaxis used for the UI. Apparently they specifically created a list of files that were valid for the "include" command, and no other files work for this.

Gedemon uses ExposedMembers in an "ExposedMembers.SomethingGedemonMagic" method but so far I've not been able to wrap my head around it.
 
Back
Top Bottom