more than one server

For all the help you need with Armagetron!
Post Reply
worship
On Lightcycle Grid
Posts: 11
Joined: Sun Jan 09, 2011 7:24 pm

more than one server

Post by worship »

how do i run more than one server on a mac? i made one but im hosting zg's hr on that i want one i can just mess with settings and have other players come and enjoy it 2.
I trust people. It's the Devil inside of them i don't trust.
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: more than one server

Post by Z-Man »

Try the --configdir and --vardir command line arguments. They allow you to read the configuration and store logs and stats in different directories.
worship
On Lightcycle Grid
Posts: 11
Joined: Sun Jan 09, 2011 7:24 pm

Re: more than one server

Post by worship »

ok so i put this in the terminal, if so were at in the new window or the same window thats running the first server? i just type cd drag the armagetron advanced dedicated folder over to the terminal and than drag the terminal file over to the terminal than it starts it up. also i cant make any admins they just log in as remote user. again sorry for the 2 accounts thing
I trust people. It's the Devil inside of them i don't trust.
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: more than one server

Post by Z-Man »

Yeah, definitely in a separate console window. In one, you follow the regular instructions, in the other, you just append "--datadir <mydir> --vardir <mydir>" or "--datadir <mydir> --userdatadir <mydir>" to the line calling the dedicated server (actually, just "--userdatadir <mydir>" can be enough, but it would default to loading the regular configuration if you make mistakes without giving you error messages.) If you don't like the two terminal windows sticking around, I recommend a little program called 'screen'. It's in MacPorts.

The admin thing is a separate issue. You should look around, about a bazillion people have had similar trouble. If you can't find what you need, we need to know how your configuration looks like and what the precise error messages are.
worship
On Lightcycle Grid
Posts: 11
Joined: Sun Jan 09, 2011 7:24 pm

Re: more than one server

Post by worship »

ok it worked i used --configdir after the first line for the folder thank you for your help
I trust people. It's the Devil inside of them i don't trust.
worship
On Lightcycle Grid
Posts: 11
Joined: Sun Jan 09, 2011 7:24 pm

Re: more than one server

Post by worship »

opps nope i have 2 zg hr servers now :?
I trust people. It's the Devil inside of them i don't trust.
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: more than one server

Post by Z-Man »

You did replace <mydir> with some directory that exists and contains configuration, right?
worship
On Lightcycle Grid
Posts: 11
Joined: Sun Jan 09, 2011 7:24 pm

Re: more than one server

Post by worship »

well im kind of confused :oops: i get command not found when i put it first and when i put /Users/tyler/Armagetron\ Advanced\ Dedicated/armagetronad-dedicated in <> i get -bash: syntax error near unexpected token `newline'. i guess my problem is i dont know were to put it and how to put it. :/
I trust people. It's the Devil inside of them i don't trust.
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: more than one server

Post by Z-Man »

They're command line options. Everything I gave goes after the server command (which I don't know precisely for the mac, so adapt it):
./armagetronaf-dedicated --configdir /Users/tyler/Armagetron\ Advanced\ Dedicated/armagetronad-dedicated --vardir /Users/tyler/Armagetron\ Advanced\ Dedicated/armagetronad-dedicated

(sorry. It's --configdir, not --datadir. That would also try to look for data files, mostly the language files, in the given directory, which would fail. --userdatadir may still work, but with the caveat already given)
Post Reply