|
You last visited: Today at 21:59
Advertisement
[Release]Server Guard
Discussion on [Release]Server Guard within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
04/12/2012, 14:15
|
#1
|
elite*gold: 26
Join Date: Jul 2011
Posts: 522
Received Thanks: 285
|
[Release]Server Guard
Hello folks.
Last night I was abit bored n high and I thought of coding something that might be helpful to all of us , This is a copy of my thread on another forum.
Program : Server Guard
Download is at the end of the post
Purpose : Keeps your servers [Auth/Game] online all the time (not really an actual fix for server crash its just there to keep the server up till you fix the problem).
How it works : It's really simple ,It just checks your server ports and simply runs the process again if its not running.
Nothing fancy but ye it would help those who have their servers public ,as it wont let your server go offline.
TO DO : I'll be adding more features to it (If I had time)
Other than that its really easy to use , Just download it and open ServerGuard.csproj
look for
Code:
GameSocket.Connect("00.00.00.00", 0000);
Change the 00.00.00.00 to your IP , and the 0000 to your Game Server Port.
look for
Code:
AuthSocket.Connect("00.00.00.00", 0000);
Change the 00.00.00.00 to your IP , and the 0000 to your Auth Server Port.
then scroll down till
and input your Game Server Path between the "".
Do the same with the other
but instead input your Auth Server Path between the "".
Press F6 to build ,Save and exit.
then go into ServerGuard\ServerGuard\bin\Release and run ServerGuard.
And your done .. Test it out by closing your Auth / Game server and the program will automatically start the process once again.
Press the Thanks button if it helped.
Peace out , Enjoy.
Regards
Me
Download ServerGuard from here
|
|
|
04/12/2012, 15:02
|
#2
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
This wont actually do anything, as the applications never close, an exception is thrown, and if its serious enough an error report box will appear, but the process will still exist, and likely will still hold the ports open for the lifetime of the process....
|
|
|
04/12/2012, 15:25
|
#3
|
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
|
Rather check if the process is running or that threads aren't dead.
Also handle unhandled exceptions.
|
|
|
04/12/2012, 18:25
|
#4
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
Wouldn't it be better if you stopped the server from crashing in the first place?
|
|
|
04/12/2012, 20:52
|
#5
|
elite*gold: 26
Join Date: Jul 2011
Posts: 522
Received Thanks: 285
|
Quote:
Originally Posted by I don't have a username
Rather check if the process is running or that threads aren't dead.
Also handle unhandled exceptions.
|
Yeah that I'll do ;D
Quote:
Originally Posted by Fаng
Wouldn't it be better if you stopped the server from crashing in the first place?
|
Who said the server is crashing...
|
|
|
04/13/2012, 02:18
|
#6
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
Quote:
Originally Posted by Execution!
Who said the server is crashing...
|
So... the purpose of this program is to restart the server if you want to close out of it?
|
|
|
04/13/2012, 06:52
|
#7
|
elite*gold: 0
Join Date: Apr 2012
Posts: 134
Received Thanks: 30
|
ummm why dont u try process responding ? i guess the crash error is umm show dialog which stop the process responding ?
but anyway the thing is , why dont u stop the crashing at the first place ?
or ummm at the custom source simply do application.exit() on the catch of the error
|
|
|
04/13/2012, 07:43
|
#8
|
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
|
Quote:
Originally Posted by DyjgK64J451Jhv0
ummm why dont u try process responding ? i guess the crash error is umm show dialog which stop the process responding ?
but anyway the thing is , why dont u stop the crashing at the first place ?
or ummm at the custom source simply do application.exit() on the catch of the error
|
OR Environment.Exit(0);
|
|
|
04/13/2012, 18:18
|
#9
|
elite*gold: 0
Join Date: Apr 2012
Posts: 134
Received Thanks: 30
|
Quote:
Originally Posted by I don't have a username
OR Environment.Exit(0);
|
 even better than application exit
|
|
|
04/13/2012, 19:55
|
#10
|
elite*gold: 0
Join Date: Mar 2012
Posts: 286
Received Thanks: 71
|
|
|
|
04/13/2012, 20:51
|
#11
|
elite*gold: 26
Join Date: Jul 2011
Posts: 522
Received Thanks: 285
|
Quote:
Originally Posted by DyjgK64J451Jhv0
ummm why dont u try process responding ? i guess the crash error is umm show dialog which stop the process responding ?
but anyway the thing is , why dont u stop the crashing at the first place ?
or ummm at the custom source simply do application.exit() on the catch of the error
|
I thought I said that my server doesn't even crash... Please read what I said, I said this is only if the server randomly crashed and you're not there to restart it for people to play ... duh?!
And about the process checking, I'm going to update my post with another version of it that uses process checks, Thanks
Quote:
Originally Posted by Fаng
So... the purpose of this program is to restart the server if you want to close out of it?
|
... I already said above that this is NOT a solution for server crashes.
|
|
|
04/14/2012, 09:23
|
#12
|
elite*gold: 0
Join Date: Apr 2012
Posts: 134
Received Thanks: 30
|
lmao , well goodluck bro goodluck o-0
|
|
|
 |
Similar Threads
|
[Release]Reviver Guard[5165]
10/02/2010 - CO2 PServer Guides & Releases - 46 Replies
Sup,
I have not released anything yet so I will release a reviver guard....
go into Program.cs and find
foreach (Hashtable H in Game.World.H_Mobs.Values)
{
foreach (Mob M in H.Values)
{
|
[Release] RB Guard
04/27/2010 - CO2 PServer Guides & Releases - 102 Replies
As i promissed yesterday, i have to relase my RB Guard code:bandit:
Guard attack players, and give exp to user when he atack mob. I have based on PowerSource.
Ok lets begin
Start with Character.cs
Find:
|
[RELEASE]Tutorial Game Guard Currupt fixer
04/08/2010 - Soldier Front Philippines - 5 Replies
gameguard corrupted ba ang SF nyo e2 solution
1.dowload sf manual patch ung bago
2.right click the icon of sf in your desktop and press properties the find target
3.sa baba nun main version info right click verinfo and press open with
4.choose notepad
5.mai la2bas na number dun tapos minus 2 ng number na nasa huli tapos un ang ilagay nyo
ex. 10046 magi2ng ganto 10044 yan minus 2 nyo lng
6.after dat close nyo na yan tapos mai la2bas na "Do you want to save it"
|
[Release] Sucrose Game Guard Fixer
08/12/2009 - Soldier Front Hacks, Bots, Cheats & Exploits - 67 Replies
edited by trane.
|
All times are GMT +1. The time now is 22:00.
|
|