Factory reset
- delinquent
- Match Winner
- Posts: 760
- Joined: Sat Jul 07, 2012 3:07 am
Factory reset
Is there a way to completely reset a server? When I close the window and restart the program it automatically includes the previous script, which I can't find to edit. Ergo, is there a way to remove all instances of a script or setting, like a fresh install?
Re: Factory reset
What script? How do you run it? For a server without hacky scripts written around it, just restarting the server process is a cold reboot. Only the ban list (and, on 0.2.8, the highscore/ladder data) survives it.
- delinquent
- Match Winner
- Posts: 760
- Joined: Sat Jul 07, 2012 3:07 am
Re: Factory reset
I'm sorry, I should have worded it better. I meant a config file, such as one used to set scores, server settings and the like, that would be included using the "rinclude" function. I should also mention that it's the Windows port of 0.2.8 sty and CT.
On a further note, I'm unable to physically restart the machine as it's a VM in the Amazon cloud. I've heard tell it's possible, but that one risks losing data, elastic IP settings and the like.
On a further note, I'm unable to physically restart the machine as it's a VM in the Amazon cloud. I've heard tell it's possible, but that one risks losing data, elastic IP settings and the like.
Re: Factory reset
Just rename the file when the AA server is shut down. Then start the server, it will see no config and fallback to default configs. The catchy part is that the server wont write this file until its shut down again; this is to ensure that temporary changes in the config wont be written to the config file. After a new file is created, check it out and remove the old one if applicable.
Turn off, rename file, turn on, turn off, check new file, if new file is ok, delete old one, if not, restore the name.
Turn off, rename file, turn on, turn off, check new file, if new file is ok, delete old one, if not, restore the name.
There's a difference between knowing your shit, and knowing you're shit. Grammar does matter.
- compguygene
- Adjust Outside Corner Grinder
- Posts: 2342
- Joined: Thu Aug 21, 2008 12:09 pm
- Location: Cleveland, Ohio
- Contact:
Re: Factory reset
You can safely restart an Amazon EC2 instance. I have done that several times. The only risk is that your IP address is reassigned. In my experience, on a restart the IP address has remained the same. You can restart the server from the EC2 console, or as root from the command line. If you are running Ubuntu,
will restart the server.
Code: Select all
sudo su
/sbin/restart
Armagetron: It's a video game that people should just play and enjoy
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
Re: Factory reset
The server doesn't save user.cfg at all, if that's what you're referring to.nux wrote:Just rename the file when the AA server is shut down. Then start the server, it will see no config and fallback to default configs. The catchy part is that the server wont write this file until its shut down again; this is to ensure that temporary changes in the config wont be written to the config file. After a new file is created, check it out and remove the old one if applicable.
delinquent: It only loads the config files the user has explicitly provided. On Unix, you could check which files are actually read using strace to find and eliminate any that disturb you; dunno about Windows. I suppose you should just look globally for settings_custom.cfg and autoexec.cfg (they're read from specific directories, but which ones varies from Windows version to version). And, of course, if you modified settings(_dedicated).cfg or any other included configuration file, you need to reinstall.
- delinquent
- Match Winner
- Posts: 760
- Joined: Sat Jul 07, 2012 3:07 am
Re: Factory reset
It was getting on my tits so I just did a clean re-install.
It was loading some stuff in the aateam folder, but when I substituted the file for a blank one it crashed... I have no idea what GT has done to it, but he'll have to do it again xD
Funnily enough, the original sty+ct build that I had on there installed in directory named Sty+CT, but the one that I have just downloaded from the wiki installs in directory named dedicated... But for all intents and purposes is the same. Am I just desperate to find something wrong here?
It was loading some stuff in the aateam folder, but when I substituted the file for a blank one it crashed... I have no idea what GT has done to it, but he'll have to do it again xD
Funnily enough, the original sty+ct build that I had on there installed in directory named Sty+CT, but the one that I have just downloaded from the wiki installs in directory named dedicated... But for all intents and purposes is the same. Am I just desperate to find something wrong here?
Re: Factory reset
Too many hacks, if you ask me.
There's a difference between knowing your shit, and knowing you're shit. Grammar does matter.