[PHP/MYSQL] TMFDataFetcher v1.3b

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
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: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by w1lla » 17 Nov 2010 13:05

Updated version:
http://tmrankings.com/stats/tmfdatafetcher.v1.5.rar
http://tmrankings.com/stats/tmfdatafetcher.v1.5.zip

made fixes for altering tables for tags and images.

Code: Select all

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

Assembler Maniac
Pit Crew
Pit Crew
Posts: 1493
Joined: 03 Jun 2006 13:24
Owned TM-games: TMU
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by Assembler Maniac » 17 Nov 2010 20:05

w1lla wrote:Updated version:
http://tmrankings.com/stats/tmfdatafetcher.v1.5.rar
http://tmrankings.com/stats/tmfdatafetcher.v1.5.zip

made fixes for altering tables for tags and images.
There's some confusion in the zip/rar files. You have 2 different "classes" directories, one in root, and one under the tmfdatafetcher directory. The ones in root have the more recent dates on them.

So, which ones are the "right" ones to work with?

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: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by w1lla » 17 Nov 2010 20:41

the classes file first one.

Code: Select all

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

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

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by Xymph » 17 Nov 2010 22:41

w1lla wrote:the classes file first one.
Just release one distro to avoid this kind of unnecessary confusion. The size difference is way too insignificant to matter anyway.
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

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: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by w1lla » 18 Nov 2010 12:28

Code: Select all

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

User avatar
RamCUP2000
road tourist
road tourist
Posts: 105
Joined: 01 Apr 2009 17:43
Owned TM-games: MP, TMU(F), TMS, TMO
Manialink(s): usdmania
Location: Czech republic » Jihomoravský kraj » Břeclav
Contact:

[PHP/MYSQL] TMFDataFetcher v1.5b

Post by RamCUP2000 » 25 Jan 2011 16:42

[PHP/MYSQL] TMFDataFetcher v1.5b

i've found and fixed "tags" bugs

http://files.usdmania.eu/tmfdatafetcher.v1.5b.zip

differences between 1.3b & 1.5b:
http://files.usdmania.eu/tmfdatafetcher1.3b-1.5b.png
Last edited by RamCUP2000 on 26 Jan 2011 09:52, edited 1 time in total.
Image
Czech ManiaPlanet Moderator
TrackMania player since Q2 2004 (TrackMania v1.2.5)

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.5b

Post by Ant » 25 Jan 2011 23:24

Nice, i'll add this to XAseco Stats soon :)

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

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by nocturne » 26 Jan 2011 08:11

I'm having a bit of a bug in this class... Ladder ranking stats are setting the 'losses' to the same as 'draws'.

For reference:

Code: Select all

            [Stadium] => Environment Object
                (
                    [name] => Stadium
                    [wins] => 145396
                    [draws] => 273726
                    [losses] => 273726
                    [ladderpoints] => 78638.9
                    [ranking] => Array
                        (
                            [0] => Array
                                (
                                    [idzone] => 1
                                    [zonepath] => World
                                    [rank] => 806
                                )
                            [1] => Array
                                (
                                    [idzone] => 21
                                    [zonepath] => World|Canada
                                    [rank] => 8
                                )
                            [2] => Array
                                (
                                    [idzone] => 443
                                    [zonepath] => World|Canada|Alberta
                                    [rank] => 1
                                )
                        )
                )
I was going to check the class for typos (never can tell with the FR>ENG transition), but I can't seem to find the original stats server documentation...

Edit: And for those who intend on releasing subsequent versions of a class which they didn't author -- if you insist on releasing your own version under the same guise, at least go as far as to state what exactly was fixed, if not quoting the exact edited code. With all the interaction on these various scripts, it's always important to be able to differentiate between 'official' and 'modified' releases'.
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: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by w1lla » 26 Jan 2011 09:09

why not put altered versions up on sourceforge or google code.

That way the original link stays and new topics can be made with the new links provided.


Documentation can be found on this link:

https://stats.trackmaniaforever.com/


need to login with the information provided by nadeo.

Code: Select all

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

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by Ant » 26 Jan 2011 09:12

Noc, in 1.5b I think you might need to change line 459 from

Code: Select all

losses = "'.$env['draws'].'",
to

Code: Select all

losses = "'.$env['losses'].'",
I'm not sure if thats the only problem - but that looks like it as far as I can see.

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

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by nocturne » 26 Jan 2011 09:26

Just now found the bug myself... had to flush the cache db to make certain. Amazing that such an obvious bug has been around all this time...
Chief Janitorial Supervisor of the Let'sRock! TM community : www.LetsRock-TM.com

User avatar
Knutselmaaster
swift roadking
swift roadking
Posts: 692
Joined: 16 Feb 2007 01:40
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Location: Between DisneyLand and Paris
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by Knutselmaaster » 31 Jan 2011 11:01

Has something been changed in the Nadeo database?
Because i have plenty of errors in the output since a week or so.
Thought it was my site but i checked everything and there is no problem.
Also on other sites i see the same errors.

User avatar
Legor
Developer
Developer
Posts: 276
Joined: 10 Aug 2005 08:49

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by Legor » 01 Feb 2011 09:38

What kind of errors do you have ? Could you send me a screenshot ?

User avatar
Knutselmaaster
swift roadking
swift roadking
Posts: 692
Joined: 16 Feb 2007 01:40
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Location: Between DisneyLand and Paris
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by Knutselmaaster » 01 Feb 2011 09:49

Click the link on "my site" in the post above.
Almost all players should have the same teamtag (the one before the first player), there are Ñ thingies instead of the reversed R, but not for all players...
Some nicknames are totally messed up; like http://www.racing.intenseclan.com/stats ... davida1000

User avatar
Legor
Developer
Developer
Posts: 276
Joined: 10 Aug 2005 08:49

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by Legor » 02 Feb 2011 16:04

This is fixed. The players with a wrong teamtag will need to connect to the game to get their right nickname back.
Please let me know if everything is ok on your side now. Thanks for your feedback :thumbsup:.

Post Reply