TMU Data Fetcher

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

Moderators: Pit Crew, TM-Patrol

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: TMU Data Fetcher

Post by f*ckfish » 01 Mar 2008 15:03

You have to edit index.php and change the line

Code: Select all

 $data = new TMNDataFetcher('old-blue-label', true);
to

Code: Select all

 $data = new TMNDataFetcher('fatmax', true);

You should get a result like this: http://fish.oorf.de/cpanddf.php?login=fatmax
inactive, sorry

Fatmax
pedestrian
pedestrian
Posts: 5
Joined: 29 Feb 2008 10:04
Owned TM-games: TMN

Re: TMU Data Fetcher

Post by Fatmax » 03 Mar 2008 12:38

Thank's for help.

Now it works.
My webhoster had to allow external calls of php-scripts.

Greetings!

Fatmax

PillBox
pedestrian
pedestrian
Posts: 14
Joined: 13 May 2008 15:35
Owned TM-games: TMNF, TMUF

Re: TMU Data Fetcher

Post by PillBox » 07 May 2009 01:10

I know its an old post, but I cannot find the solution to the problem I am having with this script.

When I use
$Player = new TMNDataFetcher('****', true); //Thats Mr Fishes name that is starred out
All the information is displayed correct with print_r() as follows :
TMNDataFetcher Object ( [version] => 0.1.7.9 [extended] => 1 [login] => **** [nickname] => $i$f80(OoR-F)~$****$f80fish [worldrank] => 1752 [totalplayers] => 577152 [points] => 48681.33 [lastmatch] => 0.00 [wins] => 44675 [losses] => 42121 [draws] => 34263 [stars] => 4 [stardays] => 3746 [teamname] => OoR-F [teamrank] => 79 [totalteams] => 5204 [nation] => GER [nationrank] => 300 [nationplayers] => 122349 [nationpos] => 3 [nationpoints] => 16777215 [totalnations] => 75 [online] => [serverlogin] => [servernick] => [serverdesc] => [servernation] => )
However, if I use my login name, things start to go wrong ...
$Player = new TMNDataFetcher('thepillbox', true);
results in
Notice: Undefined offset: 2 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 56

Notice: Undefined offset: 3 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 57

Notice: Undefined offset: 5 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 59

Notice: Undefined offset: 6 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 60

Notice: Undefined offset: 2 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 69

Notice: Undefined offset: 3 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 70

Notice: Undefined offset: 4 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 71

Notice: Undefined offset: 5 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 72

Notice: Undefined offset: 6 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 73

Notice: Undefined offset: 7 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 74

Notice: Undefined offset: 8 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 75

Notice: Undefined offset: 9 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 76

Notice: Undefined offset: 10 in D:\wamp\www\Trackmania\includes\tmndatafetcher.inc.php on line 77
TMNDataFetcher Object ( [version] => 0.1.7.9 [extended] => 1 [login] => thepillbox [nickname] => [worldrank] => [totalplayers] => [points] => [lastmatch] => [wins] => [losses] => [draws] => [stars] => [stardays] => [teamname] => [teamrank] => [totalteams] => [nation] => [nationrank] => [nationplayers] => 578951 [nationpos] => [nationpoints] => [totalnations] => 75 [online] => [serverlogin] => [servernick] => [serverdesc] => [servernation] => )
What am I doing wrong? Is the login information wrong? I am using Track Mania Nations Forever, so is this the problem? If it is, what script can I use to get the right information?

Thanks.

EDIT ************************

Just seen that this is for TMU - d'oh!!!

Where would I get a TMNF script like this (if it exists)...
Image

Xymph
Pit Crew
Pit Crew
Posts: 5726
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: TMU Data Fetcher

Post by Xymph » 07 May 2009 08:00

PillBox wrote:Just seen that this is for TMU - d'oh!!!
This thread is for the TMU data fetcher, and you're trying to use the classic TMN data fetcher. Neither work with Forever.
PillBox wrote:Where would I get a TMNF script like this (if it exists)...
The TMF data fetcher is here, but it requires an account on Nadeo's stats server, so it's not very suitable for general use. Use TM Ladder to easily find some information on any Forever login.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

Post Reply