Create an account

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running a config script when the server becomes empty?

I've got my server setup with different votable gametypes, and it's working well. But one thing I'd like to do is to have the server 'reset' itself to the defaults once it's empty. Is there some mechanism (I'm thinking something like the gametype hooks) which could be used to have the server run a set of commands / execute a configuration file when it starts up a new map empty?

Yes, see my _if_empty alias which is called from sv_hook_gameend. Despite the comment about being experimental, it's worked well for quite a few months. It's inspired by this thread about the console.
[Image: 30381.png]

Nice, thanks Smile

Now to see if I can find a nice detailed page on prvm_globalget and rpn, those commands look like they could be very useful for a lot of things.

I'm so stealing your _if_empty, martin-t! Thank you!

Possibly Related Threads...
Thread Author Replies Views Last Post
  Recommended specs for a new server northivanastan 2 411 06-28-2018, 03:38 PM
Last Post: northivanastan
  how to setup a xonotic linux server on CentOS 7.5 DrunkenMaster 1 564 05-29-2018, 06:11 PM
Last Post: Lyberta
  Xonotic server monitoring Sl@va 2 535 04-05-2018, 03:42 PM
Last Post: kwakkiezalf
Question [NEED HELP] Server uses 40% CPU whereas Nexuiz server runs with max 10% e-pig 5 692 02-22-2018, 05:43 PM
Last Post: e-pig
  Config files has been renamed Lyberta 2 433 02-21-2018, 12:01 AM
Last Post: Lyberta
  [NEED HELP] Xonotic Server crashes TF2 server Professor 2 796 02-20-2018, 07:50 PM
Last Post: Professor
  Server is currently a target of a DoS attack Antares* 1 1,372 01-30-2018, 09:40 AM
Last Post: marataziat
  [TUTORIAL] Server Administration Wiki needs your knowledge Lyberta 9 1,277 01-20-2018, 07:00 PM
Last Post: Lyberta
  Auto-deploy server 5ika 5 946 01-04-2018, 01:55 PM
Last Post: 5ika
  /v/ Server(s) Antares* 4 1,408 09-22-2017, 11:54 PM
Last Post: Antares*

Forum Jump:

Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-