FAF UnitDB App

Post here if you want to help developing something for FAF.

Re: FAF UnitDB App

Postby Uveso » 03 Aug 2017, 03:54

Lua doc for SupCom:
http://supcom.wikia.com/wiki/Lua

Those commands are not working inside a mod. (wrong lua state)
Code: Select all
    temp = io.open("supcomUnitData.json","w+")
    temp:write(jsonString)
    temp:close()

The reason, why i am using the debug log for this is simple. I don't know a way to write files from a mod.
User avatar
Uveso
Evaluator
 
Posts: 697
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 26 times
Been liked: 100 times
FAF User Name: Uveso

Previous

Return to Contributors

Who is online

Users browsing this forum: No registered users and 1 guest