Register for your free account! | Forgot your password?

You last visited: Today at 21:03

  • Please register to post and access all features, it's quick, easy and FREE!


[Release]Server Guard

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2011
Posts: 360
Received Thanks: 191
Smile [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
Code:
Process.Start("");
and input your Game Server Path between the "".

Do the same with the other
Code:
Process.Start("");
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 ServerGuard.rar



Execution! is offline  
Old 04/12/2012, 15:02   #2
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,124
Received Thanks: 2,502
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....


Korvacs is offline  
Old 04/12/2012, 15:25   #3
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 782
Rather check if the process is running or that threads aren't dead.

Also handle unhandled exceptions.
I don't have a username is offline  
Old 04/12/2012, 18:25   #4
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,005
Received Thanks: 3,357
Wouldn't it be better if you stopped the server from crashing in the first place?


Spirited is offline  
Thanks
2 Users
Old 04/12/2012, 20:52   #5
 
elite*gold: 0
Join Date: Jul 2011
Posts: 360
Received Thanks: 191
Quote:
Originally Posted by I don't have a username View Post
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 View Post
Wouldn't it be better if you stopped the server from crashing in the first place?
Who said the server is crashing...
Execution! is offline  
Old 04/13/2012, 02:18   #6
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,005
Received Thanks: 3,357
Quote:
Originally Posted by Execution! View Post
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?
Spirited is offline  
Old 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
DyjgK64J451Jhv0 is offline  
Old 04/13/2012, 07:43   #8
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 782
Quote:
Originally Posted by DyjgK64J451Jhv0 View Post
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);
I don't have a username is offline  
Thanks
1 User
Old 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 View Post
OR Environment.Exit(0);
even better than application exit
DyjgK64J451Jhv0 is offline  
Old 04/13/2012, 19:55   #10
 
elite*gold: 0
Join Date: Mar 2012
Posts: 286
Received Thanks: 71
Code:
planet.exit(0);
=win
×Holo is offline  
Old 04/13/2012, 20:51   #11
 
elite*gold: 0
Join Date: Jul 2011
Posts: 360
Received Thanks: 191
Quote:
Originally Posted by DyjgK64J451Jhv0 View Post
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 View Post
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.
Execution! is offline  
Old 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


DyjgK64J451Jhv0 is offline  
Reply

Tags
conquerserver, restarter, serverguard



« [Release]Loading the 4267 Itemtype.dat | [simple] Helpdesk Npc 5375 »

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...
[Release] Sucrose Game Guard Fixer
08/12/2009 - Soldier Front Hacks, Bots, Cheats & Exploits - 67 Replies
edited by trane.



All times are GMT +2. The time now is 21:03.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.