XASECO2 (TM²C) v0.98

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: 5648
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

XASECO2 (TM²C) v0.98

Post by Xymph » 13 Nov 2011 19:27

A (mere?) month after Dedimania for TM² went online, here is the XASECO2 release to support it. This v0.98 update provides Dedimania world records in all supported game modes (TimeAttack, Rounds, Team, Cup and Laps) and works with the new API that was planned, uhm, rather long ago. :) This means replays of the best new/improved record on each track are submitted to the central system, and ghost replays of #1 world records will be available for download there in due time.

Further, this release includes some MX-related features that were forgotten in the previous release, but not yet the MX offline replay/records that became available just yesterday (that's for the next release). Rounding things off are a donation enhancement and a fix for an obscure bug.

Here are the full release notes:

New features and other changes in the v0.98 release of XASECO2:
  • * the return of Dedimania world records support, largely analogous to that in XASECO, so see the relevant release notes for details -- to recap:
    • * Dedimania is the online World Records database in operation since 2006 for all TrackMania games with the official site at http://www.dedimania.com/SITE/ and its TM² records database at http://www.dedimania.com/tm2stats/?do=stat
      * it maintains by default 30 records for each track in TimeAttack and Rounds modes, with the best single lap in Laps mode attributed to TA mode, and Team and Cup mode merged with Rounds mode -- Stunts and Script mode are currently unsupported
      * for TM² a track needs to contain at least one checkpoint (besides the finish) and have an author time of at least 10 seconds, while finish times below 8 seconds are also ignored -- in Rounds mode submissions with a non-default number of laps (RoundForcedLaps != 0) are not allowed
      * the plugin.dedimania.php plugin (together with several include files) handles all communication with the central Dedimania server, while the chat.dedimania.php plugin provides over a dozen chat commands (see /dedihelp)
      * the Dedimania system requires plugin.checkpoints.php (the checkpoints tracking plugin) to be included in plugins.xml, before plugin.dedimania.php
      * the Dedimania system communicates with the central Dedimania server over port 8082, so you must open that port on your firewall/router
      * the dedimania.xml configuration file defines various parameters and settings, including server login and the Dedimania registration code, which can be obtained here
      * a major feature of the new Dedimania API is that the validation replay of the best player's time on the current map is checked and submitted to the central Dedimania server, and if that time would be a new #1 world record then the same happens with the corresponding ghost replay
      * the ghost replays are stored in the GReplays/ subdirectory of UserData/Replays/, and if new dedimania.xml setting <keep_best_vreplays> is True then the validation replays are stored in the adjacent VReplays/ subdirectory as well
      * if a replay cannot be obtained from the dedicated server, or if it fails a check, then that player's time is skipped and the above process repeats for the next best time
      * an onDedimaniaRecord event is issued to indicate a new/improved/secured Dedimania record, including its position -- note that a Dedimania record is not official until confirmed after the end of a map
      * see also the XASECO v0.98 and v1.06 release notes on /dedicps, /cps and the checkpoints panel
      * many thanks as always to Slig for his generous help in building this system
    * forgotten in the previous release: the map name is now hyperlinked to the corresponding MX page (if available) in the /map, /playtime, /newrecs and /liverecs messages as well as the local record reports before and after each map, and the total playtime message at the end of each map in Rounds/Team/Cup mode
    * added more logging, including transaction IDs, of planet transactions
    * renamed internal event onChallengeListModified to onMapListModified -- the old event is still issued but deprecated, and will be removed in the next release, so plugins using it should update soon
    * this release requires the latest server build 2011-10-12
Bug fixes in the v0.98 release of XASECO2:
  • * in Laps mode, the checkpoints panel isn't updated on the first passage through the finish when a previous best lap time is already known -- fixed
Please read these installation/upgrade notes carefully:

Important:
  • To configure your server for the central Dedimania database, you must copy the login value in the <masterserver_account> section from your server's dedicated_cfg.txt file into the corresponding section of the dedimania.xml file. Further, register your server with the Dedimania system, generate a DedimaniaCode, and add that in dedimania.xml as well.
  • Open port 8082 on your firewall/router for communication with the central Dedimania server.
  • In the zip file, all *.XML and *.PHP config files are 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 here), 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/tm2/ .

Enjoy,
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

Ouwe
happy cruiser
happy cruiser
Posts: 152
Joined: 07 Sep 2007 15:01
Owned TM-games: TMUF, Canyon
Location: The Netherlands

Re: XASECO2 (TM²C) v0.98

Post by Ouwe » 13 Nov 2011 19:31

Thank you very much. Very nice job again. :thumbsup:

nighthawk4571
pedestrian
pedestrian
Posts: 8
Joined: 14 Jan 2009 21:42
Owned TM-games: TM Original, United

Re: XASECO2 (TM²C) v0.98

Post by nighthawk4571 » 14 Nov 2011 00:56

Xymph, you're a bloody genius - many many thanks for the time and effort you have (again) put into enriching 'our' favourite game :).

User avatar
sbone
happy cruiser
happy cruiser
Posts: 180
Joined: 13 Sep 2007 18:11
Owned TM-games: TMUF, TM2
Location: In the sky...
Contact:

Re: XASECO2 (TM²C) v0.98

Post by sbone » 14 Nov 2011 10:30

Ur still the boss ;)
Thanks for your great job Xymph ;)
-- SbOne --
Public CSb1 portal : http://csb1.sbone.fr -/- Team CSb1 : http://sbone.fr

thundercat
sunday driver
sunday driver
Posts: 64
Joined: 17 Feb 2009 10:28
Owned TM-games: TMU

Re: XASECO2 (TM²C) v0.98

Post by thundercat » 14 Nov 2011 10:51

I got it working on my server but i dont see dedimania window :(
only shows new records in writing

User avatar
iNDEX
cyclist
cyclist
Posts: 40
Joined: 13 Jan 2008 09:58
Owned TM-games: O,SX,2xUF,²C,²V
Manialink(s): ddstylemods
Contact:

Re: XASECO2 (TM²C) v0.98

Post by iNDEX » 14 Nov 2011 11:48

You have to enable the dedimaniawidget either in "plugins/fufi/fufi_widgets_xaseco.xml" or "recordseyepiece.xml".
iNDEX'''
Are you looking for coppers? I´ll trade my coppers for your planets.

thundercat
sunday driver
sunday driver
Posts: 64
Joined: 17 Feb 2009 10:28
Owned TM-games: TMU

Re: XASECO2 (TM²C) v0.98

Post by thundercat » 14 Nov 2011 13:45

iNDEX wrote:You have to enable the dedimaniawidget either in "plugins/fufi/fufi_widgets_xaseco.xml" or "recordseyepiece.xml".
<dedimaniawidget>
<enabled>true</enabled>
<title>Dedimania</title>
<states>

No luck :(

User avatar
iNDEX
cyclist
cyclist
Posts: 40
Joined: 13 Jan 2008 09:58
Owned TM-games: O,SX,2xUF,²C,²V
Manialink(s): ddstylemods
Contact:

Re: XASECO2 (TM²C) v0.98

Post by iNDEX » 14 Nov 2011 14:12

thundercat wrote:
iNDEX wrote:You have to enable the dedimaniawidget either in "plugins/fufi/fufi_widgets_xaseco.xml" or "recordseyepiece.xml".
<dedimaniawidget>
<enabled>true</enabled>
<title>Dedimania</title>
<states>

No luck :(
Hi thundercat,

if you are using the latest fufi.widgets (v2.05), then all the states are disabled by default. you can enable all states except for stunts mode.

regards!
iNDEX'''
Are you looking for coppers? I´ll trade my coppers for your planets.

User avatar
Electron
cyclist
cyclist
Posts: 38
Joined: 25 Jun 2010 18:20
Owned TM-games: TMUF, TM2
Manialink(s): GbxDump
Contact:

Re: XASECO2 (TM²C) v0.98

Post by Electron » 14 Nov 2011 18:30

XAseco2 v0.98 with Dedimania plugins works without problems for hours.
But after just another player joined the server, XAseco2 terminates:

[11/14,19:09:30] << player 248 joined the game [03011952 : @¨¨VENUS¨¨@ : France : 8000 : xx.xxx.xx.xxx]
[XASECO2 Fatal Error] Incomplete response on PlayerConnect - missing Banned field!
Array
(
)
on line 444 in file /home/TM2/CanyonFun/xaseco2/plugins/plugin.dedimania.php

Code: Select all

// check for banned player
if (!isset($response['Data']['params']['Banned']))
   trigger_error('Incomplete response on PlayerConnect - missing Banned field!' . CRLF . print_r($response['Data']['params'], true), E_USER_ERROR);
It was not possible to restart XAseco2 until this player leave the server.
Image

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

Re: XASECO2 (TM²C) v0.98

Post by Xymph » 14 Nov 2011 19:16

Electron wrote:XAseco2 v0.98 with Dedimania plugins works without problems for hours.
But after just another player joined the server, XAseco2 terminates:

[11/14,19:09:30] << player 248 joined the game [03011952 : @¨¨VENUS¨¨@ : France : 8000 : xx.xxx.xx.xxx]
[XASECO2 Fatal Error] Incomplete response on PlayerConnect - missing Banned field!
Array
(
)
on line 444 in file /home/TM2/CanyonFun/xaseco2/plugins/plugin.dedimania.php

Code: Select all

// check for banned player
if (!isset($response['Data']['params']['Banned']))
   trigger_error('Incomplete response on PlayerConnect - missing Banned field!' . CRLF . print_r($response['Data']['params'], true), E_USER_ERROR);
It was not possible to restart XAseco2 until this player leave the server.
Don't know why login 03011952 would result in an incomplete response from the Dedimania server, Slig might be able to figure that out.

Next time something like this happens, it might help if you'd set $dedi_debug = 3 at the start of plugin.dedimania.php, restart XAseco2, and find the "dedimania_playerconnect_cb - response[Data]" block for the pertaining login in the log file.
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
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: XASECO2 (TM²C) v0.98

Post by Slig » 14 Nov 2011 21:06

Probably caused by either the login encoded as integer in the xmlrpc request, or badly considered as int in dedimania code. I will try to check it out before tomorrow.
Anyway the dedimania response should not make xaseco2 terminate like this, is it really related to dedimania response ?... :p

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

Re: XASECO2 (TM²C) v0.98

Post by Xymph » 14 Nov 2011 21:27

Slig wrote:Probably caused by either the login encoded as integer in the xmlrpc request, or badly considered as int in dedimania code. I will try to check it out before tomorrow.
Anyway the dedimania response should not make xaseco2 terminate like this, is it really related to dedimania response ?...
Yes that is an intentional security abort, since I figure that if no valid response is available for a login, something fishy is going on. Although it's derived from the test in X1 where the 'Banned' field was called 'Status' and if that was missing, it meant that the xmlrpc module hadn't been upgraded to the latest version. So perhaps an abort is too strong in the X2 case.

Please let me know if it is something in the xmlrpc module that needs fixing.
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
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: XASECO2 (TM²C) v0.98

Post by Slig » 14 Nov 2011 22:30

Was an issue on dedimania side with numeric player logins. It should be fixed.

thundercat
sunday driver
sunday driver
Posts: 64
Joined: 17 Feb 2009 10:28
Owned TM-games: TMU

Re: XASECO2 (TM²C) v0.98

Post by thundercat » 14 Nov 2011 22:55

Dedimania widget non shown in the game after fiev hours of play
:roflol: i did restart xaseco and did not come back :(

Need some help :)

User avatar
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: XASECO2 (TM²C) v0.98

Post by Slig » 14 Nov 2011 23:06

on all maps ?
-> does /dedirecs show you records ?
- if no, try to set $dedi_debug = 1; (or more) in dedimania plugin file to see if you get some info about it in log.
- if yes, it is probably a bug in the widget plugin

or on some maps ?
-> are the concerned maps acceptable ?
Xymph wrote:* for TM² a track needs to contain at least one checkpoint (besides the finish) and have an author time of at least 10 seconds, while finish times below 8 seconds are also ignored -- in Rounds mode submissions with a non-default number of laps (RoundForcedLaps != 0) are not allowed
if not you should see messages in log about it (prefixed with '[Dedimania]')

Post Reply