Afforess
The White Wizard
Has anyone been able to successfully use any IO functions in Lua used by Civ5? I tried some simple code, like this
But the FireTuner reports that there is a runtime error on the first line, that io is not a global value.
Either I am forgetting to include a standard library, or Civ5 has blocked io operations...
Code:
SaveData = assert(io.open(text..".txt", "w"));
SaveData:write("hello");
SaveData:close();
But the FireTuner reports that there is a runtime error on the first line, that io is not a global value.
Either I am forgetting to include a standard library, or Civ5 has blocked io operations...