| |||||||||||||||
|
|||||||
| Official Submissions If you have something you'd like officially added to Legends, post it here. Make sure it is good quality. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hey,
Attached is a server query script written in php using sockets by myself which will return information about a given Legends server. This script will return an array with key->value mappings (hostname, player count, mission name, game type, etc) as well as a list of players and their team/score/ping. Currently the script retrieves all available info I could find, but could not figure out how to retrieve the version number returned by the server (if one even exists). If you can figure out or know (if it exists) to find the version number of the server, feel free to reply to this thread with the appropriate code Usage: Code:
Code:
|
|
#2
|
||||
|
||||
|
good work man.
|
|
#3
|
|||
|
|||
|
This will help you with the build information.
function translateVersion($version) { if ($version == 1100) { $version = "0.0.0"; } else { $Major = $version >> 16; $Inter = ($version - ($Major << 16)) >> 8; $Minor = ($version - ($Major << 16) - ($Inter << 8)); } return "$Major.$Inter.$Minor"; } Send me a email at razorjack At gmail dot com sometime. Last edited by RazorJack : 2006-03-20 at 02:01 AM. |
|
#4
|
|||
|
|||
|
all you need is for to drop a link that the game picks up and drops you in the server
![]() |
|
#5
|
|||
|
|||
|
Ive added master server support (Request a list of server addresses from master) in an array which you can then query if desired (otherwise its just an array of addresses).
Also added version information. |
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
|||
|
|||
|
It takes ages to query each server anyway, anyone with a clue would cache it
![]() |
|
#8
|
|||
|
|||
|
i just found this nice php script here but upon uploading it to my server, it only output this (source):
Quote:
so... has the protocol been changed? am i missing a php module? any help would be great. |
|
#9
|
|||
|
|||
|
yeh pretty sure protocol has changed - Im not updating it again though.
|
|
#10
|
|||
|
|||
|
umm... are you saying you are not updating the protocol again xor that you are not updating the php script? im hoping you are willing to update the php script. if you are not going to update the php script, a chunk source code provided would also be helpful.
thanks |
|
#11
|
||||
|
||||
|
Legends and GG MasterServer protocol have not changed.
|
|
#12
|
||||
|
||||
|
Is it possible for somebody to post the code that you are using here...
http://www.legendsthegame.net/index.php?m=masterserver For both the master and individual servers? |
|
#13
|
|||
|
|||
|
Yeah, it'd be nice to get this code.
|
|
#14
|
||||
|
||||
|
Denied.
|
|
#15
|
|||
|
|||
|
Cannot do as it's a licensing problem I guess. But if you really want to do something with the master, I can tell you, it's a really simple protocol *hint*.
|
|
#16
|
||||
|
||||
|
WAREZ! BAN!!!!!
|
|
#17
|
|||
|
|||
|
HAX!
You could always use Wireshark or tcpdump to dump the packets to a file then have a look. |
|
#18
|
|||
|
|||
|
Quote:
Ohhhhhhh, a "secret sauce"....is it mayo, ketchup, and mustard? ![]() |
|
#19
|
||||
|
||||
|
Homemade mayo. Bit salty tho.
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Servers? - Server Query Page here? | Bramage | General Legends Discussion | 7 | 2006-05-29 12:10 AM |
| Crash on start the map... | Helloween | Help/Support | 16 | 2006-03-22 10:09 PM |
| Script for server query page | Republican Gun | Help/Support | 3 | 2005-06-22 02:40 AM |
| Crash when join to any server | Baochan | Help/Support | 8 | 2005-06-10 07:36 AM |
| Crashes While Loading! | dance | Bugs/Fixes | 0 | 2004-09-19 08:30 PM |