1

Topic: [TOOL] Server info

Hi,
I've wrote a little PHP script witch allow you to display a server info (and he scoreboard).
It's really simple, it just connect to the server via udp, and query the server infos.

The script is under GPL 2.0, so you can do all you want with.

The script can be dowloaded here : http://www.megaupload.com/?d=FFAPBG4S

I've done a port to Joomla here : http://www.megaupload.com/?d=EHBM9W1H (Just install it via Module Manager)

Mika.

Ps : A port to WordPress and phpBB is planned, but you can ask for an other port (or port it yourself ;p)
Ps2 : Please feedback

2

Re: [TOOL] Server info

Thank you xD

Now I finally know that "ÿÿÿÿÿÿÿÿÿÿgief" is the String to request data.

To seperate the strings, ASCII 0 is used as symbol. Am I right?

3 (edited by Mika56 2009-06-20 22:01:53)

Re: [TOOL] Server info

Yes, and the "0" ASCII code is, for us, the null

Mika.

Edit : Is there any way to connect to a server via command, such as teeworlds.exe -c xxx.xxx.xxx.xxx:xxxx ?

4

Re: [TOOL] Server info

Mika56 wrote:

Yes, and the "0" ASCII code is, for us, the null

Mika.

Edit : Is there any way to connect to a server via command, such as teeworlds.exe -c xxx.xxx.xxx.xxx:xxxx ?

Don't think so,...

Is anyone interested in my Java API to request this data from teeworlds-servers?

5

Re: [TOOL] Server info

Can you please make a port to the ClanSphere CMS, when you have time?
I can try, but i'm not an expert, so i'm sure it won't work tongue
Actually, Clansphere got a tool to query game servers but it dont work with teeworlds... the only thing to do is to replace it...

Support Staff - ESL.eu Teeworlds Admin

6 (edited by Mika56 2009-06-23 21:20:10)

Re: [TOOL] Server info

I'm looking for doing it, i'm already installing it localy wink

Mika.

Edit : ClanSphere is hard, but i've found the way. I'll release it before tonight I think (i'm living in france)
Edit2: Sorry, I can't release it now, I have a problem with score ranking. I'm looking for help wink
Edit3 : Whaou, i've had a quick help, and I have ended the code. You can download it here, just extract it to /mods/servers/. Please backup this folder before. There is just a bug, a link is created where is the name, but it don't work anymore. I've mised to remove a thing : please remove line 88 of file /classes/tee.php. And, i've mised to add a thing (...) : in classes/phgstats.class.php, add, anywhere in the switch :



            case 'tee': // TeeWorlds
                include_once('mods/servers/classes/tee.class.php');
                $query = new tee;
                return $query;
                break;


Ps : For any support, please do it here wink
Ps2 : I'll re-upload a modified one tomorrow wink

7

Re: [TOOL] Server info

Here is the final release : http://www.megaupload.com/?d=R31BXWS9

Have fun wink

Mika.

Ps : Install it by extracting and remplcing in mods/servers/

8

Re: [TOOL] Server info

Another (really simple) one: http://www.teeworlds.com/forum/viewtopic.php?id=3587

MELT ME!

9

Re: [TOOL] Server info

Mika56 wrote:

Edit : Is there any way to connect to a server via command, such as teeworlds.exe -c xxx.xxx.xxx.xxx:xxxx ?

Yes.
./teeworlds "connect ip:port"

10

Re: [TOOL] Server info

Magnet wrote:
Mika56 wrote:

Edit : Is there any way to connect to a server via command, such as teeworlds.exe -c xxx.xxx.xxx.xxx:xxxx ?

Yes.
./teeworlds "connect ip:port"

Thank,
It would be nice to do an installer for each OS, and which will add a (example) tw:// protocol (usage : tw://server:port).
I know it's possible on windows, i'm not sure for linux/mac, but it's probably possible.

Mika.

11

Re: [TOOL] Server info

Mika56 wrote:

Thank,
It would be nice to do an installer for each OS, and which will add a (example) tw:// protocol (usage : tw://server:port).
I know it's possible on windows, i'm not sure for linux/mac, but it's probably possible.

Mika.

Good point. You should post this suggestion at the development forum!

Antoine de Saint Exupéry: It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away.
Besides -  I am the gfx guy!

12

Re: [TOOL] Server info

Protocols are supported atleast in Ubuntu too. Just some more tweaking than windows I guess. Problem is that who will package the game for major linux distributions(Ubuntu/Debian and Fedora atleast.)

13

Re: [TOOL] Server info

Hi, could you please provide port-plugin for Wordpress?