LAN Party hosting server

For all the help you need with Armagetron!
Post Reply
Mathieux
Posts: 5
Joined: Wed Sep 29, 2010 11:09 pm

LAN Party hosting server

Post by Mathieux »

Hey everyone,

there is a lan party tomorrow so this kinda urgent

i have successfully set up a server with ubuntu and have armagetronad on it... and right now I can create a game and go to my other comptuers on my personal home network and join it. pretty snazzy stuff.
how can i mess with armagetronad in-game settings form the terminal? since ubuntu server is all text, i can't really go into the game and play a round and mess with stuff. so how can I be in the terminal and change for example the wall length, or the game's server name (right now it just shows up as UNAMED SERVER)

sorry if this is a little vague, everybody is running really behind so.. thanks for all your help in advance!


Mathieux
User avatar
madmax
Round Winner
Posts: 306
Joined: Thu Mar 02, 2006 11:14 pm

Re: LAN Party hosting server

Post by madmax »

You enter commands directly in the server, such as:

Code: Select all

CYCLE_RUBBER 0.2
In the wiki you have lots of information about server hosting, here's some examples:
Winner of the How Many Pages Before The Lock® competition and a grand total of 18,93 euros in Euromillions.
Mathieux
Posts: 5
Joined: Wed Sep 29, 2010 11:09 pm

Re: LAN Party hosting server

Post by Mathieux »

Hi,

thanks for the response. I have been trying various things, but it doesn't seem to affect the game at all. For example, i typed CYCLE_RUBBER 20 but on the game it still shows as 1
User avatar
Phytotron
Formerly Oscilloscope
Posts: 5042
Joined: Thu Jun 09, 2005 10:06 pm
Location: A site or situation, especially considered in regard to its surroundings.
Contact:

Re: LAN Party hosting server

Post by Phytotron »

Code: Select all

/admin <command> <value>
Mathieux
Posts: 5
Joined: Wed Sep 29, 2010 11:09 pm

Re: LAN Party hosting server

Post by Mathieux »

still nothing... i am using ubuntu server, all i have is a terminal to look at... i'm tried just about everything that i can think of (which isn't much :P) thanks for the suggestions though
User avatar
Phytotron
Formerly Oscilloscope
Posts: 5042
Joined: Thu Jun 09, 2005 10:06 pm
Location: A site or situation, especially considered in regard to its surroundings.
Contact:

Re: LAN Party hosting server

Post by Phytotron »

Oh, my post referred to issuing commands while in-game. I don't recall exactly how to do it through a terminal, though I seem to recall it working the same way.

But, more importantly, if you want those settings to be permanent you need to enter them into the actual configuration files (e.g., server_custom.cfg). If you know what you want, you can just enter those and restart the server.

Any chance you put configuration settings in everytime.cfg? If so, any changes you make will reset each round.
User avatar
madmax
Round Winner
Posts: 306
Joined: Thu Mar 02, 2006 11:14 pm

Re: LAN Party hosting server

Post by madmax »

Mathieux wrote:Hi,

thanks for the response. I have been trying various things, but it doesn't seem to affect the game at all. For example, i typed CYCLE_RUBBER 20 but on the game it still shows as 1
Does the server output anything when you enter that? It should say something like:

Code: Select all

CYCLE_RUBBER 2
CYCLE_RUBBER changed from 0.2 to 2
You are typing those commands in the same place you started the server right?
Winner of the How Many Pages Before The Lock® competition and a grand total of 18,93 euros in Euromillions.
Mathieux
Posts: 5
Joined: Wed Sep 29, 2010 11:09 pm

Re: LAN Party hosting server

Post by Mathieux »

madmax wrote:
Mathieux wrote:Hi,

thanks for the response. I have been trying various things, but it doesn't seem to affect the game at all. For example, i typed CYCLE_RUBBER 20 but on the game it still shows as 1
Does the server output anything when you enter that? It should say something like:

Code: Select all

CYCLE_RUBBER 2
CYCLE_RUBBER changed from 0.2 to 2
You are typing those commands in the same place you started the server right?
actually no, but i also have a nexuiz server going, and i can enter commands right in and it only gives output when i entered the command wrong and it complains that it doesn't exist.

I will try to edit the configure file, thanks for the suggestion.



EDIT: I do get output from actualy match-related things, like, it will say "new round (4 of 10) beginning" "3" "2" "1" "go!" "mathieux lost 2 points blah blah AI wins" type stuff, and if someone says something in-game I can see it on the terminal, but that's it. Oh, and i'm running 0.2.8 by the way
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: LAN Party hosting server

Post by Z-Man »

How are you running the server? If you're just looking at a tail of the server output, that would explain it not taking any commands. Try running it directly from the command line ('armagetronad-dedicated', it's possible it requires root rights on ubuntu due to silly script wrapping).

But yes, finding settings_dedicated.cfg, creating a new file called settings_custom.cfg in the same directory and entering your configuration there may be a good idea, too.
Mathieux
Posts: 5
Joined: Wed Sep 29, 2010 11:09 pm

Re: LAN Party hosting server

Post by Mathieux »

I am running as root, hmm.. odd...
and, (sorry for being a nag) where exactly are the configure.cfg files? I can't find them anywhere


EDIT: I found the configure file, for future reference, it's etc/default/armagetronad-dedicated

also, i've figured out that within the configure file you can give yourself admin powers for your game (so, if I started playing it myself I can change all the settings in game) so I've done pretty much everything I want to do. Thanks everyone so much for your help!

EDIT AGAIN: Okay, last thing, i promise. I set an admin password, now, if I were just a regular user, and went into the chat and said "/admin" how can I give myself elevated rights? I want to be able to say "/admin" "password?" "*enter password" then do as i please. It doesn't prompt for a password, just says i'm not good enough to be admin :P
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: LAN Party hosting server

Post by Z-Man »

Mathieux wrote: EDIT: I found the configure file, for future reference, it's etc/default/armagetronad-dedicated
Humm, really? Isn't that just the configuration file for the init script, determining whether a server should be started at bootup and under what username? I'm not really familiar with the way the .deb sets things up, but usually, the configuration should be in the directory /etc/armagetronad-dedicated.
Mathieux wrote: EDIT AGAIN: Okay, last thing, i promise. I set an admin password, now, if I were just a regular user, and went into the chat and said "/admin" how can I give myself elevated rights?
If you set an admin password with the ADMIN_PASS command (which, I think, should be the way the .deb setup handles things, be sure to check the server's output for error messages), you first login by saying
"/login <password>"
and then execute commands by saying
"/admin <command>"
Without the /login, /admin usage should be denied.
User avatar
Phytotron
Formerly Oscilloscope
Posts: 5042
Joined: Thu Jun 09, 2005 10:06 pm
Location: A site or situation, especially considered in regard to its surroundings.
Contact:

Re: LAN Party hosting server

Post by Phytotron »

Ah, sorry—I had assumed you had already given yourself admin status (via ADMIN_PASS or authentication level). >_< Yes, of course you must log in as an Owner or Admin in order to enter commands to the server with "/admin."
Post Reply