I mean the whole local file = io.open(dir .. "saves/" .. map'name' .. ".lua", 'w+') or io.tmpfile() doesn't work at all. it doesn't create any file at all! can anyone explain why the issue is here? And can anyone tell me how to solve this?
Forum
CS2D Scripts Linux tibia savefunctionLinux tibia savefunction
11 replies 1
I mean the whole local file = io.open(dir .. "saves/" .. map'name' .. ".lua", 'w+') or io.tmpfile() doesn't work at all. it doesn't create any file at all! can anyone explain why the issue is here? And can anyone tell me how to solve this?
Also, if the user that is running the cs2d_dedicated doesn't have write access to that directory, you'll also get this problem. So, chmod/chown the directory the scripts use.
I controll the vps with putty, do i need to download anything more?
http://prntscr.com/5fery8
This is the file rights to makes.
for save folder
http://prntscr.com/5fes6i
and the dedicated is also 777 = all rights
http://prntscr.com/5fesn6
But still, it can't be saved, not even the sys/logs can be saved :S
DC? Starkszzz? Please help me!
edited 2×, last 10.12.14 10:52:46 pm
Regarding chmod: do you have a separate user for the cs2d server?
its to scripts folders. Its usually works on pc but not on window. I have check the spellings to the folders too, and it is correctly.
Regarding chmod: do you have a separate user for the cs2d server?
I didn't understand that point. :S
players.lua (write and executive) "mapname".lua (write and executive)
/home/alex/Cs2d/sys/lua/Lunia/
This should work. I don't think io.open opens from the path it is currently in on Linux.
But I'm no Linux fan so don't take my word for it! :p
he already fixed his problem!
1