Create an account


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

#1
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?
Reply

#2
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.jpg]

<packer> when i see martin-t's name my blood pressure increases
Reply

#3
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.
Reply

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



Possibly Related Threads...
Thread Author Replies Views Last Post
  Xonotic server running behind UDP proxy not working doombringeroperator 2 198 01-07-2019, 02:23 PM
Last Post: doombringeroperator
  [NEED HELP] Server show on the browser list, but I can't connect! Professor 1 133 12-19-2018, 11:39 AM
Last Post: Professor
  Server Setup for Dummies litvinenkotea 7 3,482 12-08-2018, 01:20 PM
Last Post: tehjester78
  Local LAN Xonotic game server player Stats animatedjay 3 527 11-23-2018, 12:38 AM
Last Post: BuddyFriendGuy
  Deploying a server across multiple machines ar5n1c 1 240 11-21-2018, 11:08 AM
Last Post: martin-t
  Fix Duel on Server Australis Antares* 0 255 09-30-2018, 11:45 PM
Last Post: Antares*
  Xonotic server monitoring Sl@va 5 1,106 09-18-2018, 07:07 PM
Last Post: MarisaG
  Recommended specs for a new server northivanastan 2 645 06-28-2018, 03:38 PM
Last Post: northivanastan
  how to setup a xonotic linux server on CentOS 7.5 DrunkenMaster 1 754 05-29-2018, 06:11 PM
Last Post: Lyberta
Question [NEED HELP] Server uses 40% CPU whereas Nexuiz server runs with max 10% e-pig 5 953 02-22-2018, 05:43 PM
Last Post: e-pig

Forum Jump:


Users browsing this thread:
1 Guest(s)

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