TrackMania Manialink Viewer (TMMV)

This is the place where you can find everything related to the dedicated server, control scripts and community tools.

Moderators: Pit Crew, TM-Patrol

Post Reply
User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

TrackMania Manialink Viewer (TMMV)

Post by w1lla » 03 Apr 2009 17:50

Hi all,

Today i present TrackMania Manialink Viewer.
Trackmania manialink viewer shows the stats of your own server.... in a ingame manialink.


  • Trackmania Manialink Viewer
    Will be a ingame Manialink with details about the server.
    These will contain;
    Status of the server
    onlineplayers and there rank ingame of the server aswell as best time.
    tracks with coppers, environnement and author
    IPAdress functionality uptime of server and Gamemode...
    Even you can join by pressing the launch button.

    All commands are known as listed on:
    http://methods.tmu-forever.com/methods.php


    This shows all known info about the server so that you can see before you join a server all the details needed that you want to join.
    Version 0.5 did not contain bugs.
    Version 1.0a Release does not contain bugs...

    The main.php and main2.php are manialink files.
    Add them in the root of your xammp or usbwebserver.

    Edit the files and change;

    Code: Select all

    $ip= 'localhost';
    $port= '5225';
    $user= 'SuperAdmin';                  // SuperAdmin Login
    $pass= 'SuperAdmin';                        // SuperAdmin Password
    to your own fittings.

    Index.php is a webpage just to verify locally and through exterior sites that the information works!!!

    &copy 2009 Willem "W1lla" van den Munckhof

Download link:

http://www.tmnfvenray.nl/tmmv/TMMV.zip
http://www.tmnfvenray.nl/tmmv/TMMV.rar
Screenshot:
Website image
Image
website manialink
Image
Last edited by w1lla on 07 Apr 2009 13:29, edited 1 time in total.

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

ЭΛ Ğ尺乇ÇØ
sunday driver
sunday driver
Posts: 67
Joined: 22 Mar 2009 05:42
Owned TM-games: faadfad

Re: TrackMania Manialink Viewer (TMMV)

Post by ЭΛ Ğ尺乇ÇØ » 04 Apr 2009 12:57

hmm i think its very good.Good work. :thumbsup:

v000nix
happy cruiser
happy cruiser
Posts: 138
Joined: 09 Jan 2008 19:26
Owned TM-games: TMN, TMU, TMUF
Manialink(s): v000nix, TManiacs
Location: Germany
Contact:

Re: TrackMania Manialink Viewer (TMMV)

Post by v000nix » 05 Apr 2009 11:03

Does it fetch the data again on every pageview or are the infos cached?

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: TrackMania Manialink Viewer (TMMV)

Post by w1lla » 06 Apr 2009 06:53

fetched on pageview...

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: TrackMania Manialink Viewer (TMMV)

Post by w1lla » 07 Apr 2009 13:29

updated first post: v1.0a are we now at...

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

driftking_911
pedestrian
pedestrian
Posts: 8
Joined: 27 Dec 2009 15:47
Owned TM-games: tmuf tmnf tms tmo

Re: TrackMania Manialink Viewer (TMMV)

Post by driftking_911 » 29 Dec 2009 14:18

link is broken...

User avatar
TStarGermany
speedy pilot
speedy pilot
Posts: 387
Joined: 27 Aug 2006 18:12
Owned TM-games: TMN,TMNF,TMUF
Manialink(s): creative
Location: GER
Contact:

Re: TrackMania Manialink Viewer (TMMV)

Post by TStarGermany » 29 Dec 2009 17:25

o wow

when reading the title, i thought it was a tool wo watch manialink content from the outside x,x
Image

budperson
pedestrian
pedestrian
Posts: 9
Joined: 09 May 2010 22:07
Owned TM-games: TMUF, TMNF
Manialink(s): crs

Re: TrackMania Manialink Viewer (TMMV)

Post by budperson » 14 Feb 2011 22:50

^

nocturne
solid chaser
solid chaser
Posts: 1390
Joined: 08 Jun 2007 18:48
Owned TM-games: all
Contact:

Re: TrackMania Manialink Viewer (TMMV)

Post by nocturne » 15 Feb 2011 00:56

TStarGermany wrote:o wow

when reading the title, i thought it was a tool wo watch manialink content from the outside x,x
Late response... but there was one of those around here somewhere, though I think it was a bit iffy with TMF style manialink support.
Chief Janitorial Supervisor of the Let'sRock! TM community : www.LetsRock-TM.com

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: TrackMania Manialink Viewer (TMMV)

Post by w1lla » 15 Feb 2011 08:48

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

nocturne
solid chaser
solid chaser
Posts: 1390
Joined: 08 Jun 2007 18:48
Owned TM-games: all
Contact:

Re: TrackMania Manialink Viewer (TMMV)

Post by nocturne » 15 Feb 2011 16:08

btw, w1lla... have some backups of the original topic's links? For some reason this passed beyond notice by me, and I've always meant to make a quick manialink page with a list of our servers -- I just hate working with the xml placement, so anything I can 'steal' always helps, hehe.
Chief Janitorial Supervisor of the Let'sRock! TM community : www.LetsRock-TM.com

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: TrackMania Manialink Viewer (TMMV)

Post by w1lla » 15 Feb 2011 16:29

It's possible with manialib...

http://manialib.googlecode.com/files/manialib-0.1.zip

Download it...

Use the following files:
GbxRemote.inc.php (is in the includes directory of your own server)
tmfcolorparser.inc.php (Use Fufi's)

Then make a file with notepad++ or any other editor.

Code: Select all

// The whole Manialib framework is loaded here.
require_once("core.inc.php");
Manialink::load();
$ui = new Navigation;
$ui->title->setText('');
$ui->subTitle->setText('');
$ui->quitButton->setManialink("");
$ui->save();
    $ip="localhost";                      //IP address of server
    $port=;                          //Port for remote access
      $user= "";                  // SuperAdmin Login
      $pass= "";                        // SuperAdmin Password

	require("includes/GbxRemote.inc.php");
    require("includes/tmfcolorparser.inc.php"); //it should be in the forum somwhere in the toolbox

    $client = new IXR_Client_Gbx;
    $colors= new tmfcolorparser;

    if (!$client->InitWithIp($ip,$port)) {
       echo'An error occurred - '.$client->getErrorCode().":".$client->getErrorMessage();
    }
   if (!$client->query("Authenticate", $user, $pass)) {

       print "login failed !<br/>";
    }	
	if($client->query('GetStatus')) {
       $Status = $client->getResponse();
       }
    if($client->query('GetPlayerList', 300, 0)){
 $players = $client->getResponse();
$CurrentPlayerCount=0;
$playersinput = array();
foreach ($players as $pl) {
$playersinput[$CurrentPlayerCount] = $pl['NickName'];
$CurrentPlayerCount++;

}
}

    if($client->query('GetServerOptions')) {
       $ServerOptions = $client->getResponse();
       $servername=$ServerOptions['Name'];
       $MaxPLayers=$ServerOptions['CurrentMaxPlayers'];
    $pl=0;
    foreach ($players as $player) {
       $pl++;
	   }
	   }
    if($client->query('GetCurrentChallengeInfo')) {
       $CurrentChallengeInfo = $client->getResponse();
       $trackname=$CurrentChallengeInfo['Name'];
       }

    if($client->query('GetCurrentGameInfo')) {
       $GetCurrentGameInfo=$client->getResponse();
       $GameMode=$GetCurrentGameInfo["GameMode"];
	   
    }
if($client->query('GetNextChallengeInfo')) {
	$GetNextChallengeInfo=$client->getResponse();
	$nexttrackname=$GetNextChallengeInfo['Name'];
	
    }
    if ($client->query('GetLadderServerLimits')) {
		$GetLadderServerLimits=$client->getResponse();
		$ladderMin = $GetLadderServerLimits['LadderServerLimitMin'];
		$ladderMax = $GetLadderServerLimits['LadderServerLimitMax'];
        }

    if ($client->query('GetMainServerPlayerInfo')) {
		$GetMainServerPlayerInfo = $client->getResponse();
		$serverlogin = $GetMainServerPlayerInfo['Login'];
        }

    //Formating Game Mod
    switch($GameMode){
       case 0:
          $GameMode="Rounds";
          Break;
       case 1:
          $GameMode="Time Attack";
          Break;
       case 2:
          $GameMode="Team";
          Break;
       case 3:
          $GameMode="Laps";
          Break;
       case 4:
          $GameMode="Stunts";
          Break;
       case 5:
          $GameMode="Cup";
          Break;
    }

Manialink::beginFrame(18, 40, 2);
$ui = new Panel(75, 75);
$ui->setAlign("center", "top");
$ui->title->setStyle("TextRaceMessage");
$ui->title->setText('');
$ui->save();
$ui = new Quad(75, 75);
$ui->setHalign("center");
$ui->setPosition(0, -8, 1);
$ui->save();
$ui = new Label(45);
$ui->setHalign("center");
$ui->setPosition(0, -8, 2);
$ui->setText("Gamemode:$GameMode");
$ui->save();
$ui = new Label(45);
$ui->setHalign("center");
$ui->setPosition(0, -10, 2);
$ui->setText("LadderLimits:$ladderMin-$ladderMax");
$ui->save();
$ui = new Label(45);
$ui->setHalign("center");
$ui->setPosition(0, -12, 2);
$ui->setText("Current Track: $trackname");
$ui->save();
$ui = new Label(45);
$ui->setHalign("center");
$ui->setPosition(0, -14, 2);
$ui->setText("Servername: $servername");
$ui->save();
$ui = new Label(45);
$ui->setHalign("center");
$ui->setPosition(0, -16, 2);
$ui->setText("Players: $pl/$MaxPLayers");
$ui->save();
$ui = new Label(45);
$ui->setHalign("center");
$ui->setPosition(0, -18, 2);
$ui->setText("Next Track: $nexttrackname");
$ui->save();
$ui = new Label(45);
$ui->setHalign("center");
$ui->setPosition(0, -25, 2);
$ui->setText('$l[tmtp:///#join=]Play on our  Server$l$z');
$ui->save();
$ui = new Label(45);
$ui->setHalign("center");
$ui->setPosition(0, -22, 2);
$ui->setText('$l[tmtp://#addfavourite=intrfs]Add $i$666int $f90$iя\'$ffe$iFullspeed Server as Favorite$l$z');
$ui->save();
$ui = new Label(45);
$ui->setHalign("center");
$ui->setPosition(0, -20, 2);
$ui->setText('Status: '.$Status['Name'].'');
$ui->save();
$ui = new Label(45);
$ui->setHalign("center");
$ui->setPosition(-18, -27, 2);
$ui->setText("Playerlist:
".implode('
', $playersinput));
$ui->save();
Manialink::endFrame();
Manialink::render();
?>
And save it as utf-8 without bom.

That will do the trick...

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

nocturne
solid chaser
solid chaser
Posts: 1390
Joined: 08 Jun 2007 18:48
Owned TM-games: all
Contact:

Re: TrackMania Manialink Viewer (TMMV)

Post by nocturne » 15 Feb 2011 17:46

Eh... manialib is just a bit too generic looking. Just need to spend the time coding something up, I guess; though it's far down on my to do list.
Chief Janitorial Supervisor of the Let'sRock! TM community : www.LetsRock-TM.com

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: TrackMania Manialink Viewer (TMMV)

Post by w1lla » 15 Feb 2011 17:49

I can help you with the coding.

I'm even making a better Serverviewer like svens.\

If you want to see how it looks ingame i invite you to come and look @ Intense Racingcolor> manialink.

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

Post Reply