Hi guys,
is there a way to load contents of a .lua file from another .lua file?
Something like:
It seems, that "io" is not accessible ("function expected instead of nil"). I also tried "local io = require("io");" without luck.
I try to debug the "CivicsTree_TABLET.lua" which is somehow different on the IPad than the original "CivicsTree.lua" on Windows. But to do this I need to view the contents of the file. As we cannot access the files of an IPad app in a non-jailbreak way, this is the only way for me to look at it...
Thank you for your help!
mfuesslin
is there a way to load contents of a .lua file from another .lua file?
Something like:
Code:
local file = "../../../../Base/Assets/UI/Screens/CivicsTree_TABLET.lua";
local f = assert(io.open(file, "r"))
local content = f:read("*all")
f:close()
print(content);
I try to debug the "CivicsTree_TABLET.lua" which is somehow different on the IPad than the original "CivicsTree.lua" on Windows. But to do this I need to view the contents of the file. As we cannot access the files of an IPad app in a non-jailbreak way, this is the only way for me to look at it...
Thank you for your help!
mfuesslin