Server viewer

Discuss everything related to Shootmania.

Moderator: English Moderator

User avatar
niarfman
Posts: 287
Joined: 07 Dec 2012, 10:46

Re: Server viewer

Post by niarfman »

I am able to fill many thinks except TCP/IP info :
http://88.191.234.94/stats/serverstats. ... statsbox=8

The green square to view number of players versus total is a little bit harder to do. I skipped it for now.

The graphic of numbers of players is not complicated but need to use a specific cron to store the values.

I can give you this code if you want.
Image
Ľѷҳ Choupa Oups! ツ
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Server viewer

Post by w1lla »

Hi,

After using this as a way for server information and showing it too players i adapted it towards SM/TM2.

the main_viewer.php can be used as a information beacon to your site viewers to see what mode the server is running and how many players there are. Each time the page is reached it will update the database which the server_graph uses.

the server_graph.php will give information about the time and players that went to your server.


I would like to thank FlyveHest for his code... :yes:
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
niarfman
Posts: 287
Joined: 07 Dec 2012, 10:46

Re: Server viewer

Post by niarfman »

We are many to have written some code for our web sites.

We should create a new package to offer our works for others in a single tool :)

But this kind of tools uses many CPU and XMLRPC requests with dedicated ManiaPlanet servers. This can generate some ingame lags.
So I am also working on a cache system for both datas (xml) and generated pictures.

I don't get the information directly from the servers but I am using xml files storing informations gathered from each servers we have (6 Ubuntu). A php scipt on each of these servers generates an on-demand XML file using GbxRemote to comunicate with Maniaplanet Servers.
Every 5 minutes these files are updated by a cron task. Files are also updated each time a visitor display the server list, but only once maximum each 10 seconds.
This allows to get very quickly the information when we want to refresh the list. And, in the worst case, the displayed information is a 5 minutes old one.

I am using the same way for pictures. Each time a GD2 picture is generated, a lot of CPU is used and it can slow up the web server. So I store many pictures for each state (easy when only server name and number of players are used). And I use these stored pictures in my Web page :)

I will soon share my code and optimized it to diplay more informations as efficiently as I can ^^.
There is my actual beta version : http://speedstuntmod.fr/serverlist/index2.php

LORDMORGOTH : About what you want exactly, contact me by PM and I will give you the code I wrote for my Example. But I will replace TCP/IP information by the server login and the environment ;)
Image
Ľѷҳ Choupa Oups! ツ
ceshiwuhao
Posts: 4
Joined: 26 Feb 2013, 12:22
Contact:

Re: Server viewer

Post by ceshiwuhao »

There were xasecostats but very limited with shootmania.
User avatar
djhubertus
Translator
Translator
Posts: 1097
Joined: 09 Jul 2012, 18:30
Location: Poland
Contact:

Re: Server viewer

Post by djhubertus »

What do you think ?
text formatting(HTML tags) doesn't work with ImageTTFtext();
http://torrentsm.ct8.pl/status/duzy/index.php
My Gamemodes:
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
Post Reply

Return to “Shootmania”

Who is online

Users browsing this forum: No registered users and 1 guest