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

<[BOT]Hоtdоg> anyone here lives near martin?
<[BOT]Hоtdоg> will pay monies for shooting him
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
  Lost server key, can't hold new key FlufyBuny 0 1,165 09-09-2021, 07:05 PM
Last Post: FlufyBuny
  Full server tutorial start-2-finish with maps & config from live server xonotic.us.to ballerburg9005 0 1,484 09-03-2021, 10:21 AM
Last Post: ballerburg9005
  Noob needs help running server. CORDUROY 3 750 07-01-2021, 02:31 PM
Last Post: CORDUROY
  RaspberryPi4 Server ablyveiled 4 1,737 06-27-2021, 08:22 AM
Last Post: ballerburg9005
  Latest Beta Server evit 1 1,056 04-02-2021, 04:06 PM
Last Post: end user
  Server does not start saddesad 2 678 11-25-2020, 04:39 AM
Last Post: saddesad
  [NEED HELP] Server failed to open socket on address... Hexactinal 2 760 11-21-2020, 04:28 PM
Last Post: Hexactinal
  Server ideas drummyfish 9 2,406 11-18-2020, 02:36 AM
Last Post: BuddyFriendGuy
  Server Hosting Issue Saevus 3 1,415 11-11-2020, 02:53 PM
Last Post: :[:{b_e*r^f}:]:
  [SOLVED] Eris server ban? BuddyFriendGuy 3 912 10-18-2020, 06:40 PM
Last Post: BuddyFriendGuy

Forum Jump:


Users browsing this thread:
1 Guest(s)

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