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

Guests: 10

112.111.x.x forum
121.205.x.x signup
175.44.x.x forum
178.255.x.x forum
180.151.x.x forum
198.56.x.x forum
50.16.x.x forum
58.22.x.x forum
66.249.x.x dilbertplus
91.224.x.x forum

Last Seen

mkden Tue 15:19
Zipps Tue 11:25
Rich Tue 11:20
»Stefan Tue 08:10
amenda8998 Tue 07:46

Newest Members

Forums
Minecraft
kado_54
Mon Nov 21 2011, 04:59PM
Posts: 1
Joined: Mon Nov 21 2011, 04:53PM
Registered Member #7006
I do not work

Lgsl Status:

Server offline - 0/0

pls fix
EpicFail
Mon Nov 21 2011, 05:10PM

Posts: 39
Joined: Wed Aug 03 2011, 08:21AM
Registered Member #6858
"I do not work"
don't worry, you'll die soon...

My contributions to LGSL

Add teamspeak to LGSL
Add teamspeak3 to LGSL
Add ventrilo to LGSL
Add minecraft to LGSL
Mainkiller
Sun Nov 27 2011, 10:28AM
Posts: 14
Joined: Thu Feb 24 2011, 04:36PM
Registered Member #6601
EpicFail
My LGSL works perfect with MC, but sometimes lgsl show me that
LGSL PROBLEM: INVALID TYPE 'minecraft' FOR 46.254.20.39, 25565, 25565, 0



Website
XerraX
Sun Nov 27 2011, 11:53AM

Posts: 40
Joined: Sat Nov 25 2006, 12:23PM
Registered Member #2699
Gagi2 wrote ...

can you tell me which query plugin you are using?



I think its:
http://minecraftviewer.com/

ReAliTy iS JuST a DrEAm. HaCk ThE PLaNet!
Website
Mainkiller
Sun Nov 27 2011, 12:09PM
Posts: 14
Joined: Thu Feb 24 2011, 04:36PM
Registered Member #6601
?


Website
EpicFail
Wed Dec 07 2011, 08:05AM

Posts: 39
Joined: Wed Aug 03 2011, 08:21AM
Registered Member #6858
You don't need any plugin to use this... This works with standalone mc server or bukkit server...

My contributions to LGSL

Add teamspeak to LGSL
Add teamspeak3 to LGSL
Add ventrilo to LGSL
Add minecraft to LGSL
XerraX
Thu Dec 08 2011, 04:15PM

Posts: 40
Joined: Sat Nov 25 2006, 12:23PM
Registered Member #2699
hmm not for me

ReAliTy iS JuST a DrEAm. HaCk ThE PLaNet!
Website
mr.z
Sun Dec 11 2011, 03:48AM
Posts: 3
Joined: Wed Sep 30 2009, 09:53AM
Registered Member #5453
----DONE!---
Kzkas
Wed Jan 25 2012, 02:23PM
Posts: 4
Joined: Sun Jul 31 2011, 01:37PM
Registered Member #6852
Can anyone post this added to default lgsl?
iKak
Sat Jan 28 2012, 05:39PM
Posts: 4
Joined: Sat Jan 28 2012, 03:06PM
Registered Member #7094
Fatal error: Cannot redeclare writedata() in /var/www/u2310197/public_html/into-game.ru/components/com_lgsl/lgsl_files/lgsl_protocol.php on line 4092
What to do with this? Using joomla 1.5 web site.
iKak
Tue Jan 31 2012, 10:48AM
Posts: 4
Joined: Sat Jan 28 2012, 03:06PM
Registered Member #7094
Hey any ideas?
mr.z
Fri Feb 03 2012, 10:33AM
Posts: 3
Joined: Wed Sep 30 2009, 09:53AM
Registered Member #5453
what´s in your line 4092?
Faust
Sat Feb 25 2012, 11:34AM
Posts: 1
Joined: Sat Feb 25 2012, 11:30AM
Registered Member #7133
So I did all by this tutorial but still all Minecraft servers are showing off. For other games it's working but I can't figure out why it doesn't get response from MC servers. I'd appreciate any help.
bogdanxd
Fri May 04 2012, 12:07PM
Posts: 10
Joined: Thu May 03 2012, 11:44AM
Registered Member #7212
i get this error
FEED MISSING FROM: wwwgreycubecouk/lgsl/feed/lgsl_files/lgsl_feed.php RETURNED: LGSL FEED PROBLEM: UNKNOWN TYPE 'minecraft
Det
Thu May 24 2012, 07:19PM
Posts: 1
Joined: Thu May 24 2012, 07:14PM
Registered Member #7232
I don't get any error, but sadly the server still shows as offline.

Minecraft version 1.2.5
fitamin4ikk
Wed Jun 27 2012, 03:39PM
Posts: 1
Joined: Wed Jun 27 2012, 03:35PM
Registered Member #7267
Some servers do not work wrote monitored, although they are included because they cost option enable-query = false, if you will be enable-query = true, it will display the server's normal! How do I fix this? I apologize for my English, used a translator
Website
ODDBALL118
Thu Jul 12 2012, 06:26PM
Posts: 5
Joined: Thu Jul 09 2009, 09:17PM
Registered Member #5235
EpicFail wrote ...

Try to replace in my query
$server['p']['players'] = $data['players'];

with
$server['p'] = $data['players'];


Sorry guys but i have bad connection, internet throught my smartphone, can't check any server right now... I'll arrive home in 5-6 hours...

That data is returned like that 'cause is an array.
You are so lazy and you cannot search on google for a mc icon? )
And about maps, every server use custom maps, i mean is not like cstrike or other games... Use a minecraft logo or something right there )



I'm a little confused. Has this been fixed? I cannot find that in your query.
Website
CozmicShredder
Sat Oct 13 2012, 03:37PM

Posts: 38
Joined: Sun Dec 18 2005, 06:42AM
Registered Member #908
Did all edits everything works except user name list...

Website
Wussie
Sun Oct 14 2012, 12:06PM

Posts: 166
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
I used EpicFail's updated functions, exactly like they now appear in his first post, and they seem to work.... but...

The number of player names in the player list is smaller than $server['s']['players'], one of the names is missing because the function fails to read the first name which has pid=0. The "for" cycle should be written like this:

for ($i=0; $i<sizeof($data['players']); $i++) {

Also, the settings shown by $server['e'] look all wrong, they all get displayed together on 1 or 2 lines instead of being separated each on their own lines. This is because the "explode()" function below uses the "," character when it should be using ";", like this:

$data = array ("general" => $status, "plugins" => explode(";",$status[9]), "players" => $players);

and it still needs a little work to display settings nicely by key=>value.

I can see the players list with all the names but no "time". I know minecraft servers can provide connection times for each player if queried correctly, I've seen it work on gametracker.com, so our functions need some more fixing. Maybe the query is not right, or maybe the $players array is not correctly defined inorder to include the 'time' parameter, EpicFail should know better.

These are my observations from testing multiple Bukkit 1.2.5 and 1.3.2 servers, and I am sharing them with you not as criticism, but with the hope they might lead to faster debugging. Take care!

UPDATE: Hey, I did some research today and it turns out Minecraft uses Gamespy 4 protocol for queries, which works much like gamespy3, a wellknown protocol within LGSL. This means we can use the unmodified lgsl_protocol.php, set our gametype as crysis or gamespy3 and we can get most of the server details right, including the player names. The only things that need some work are the map name and the server plugins, but that's easy to do. These days I will do the necessary modifications to one existing function for Minecraft support, then come back here and share the solution.
Website
Wussie
Sun Oct 21 2012, 02:16PM

Posts: 166
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
I came back as promised with the complete solution for Minecraft, which I believe to be better because it doesn't need a whole new protocol or extra functions, it uses fewer lines of code and it still displays correctly the map name, settings and players.
You can start off with the original, unmodified lgsl_protocol.php and find
"kingpin" => "Kingpin: Life of Crime",
AFTER this line you insert:
"minecraft" => "Minecraft",

After
"kingpin" => "03",
insert
"minecraft" => "06",

After
"kingpin" => "qtracker://{IP}:{S_PORT}?game=Kingpin&action=show",
insert
"minecraft" => "http://en.wikipedia.org/wiki/Minecraft",

Then, under "function lgsl_query_06(..." find
$lgsl_conversion = array("name"=>"hostname", "game"=>"gamename", "map"=>"mapname", "players"=>"numplayers", "playersmax"=>"maxplayers", "password"=>"password");
foreach ($lgsl_conversion as $s => $e) { if (isset($server['e'][$e])) { $server['s'][$s] = $server['e'][$e]; unset($server['e'][$e]); } } // LGSL STANDARD

if ($server['b']['type'] == "bf2" || $server['b']['type'] == "bf2142") { $server['s']['map'] = ucwords(str_replace("_", " ", $server['s']['map'])); } // MAP NAME CONSISTENCY

and replace with
$lgsl_conversion = array("hostname"=>"name", "gamename"=>"game", "mapname"=>"map", "map"=>"map", "numplayers"=>"players", "maxplayers"=>"playersmax", "password"=>"password");
foreach ($lgsl_conversion as $e => $s) { if (isset($server['e'][$e])) { $server['s'][$s] = $server['e'][$e]; unset($server['e'][$e]); } }

if ($server['b']['type'] == "bf2" || $server['b']['type'] == "bf2142") { $server['s']['map'] = ucwords(str_replace("_", " ", $server['s']['map'])); } // MAP NAME CONSISTENCY
elseif ($server['b']['type'] == "minecraft") {
if (isset($server['e']['gametype'])) { $server['s']['game'] = $server['e']['gametype']; }
foreach ($server['e'] as $key=>$val) { if (($key != 'version') && ($key != 'plugins')) { unset($server['e'][$key]); } }

$plugins = explode(": ",$server['e']['plugins'], 2);
if ($plugins[0]) { $server['e']['plugins'] = $plugins[0]; } else { $server['e']['plugins'] = 'none (Vanilla)'; }
if (count($plugins) == 2) {
while ($key = lgsl_cut_string($plugins[1],0," ")) { $server['e'][$key] = lgsl_cut_string($plugins[1],0,"; "); }
}
$buffer = $buffer."\x00"; // Needed to correctly terminate the players list
}

That's it!
Testing the script on lots of different servers can be tricky though... Some servers may appear offline untill you get the query port right. In Minecraft there is no clear relation between the connection port and the query port, it's all up to the server admins.
Regardless of what $c_port is set, while most server admins use $q_port=$c_port, I found that some of them use $q_port=$c_port+1 and others even use $q_port=25565. Try these different $q_port values before declaring a MC server "offline".
Let me know if you find any issues with this modified protocol.
Website
Go to page   <<        >>   

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