English Linux tibia savefunction

11 replies
Goto Page
To the start Previous 1 Next To the start
09.12.14 09:50:43 pm
Up
Nitrogen
BANNED
Offline Off
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?
09.12.14 10:50:49 pm
Up
Torque
User
Offline Off
are the directories it wants to save to there? I never had problems hosting Tibia on linux.
Relax, relate, release. Visit: www.lsdservers.boards.net
10.12.14 01:14:43 am
Up
Nitrogen
BANNED
Offline Off
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?
10.12.14 01:21:22 am
Up
DannyDeth
User
Offline Off
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.
10.12.14 10:40:13 pm
Up
Nitrogen
BANNED
Offline Off
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
10.12.14 11:03:16 pm
Up
VADemon
User
Offline Off
user Nitrogen what's the dir variable? Everything else looks fine to me.
Regarding chmod: do you have a separate user for the cs2d server?
11.12.14 01:11:59 pm
Up
Nitrogen
BANNED
Offline Off
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
17.12.14 05:16:17 pm
Up
JeeewNazi
User
Offline Off
modify the save file permissions:
players.lua (write and executive) "mapname".lua (write and executive)
17.12.14 06:15:56 pm
Up
Flacko
User
Offline Off
Have you tried running cs2d_dedicated with sudo?
17.12.14 07:27:09 pm
Up
Conscience
User
Offline Off
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
Remember to learn to forget. Whiskey shots and cheap cigarettes.
17.12.14 10:20:45 pm
Up
Sisla
User
Offline Off
Guys,
he already fixed his problem!
19.12.14 08:51:55 am
Up
nikita3035
User
Offline Off
How save { u you usgn yes
To the start Previous 1 Next To the start