Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 24

134.119.x.x news
141.8.x.x forum
157.230.x.x comment
185.152.x.x signup
188.234.x.x log
3.80.x.x forum
35.192.x.x forum
36.248.x.x forum
36.37.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
5.255.x.x forum
54.36.x.x forum
66.249.x.x forum
77.88.x.x forum

Last Seen

85filip58 Tue 15:15
4Rsercom Thu 21:49
Apophis01 Fri 10:15
Bommel Wed 09:39
frob Sat 21:14

Newest Members

Forums
Just Cause 2 MP
wattz79
Sun Jul 06 2014, 11:46AM

Posts: 5
Joined: Sun Jul 06 2014, 10:38AM
Registered Member #8049
Hi i have added Just Cause MP as a server via source ,but the player count displays as map name and show 0/1 for player instead of the 120 player count



Could somebody help me please getting it to show correctly
Website
Wussie
Tue Jul 08 2014, 06:10PM

Posts: 437
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
It seems you are correct sir.
But sadly the player count is not the only problem.
I can confirm that the server response to the standard 'source' query contains NO information about the current map and also NO response related to the player list.

So I suspect we are still to discover the correct query for this game, because the 'source' query is not right for the job.

Edit: gametracker seems to believe there is only one map in this game (Panau) and there is no reporting of player details.
I will look further into this, but any additional info from you guys is welcome.

Not working for you?
Don't forget to share the IP/ports of the offending server so that people can do tests and help you.
Oh, and if you're using a modified lgsl_protocol.php, make sure you disable the feed or it may NOT work!
Website
Wussie
Thu Jul 10 2014, 01:30PM

Posts: 437
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
Found a fix for the player count:
Edit lgsl_protocol.php, find
if ($response_type == "I") // SOURCE INFO ( HALF-LIFE 2 )
{
$server['e']['netcode'] = ord(lgsl_cut_byte($buffer, 1));
$server['s']['name'] = lgsl_parse_color(lgsl_cut_string($buffer), "1");
$server['s']['map'] = lgsl_cut_string($buffer);
$server['s']['game'] = lgsl_cut_string($buffer);
$server['e']['description'] = lgsl_cut_string($buffer);
$server['e']['appid'] = lgsl_unpack(lgsl_cut_byte($buffer, 2), "S");
$server['s']['players'] = ord(lgsl_cut_byte($buffer, 1));
$server['s']['playersmax'] = ord(lgsl_cut_byte($buffer, 1));

and AFTER this insert
if ($server['s']['game'] == 'jc2mp') {
$server['s']['players'] = lgsl_cut_string($server['s']['map'], 9, '/');
$server['s']['playersmax'] = substr($server['s']['map'], 0, 2);
$server['s']['map'] = 'Panau'; }

This code relies on your 'source' protocol for queries, so make sure it's updated! Check out the bugfix in the end of this thread.

Servers also report some encripted info which I don't know what it means (yet).
As it turns out, some servers do report player info but it's also encripted and I will need to find out the data format before I can display any of it in a useful way. This is where you guyz can pitch in with some insights about this specific game.

Not working for you?
Don't forget to share the IP/ports of the offending server so that people can do tests and help you.
Oh, and if you're using a modified lgsl_protocol.php, make sure you disable the feed or it may NOT work!
Website
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org