Forum

> > CS2D > Scripts > Linux tibia savefunction
Forums overviewCS2D overview Scripts overviewLog in to reply

English Linux tibia savefunction

11 replies
To the start Previous 1 Next To the start

old Linux tibia savefunction

Nitrogen
BANNED Off Offline

Quote
I just bought a vps for my tibia server. The vps is linux and I just found out the tibia savingfunction doesn't work.
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?

old Re: Linux tibia savefunction

Nitrogen
BANNED Off Offline

Quote
Yes all directories are the, all folders. do i need to spell it 100% correctly i meant like if there is a BIG S on the saves folder?

old Re: Linux tibia savefunction

DannyDeth
User Off Offline

Quote
In Linux, you must match cases: the folder "save" is not the same as "Save", so make sure that isn't the problem.

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.

old Re: Linux tibia savefunction

Nitrogen
BANNED Off Offline

Quote
The folders name and function savings on folders are matched with identicle name. And the problem is still there. Can anyone please help me!!

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

old Re: Linux tibia savefunction

Nitrogen
BANNED Off Offline

Quote
dir = "sys/lua/Lunia/"

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

old Re: Linux tibia savefunction

Conscience
User Off Offline

Quote
Change dir to:
/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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview