XASECO2 (TM²C) v0.95

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

XASECO2 (TM²C) v0.95

Post by Xymph » 25 Sep 2011 18:32

As promised, here is a new update to bring XASECO2 for TrackMania² Canyon to version 0.95. This release offers the eagerly-anticipated MX (Mania Exchange) support, and, uhm, little else (well, two bug fixes then). That should be enough though. :)

Without further ado, here are the full release notes:

New features and other changes in the v0.95 release of XASECO2:
  • * all references (command names, classes, variables, comments, etc) to TrackMania eXchange / TMX / tmx are replaced by Mania Exchange / MX / mx
    * new MX information support (based on the new MXInfoFetcher class) with the /mxinfo command, analogue to TMX info support in XASECO, so see the relevant release notes for details
    * new MX search support (based on the new MXInfoSearcher class) with the /xlist command, analogue to TMX search support in XASECO, so see the pertaining release notes for details
    * the /add (if enabled) and /admin add commands now work to add maps from MX, analogue to adding maps from TMX in XASECO
    * notes on MX support:
    • * the TMX section parameter in the above chat commands is no longer relevant, and has been removed
      * the /xlist command now returns at most 100 maps, rather than 500 from TMX in XASECO
      * MX does not yet offer support for replays and solo records, so the /mxrecs command and the MX World Record at the start of a new track are still disabled
Bug fixes in the v0.95 release of XASECO2:
  • * UTF-8 characters in (master)admin/operator titles in adminops.xml are not processed correctly -- fixed (thanks TheBigG)
    * the Auto TimeLimit plugin doesn't work in TimeAttack mode -- fixed (thanks Pesky)
Please read these installation/upgrade notes carefully:

Important:
  • 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/ .

Enjoy,
Xymph

PS. For those wondering, it's v0.95 instead of the planned v0.96 because /mxrecs couldn't be made available yet.
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
Jackel
speedy pilot
speedy pilot
Posts: 316
Joined: 06 Oct 2006 09:57
Owned TM-games: TMN,TMU,&TMS
Location: Florida, USA
Contact:

Re: XASECO2 (TM²C) v0.95

Post by Jackel » 25 Sep 2011 20:54

Thanks Xymph, been waiting for this release. :1
Founder and Admin of Cobra Gaming Systems.

Image
Image
Image

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.95

Post by Ouwe » 25 Sep 2011 21:36

Thank you very much for this fine release. :thumbsup:

User avatar
Gueut666
pedestrian
pedestrian
Posts: 5
Joined: 11 Sep 2011 05:26
Owned TM-games: TMU,TM²
Contact:

Re: XASECO2 (TM²C) v0.95

Post by Gueut666 » 26 Sep 2011 04:41

so cool thank you Xymph :3 :3 :3 :3 :3
Image
Image
Image
Image

«从々.»«ॐ²³»
sunday driver
sunday driver
Posts: 58
Joined: 28 Jun 2010 16:35
Owned TM-games: TMNF, TMUF, TM²C
Manialink(s): lolzone
Location: Germany
Contact:

Re: XASECO2 (TM²C) v0.95

Post by «从々.»«ॐ²³» » 26 Sep 2011 11:08

Hi,

first;
I upgradet from 0.93 and the upgrade notes have false folderspec.
Upgrading from v0.93 to v0.95:

The following files were added in v0.95: includes/mxinfofetcher.inc.php, mxinfosearcher.inc.php, plugins/plugin.mxinfo.php.

The following files were updated in v0.95: xaseco2.php, plugins.xml, includes/basic.inc.php, manialinks.inc.php, rasp.settings.php, plugins/chat.admin.php, plugin.autotime.php, plugin.rasp_jukebox.php.
second;
the add for mx is deactivated by default?
how to activate it?
- I think I did it right, but I still dont´t know the command.
in the command doc it is /add!
/add id "don´t work"
/admin add id "don´t work"
I tryed some different more combi, but still no message or wrong/missing parameters / unknown command.

thx for education.
TM² [url=maniaplanet://#join=loltech]Δ!lluminati Confirmed!Δ[/url]

HexenMeister
wheelbarrow operator
wheelbarrow operator
Posts: 24
Joined: 18 Apr 2008 10:05
Owned TM-games: TMU
Location: Germany, BW
Contact:

Re: XASECO2 (TM²C) v0.95

Post by HexenMeister » 26 Sep 2011 12:04

Hi, have you activated your plugin in plugins.xml?
like

Code: Select all

<plugin>plugin.mxinfo.php</plugin>
or this

Code: Select all

Aseco::addChatCommand('add', 'Adds maps directly from MX (<ID> ...)', true);
in plugins/chat.admin.php
Last edited by HexenMeister on 26 Sep 2011 13:00, edited 3 times in total.

«从々.»«ॐ²³»
sunday driver
sunday driver
Posts: 58
Joined: 28 Jun 2010 16:35
Owned TM-games: TMNF, TMUF, TM²C
Manialink(s): lolzone
Location: Germany
Contact:

Re: XASECO2 (TM²C) v0.95

Post by «从々.»«ॐ²³» » 26 Sep 2011 12:15

xD
what do u think?

The following files were updated in v0.95: plugins.xml
TM² [url=maniaplanet://#join=loltech]Δ!lluminati Confirmed!Δ[/url]

kremsy
road tourist
road tourist
Posts: 81
Joined: 29 Jun 2011 17:03
Owned TM-games: TMF, TM2
Contact:

Re: XASECO2 (TM²C) v0.95

Post by kremsy » 26 Sep 2011 13:28

thank you!

for the /add id "don´t work" -> you have to activatet it in rasp.settings!
You need a TM2 Server? Look on: http://www.tm2-server.net :)

New Shootmania Server available, check out: http://www.mania-server.net

«从々.»«ॐ²³»
sunday driver
sunday driver
Posts: 58
Joined: 28 Jun 2010 16:35
Owned TM-games: TMNF, TMUF, TM²C
Manialink(s): lolzone
Location: Germany
Contact:

Re: XASECO2 (TM²C) v0.95

Post by «从々.»«ॐ²³» » 26 Sep 2011 13:59

like this?

Code: Select all

<?php

//##################################################################
//#------------------------- Features -----------------------------#
//#  Specify here which features you would like to be activated    #
//#  You must enter true or false in lowercase only!               #
//##################################################################

//Set to true if you want the rank system active
$feature_ranks = true;
//Set to true if you want /nextrank to show the difference in record positions,
// i.e. the combined number of positions that your records need to be improved
// in order to catch up with the next better ranked player
$nextrank_show_rp = true;

//Set to true if you want all times recorded, and /pb command to be active
$feature_stats = true;
//Set to true to always show PB at map start
//If false and <show_recs_before> is 2 or 6 AND player has ranked record, OR
// player uses the records panel, then PB message is not shown at map start
$always_show_pb = false;

//Set to true ONLY if you use the karma feature.
//If you set this to true when you are not, it will produce errors
$feature_karma = true;
//Set to true if you allow ++ & -- votes as well as /++ & /--
$allow_public_karma = true;
//Set to true if you want to show the karma message at the start of each map
$karma_show_start = true;
//Set to true if you want to show vote counts & percentages
$karma_show_details = true;
//Set to true if you want to show players their actual votes
$karma_show_votes = true;
//Set to the number of times a player should have finished a map before
//being allowed to karma vote for it
//Note: this is the total number of finishes since the first time a player
//tried a map, not the number in the current session
$karma_require_finish = 3;
//Remind player to vote karma if [s]he hasn't yet
$remind_karma = 0;  // 2 = every finish; 1 = at end of race; 0 = none

//Set to true if you want jukebox functionality
$feature_jukebox = true;
//Set to true if you want jukebox to be extended to include the MX /add feature
$feature_mxadd = true;
//Set to true if you want jukebox to skip maps requested by players that left
$jukebox_skipleft = true;
//Set to true if you want jukebox to _not_ skip maps requested by admins
//(any tier) that left (and $jukebox_skipleft is true)
$jukebox_adminnoskip = true;
//Set to true if you want /add to permanently add maps to the server
$jukebox_permadd = false;
//Set to true if you want /admin add to automatically jukebox the downloaded map (just like a passed /add vote)
$jukebox_adminadd = true;
//Set to true if you want jukebox messages diverted to message window
$jukebox_in_window = false;

//Set to contact (email, ICQ, etc) to show in /server command, leave empty to skip entry
$admin_contact = 'YOUR@EMAIL.COM';

//Set to filename to enable autosaving matchsettings upon every map switch
$autosave_matchsettings = '';  // e.g. 'autosave.txt'

//Set to true if you want start-up to prune records/rs_times for players and
// maps deleted from database, and for maps deleted from the server
//Only enable this if you know what you're doing!
$prune_records_times = false;

//Set to true if you want to disable normal CallVotes & enable chat-based votes
$feature_votes = false;

//Set to true to perform XASECO2 version check at start-up & MasterAdmin connect
$uptodate_check = true;

//Set to true to perform global blacklist merge at MasterAdmin connect
$globalbl_merge = false;

//Set to global blacklist in XML format, same as <blacklist_url> in dedicated_cfg.txt
// e.g. http://www.gamers.org/tmf/dedimania_blacklist.txt (TMF-only)
$globalbl_url = '';

//##################################################################
//#-------------------- Performance Variables ---------------------#
//#  These variables are used in the main plugin.                  #
//#  They specify how much data should be used for calculations    #
//#                                                                #
//#  If your server slows down considerably when calculating       #
//#  ranks it is recommended that you lower/increase these values  #
//##################################################################

//Sets the maximum number of records stored per map
// Lower = Faster
$maxrecs = 100;

//Sets the minimum ammount of records required for a player to be ranked
// Higher = Faster
$minrank = 5;

//Sets the number of times used to calculate a player's average
// Lower = Faster
$maxavg = 5;

//##################################################################
//#-------------------- Jukebox Variables -------------------------#
//#  These variables are used by the jukebox.                      #
//##################################################################

//Specifies how large the map history buffer is.
//If a map that is in the buffer gets requested, it won't be jukeboxed.
$buffersize = 10;

//Specifies the required vote ratio for a MX /add request to be successful.
$mxvoteratio = 0.66;

//The location of the maps folders for saving MX maps, relative
//to the dedicated server's UserData/Maps/ directory:
//$mxdir for maps downloaded via /admin add, and user maps approved
//  via /admin addthis.
//$mxtmpdir for maps downloaded via /add user votes.
//There must be full write permissions on these folders.
//In linux the command will be:  chmod 777.
//Regardless of OS, use the / character for pathing.
$mxdir = 'MX';
$mxtmpdir = 'MXtmp';

//##################################################################
//#------------------------ IRC Variables -------------------------#
//#  These variables are used by the IRC plugin.                   #
//##################################################################

$CONFIG = array();
$CONFIG['server'] = 'localhost';  // server (i.e. irc.gamesnet.net)
$CONFIG['nick'] = 'botname';  // nick (i.e. demonbot)
$CONFIG['port'] = 6667;  // port (standard: 6667)
$CONFIG['channel'] = '#channel';  // channel (i.e. #php)
$CONFIG['name'] = 'botlogin';  // bot name (i.e. demonbot)
$show_connect = false;  //If set to true, the IRC connection messages will be displayed in the console.

//-----------------------------------------
//Do not modify anything below this line...
//-----------------------------------------
$linesbuffer = array();
$ircmsgs = array();
$outbuffer = array();
$con = array();
$jukebox = array();
$jb_buffer = array();
$mxadd = array();
$mxplaying = false;
$mxplayed = false;
?>
TM² [url=maniaplanet://#join=loltech]Δ!lluminati Confirmed!Δ[/url]

bass
pedestrian
pedestrian
Posts: 9
Joined: 26 Sep 2011 13:51
Owned TM-games: TMU,TM2

Re: XASECO2 (TM²C) v0.95

Post by bass » 26 Sep 2011 14:10

Begin Map
PHP Fatal error: Call to undefined function json_decode() in /home/TM2/xaseco2/includes/mxinfofetcher.inc.php on line 128

Load matchsetting, change track, crash ??

kremsy
road tourist
road tourist
Posts: 81
Joined: 29 Jun 2011 17:03
Owned TM-games: TMF, TM2
Contact:

Re: XASECO2 (TM²C) v0.95

Post by kremsy » 26 Sep 2011 15:21

@ «从々.»«ॐ²³»
yep like this

@ bass
do you updatet the xaseco2.php file?
and the mxinfofetcher.inc.php?
You need a TM2 Server? Look on: http://www.tm2-server.net :)

New Shootmania Server available, check out: http://www.mania-server.net

bass
pedestrian
pedestrian
Posts: 9
Joined: 26 Sep 2011 13:51
Owned TM-games: TMU,TM2

Re: XASECO2 (TM²C) v0.95

Post by bass » 26 Sep 2011 15:30

I did a new install.. so yes. those files are the new ones.

«从々.»«ॐ²³»
sunday driver
sunday driver
Posts: 58
Joined: 28 Jun 2010 16:35
Owned TM-games: TMNF, TMUF, TM²C
Manialink(s): lolzone
Location: Germany
Contact:

Re: XASECO2 (TM²C) v0.95

Post by «从々.»«ॐ²³» » 26 Sep 2011 15:33

kremsy wrote:@ «从々.»«ॐ²³»
yep like this
and how do I add a mx map?
TM² [url=maniaplanet://#join=loltech]Δ!lluminati Confirmed!Δ[/url]

bass
pedestrian
pedestrian
Posts: 9
Joined: 26 Sep 2011 13:51
Owned TM-games: TMU,TM2

Re: XASECO2 (TM²C) v0.95

Post by bass » 26 Sep 2011 16:50

bass wrote:Begin Map
PHP Fatal error: Call to undefined function json_decode() in /home/TM2/xaseco2/includes/mxinfofetcher.inc.php on line 128

Load matchsetting, change track, crash ??
I am able to /admin add <mx id>. The track goes in jukebox and when it loads i get the above fatal error.

Also get fatal errors when doing /mxinfo and /mxlist.

The only tracks loading that do not crash xaseco2 are the default beta tracks.

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

Re: XASECO2 (TM²C) v0.95

Post by Xymph » 26 Sep 2011 17:02

bass wrote:Begin Map
PHP Fatal error: Call to undefined function json_decode() in /home/TM2/xaseco2/includes/mxinfofetcher.inc.php on line 128
What's your OS and PHP version?
json_decode should be built in from v5.2.0 onwards.
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

Post Reply