enabling dm mode on localhost

Requests for assistance and other HOWTOs.

Moderator: Board moderators

Pyroc

enabling dm mode on localhost

Post by Pyroc »

I have installed and can play on a server on localhost (using debian packages). However, when I try the dm command, it says something like "nice try". Can anybody tell me how to set it up so that I can use the dm mode on my server?

Pyroc
Leaf
Forum Aficionado
Posts: 1994
Joined: Tue Apr 29, 2003 5:55 pm
Location: Minnesota, USA
Contact:

Post by Leaf »

You need to make some changes to the dm_file

http://crossfire.real-time.com/commands/dm/index.html



HOWTO Enable DM Access

The DM access file is found in share/crossfire/dm_file

This file contains authorization for dm access.
There are 3 fields, like this: name:password:host
Any field can be ignored if a * is used instead of a normal value - this is the extent of the wildcarding.

Lines that start with # are obviously ignored. This file is read each time someone attempts to become dm, so it can be changed after the server is running and results will apply to the present server that is running.

Example entries:
master:topsecret:*
(name must be master, password is topsecret, allow any host)
*:notelling:*
(only matches password)


As a specific example, add this line:

Pyroc:MyPassword:127.0.0.1



That way, you just need to type:

'dm MyPassword

and Pyroc will have DM access on the server.
Targetnight
Luser
Posts: 15
Joined: Sun Nov 07, 2004 8:00 am

This file...

Post by Targetnight »

leaf wrote:You need to make some changes to the dm_file

http://crossfire.real-time.com/commands/dm/index.html



HOWTO Enable DM Access

The DM access file is found in share/crossfire/dm_file
Where exactly is this?
Dragon steaks... Mmm... Yup, I'm a carnavor. Nupe, not ter players. Dost thou beist a dragon? Thou shalt join thy group of dragons! Ye can find us on thy server crossfire.metal
User avatar
Salathar
Junior member
Posts: 245
Joined: Mon Apr 26, 2004 12:21 am

Re: This file...

Post by Salathar »

Targetnight wrote:
leaf wrote:You need to make some changes to the dm_file

http://crossfire.real-time.com/commands/dm/index.html



HOWTO Enable DM Access

The DM access file is found in share/crossfire/dm_file
Where exactly is this?
If you are wondering how to find dm_file:
On Linux do

Code: Select all

su
updatedb
locate dm_file
On Windows do

Code: Select all

Press F3(find file)
search for file called dm_file
or use the above linux code if you have cygwin installed
Cowboy
Luser
Posts: 21
Joined: Thu Nov 04, 2004 5:57 pm

Post by Cowboy »

On debian unstable/testing, it should be in /etc/crossfire

If you're running stable, it's in
/usr/share/games/crossfire
Targetnight
Luser
Posts: 15
Joined: Sun Nov 07, 2004 8:00 am

Post by Targetnight »

Cowboy wrote:On debian unstable/testing, it should be in /etc/crossfire

If you're running stable, it's in
/usr/share/games/crossfire
Er... Can you point out directions to these?
Thanks Salathar.
Dragon steaks... Mmm... Yup, I'm a carnavor. Nupe, not ter players. Dost thou beist a dragon? Thou shalt join thy group of dragons! Ye can find us on thy server crossfire.metal
woo
Senior member
Posts: 427
Joined: Tue Jun 15, 2004 10:32 pm
Location: Atlanta, GA
Contact:

Post by woo »

so your running debian of some variety it would seem.

You will need a text editor, whatever one you like
vi/nano/pico/kwrite/nedit there are tons...

In one of those 2 locations you will see a file named
dm_file

make the change leaf described to get it working, i.e add:

name:password:*
Targetnight
Luser
Posts: 15
Joined: Sun Nov 07, 2004 8:00 am

Post by Targetnight »

How do you enable localhost anyhow?
Dragon steaks... Mmm... Yup, I'm a carnavor. Nupe, not ter players. Dost thou beist a dragon? Thou shalt join thy group of dragons! Ye can find us on thy server crossfire.metal
User avatar
Salathar
Junior member
Posts: 245
Joined: Mon Apr 26, 2004 12:21 am

Post by Salathar »

Targetnight wrote:How do you enable localhost anyhow?
Could you be more descriptive? :)

name:password:127.0.0.1 will only allow dms on localhost
Targetnight
Luser
Posts: 15
Joined: Sun Nov 07, 2004 8:00 am

Post by Targetnight »

I can't get onto localhost. My firewall allows connections while I try it, (I tweak it to allow them) and I have the maps. But I havent placed the maps into the folder they belong in-Where do they go? I kinda posted this in another topic, also.
Dragon steaks... Mmm... Yup, I'm a carnavor. Nupe, not ter players. Dost thou beist a dragon? Thou shalt join thy group of dragons! Ye can find us on thy server crossfire.metal
Post Reply