XASECO (TMN/TMF) v1.13

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

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

XASECO (TMN/TMF) v1.13

Post by Xymph » 25 Apr 2011 13:42

After half a year, just when you didn't expect it anymore :D , I've scraped together enough new content to warrant a new XASECO release. This update sports a couple of new user commands, a challenge list cache to speed up all related commands, music server enhancements, new/updated events, a startup time-out mechanism, other improvements, and the inevitable bug fixes. Here are the complete v1.13 release notes:

New features and other changes in the v1.13 release of XASECO:
  • * new /ignore command to start a chat-based vote to ignore/mute a player -- usage and configuration are analogous to /kick, so see the v0.84 release notes for more info
    * new /lastwin command (via chat.lastwin.php) to re-open the multi-page window that was most recently closed; on TMN it's opened at the first page, on TMF at the current page -- single-page windows are not stored with the player data so those cannot be re-opened
    * implemented a challenge list cache mechanism to improve the speed of all /list lists (thanks xai), /best, /worst and /summary, especially on servers with a large number of tracks
    * the speed of /toprecs, /topsums and the calculation of all players' server ranks is further improved by optimized MySQL interaction, in addition to the above cache mechanism
    * updates for the (TMF-only) music server plugin (thanks undef.de):
    • * for http music servers, spaces and other special characters in the server path and/or song filename (and optional subdirectory) are now supported
      * after restarting a track, followed by the scoreboard and ChatTime countdown, the current song is now correctly shown
      * duplicate song removal is handled a litte better
      * upon XASECO shutdown, server music is disabled (thanks Terron)
    * rewrote /admin prev and /admin nextenv using the jukebox system so they keep working when tracks are jukeboxed
    * new and updated internal events:
    • * new onVoteUpdated event for handling the new TMF VoteUpdated callback (requires the latest server build 2011-02-21)
      * new onTracklistChanged event to signal changes to the track list, passing along an action string ('add', 'remove', 'rename', 'juke', 'unjuke', 'read' & 'write') and the pertaining track filename, or null for the 'read' & 'write' actions (thanks undef.de)
      * updated onJukeboxChanged event with action strings 'previous' and 'nextenv'
    * implemented a time-out mechanism in the connection of XASECO to the dedicated server (thanks La beuze):
    • * the mechanism allows you to (re)start the dedicated server and XASECO at the same time (or right after eachother) from the same script, and XASECO will keep retrying to connect until the server reaches status 4 (Running - Play), or the time-out is exhausted
      * this is especially useful on servers that take a long time to fully start up due to a large number of tracks
      * the time-out (in seconds) is configurable via new config.xml setting <tmserver><timeout> -- a warning is logged when it is missing
      * the GbxRemote modules have been updated to accommodate this connection time-out
    * improved detection of warm-up phase
    * enhanced the sorting order of equally-finished players in the rounds reports (Rounds/Team/Cup mode) to match that of the game (thanks .anDy)
    * the speed of /best, /worst, /summary and /stats is improved through optimization of the underlying get_recs function (thanks undef.de)
    * improved initialisation sequence (and its error handling) of the main program
    * on TMF, new 'avatar', 'language' and 'teamid' members in the Player object
Bug fixes in the v1.13 release of XASECO:
  • * /admin delrec doesn't work since v1.12 -- fixed (thanks Ouwe)
    * when using a player ID after /best, /worst, /summary and /stats, that player's records aren't found since v1.12 -- fixed
    * the help messages for /donate and /admin pay don't display correctly -- fixed (thanks xai)
    * when using NewRules in Rounds or Team modes, /server shows the normal points limit -- fixed, now the NewRules points limit is shown (thanks undef.de)
    * when there are no ranked players, /toprecs and /topsums produce gibberish output and PHP warnings -- fixed
    * /topwins causes PHP warnings for an empty players table -- fixed (thanks relaxedracer)
    * mysql_query SELECT results aren't always properly freed up with mysql_free_result -- fixed
Remember these installation notes:
  • Important:

    * To register your server with the central Dedimania database, you must copy the login and password values in the <masterserver_account> section from your server's dedicated.cfg (TMN) or dedicated_cfg.txt (TMF) file into the corresponding section of the dedimania.xml file, and add the 3-character nation abbreviation. Instead of the password you can also use the community code for your server by using the server login/password on the official site for your game (TMO/TMS/TMN) or on this page for TMF.
    * Open port 8002 on your firewall/router for communication with the central Dedimania server.
    * In the zip file, all *.XML and *.PHP config files are now located inside the newinstall/ directory. This means that you can (and have to) unzip the download and replace all the PHP code files, without worrying about overwriting your customized config files. However, for every XML/PHP config file that was updated (see above), you must replace your version with the one from the newinstall/ directory, or compare them and add any new/changed configuration settings to your version to insure the system remains working correctly.
    * For a new installation, go into the newinstall/ directory and move all *.XML files into the main directory, next to aseco.php, and *.PHP files into the includes/ directory.
Grab it from http://www.gamers.org/tmn/ .

Cheers,
Xymph
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
TheM
Pit Crew
Pit Crew
Posts: 286
Joined: 25 Feb 2009 16:43
Owned TM-games: TMU(F), TMN(F), TM2
Location: Brabant, Netherlands
Contact:

Re: XASECO (TMN/TMF) v1.13

Post by TheM » 25 Apr 2011 15:13

Nice one, will try to install it in the next couple of weeks :)

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: XASECO (TMN/TMF) v1.13

Post by Ant » 25 Apr 2011 18:33

Nice one, will be updating soon :thumbsup:

spyke
cyclist
cyclist
Posts: 48
Joined: 11 Mar 2011 16:41
Owned TM-games: TMU

Re: XASECO (TMN/TMF) v1.13

Post by spyke » 26 Apr 2011 00:09

hi,
fatal error ->unsuported format time (by basic.inc.php line 155)
appears at the end of round and the dedimania record is not recorded but chat message is ok !.
i'm sure that is not aseco.php and localdatabase.php... but i haven't test other plugin in the new release.

if someone could help or test ^^ ?

thx a lot

spyker

User avatar
movielord
sunday driver
sunday driver
Posts: 54
Joined: 16 Jul 2008 13:56
Owned TM-games: TMS-TMN-TMNF-TMUF

Re: XASECO (TMN/TMF) v1.13

Post by movielord » 26 Apr 2011 01:50

Xaseco wasnt loading at 1st, I had to remove reaby's custom chat 4.0 plugin from the plugins.xml file to get it to load properly.
Running smoothly now on 2 servers :1
Image

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

Re: XASECO (TMN/TMF) v1.13

Post by Xymph » 26 Apr 2011 05:51

spyke wrote:fatal error ->unsuported format time (by basic.inc.php line 155)
Don't vaguely retype messages, copy/paste the relevant excerpt of the log, that's much more useful.
spyke wrote:appears at the end of round and the dedimania record is not recorded but chat message is ok !.
i'm sure that is not aseco.php and localdatabase.php... but i haven't test other plugin in the new release.

if someone could help or test ^^ ?
Only if you post the log excerpt.
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

spyke
cyclist
cyclist
Posts: 48
Joined: 11 Mar 2011 16:41
Owned TM-games: TMU

Re: XASECO (TMN/TMF) v1.13

Post by spyke » 26 Apr 2011 10:48

sorry, I'm not familiar with your efforts.

this is what I found and here is the log.
LOG :
[04/26,12:09:27] [Dedimania] player neo_matrix finished with 82230 and took the 2. WR place!

"Fatal error: Unsupported operand types in /home/UCTPRO/includes/basic.inc.php on line 155"

this concerns the function :

Code: Select all

function formatTime($MwTime, $hsec = true) {

	if ($MwTime == -1) {
		return '???';
	} else {
		$minutes = floor($MwTime/(1000*60));
		$seconds = floor(($MwTime - $minutes*60*1000)/1000);
		$hseconds = substr($MwTime, strlen($MwTime)-3, 2);
		if ($hsec) {
			$tm = sprintf('%02d:%02d.%02d', $minutes, $seconds, $hseconds);
		} else {
			$tm = sprintf('%02d:%02d', $minutes, $seconds);
		}
	}
	if ($tm[0] == '0') {
		$tm = substr($tm, 1);
	}
	return $tm;
}  // formatTime
I think it could come from the function "report_round" from plugin.rounds.php

Well, I hope to have been more accurate this time ^ ^

spyker
Last edited by Xymph on 26 Apr 2011 17:14, edited 1 time in total.
Reason: Use code tags to post code...

Diana
pedestrian
pedestrian
Posts: 5
Joined: 10 Apr 2009 05:53
Owned TM-games: TMNF

Re: XASECO (TMN/TMF) v1.13

Post by Diana » 26 Apr 2011 12:17

I should understand that... At me on it is established costs WampServer2.1e-x32 , TrackmaniaServer_2011-02-21 , xaseco_113.
hilp my please
-----------------------

Code: Select all

# initialize XASECO ###########################################################
[XAseco] PHP Version is 5.3.4 on WINNT
[XAseco] Load settings [config.xml]
[XAseco] Load admin/ops lists [adminops.xml]
[XAseco] Load banned IPs list [bannedips.xml]
[XAseco] Load plugins list [plugins.xml]
[XAseco] Load plugin [plugin.localdatabase.php]
[XAseco] Load plugin [plugin.rounds.php]
[XAseco] Load plugin [chat.admin.php]
[XAseco] Load plugin [chat.help.php]
[XAseco] Load plugin [chat.records.php]
[XAseco] Load plugin [chat.records2.php]
[XAseco] Load plugin [chat.recrels.php]
[XAseco] Load plugin [chat.dedimania.php]
[XAseco] Load plugin [chat.players.php]
[XAseco] Load plugin [chat.players2.php]
[XAseco] Load plugin [chat.wins.php]
[XAseco] Load plugin [chat.laston.php]
[XAseco] Load plugin [chat.lastwin.php]
[XAseco] Load plugin [chat.stats.php]
[XAseco] Load plugin [chat.server.php]
[XAseco] Load plugin [chat.songmod.php]
[XAseco] Load plugin [chat.me.php]
[XAseco] Load plugin [plugin.tmxinfo.php]
[XAseco] Load plugin [plugin.track.php]
[XAseco] Load plugin [plugin.checkpoints.php]
[XAseco] Load plugin [plugin.dedimania.php]
[XAseco] Load plugin [plugin.rasp.php]
[XAseco] Load plugin [plugin.rasp_jukebox.php]
[XAseco] Load plugin [plugin.rasp_chat.php]
[XAseco] Load plugin [plugin.rasp_karma.php]
[XAseco] Load plugin [plugin.rasp_nextmap.php]
[XAseco] Load plugin [plugin.rasp_nextrank.php]
[XAseco] Load plugin [plugin.rasp_votes.php]
[XAseco] Load plugin [plugin.chatlog.php]
[XAseco] Load plugin [plugin.style.php]
[XAseco] Load plugin [plugin.panels.php]
[XAseco] Load plugin [plugin.uptodate.php]
[XAseco] Load plugin [jfreu.plugin.php]
[XAseco] Load plugin [mistral.idlekick.php]
[XASECO Fatal Error] Connection could not be established ! on line 712 in file C
:\Program Files\xaseco\aseco.php
Array
(
    [0] => Array
        (
            [function] => {main}
            [file] => C:\Program Files\xaseco\aseco.php
            [line] => 0
            [params] => Array
                (
                )

        )

    [1] => Array
        (
            [function] => run
            [class] => Aseco
            [file] => C:\Program Files\xaseco\aseco.php
            [line] => 2462
            [params] => Array
                (
                )

        )

    [2] => Array
        (
            [function] => trigger_error
            [file] => C:\Program Files\xaseco\aseco.php
            [line] => 712
            [params] => Array
                (
                )

        )

    [3] => Array
        (
            [function] => displayError
            [file] => C:\Program Files\xaseco\aseco.php
            [line] => 0
            [params] => Array
                (
                )

        )

)
For continuation press any key . . .
Last edited by Xymph on 26 Apr 2011 17:13, edited 1 time in total.
Reason: Use code tags to post code/configs/logs...

spyke
cyclist
cyclist
Posts: 48
Joined: 11 Mar 2011 16:41
Owned TM-games: TMU

Re: XASECO (TMN/TMF) v1.13

Post by spyke » 26 Apr 2011 12:41

simple question,

Is that your trackmania server is started?

Diana
pedestrian
pedestrian
Posts: 5
Joined: 10 Apr 2009 05:53
Owned TM-games: TMNF

Re: XASECO (TMN/TMF) v1.13

Post by Diana » 26 Apr 2011 13:27

spyke wrote:simple question,

Is that your trackmania server is started?
YES! The old version xaseco at me costs a year also all works well, but versions 12 and 13 both do one and туже which I have shown an error.
I have back passed to the old version which was, is let out 7 months ago

Diana
pedestrian
pedestrian
Posts: 5
Joined: 10 Apr 2009 05:53
Owned TM-games: TMNF

Re: XASECO (TMN/TMF) v1.13

Post by Diana » 26 Apr 2011 13:36

This already new
-----------------------

Code: Select all

# initialize XASECO ###########################################################
[XAseco] PHP Version is 5.3.5 on WINNT
[XAseco] Load settings [config.xml]
[XAseco] Load admin/ops lists [adminops.xml]
[XAseco] Load banned IPs list [bannedips.xml]
[XAseco] Load plugins list [plugins.xml]
[XAseco] Load plugin [plugin.localdatabase.php]
[XAseco] Load plugin [plugin.rounds.php]
[XAseco] Load plugin [chat.admin.php]
[XAseco] Load plugin [chat.help.php]
[XAseco] Load plugin [chat.records.php]
[XAseco] Load plugin [chat.records2.php]
[XAseco] Load plugin [chat.recrels.php]
[XAseco] Load plugin [chat.dedimania.php]
[XAseco] Load plugin [chat.players.php]
[XAseco] Load plugin [chat.players2.php]
[XAseco] Load plugin [chat.wins.php]
[XAseco] Load plugin [chat.laston.php]
[XAseco] Load plugin [chat.lastwin.php]
[XAseco] Load plugin [chat.stats.php]
[XAseco] Load plugin [chat.server.php]
[XAseco] Load plugin [chat.songmod.php]
[XAseco] Load plugin [chat.me.php]
[XAseco] Load plugin [plugin.muting.php]
[XAseco] Load plugin [plugin.tmxinfo.php]
[XAseco] Load plugin [plugin.track.php]
[XAseco] Load plugin [plugin.checkpoints.php]
[XAseco] Load plugin [plugin.dedimania.php]
[XAseco] Load plugin [plugin.rasp.php]
[XAseco] Load plugin [plugin.rasp_jukebox.php]
[XAseco] Load plugin [plugin.rasp_chat.php]
[XAseco] Load plugin [plugin.rasp_karma.php]
[XAseco] Load plugin [plugin.rasp_nextmap.php]
[XAseco] Load plugin [plugin.rasp_nextrank.php]
[XAseco] Load plugin [plugin.rasp_votes.php]
[XAseco] Load plugin [plugin.chatlog.php]
[XAseco] Load plugin [plugin.msglog.php]
[XAseco] Load plugin [plugin.style.php]
[XAseco] Load plugin [plugin.panels.php]
[XAseco] Load plugin [plugin.donate.php]
[XAseco] Load plugin [plugin.musicserver.php]
[XAseco] Load plugin [plugin.uptodate.php]
[XAseco] Load plugin [plugin.rpoints.php]
[XAseco] Load plugin [plugin.autotime.php]
[XAseco] Load plugin [plugin.access.php]
[XAseco] Load plugin [jfreu.plugin.php]
[XAseco] Load plugin [mistral.idlekick.php]
[XASECO Fatal Error] Connection could not be established ! on line 712 in file C
:\Program Files\xaseco\aseco.php
PHP Notice:  Trying to get property of non-object in C:\Program Files\xaseco\plu
gins\plugin.musicserver.php on line 159
PHP Stack trace:
PHP   1. {main}() C:\Program Files\xaseco\aseco.php:0
PHP   2. Aseco->run() C:\Program Files\xaseco\aseco.php:2462
PHP   3. trigger_error() C:\Program Files\xaseco\aseco.php:712
PHP   4. displayError() C:\Program Files\xaseco\aseco.php:0
PHP   5. Aseco->releaseEvent() C:\Program Files\xaseco\aseco.php:97
PHP   6. call_user_func() C:\Program Files\xaseco\aseco.php:1220
PHP   7. music_shutdown() C:\Program Files\xaseco\aseco.php:0

Notice: Trying to get property of non-object in C:\Program Files\xaseco\plugins\
plugin.musicserver.php on line 159

Call Stack:
    0.0049    1155344   1. {main}() C:\Program Files\xaseco\aseco.php:0
    0.0381    2163384   2. Aseco->run() C:\Program Files\xaseco\aseco.php:2462
    0.2088   14082456   3. trigger_error() C:\Program Files\xaseco\aseco.php:712

    0.2088   14082984   4. displayError() C:\Program Files\xaseco\aseco.php:0
    0.2090   14083296   5. Aseco->releaseEvent() C:\Program Files\xaseco\aseco.p
hp:97
    0.2090   14083328   6. call_user_func() C:\Program Files\xaseco\aseco.php:12
20
    0.2090   14083344   7. music_shutdown() C:\Program Files\xaseco\aseco.php:0

Array
(
    [0] => Array
        (
            [function] => {main}
            [file] => C:\Program Files\xaseco\aseco.php
            [line] => 0
            [params] => Array
                (
                )

        )

    [1] => Array
        (
            [function] => run
            [class] => Aseco
            [file] => C:\Program Files\xaseco\aseco.php
            [line] => 2462
            [params] => Array
                (
                )

        )

    [2] => Array
        (
            [function] => trigger_error
            [file] => C:\Program Files\xaseco\aseco.php
            [line] => 712
            [params] => Array
                (
                )

        )

    [3] => Array
        (
            [function] => displayError
            [file] => C:\Program Files\xaseco\aseco.php
            [line] => 0
            [params] => Array
                (
                )

        )

)
For continuation press any key . . .
Last edited by Xymph on 26 Apr 2011 17:13, edited 1 time in total.
Reason: Use code tags to post code/configs/logs...

spyke
cyclist
cyclist
Posts: 48
Joined: 11 Mar 2011 16:41
Owned TM-games: TMU

Re: XASECO (TMN/TMF) v1.13

Post by spyke » 26 Apr 2011 14:44

hi,
i'm sorry, but it seems that the connection to your server can be established. the remaining errors is yet ... secondary.
have you checked the ports? is your xmlrpc port corresponding to your Dedicated file, your log server and your config.xml file?

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

Re: XASECO (TMN/TMF) v1.13

Post by Xymph » 26 Apr 2011 17:08

spyke wrote:this is what I found and here is the log.
LOG :
[04/26,12:09:27] [Dedimania] player neo_matrix finished with 82230 and took the 2. WR place!

"Fatal error: Unsupported operand types in /home/UCTPRO/includes/basic.inc.php on line 155"

[...]

I think it could come from the function "report_round" from plugin.rounds.php

Well, I hope to have been more accurate this time
Yes. But I need to see what value goes into that function. Add this after the function header:

Code: Select all

var_dump($MwTime);
and report back what it shows.
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

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

Re: XASECO (TMN/TMF) v1.13

Post by Xymph » 26 Apr 2011 17:12

Diana wrote:This already new
No, it's an old version.
Diana wrote:[XASECO Fatal Error] Connection could not be established ! on line 712 in file C
:\Program Files\xaseco\aseco.php
PHP Notice: Trying to get property of non-object in C:\Program Files\xaseco\plu
gins\plugin.musicserver.php on line 159
PHP Stack trace:
PHP 1. {main}() C:\Program Files\xaseco\aseco.php:0
PHP 2. Aseco->run() C:\Program Files\xaseco\aseco.php:2462
PHP 3. trigger_error() C:\Program Files\xaseco\aseco.php:712
There is no trigger_error statement on line 712, nor a run statement on line 2462.

When you upgrade to a new XAseco version, you have to make very sure that you updated all code files to the ones in the official distro, and synced up all your config files with any new settings defined in the files in the distro too.
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

spyke
cyclist
cyclist
Posts: 48
Joined: 11 Mar 2011 16:41
Owned TM-games: TMU

Re: XASECO (TMN/TMF) v1.13

Post by spyke » 26 Apr 2011 20:32

Xymph wrote: Yes. But I need to see what value goes into that function. Add this after the function header:

Code: Select all

var_dump($MwTime);
and report back what it shows.

End Round
NULL
[PHP Warning] array_merge(): Argument #2 is not an array on line 56 in file /home/UCTPRO/plugins/plugin.rounds.php
[PHP Warning] Invalid argument supplied for foreach() on line 63 in file /home/UCTPRO/plugins/plugin.rounds.php
R1
Begin Round

spyker

Post Reply