Thread: [EXE Mod] SRB2PlusC
View Single Post
Old 12-28-2017   #39
"Lat'"
Stop it
 
"Lat'"'s Avatar
Default

There's something wrong with io; creating subfolders doesn't work at all and results in an error when closing the file. This works fine with SRB2+IO, however.

Code:
local write = io.open("testfolder/testfile.txt", "w")
io.output(write)
io.write("text goes here", "\n")
io.close(write)
The following results in
Code:
/KCGC.wad|LUA_MAIN:57: bad argument #1 to 'close' (FILE* expected, got nil)
__________________
Quote:
Originally Posted by Bronydude2k5 View Post
If you make me a Sash Lilac wad, I'll make you a sonic sprite hack of any choice.
"Lat'" is offline