Raised This Month: $90 Target: $400
 22% 

[ANY] Cassandra


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 12-20-2018 , 00:23   [ANY] Cassandra
Reply With Quote #1

As it's Christmas I thought it would be good to open-source some ancient (5+ yearold) plugins that have served me well... First off; Cassandra.

What is Cassandra?
This VSP with MM:S and SM components installs a signal handler to catch any crashes your server unfortunately encounters.

Great, doesn't TF do this by default now?
Well... yes; I think it does? With the exception this will automatically reconnect clients before restarting.

But my server keeps hanging; not crashing!
Yes; the infallible hangy/crashy implementation with parallel snapshots and similar are still plaguing every released Valve game with the convar now defaulting to off... This also installs a watchdog and does the aforementioned behaviour when an issue is detected.

What platforms does this work on?
This should work without issue on CS:GO (pre-protobuf) and CS:S Linux (current).

Hope this helps someone.
Attached Files
File Type: xz Cassandra.tar.xz (4.8 KB, 77 views)
File Type: sp Get Plugin or Get Source (Cassandra.sp - 85 views - 2.9 KB)
KyleS is offline
1337norway
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 01-02-2019 , 09:32   Re: [ANY] Cassandra
Reply With Quote #2

This is really nice, I tried making something like this a few years ago but always ran into issues of the netchannels not being functional at the event of the un-handled exception. Attempting to transmit data to clients would force close the process and i assume this varies depending on the type of crash the server suffers. I attempted to just send the network data through the socket via a secondary program that would write every few seconds, all the connect clients ip:port. But I never finished the work on sending the single instance of reconnect client execute command binary data.

You can expand on this for standard game modes and attempt to restore the map and scoreboard data to its last known good snapshot which was saved to a file. Saving prop_physics positions and players kills/deaths to restore upon connect and allowing for a 15 - 30 second recovery time for alive players to be re-spawned alive.
__________________
Taking Free/Paid Requests! Send a PM
--->Donate here if you like my work. <---
1337norway is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 01-04-2019 , 15:47   Re: [ANY] Cassandra
Reply With Quote #3

Quote:
Originally Posted by 1337norway View Post
This is really nice
Glad someone found it.

Quote:
Originally Posted by 1337norway View Post
You can expand on this for standard game modes and attempt to restore the map and scoreboard data to its last known good snapshot which was saved to a file. Saving prop_physics positions and players kills/deaths to restore upon connect and allowing for a 15 - 30 second recovery time for alive players to be re-spawned alive.
I think Dota2 does this.
KyleS is offline
Reply


Thread Tools
Display Modes

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 20:45.


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