Raised This Month: $ Target: $400
 0% 

[ANY] Restart Empty Server (or Map)


Post New Thread Reply   
 
Thread Tools Display Modes
zombieland0302
Junior Member
Join Date: Dec 2020
Old 12-06-2020 , 23:05   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #41

Quote:
Originally Posted by Dragokas View Post
sm_restart_empty_method "3" could not produce such log.
Either you didn't change (or didn't properly save) cfg with a new value, or you have ConVar Overflow problem.

You still have value 1 or 2, that's why it crashes, which is a purpose of this plugin.
To check ConVar, enter in the console:

Code:
sm_cvar sm_restart_empty_method
and verify the value.

If the value is wrong and cfg value is correct, install [ANY] ConVars Anomaly Fixer.

Alternatively, you can re-compile plugin by changing in sp (source code):
Code:
g_ConVarMethod 				= CreateConVar("sm_restart_empty_method", 					"2"
with a desired value.
I already check the cfg again, verify with sm_cvar sm_restart_empty_method and re-compile the plugin with mine value. The crash still happens.
zombieland0302 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 12-07-2020 , 10:59   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #42

zombieland0302, thanks, fixed. Looks like you found 2 bugs, one in restarter, second, perhaps, in Weapon Handling due to incorrect plugin unload.

Updated.

Quote:
2.2 (07-Dec-2020)
- Fix for sm_restart_empty_method "3" - all plugins are been unloaded even if method "3" is used (thanks to @zombieland0302 for reporting).
- IsMapValid() is replaced by FindMap() to prevent undefined behaviour.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 12-07-2020 at 10:59.
Dragokas is offline
zombieland0302
Junior Member
Join Date: Dec 2020
Old 12-08-2020 , 04:04   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #43

Quote:
Originally Posted by Dragokas View Post
zombieland0302, thanks, fixed. Looks like you found 2 bugs, one in restarter, second, perhaps, in Weapon Handling due to incorrect plugin unload.

Updated.
Thanks, Dragokas ^.^. It worked!!
zombieland0302 is offline
venter25
Member
Join Date: Jul 2019
Old 01-10-2021 , 15:43   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #44

Does this ignore bots if bots are in game playing while no players are present?
venter25 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-10-2021 , 15:57   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #45

Bots doesn't matter. It reacts only to real players.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
DeathMaster
AlliedModders Donor
Join Date: Mar 2009
Old 02-24-2021 , 22:33   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #46

I just tried to install this plugin and get errors.

Code:
L 02/24/2021 - 19:53:56: [SM] Exception reported: Invalid convar handle 0 (error 4)
L 02/24/2021 - 19:53:56: [SM] Blaming: sm_RestartEmpty.smx
L 02/24/2021 - 19:53:56: [SM] Call stack trace:
L 02/24/2021 - 19:53:56: [SM]   [0] ConVar.IntValue.get
L 02/24/2021 - 19:53:56: [SM]   [1] Line 155, H:\_To_games\Left4Dead_2\My_mods\Admin-Security\RestartEmpty\RestartEmpty_v2.3\scripting\sm_RestartEmpty.sp::OnConfigsExecuted
L 02/24/2021 - 19:53:56: [SM] Exception reported: Invalid convar handle 0 (error 4)
L 02/24/2021 - 19:53:56: [SM] Blaming: sm_RestartEmpty.smx
L 02/24/2021 - 19:53:56: [SM] Call stack trace:
L 02/24/2021 - 19:53:56: [SM]   [0] ConVar.SetInt
L 02/24/2021 - 19:53:56: [SM]   [1] Line 169, H:\_To_games\Left4Dead_2\My_mods\Admin-Security\RestartEmpty\RestartEmpty_v2.3\scripting\sm_RestartEmpty.sp::Event_PlayerDisconnect
DeathMaster is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-25-2021 , 04:27   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #47

Which game?
Does your game has ConVar "sv_hibernate_when_empty" ?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
found amxx bug
Junior Member
Join Date: Dec 2009
Old 03-23-2021 , 10:03   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #48

similar to #46 post
Code:
03/23/2021 - 20:50:37: [SM] Exception reported: Invalid convar handle 0 (error 4)
L 03/23/2021 - 20:50:37: [SM] Blaming: sm_RestartEmpty.smx
L 03/23/2021 - 20:50:37: [SM] Call stack trace:
L 03/23/2021 - 20:50:37: [SM]   [0] ConVar.IntValue.get
L 03/23/2021 - 20:50:37: [SM]   [1] Line 155, sm_RestartEmpty.sp::OnConfigsExecuted
game: no more room in hell
"sv_hibernate_when_empty" is unknown command

Last edited by found amxx bug; 03-23-2021 at 10:04.
found amxx bug is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-23-2021 , 10:31   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #49

I don't see how hibernation convar is called in that game.
I disabled it. Tell me, if this version even work.
Attached Files
File Type: zip RestartEmpty_v2.3.zip (16.0 KB, 80 views)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
found amxx bug
Junior Member
Join Date: Dec 2009
Old 03-23-2021 , 11:41   Re: [ANY] Restart Empty Server (or Map)
Reply With Quote #50

v2.3 has no hibernation error

should I change value sm_restart_empty_method in game?
cause I changed value from 1 to 3 then vice versa, it doesn't trigger player_disconnect till the value is 2



doesn't autorestart the scrds
Code:
L 03/23/2021 - 23:36:35: Sending 'crash'... Reason: Empty Server
Unknown command: "crash"
Attached Thumbnails
Click image for larger version

Name:	srcds_jWeBrYuzja.png
Views:	66
Size:	1.6 KB
ID:	188321  

Last edited by found amxx bug; 03-23-2021 at 11:49.
found amxx bug 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 12:34.


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