TM Offline Stats 1.1 + (X)Aseco/FAST plugin

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
sys1
happy cruiser
happy cruiser
Posts: 141
Joined: 13 Feb 2006 07:35
Location: Russian Federation
Contact:

TM Offline Stats 1.1 + (X)Aseco/FAST plugin

Post by sys1 » 28 Apr 2006 14:30

"TM Offline Stats" - is a statistics programme for the Trackmania games.

Official site:
http://tmos.pp.ru

Image Image Image
Image Image Image

Code: Select all

v1.1
Parser
* Rewritten algorithm of search teams
* Supports track-files from the TMO/TMS (without XML header)

Administrator's panel
* Tab for extracting thumbnails from track-files

Interface of Statistics
* If the cache is enabled, the button "Preferences" does not showing
  (incompatible options)
* Long names of players/tracks/teams cut for fit in the columns of tables
* Link to a team from the tab "Player"
* The names of the players that contain links (tags $h$l$p), correctly
  displayed on tab "Monitoring"

General
* Work with the ftp:// in the passive mode
* Compatiblity with PHP 5.3 +

v1.0
* A lot of new ...

v0.62b
* Fixed error with names that contain "()"
* Added support for codes $h and $l in player's nicknames
* Player that come to server through LAN and Internet not form a clan
* Fixed error with wrong player's ranks
* Added new "bad" team-tags in tmos_config_mp.php
* Added old userbars 350x20
* Added "white-green" color scheme

v0.62a
* Fixed error: BLOB/TEXT column 'description' can't have a default value
v0.62
* Added DB converter from previous versions of statistics. Supports update
  from v0.50, v0.51, v0.60, v0.61
* Changed points calculated system
* Improve team-tags discern function. Now supports UTF-8 characters
* Fixed bug with tracks "mood", that give "track.gbx" lines in
  the statistics for standard Nadeo United tracks
* Rewritten tmos_config_mp work logic. No need "reset" database now, only
  reparse statistics
* Added clan's members registration in tmos_config_mp
* Added deleting tracks feature in tmos_config_mp

v0.61
* Added config file, that allow specify:
   - team-tags and team-descriptions
   - ignored team-tags
   - player's accounts for unite their results
   - ignored player's accounts
* Improve team-tags discern function
* Added gZip compression of html pages
* New format xx / yy for column "place" in personal players statistics. Where
  xx - finish place, yy - total count of results for this track
* Added "gray" color scheme
* Fixed founded errors 

v0.60
* Added support for United
* Parser's engine rewritten. The parsing process going more quickly and
  consumes less RAM
* Added cache of html pages
* Each registered server can have several log-files and directories with tracks
* Players on /lan servers discern by nickname without color codes in lower case
* Tracks discern by UID
* Changed the scoring system
* Added second statistics for last few days
* Added team-stats
* May be added unbounded count of userbars
* Player names with UTF-8 characters correctly displayed on userbars
  (need unicod font)
* Added new field in table "Tracks" - better player at the track
* Added new options for the administrator:
  - color scheme
  - amount of points for medals and finish
  - the minimum number of team members to display in the statistics
  - the minimum number of player's points to display in the statistics
  - the time period for calculation "current" statistics
  - the font and font size for the userbars
  - caching pages
* Added "black" color scheme
* Added text "statistics update" while parsing
* Fixed founded errors 
TMOS plugin for (X)Aseco/Fast

Image Image Image
Image Image Image

Code: Select all

v5
- compatiblity with PHP 5.3 +

v4
- rewritten for compatiblity with TMOS v1.0

v3
- rewritten for compatiblity with FAST
- fixed errors that crashed Aseco
Last edited by sys1 on 05 Jul 2009 07:09, edited 13 times in total.
Image

Pimousse
cyclist
cyclist
Posts: 39
Joined: 15 Mar 2006 17:17
Location: France
Contact:

Post by Pimousse » 28 Apr 2006 15:00

Well done sys1 :)
Image
Server >100 random custom tracks, the very best-of :)
All stats and records are saved into the database, check all of them on the website interface.

sys1
happy cruiser
happy cruiser
Posts: 141
Joined: 13 Feb 2006 07:35
Location: Russian Federation
Contact:

Post by sys1 » 28 Apr 2006 20:22

In options forgot set english as default language :) Fixed in new archive
Image

FOUINE
pedestrian
pedestrian
Posts: 9
Joined: 22 Mar 2006 09:46
Contact:

Post by FOUINE » 29 Apr 2006 19:15

thank you! good job! :-D

Funnyman
speedy pilot
speedy pilot
Posts: 328
Joined: 31 Mar 2006 06:08
Owned TM-games: TMS, TMU, TMF
Location: Netherlands
Contact:

Post by Funnyman » 06 May 2006 10:12

I still love ur tool but it has a bug

I play the game with two different computers but with the same login, the database now has two funnyman drivers

So i thought i change the nickname and that way see difference in the pc's
and now i got three accounts in the db
so:
If a player changes his nickname it won't be updated in the database it just ads a new player . . .
If a player joins from other pc it won't add to the players original account it will again create a new player. . . :cry:

How can i solve this ?
Ð Ξ F u n n y M a n
Image

Pimousse
cyclist
cyclist
Posts: 39
Joined: 15 Mar 2006 17:17
Location: France
Contact:

Post by Pimousse » 06 May 2006 19:31

I've noticed the same bug, in the first version too. Sometimes, the login name thats insert into the database includes a caps for the first caracter, it is really weird but it doesn't come from TMOS,, the bug comes from the dedicated server, which means you can't fix it, the utlimate solution is to edit your log file and replace with a text editor the logins (for instance) Funnyman by funnyman, and parser after doing that.
Maybe sys could add the strlower() function into the parser for logins.... i tried but i couldn't find the right place, the parser file is a bit too difficult to get for me.
Image
Server >100 random custom tracks, the very best-of :)
All stats and records are saved into the database, check all of them on the website interface.

sys1
happy cruiser
happy cruiser
Posts: 141
Joined: 13 Feb 2006 07:35
Location: Russian Federation
Contact:

Post by sys1 » 06 May 2006 21:17

It's not a bug. Parser specificate (spot?) player by NickName, not by account. So MyNickName <> $wMyNickName, and will be two records on database, even if player have one account. In next wersion i'll do optional switch a) specificate player by NickName b) specificate player by account. In b) case, when player change his NickName, record in db will update with new NickName. (strtolower - yes, it's too/also?)

You can't solve this, because need rewrite parser sourse code ...

Funnyman
> If a player joins from other pc it won't add to the players original account it will again create a new player. . .

Is it /lan server ?
Image

Funnyman
speedy pilot
speedy pilot
Posts: 328
Joined: 31 Mar 2006 06:08
Owned TM-games: TMS, TMU, TMF
Location: Netherlands
Contact:

Post by Funnyman » 06 May 2006 21:47

sys1 wrote:Funnyman
> If a player joins from other pc it won't add to the players original account it will again create a new player. . .

Is it /lan server ?
Both
i run a dedi Digital Evolution
I usualy play on it with a other pc conneting through internet
I noticed when i play on the dedi server connecting through lan and internet
but same login and different nick
Ð Ξ F u n n y M a n
Image

sys1
happy cruiser
happy cruiser
Posts: 141
Joined: 13 Feb 2006 07:35
Location: Russian Federation
Contact:

Post by sys1 » 07 May 2006 08:07

Funnyman wrote: i run a dedi Digital Evolution
http://dedi.selfip.com/tmos/tmos_viewer ... yers&sid=1 ?

Very oddly(singularly) ... Maybe it's really bug. Can you give me GameLog.txt file ? (I have only /lan server, but log-files /lan and /internet servers is different. So i can't do full tests)
Image

Funnyman
speedy pilot
speedy pilot
Posts: 328
Joined: 31 Mar 2006 06:08
Owned TM-games: TMS, TMU, TMF
Location: Netherlands
Contact:

Post by Funnyman » 07 May 2006 09:41

This is me, login name is always r_ch@rd
Image
Image
Image

Link to my logfile

tnx 4 helping out :D
Ð Ξ F u n n y M a n
Image

sys1
happy cruiser
happy cruiser
Posts: 141
Joined: 13 Feb 2006 07:35
Location: Russian Federation
Contact:

Post by sys1 » 07 May 2006 11:33

You have 2 different NickNames:
- $s$i$f80F$FF0unnyman
- $i$f80F$ff0unnyman
so 2 records in db.

In next version by account ...
Image

Funnyman
speedy pilot
speedy pilot
Posts: 328
Joined: 31 Mar 2006 06:08
Owned TM-games: TMS, TMU, TMF
Location: Netherlands
Contact:

Post by Funnyman » 07 May 2006 12:13

:oops: oops :oops:

Im such a nub
Ð Ξ F u n n y M a n
Image

Funnyman
speedy pilot
speedy pilot
Posts: 328
Joined: 31 Mar 2006 06:08
Owned TM-games: TMS, TMU, TMF
Location: Netherlands
Contact:

Post by Funnyman » 08 May 2006 09:21

Search only works on full name

So if i would wanna look for my name searchin for fun gives no result. . . .

btw shouldn't this thread belong in toolbox section ?
Ð Ξ F u n n y M a n
Image

Gruikdadude
highway camper
highway camper
Posts: 2
Joined: 09 May 2006 10:02
Contact:

Errors

Post by Gruikdadude » 09 May 2006 10:14

Hi there and thanks for your nice tool!

1/ I'm running a TMN Server (TmNationsESWC - 0.1.7.4) on Debian Testing and I get this message when I parse with tmos 0.50 (via tmos_admin.php or via command line:

PHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{] applicat ion/x-awk invalid in Unknown on line 0
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 44 bytes) in /www/stats/include/tmos_lib.inc.php on line 660


2/ The score and the awards also equal 0 in the "Player ranking" (https://www.gorgoyle.com/tmn-stats/tmos ... yers&sid=1)

I'm a bit reluctant to install either GD or Freetype on this server but it might solve my problem, what do you reckon?

Can anyone help?
Thanks in advance for your reply.

Gruikdadude
highway camper
highway camper
Posts: 2
Joined: 09 May 2006 10:02
Contact:

Sorry!

Post by Gruikdadude » 09 May 2006 13:01

I just found out that my problem was is the log format...
I destroyed the old logs and everything is going fine now!
Thanks again!

Post Reply