debian server saves

A place for people to post strange occurances that could be potential bugs.

Moderator: Board moderators

Post Reply
Guest

debian server saves

Post by Guest »

I use Debian unstable which is currently up to version 1.6.0-3 for the server. I just did an install, an the server won't save games. I assume this is a permission thing, but I'm not sure which directories to change where. (I'm used to letting apt-get fix things and keep them secure). Any suggestions?
User avatar
Salathar
Junior member
Posts: 245
Joined: Mon Apr 26, 2004 12:21 am

Post by Salathar »

You want your server to have write permissions to players directory in order to save them. Also the server wants to be able to write hiscores and be able to save unique maps.
Try:

Code: Select all

locate players
locate unique-items
And enable write access to the drictory which contains those two.
For example on my systems the fires are in:

Code: Select all

/usr/games/crossfire/var/crossfire
Casper
Senior member
Posts: 288
Joined: Fri Aug 06, 2004 7:17 pm
Location: UK/Ukraine

Post by Casper »

Also you can try directly emailing the package maintainer. Debian developers are a friendly bunch and should happily answer/fix things.
Guest

Post by Guest »

Thanks for all the feedback. I'm halfway there. I found the following

-rw-rw---- 1 nobody games 14270 Dec 19 2003 bookarch
-rw-rw-r-- 1 nobody games 8 Nov 13 18:18 clockdata
drwxr-xr-x 2 nobody games 4096 Nov 9 21:34 highscore
drwxr-x--- 8 root root 4096 Nov 13 17:50 players
-rw-rw-r-- 1 nobody games 847 Dec 19 2003 temp.maps
drwxr-xr-x 2 root root 4096 Nov 13 17:50 tmp
drwxr-x--- 2 nobody games 4096 Nov 13 17:48 unique-items

I changed the owners to nobody and group to games, and now it is saving things, but I'm getting error messages about the highscore. Is it supposed to be a file or a directory?? I seem to recall it was a file in the 1.5 server...
[/code]
User avatar
Salathar
Junior member
Posts: 245
Joined: Mon Apr 26, 2004 12:21 am

Post by Salathar »

It is a file. On my system it is together with this bunch:

Code: Select all

banish_file  clockdata       crossfiremail  highscore  players/   unique-items/
bookarch     crossfireboard  datafiles/     maps/      temp.maps
in

Code: Select all

/usr/games/crossfire/var/crossfire
Hope that helps :)
Guest

Got it working!

Post by Guest »

Thanks for the help. It's working now. For anyone trying this in the future, on Debian the var files (including the highscore file and the players directory) are in

/var/games/crossfire

mapfiles go in

/usr/share/games/crossfire/maps
Post Reply