XASECO2 (TM²C) v1.00

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) v1.00

Post by Xymph » 07 Jan 2012 17:28

As promised, a new release of XASECO2 is now available. This version 1.00 update brings the support for TM²C more or less in sync with that of the current XASECO for TMF and TMN ESWC, although there will be another X1 release as well to catch up with little things found while working on X2.

This release adds back the /mxrecs command, implements support for the Dedimania MaxRank system, and applies various smaller improvements and bug fixes as outlined in the full release notes:

New features and other changes in the v1.00 release of XASECO2:
  • * new /mxrecs command as well as MX World Record at the start of a new track, based on the updated MXInfoFetcher class and analogue to TMX support in XASECO, so see the relevant release notes for details
    * new support for the Dedimania MaxRank system:
    • * the default MaxRank is 30, meaning that players normally cannot attain a record outside the top-30
      * when a server MaxRank has been upgraded (still to be fully implemented by Slig) then all players on that server can attain records up to that larger rank
      * when a player's MaxRank has been upgraded (ditto) then that player can attain records up to his/her rank, or the server MaxRank if that is still larger
      * /dedirecs and /dedisectms show all known records for a track, including those outside the top-30
      * /dedilast and /dedirange also operate on the last known record, even if that is outside the top-30
      * the /dedistats output includes the Server MaxRank and your player MaxRank
    * the /jukebox, /add, /admin add and /admin addlocal commands now check the chosen track against the server settings and ignore it if it doesn't match
    * improved error checking and handling in the Dedimania system
    * added a dynamic idle period to the main loop in order to reduce the CPU load if system usage allows it (thanks oliverde8)
    * the game mode values are now available as constants Gameinfo::SCPT (0), RNDS (1), TA (2), TEAM (3), LAPS (4), CUP (5), STNT (6)
    * updated the MXInfoFetcher and MXInfoSearcher classes to include the URLs for downloading replays
    * removed the obsolete onChallengeListModified event
Bug fixes in the v1.00 release of XASECO2:
  • * /dedisectms shows no sector values and generates PHP warnings (ugly oops) -- fixed
    * the /dedisectms header shows the maximum number of local records instead of Dedimania ones -- fixed
    * /dedipb causes PHP warnings for a player without Dedimania record on a track with fewer than the maximum number of records -- fixed
Remember these installation/upgrade notes:

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.
Download it from http://www.gamers.org/tm2/ .

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
undef.de
Pit Crew
Pit Crew
Posts: 1305
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: XASECO2 (TM²C) v1.00

Post by undef.de » 07 Jan 2012 20:19

I love the Gameinfo constants. :pil

But in my opinion it would be better to write Gameinfo::SCRIPT, Gameinfo::ROUNDS and Gameinfo::STUNTS instead of the current one, because "i" have to look how they named.... but anyway very useful and already used. :wink:

EDIT: Just noticed that the RecordsWidget did not display the WorldRecord from MX for a Map, but if i click on it then the Window did display the Records.

EDIT2: I have found the problem, change plugin.mxinfo.php line 15 from

Code: Select all

//Aseco::registerEvent('onBeginMap2', 'mx_worldrec');
to

Code: Select all

Aseco::registerEvent('onBeginMap2', 'mx_worldrec');
And EDIT3:

The chat message like "MX World Record: 0:43.425 by NICKNAME" did not display the time. Here is the fix for that:

Edit plugin.mxinfo.php line 32 from

Code: Select all

      ($aseco->server->gameinfo->mode == Gameinfo::STNT ?
       $mxdata->recordlist[0]['replaytime'] :
       formatTime($mxdata->recordlist[0]['time'])),
to

Code: Select all

      ($aseco->server->gameinfo->mode == Gameinfo::STNT ?
       $mxdata->recordlist[0]['stuntscore'] :
       formatTime($mxdata->recordlist[0]['replaytime'])),
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

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) v1.00

Post by Xymph » 07 Jan 2012 22:35

undef.de wrote:But in my opinion it would be better to write Gameinfo::SCRIPT, Gameinfo::ROUNDS and Gameinfo::STUNTS instead of the current one, because "i" have to look how they named....
You'll get used to it. :wink: I thought they looked better at approximately the same length, and since 4 characters sufficed for four of the modes, the others had to be abbreviated a bit.
undef.de wrote: EDIT2: I have found the problem, change plugin.mxinfo.php line 15 from
And EDIT3:
The chat message like "MX World Record: 0:43.425 by NICKNAME" did not display the time. Here is the fix for that:

Edit plugin.mxinfo.php line 32 from
Hmm, good catches, must have been sleepy when working on those bits. :oops: And the 'stuntscore' change was needed in two more places. In my defense though, there are no Stunt maps yet, so that part couldn't be tested.

Thanks for catching that, the main zip has been updated, and the updated plugin.mxinfo.php is also available separately for the <20 people who already downloaded that.
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
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) v1.00

Post by sbone » 08 Jan 2012 11:29

Hi,

Thanks for your job Xymph ;)
One question please, in musicserver.xml i can see

Code: Select all

 <!-- full http link to directory holding the song files     -->
        <!-- http server must allow direct download of those files  -->
        <!-- OR a path below the server's UserData directory (e.g.  -->
        <!-- "Music/") which allows serving songs without webserver -->
...
I'm using http links, but what is best performance for clients ?
Using http protocol or TM2 calls ?
(http serv and TM2 are on the same system for my case)

Thanks

@+
-- SbOne --
Public CSb1 portal : http://csb1.sbone.fr -/- Team CSb1 : http://sbone.fr

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) v1.00

Post by Xymph » 08 Jan 2012 11:33

sbone wrote:I'm using http links, but what is best performance for clients ?
Using http protocol or TM2 calls ?
(http serv and TM2 are on the same system for my case)
For clients, I don't know, but moving the burden of music serving out of the dedicated to a separate http server is always better for the dedicated server.
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
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) v1.00

Post by sbone » 08 Jan 2012 12:18

Update done, 0 error, 0 warning, all goes well ;)

I see : "when a server MaxRank has been upgraded"

How doing that ? Simply modify the value ?
Something to do on dedimania.net ?
What will be the futur ? All servers will use differents value ?

Sorry for this "near double" post ;)
-- SbOne --
Public CSb1 portal : http://csb1.sbone.fr -/- Team CSb1 : http://sbone.fr

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) v1.00

Post by Xymph » 08 Jan 2012 13:18

sbone wrote:I see : "when a server MaxRank has been upgraded"

How doing that ? Simply modify the value ?
Something to do on dedimania.net ?
What will be the future ? All servers will use different values ?
You'll have to ask Slig, he needs to set that up. I warned him these questions would come up. :wink: He seems to be AWOL the past two weeks though.
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

BBMV
sunday driver
sunday driver
Posts: 55
Joined: 18 Dec 2008 11:48
Owned TM-games: TMUF, TMS, TMO, TM2
Location: Germany -> Hessen -> Wiesbaden

Re: XASECO2 (TM²C) v1.00

Post by BBMV » 12 Feb 2012 08:52

Houston we have a problem...

Changed nothing but today i saw:

Code: Select all

[02/12,09:49:13] * Dataserver connection on Dedimania ...
[02/12,09:49:13] * Try connection on http://dedimania.net:8082/Dedimania ...
[02/12,09:49:15] Webaccess (dedimania.net:8082): Error(10061) Es konnte keine Ve
rbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte.
, connection failed!
[PHP Notice] Undefined index: Headers on line 272 in file E:\tm2server\bbmvladde
r1\xaseco2\plugins\plugin.dedimania.php
  !!!
  !!! Connection Error !!! ()
Webaccess (dedimania.net:8082): Error(10061) Es konnte keine Verbindung hergeste
llt werden, da der Zielcomputer die Verbindung verweigerte.
, connection failed!
  !!!
I try a Translation to english

Code: Select all

There was no connection made because the target machine refused the connection.

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) v1.00

Post by sbone » 12 Feb 2012 08:58

Dedimania is down for all servers, see http://dedimania.net/tm2stats/?do=stat&SrvOrder=MR-DESC
Works in progress ?
-- SbOne --
Public CSb1 portal : http://csb1.sbone.fr -/- Team CSb1 : http://sbone.fr

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) v1.00

Post by Xymph » 12 Feb 2012 09:15

sbone wrote:Dedimania is down for all servers, see http://dedimania.net/tm2stats/?do=stat&SrvOrder=MR-DESC
Works in progress ?
Slig made a coding change on the master server this morning but was apparently a little too sleepy to avoid a syntax error. :wink: I fixed it.
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

HaagseSmurf
cyclist
cyclist
Posts: 32
Joined: 13 Dec 2010 16:41
Owned TM-games: TMUF
Location: Netherlands
Contact:

Re: XASECO2 (TM²C) v1.00

Post by HaagseSmurf » 12 Feb 2012 09:15

Thx for the fix Xymph :thumbsup:

Greetz,
HaagseSmurf

Go visit our ManiaPlanet 3 Smurfen.net servers in the Netherlands.
You can also check our website Smurfen.net for all info and more about our
TM2 Smurfen.net Canyon servers,
the TM2 Smurfen.net Valleyserver,
the MP3 Smurfen.net Royalserver and our
MP3 Smurfen.net Siege 3v3 server.

BBMV
sunday driver
sunday driver
Posts: 55
Joined: 18 Dec 2008 11:48
Owned TM-games: TMUF, TMS, TMO, TM2
Location: Germany -> Hessen -> Wiesbaden

Re: XASECO2 (TM²C) v1.00

Post by BBMV » 12 Feb 2012 09:22

HaagseSmurf wrote:Thx for the fix Xymph :thumbsup:

Greetz,
signed

smz
wheelbarrow operator
wheelbarrow operator
Posts: 19
Joined: 25 Aug 2008 16:00
Owned TM-games: United forever

Re: XASECO2 (TM²C) v1.00

Post by smz » 13 Feb 2012 22:20

Little question, I dont know if it is xaseco, dedimania or MX related ^^

On the track "tiptoe" ( http://tm.mania-exchange.com/tracks/view/3789/tiptoe ), dedi wont upload new records we drive on our server. I checked and noticed that it has been updated on mx. We have the new version on our server. I dont fully understand how the new MX works, but I think you can update your track there while keeping the track ID. Which means that there are several track versions with the same MX ID around.

Could that be the reason that our records are not uploading ? If so, what would have to change ? Dedi or MX ? ^^ Or is there a seting that I missed ?

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: XASECO2 (TM²C) v1.00

Post by w1lla » 14 Feb 2012 09:59

smz wrote:Little question, I dont know if it is xaseco, dedimania or MX related ^^

On the track "tiptoe" ( http://tm.mania-exchange.com/tracks/view/3789/tiptoe ), dedi wont upload new records we drive on our server. I checked and noticed that it has been updated on mx. We have the new version on our server. I dont fully understand how the new MX works, but I think you can update your track there while keeping the track ID. Which means that there are several track versions with the same MX ID around.

Could that be the reason that our records are not uploading ? If so, what would have to change ? Dedi or MX ? ^^ Or is there a seting that I missed ?
http://dedimania.net/tm2stats/?do=stat& ... &Limit=400

MXID's dont have anything to do with it. Just open the track with notepad++ or any other pad and search for

Code: Select all

oaooYK4_XdXNIXiELwrWhx9rf5m
if its the same then your settings of dedimania are not good.

hope this clears some stuff out.

Code: Select all

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

User avatar
Mistral
Pit Crew
Pit Crew
Posts: 1304
Joined: 02 May 2006 15:13
Owned TM-games: tmuf
Contact:

Re: XASECO2 (TM²C) v1.00

Post by Mistral » 14 Feb 2012 14:51

Our settings seem to be just fine as it works for all tracks but TipToe.

Interesting, that you can find it twice on dedimania ... one with 0 races.

7018 TipToe Canyon st3ps 21 4.9524 104 0.9524 oaooYK4_XdXNIXiELwrWhx9rf5m
6537 TipToe Canyon st3ps 0 AvPlayers 0 TARatio MvnEQf0Vb0x3C30lWzLwlhG9c8h

Post Reply