Register for your free account! | Forgot your password?

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

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

Advertisement



How to know how many player online

Discussion on How to know how many player online within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2012
Posts: 9
Received Thanks: 0
Talking How to know how many player online

I am sorry for asking too many questions but i want to know how many player online on my server
dido025 is offline  
Old 10/20/2015, 02:39   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
You need to specify more when you ask questions. You're running a TQ binary server and you need to specify that; else, someone's going to give you some C# code which isn't going to help you in the slightest. A server and its code aren't general things, they're extremely specific.
Spirited is offline  
Old 10/20/2015, 02:58   #3
 
elite*gold: 0
Join Date: Aug 2012
Posts: 9
Received Thanks: 0
i want to put a bar on my website that contains the number of the players online in the server
dido025 is offline  
Old 10/20/2015, 04:08   #4
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Moronic affluence is ruining this community. Every time I ask you for specification, you give me jack all. Again, specify. What type of website is it? PHP, just HTML? What type of server is this for? The same TQ Binary server you were asking about previously? Speak in more than one sentence at a time, **** it.
Spirited is offline  
Old 10/20/2015, 15:07   #5
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
@Spirited
You should just stop replying to threads you know are doomed from the beginning, saves you a lot of headache and might stop them from asking stupid questions in a stupid way.
turk55 is offline  
Thanks
3 Users
Old 10/20/2015, 15:38   #6
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
you can use this PHP code to check how many connections are on the game port , it will work with all type of games and servers , since it just checks the port connections , not a game related matter

PHP Code:
<?php echo (exec('netstat -a -n |find "5816" |find "ESTABLISHED" /c')-2); ?>
Mr_PoP is offline  
Old 10/20/2015, 17:32   #7
 
elite*gold: 0
Join Date: Aug 2012
Posts: 9
Received Thanks: 0
Quote:
Originally Posted by Spirited View Post
Moronic affluence is ruining this community. Every time I ask you for specification, you give me jack all. Again, specify. What type of website is it? PHP, just HTML? What type of server is this for? The same TQ Binary server you were asking about previously? Speak in more than one sentence at a time, **** it.
for the same server and my website is php
dido025 is offline  
Old 10/21/2015, 21:32   #8
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
Quote:
Originally Posted by dido025 View Post
for the same server and my website is php
Mr_Pop gave you an reply that will overload your server probably if your site get many requests, but it's already something you can use (if you have good logic, it still might be useful). Good luck.
pintinho12 is offline  
Old 10/21/2015, 22:08   #9
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Why is there a minus two in that php function?
"How many connections are established to my server netstat?"
Zero.
"Let's subtract two from that."
Spirited is offline  
Old 10/23/2015, 10:11   #10
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by Spirited View Post
Why is there a minus two in that php function?
"How many connections are established to my server netstat?"
Zero.
"Let's subtract two from that."
I'm not sure why you are being sarcastic! If you don't understand the point of "-2" use your brain for like 5 secs you will figure it out , but let me give you a hint , when your server "listen on" that port for up coming connections , doesn't that considered as a connection? oh well yeah it does, so next time Google, before you act sarcastic maybe?!

PS: figure the second connection yourself, I already explained one
Mr_PoP is offline  
Old 10/23/2015, 10:18   #11
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by Mr_PoP View Post
I'm not sure why you are being sarcastic! If you don't understand the point of "-2" use your brain for like 5 secs you will figure it out , but let me give you a hint , when your server "listen on" that port for up coming connections , doesn't that considered as a connection? oh well yeah it does, so next time Google, before you act sarcastic maybe?!

PS: figure the second connection yourself, I already explained one
You don't even know what your sodding command does. No, it doesn't return two for the account and game servers unless someone's connected because you're finding based on the "ESTABLISHED" string. A listening server doesn't have an additional "ESTABLISHED" status until someone connects to it; it has the "LISTENING" status only. ***, no wonder a few trash servers had -2 as the player counts. It was because they were using your broken script.

Edit: What you should be doing is finding against the local endpoint. That way, you wouldn't be trying to do something stupid like subtracting 2 from the connection count - it would just be the number of remote connections. "Google, before you act sarcastic maybe?!"
Spirited is offline  
Old 10/23/2015, 10:28   #12
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by Spirited View Post
You don't even know what your sodding command does. No, it doesn't return two for the account and game servers unless someone's connected because you're finding based on the "ESTABLISHED" string. A listening server doesn't have an additional "ESTABLISHED" status until someone connects to it; it has the "LISTENING" status only. ***, no wonder a few trash servers had -2 as the player counts. It was because they were using your broken script.

Edit: What you should be doing is finding against the local endpoint. That way, you wouldn't be trying to do something stupid like subtracting 2 from the connection count - it would just be the number of remote connections.
I was clear about it works when you listen on the ports, and yes I agree it was an old script , it's not efficient , but it gives him a starting point?! ,I'm not going to spoonfeed him! my point of argument with you is that you were being sarcastic instead of discussing what is the wrong with the script to help him!
Mr_PoP is offline  
Old 10/23/2015, 10:40   #13
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by Mr_PoP View Post
I was clear about it works when you listen on the ports, and yes I agree it was an old script , it's not efficient , but it gives him a starting point?! ,I'm not going to spoonfeed him! my point of argument with you is that you were being sarcastic instead of discussing what is the wrong with the script to help him!
It handles the lower bounding edge case for no connections incorrectly. It is, therefore, incorrect. If you actually read what I wrote, I wouldn't have to repeat this. Edit: Regardless, this isn't my problem to fix and I have class and work in the morning. Cheers.
Spirited is offline  
Old 10/23/2015, 15:26   #14


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
netstat. Heh. I'm still not sure if it is retarded or genius.
KraHen is offline  
Reply


Similar Threads Similar Threads
Velox2- Newschool Player vs Player!! Schon 2 Monate online!
07/18/2015 - Metin2 PServer Advertising - 21 Replies
Server ist seit 2 Monaten Online! ist nur eine Neue Vorstellung Velox2 Homepage Backlink ist vorhanden http://i.epvpimg.com/p4LDc.jpghttp://i.epvpimg.co m/btyCg.pnghttp://i.epvpimg.com/ENKpe.pnghttp://i. epvpimg.com/WNgTd.pnghttp://i.epvpimg.com/O39Hd.pn ghttp://i.epvpimg.com/Mcgjc.pnghttp://i.epvpimg.co m/mDOef.pnghttp://i.epvpimg.com/TllAb.pnghttp://i. epvpimg.com/NA4Mf.jpg http://i.epvpimg.com/bL8Zf.png design by .Liquid Arts
[HELP]Player Online php
01/18/2014 - Shaiya PServer Development - 2 Replies
HI All, who have the script for player online? Name level class ? i not found in "search"!
xPeria Online 110 Cap 7/24 Online 0 lag Open 7 days +300 Online Player
06/22/2013 - SRO PServer Advertising - 28 Replies
http://k1306.hizliresim.com/1b/f/p3mk9.jpg http://o1306.hizliresim.com/1b/9/ny0dx.png Offical Page = Xperia Online Private Server http://o1306.hizliresim.com/1b/9/ny0dx.png Downloand = Xperia Online Client http://o1306.hizliresim.com/1b/9/ny0dx.png Register = Xperia Online Register http://o1306.hizliresim.com/1b/9/ny0dx.png Facebook =Xperia Online http://o1306.hizliresim.com/1b/8/nxypy.png



All times are GMT +1. The time now is 09:43.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.