Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 17:30

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

Advertisement



I need Help with my website

Discussion on I need Help with my website within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 09/24/2012, 15:17   #16
 
Silent-Death's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 1,055
Received Thanks: 296
so basically you're saying the server will connect to the website database and update the status and users online, right? how is that any different from my approach? i was from the get-go considering the website database is updated by the game server and on localhost.

yeah implementing a flag for server status is a must anyway cuz you need to tell people on the website the status of your server.
Silent-Death is offline  
Old 09/24/2012, 15:39   #17


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
lol i think you got abit confused..... I was talking about removing the need for the webserver to communicate with the game server, so that in the event that the server was offline you wouldnt hang up the website for 30 seconds or however long your configuration is set to timeout after.

The solution thats best for this is to make the game server update a local database and then to check when it updated it to determine if the server is online or not, removing the need to attempt to communicate with it directly.
Korvacs is offline  
Old 09/24/2012, 15:46   #18
 
Silent-Death's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 1,055
Received Thanks: 296
lol, i`m assuming that the database the webserver is taking the info out of is already on its localhost, this by default means that the database on the webserver is updated by the game server therefore no website -> game server communication required in the first place.

lmao we can't agree even when we are providing the same solution?
Silent-Death is offline  
Old 09/24/2012, 16:00   #19


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
The original solution requires you connect to the game server in order to display either "Gameserver Online! or "Gameserver Offline!" you didnt really suggest anything to replace this merely ways to reduce timeouts?
Korvacs is offline  
Old 09/24/2012, 16:03   #20
 
elite*gold: 298
Join Date: May 2012
Posts: 3,656
Received Thanks: 1,045
i dont no
Tovin is offline  
Old 09/24/2012, 16:09   #21
 
Silent-Death's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 1,055
Received Thanks: 296
i was assuming the webserver has its own database to begin with, and that the required info is in that database.
i was also assuming the website has a status check variable already since you need to tell your players the status of the server. I also provided a work around the usage of database to check the server status.

as a web based programmer, i dun really give a **** how the info gets in my localhost database, that is the game dev's problem.

i see code from me and just talk from you tho.. i mean you could actually piece up a working page from my posts.

Quote:
Originally Posted by InstantAssassination View Post
Or:

echo '<font style="color: lime"><b>Online</b></font><br />';
}
or maybe you would have preferred i leave this as the last post and solution to the process.
Silent-Death is offline  
Old 09/24/2012, 16:15   #22


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Im at work i dont have time to put together and test code for this, its fairly straight forward though, you simply query the local database and compare a current timestamp with the one stored if its too old then the server is offline, the rest is simply positioning and layout of the rest of the data associated with that server.
Korvacs is offline  
Old 09/24/2012, 16:21   #23
 
Silent-Death's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 1,055
Received Thanks: 296
or you could load your page with jquery and make a nice loading print out as the connection to the distant database is established, verified and content is grabbed from it.

but why bother when working with the localhost database is in fact the ideal solution.
Silent-Death is offline  
Reply




All times are GMT +1. The time now is 17:31.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.