Raised This Month: $32 Target: $400
 8% 

[ANY] Restart Empty Server (or Map)


Post New Thread Reply   
 
Thread Tools Display Modes
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-15-2022 , 18:05   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #71

I uploaded correct version.
L4D2 Linux is working.
Your report saying that restart command is passed.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
noto3
Member
Join Date: Jan 2021
Old 02-16-2022 , 07:07   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #72

Must've been something on my end. It's working as intended
noto3 is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 03-09-2022 , 13:23   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #73

you dont have to control sv_hibernate_when_empty
there have another cvar delay the hibernation sv_hibernate_postgame_delay
__________________
NoroHime is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-09-2022 , 13:58   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #74

Thanks for info.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
3ipKa
Member
Join Date: Jul 2013
Old 04-04-2022 , 15:04   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #75

Quote:
Originally Posted by NoroHime View Post
there have another cvar delay the hibernation sv_hibernate_postgame_delay
idk, but i couldn't notice the difference with this cvar
3ipKa is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 06-21-2022 , 14:54   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #76

Hi Dragokas, I found a problem where the plugin will force the server to restart to an official map if players are trying to launch a custom map from the lobby using a Steam group server.

What will happen is:

1. Players select a custom map and select a Steam group server
2. They launch the game - server starts loading the map
3. Then the server will restart mid loading and the players are kicked to an official map (or whatever is defined in the map rotation for when server restarts).

I increased
Code:
sm_restart_empty_delay
to 60 thinking it's because the plugin thinks nobody is in the server on map switch (because my old value was 10s) but that doesn't help. Disabling your plugin fixes this issue and I had to revert to an older version of this plugin to get the restart to work properly.

Not sure if this is related but my old config CVAR for this one read 0 and didn't give me any issues.

Code:
sm_restart_empty_server_start_changemap "0"
__________________

Last edited by Mr. Man; 06-21-2022 at 15:22.
Mr. Man is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 06-25-2022 , 08:24   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #77

Thank for report.
The issue is quite complicated. I don't want to try fix making possible even more bugs.
Maybe somebody other can help...
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 07-04-2022 , 10:02   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #78

_restart command does not work for left 4 dead 2, the server stay offline whatever if method is 1 or 2.

As said on another similar plugin page : "Other games can use the server command "_restart" to restart their game engine but it doesn't work on L4D2, so that's why we set up the configuration in this way and added the option for a hard restart."

Last edited by JLmelenchon; 07-04-2022 at 10:03.
JLmelenchon is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 07-04-2022 , 13:12   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #79

Thanks for report. But, in case nothing help, what can I do?

The only way left (for VPS/VDS only) - to make windows batch / linux shell script to restart server when let's say some file appearing in some folder which could be created by SM plugin.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 07-09-2022 , 13:59   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #80

JLmelenchon, just checked "crash" command on my fully updated L4D2 Linux server, and it is still working.
Also, current version of this plugin correctly restart server there.

My config:
Code:
Left 4 Dead 2 build 8554968
Linux Debian
LinuxGSM installation script
MetaMod v1.11.0.1148
SourceMod v1.11.0.6906
server.cfg
Code:
sm_cvar sv_hibernate_when_empty "0"
sm_cvar sb_all_bot_game 1
sm_cvar allow_all_bot_survivor_team 1
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode