Update config files, through command line.

Post here if you need help setting up your server, etc.
Post Reply
User avatar
ROCK
Average Program
Posts: 76
Joined: Fri Feb 18, 2005 4:03 am

Update config files, through command line.

Post by ROCK »

I'm starting a server called "The Grid of INSANITY!!!" running susé 9.1 on a p4 at 3GHz with 512MB of ram, over a T1 connection, and I’m having trouble with the config files. There are commands that you can enter into the command line that aren’t found in the config files, such as center_message, now when I enter this into the command line, the server keeps this trait until I have to reset it. It seems these commands are never read into any file or stored other than statically. I’m wondering if this might be because I’m redirecting the program to a different directory to get the config files. (ie. Armagetronad-dedicated --configdir /home/rock/armagetronad-Linux-dedicated-0.2.7.1/config) Ether that or there is no write to file portion of the code. It would be all right if I could save these settings some other way than this, just need to know if there is one, short of manipulating the source code.
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

center_message isnt in the config files, because it is not a config item. It just prints out a message in the center of the screen to all clients (ex: center_message I am the admin). There is a round_center_message (cant remember the exact name) that prints out a cm every round. This is found in the user.cfg file. Same goes with round_console_message_1 (etc..). Atleast thats how it for me. :|
User avatar
ROCK
Average Program
Posts: 76
Joined: Fri Feb 18, 2005 4:03 am

Post by ROCK »

nemostultae wrote:center_message isnt in the config files, because it is not a config item. It just prints out a message in the center of the screen to all clients (ex: center_message I am the admin). There is a round_center_message (cant remember the exact name) that prints out a cm every round. This is found in the user.cfg file. Same goes with round_console_message_1 (etc..). Atleast thats how it for me. :|
odd, I cant find a user.cfg file anywhere, I know i've seen it in the windows build, but not here... anyway, that was just an example, albeit a bad one. So what about it not updateing my cfg files from the command line?
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

In LInux, the user.cfg file is located in ~/.armagetronad/var . There is a second commandline paramter to the server for this directory that you might want to change. I changed mine to it points to the same place so I can keep all server settings int he same place.

Another file you want to take a look at is everytime.cfg. That file gets loaded between rounds. It's how some servers have messages that show between rounds. :)
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
ROCK
Average Program
Posts: 76
Joined: Fri Feb 18, 2005 4:03 am

Post by ROCK »

Lucifer wrote:In LInux, the user.cfg file is located in ~/.armagetronad/var . There is a second commandline paramter to the server for this directory that you might want to change. I changed mine to it points to the same place so I can keep all server settings int he same place.

Another file you want to take a look at is everytime.cfg. That file gets loaded between rounds. It's how some servers have messages that show between rounds. :)
Thanks that was uber helpful. I'll have to play around with this.... EVIL GRIN... :twisted:
Post Reply