Ladder?

Post here if you need help setting up your server, etc.
User avatar
Aang (avatar fan)
Round Winner
Posts: 210
Joined: Tue Apr 03, 2007 1:44 pm
Location: Far away, in a distant fantasy land, where there lives happly little elves. (I'm not one).
Contact:

Ladder?

Post by Aang (avatar fan) »

Ok, now i have two servers running on the same computer. Can i change the path o the ladder etc. so they don't overlap with my other server?
User avatar
.:Avl:.C10ud
Average Program
Posts: 50
Joined: Tue Nov 07, 2006 10:20 pm
Location: In the heart of the ENCOM 511 computer system
Contact:

Post by .:Avl:.C10ud »

yes, install both to different locations. When compiling from source, you would run configure in this fashion:

Code: Select all

./configure --prefix=/new/path
Image
END OF LINE.
User avatar
Sylv
On Lightcycle Grid
Posts: 39
Joined: Sun Sep 05, 2004 4:16 pm

Post by Sylv »

.:Avl:.C10ud wrote:yes, install both to different locations....
no! there's no need to install several instances of the server.

just start them with different userdatadirs.

Code: Select all

armagetronad-dedicated --userdatadir /home/servers/server1
armagetronad-dedicated --userdatadir /home/servers/server2
.
.
armagetronad-dedicated --userdatadir /home/servers/servern
greetings ;)
Image
User avatar
Aang (avatar fan)
Round Winner
Posts: 210
Joined: Tue Apr 03, 2007 1:44 pm
Location: Far away, in a distant fantasy land, where there lives happly little elves. (I'm not one).
Contact:

Post by Aang (avatar fan) »

now i am really confused?
Do i type this in terminal?
User avatar
.:Avl:.C10ud
Average Program
Posts: 50
Joined: Tue Nov 07, 2006 10:20 pm
Location: In the heart of the ENCOM 511 computer system
Contact:

Post by .:Avl:.C10ud »

oh, thx for correcting me slyv :D

yes, you type that at the terminal and just change the path to where your data will be stored. you can also use --configdir to specify the different config dirs. You'll probably want the -d option too and an & at the end of the command to let it run in the background.

Code: Select all

armagetronad-dedicated -d --configdir /path/to/config --userdatadir /path/for/data &
Image
END OF LINE.
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

err, --userdatadir is the dir where textures, master.srv and so can be stored.

You probably want to use --vardir (where ladder, scorelog and that crap will be stored) and --userconfigdir (where your settings_custom.cfg, server_info.cfg and everytime.cfg should be in).
There's no place like ::1
User avatar
Sylv
On Lightcycle Grid
Posts: 39
Joined: Sun Sep 05, 2004 4:16 pm

Post by Sylv »

wrtlprnft wrote:err, --userdatadir is the dir where textures, master.srv and so can be stored.....
not only. when you dont define a vardir additionally it's created as a subdirectory of the userdatadir. same for the loaded resources.

everytime.cfg and custom_settings.cfg (or autoexec.cfg - for some nostalgic reasons i prefer this one) can be used from within the var dir.

to conclude, i would like to say that there are too many ways to start multiple instances of the server :P
Image
User avatar
Aang (avatar fan)
Round Winner
Posts: 210
Joined: Tue Apr 03, 2007 1:44 pm
Location: Far away, in a distant fantasy land, where there lives happly little elves. (I'm not one).
Contact:

Post by Aang (avatar fan) »

OK i am confused again. How does it know which instance of the server is the one i am changing the path to?
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

How do you start your two server instances now?
User avatar
.:Avl:.C10ud
Average Program
Posts: 50
Joined: Tue Nov 07, 2006 10:20 pm
Location: In the heart of the ENCOM 511 computer system
Contact:

Post by .:Avl:.C10ud »

He's using a Mac I think, so he might have done it without a command line...

when you run the command above you invoke a new server instance. you will probably want to kill both servers, then invoke them with separate commands as shown above.
Image
END OF LINE.
User avatar
Aang (avatar fan)
Round Winner
Posts: 210
Joined: Tue Apr 03, 2007 1:44 pm
Location: Far away, in a distant fantasy land, where there lives happly little elves. (I'm not one).
Contact:

Post by Aang (avatar fan) »

Could you please explain that again? i know i am noobish at these commands.
And all i do to make 2 instances of a server is when i have 1 running, i hit command-n and bring up a new terminal window, then cd the other folder.
User avatar
.:Avl:.C10ud
Average Program
Posts: 50
Joined: Tue Nov 07, 2006 10:20 pm
Location: In the heart of the ENCOM 511 computer system
Contact:

Post by .:Avl:.C10ud »

Starting from square one... First, make sure all arma servers are stopped. then, open a terminal window and do something like this:

Code: Select all

$ armagetronad-dedicated -d --configdir /path/to/configs --vardir /path/for/stats &
Wait for first server to start and when it says Bound to Socket *:4534 or something similar and appears to be done loading, hit return and it will return you to the prompt (since -d make it run in daemon [background] mode and the & and the end tells it to background and detach from terminal). Repeat the process for the second server, changing the configdir and vardir locations accordingly.
Image
END OF LINE.
User avatar
Aang (avatar fan)
Round Winner
Posts: 210
Joined: Tue Apr 03, 2007 1:44 pm
Location: Far away, in a distant fantasy land, where there lives happly little elves. (I'm not one).
Contact:

Post by Aang (avatar fan) »

OK i did that, but it says that

Code: Select all

-bash: armagetronad-dedicated: command not found
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Again, I ask: how do you start the servers so they work?
Then, to the last command, add
--configdir /path/to/configs --vardir /path/for/stats
to the end. I'd do it without the -d and the & and run the two servers in two windows.

For later, you could get hold of a program called "screen", your best bet would be DarwinPorts. It allows you to detach the server sessions from the terminal windows so they keep running when you close the windows.
User avatar
Aang (avatar fan)
Round Winner
Posts: 210
Joined: Tue Apr 03, 2007 1:44 pm
Location: Far away, in a distant fantasy land, where there lives happly little elves. (I'm not one).
Contact:

Post by Aang (avatar fan) »

To start the servers i:
open a terminal window, type 'cd ' without the quotes, i drag the Armagetron Dedicated folder onto the window. I press enter. I then drag the armagetronad-dedicated document-thing (located inside the folder) onto the window. I press enter. Then it starts working. does that help?

So before i press enter last, i type in that code?
Post Reply