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
  [SOLVED] Opensuse Leap 15.1 and Server.cfg ldegroot 3 328 08-01-2019, 02:52 PM
Last Post: ldegroot
  LAN server console commands dbl 1 576 06-13-2019, 04:55 AM
Last Post: martin-t
  How to change server cfg on modified server veecho 4 823 04-24-2019, 08:15 PM
Last Post: BuddyFriendGuy
  Server error "Weapon stats writing failed: -404" FlufyBuny 1 429 04-13-2019, 04:36 AM
Last Post: It'sMe
  Dedicated server setup Rec0d 5 883 04-03-2019, 02:00 PM
Last Post: Rec0d
  South American Dedicated Server Professor 3 815 03-03-2019, 07:02 PM
Last Post: end user
Information [TUTORIAL] Xonotic Server behind OPNSense (and pfSense) gurbe 0 591 01-27-2019, 09:07 AM
Last Post: gurbe
  Xonotic server running behind UDP proxy not working doombringeroperator 2 790 01-07-2019, 02:23 PM
Last Post: doombringeroperator
  [NEED HELP] Server show on the browser list, but I can't connect! Professor 1 817 12-19-2018, 11:39 AM
Last Post: Professor
  Server Setup for Dummies litvinenkotea 7 4,659 12-08-2018, 01:20 PM
Last Post: tehjester78

Forum Jump:


Users browsing this thread:
1 Guest(s)

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