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
  Xonotic server monitoring Sl@va 10 4,872 04-17-2023, 04:44 AM
Last Post: FAF
  @Melon Planet server kicks ballerburg9005 2 406 03-18-2023, 03:51 PM
Last Post: ballerburg9005
  Server not visible on the server browser for others or me DankoLord 1 1,341 02-21-2023, 08:02 PM
Last Post: ballerburg9005
  Xonotic server running behind UDP proxy not working doombringeroperator 3 3,409 11-21-2022, 11:00 AM
Last Post: Zaphod
  Docker Xonotic Dedicated Server ich777 18 8,902 08-15-2022, 12:44 AM
Last Post: FAF
  Unjust ban on the only active DM server, what can be done? nj 30 7,984 08-02-2022, 07:04 AM
Last Post: nj
  BaI server | South American Xonotic server (located in Chile) z411 0 1,365 01-02-2022, 11:36 PM
Last Post: z411
  Lost server key, can't hold new key FlufyBuny 0 1,891 09-09-2021, 07:05 PM
Last Post: FlufyBuny
  How to tweak teams on my server? AndK 3 2,775 09-07-2021, 02:55 PM
Last Post: AndK
  Full server tutorial start-2-finish with maps & config from live server xonotic.us.to ballerburg9005 0 3,670 09-03-2021, 10:21 AM
Last Post: ballerburg9005

Forum Jump:


Users browsing this thread:
1 Guest(s)

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