|
You last visited: Today at 00:17
Advertisement
[Pre-Release] Would anyone want/need this? (live serverfeed)
Discussion on [Pre-Release] Would anyone want/need this? (live serverfeed) within the CO2 Private Server forum part of the Conquer Online 2 category.
07/11/2013, 23:03
|
#1
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
|
[Pre-Release] Would anyone want/need this? (live serverfeed)
Would people be interested in a live server-feed that's easy to implement on any server - even binaries.
I've gotten it to run perfectly fine on a binary setup, and also on some random source I downloaded (Trinity I believe). It's not source dependant except for saving data to your database, which is a 2-line-of-code function.
Example of what this demo server below contains, which took me about 10 minutes to add.
- Player Login
- Player Logout
- Player Leveup
- PlayerX kills PlayerY
- Lottery winnings
- Boss kill (Banshee etc)
- Create guild
- GuildX has allied GuildY
- Guild pole taker
- Guild war winner
Ofcourse, anything can be added. It's just a matter of saving down a textstring to your database, the rest is handled automatically by PHP/JS.
Demo:
|
|
|
07/11/2013, 23:41
|
#2
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
|
It's pretty simple to do but I always appreciate javascript/php examples because I'm **** when it comes to web dev. Like... I sorta know what I'm doing but I tend to end up frustrated instead ahah
|
|
|
07/11/2013, 23:53
|
#3
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
|
Quote:
Originally Posted by pro4never
It's pretty simple to do but I always appreciate javascript/php examples because I'm **** when it comes to web dev. Like... I sorta know what I'm doing but I tend to end up frustrated instead ahah
|
Yup, very simple. Just save data to a record-table, if binaries you'll have to do it via cq_action I believe. Read the data with AJAX with an interval, if new data present it with an effect.
It's a really nice addon though and so far I haven't seen anyone have this, so why not.
|
|
|
07/12/2013, 00:12
|
#4
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
That's pretty cool yo'
|
|
|
07/12/2013, 00:47
|
#5
|
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
|
Not really interested in it, but it's cool.
|
|
|
07/12/2013, 05:00
|
#6
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
|
It's interesting, but it seems incomplete. It's just a webpage, right? This could be done using WPF and C#, linking the window to the side of the Conquer Online client (making it so it's always just to the right / side of the client). You can still use web data, just make it a program that runs along side the conquer window. I think it'd look a lot cleaner and more desirable that way. Otherwise, it looks great (not something that I would use, but maybe something others would use).
|
|
|
07/12/2013, 05:16
|
#7
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
|
Quote:
Originally Posted by Fаng
It's interesting, but it seems incomplete. It's just a webpage, right? This could be done using WPF and C#, linking the window to the side of the Conquer Online client (making it so it's always just to the right / side of the client). You can still use web data, just make it a program that runs along side the conquer window. I think it'd look a lot cleaner and more desirable that way. Otherwise, it looks great (not something that I would use, but maybe something others would use).
|
The point is to show it on the webpage, not to everyone currently playing.
Why would you want to see lottery winnings, guild winners etc. when you can see in in-game. The point behind it is to make the CO websites a little better because right now the standard is ****.
|
|
|
07/12/2013, 06:57
|
#8
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
|
Quote:
Originally Posted by 'Emil
The point is to show it on the webpage, not to everyone currently playing.
Why would you want to see lottery winnings, guild winners etc. when you can see in in-game. The point behind it is to make the CO websites a little better because right now the standard is ****.
|
Oh, I thought it was just an example. I was more thinking of expandability. If it's just a website, then yah - it's great. It reminds me of some minecraft servers (how they do the text thing and all of that).
|
|
|
07/12/2013, 11:07
|
#9
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
This is really badly thought out, the website should never be directly interacting with the live server database, if you want to do this sort of thing, have a batch that copies data from the game server to a database on the webserver, then have this script running.
|
|
|
07/12/2013, 11:18
|
#10
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
|
Quote:
Originally Posted by Korvacs
This is really badly thought out, the website should never be directly interacting with the live server database, if you want to do this sort of thing, have a batch that copies data from the game server to a database on the webserver, then have this script running.
|
And why is this, according to you. It's only fetching data and a server can handle a query every 3 seconds or so just fine. It also clears the table from old data.
|
|
|
07/12/2013, 11:22
|
#11
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
What happens if the server goes down, how does the script react to that? My experience being that your website looks awful when things dont load correctly because of time outs, the solution is to switch to a more push orientated application, than pull such as this.
|
|
|
07/12/2013, 11:34
|
#12
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
|
Quote:
Originally Posted by Korvacs
What happens if the server goes down, how does the script react to that? My experience being that your website looks awful when things dont load correctly because of time outs, the solution is to switch to a more push orientated application, than pull such as this.
|
Do you mean the gameserver or the host? In PHP you can easily check the status of the database connection, if none is made then simply don't return any data to the AJAX-call and it won't show you any error messages.
You could also have another AJAX-timer running every x-second to ping the server with a timeout, if fails then stop the timer. Two solutions that takes under a minute to implement, so I don't really see your point sorry.
|
|
|
07/12/2013, 11:36
|
#13
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Quote:
Originally Posted by 'Emil
Do you mean the gameserver or the host? In PHP you can easily check the status of the database connection, if none is made then simply don't return any data to the AJAX-call and it won't show you any error messages.
You could also have another AJAX-timer running every x-second to ping the server with a timeout, if fails then stop the timer. Two solutions that takes under a minute to implement, so I don't really see your point sorry.
|
The gameserver which hosts the database, obviously. And those are great, however they will need to timeout as I said, making the website hang effectively for several seconds before giving up.
Also neither of those are implemented in this, so this is badly thought out as I said.
|
|
|
07/12/2013, 11:44
|
#14
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
|
I really don't think you know how this works, do you.
First of all, if the gameserver goes down that's fine. The host hosts the database, not the gameserver, correct? If the gameserver goes down, the script will continue to try and fetch new data (as it would if it were online). This timer could easily be stopped with the ping method, as I said. If the host itself goes down, this can be stopped via PHP as it won't be able to connect to the database.
AJAX stands for Asynchronous JavaScript and XML. The website itself won't "hang effectively for several seconds before giving up", if it fails to fetch data.
|
|
|
07/12/2013, 11:54
|
#15
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Sorry, I'm classifying the gameserver as the host in this instance, since host implys the webserver's host.
The Ajax aspect is fine, its the rest that is going to give up on you.
|
|
|
|
|
Similar Threads
|
S3 Release jetzt gerade live !
05/04/2012 - Smartphones - 2 Replies
hey,
hier ist der Live-Ticker zum neuen Samsung Galaxy SIII
Galaxy-S3-Event: Was hat Samsung alles im Gepäck? - Handy - Bild.de
mfg. Azzzlack
|
World of Live - Not your Real Live, Just your Play Live!
05/11/2011 - Metin2 PServer Advertising - 176 Replies
http://img821.imageshack.us/img821/4219/vorwortf.p ng
Hallo Com!
Ich stelle euch heute den Server World of Live vor!
Er war schon mal Online, jedoch ging er down, da es unzuverlässige GameMaster gab.
Jetzt versuchen wir es erneut!
http://img42.imageshack.us/img42/4508/serverkonze pt.png
Der Server bietet Euch ein perfektes PvP sowohl auch PvM System an!
|
[RELEASE] Live Users (PHP)
12/10/2010 - Dekaron Private Server - 1 Replies
Here is a small script to list all user_id's that are currently online
WARNING!
- THIS PULLS 1 QUERY EVERY 3 SECONDS -
- Thats 20 query's in 1min
- Thats 1200 every hour!
You can change the time, on line 21 (in online.html) you'll find: 3000 = 3 sec
|
All times are GMT +2. The time now is 00:17.
|
|