Custom TA Timelimit

by Reaby

System

XASECO

Description

Change the timelimit on tracks
This release is just a simple plugin to set a custom TA time for each track.

Chat commands

/timeset mm:ss 'sets mm minutes and ss seconds to current track time'

Installation

Installing this plugin requires some skills administrating mysql databases.
1. unzip plugin to xaseco base directory
2. if your xaseco database in mysql is named different than 'aseco', edit the first line in custom_tracktimes.sql
3. import custom_tracktimes.sql to your xaseco database, you can use some frontend program, or type in the shell in the xaseco base directory:
Code:
mysql -u root -p < custom_tracktimes.sql
note that it will ask you for mysql root password. if you prefer using different user, replace root with your username.
4. edit xaseco's plugins.xml and include the following line:
Code:
<plugin>plugin.custom_timelimit.php</plugin>
5. restart xaseco

Note

The plugin will override the TA timelimit set in the matchsettings file.

Settings

Add your login(s) to admin-list on line 39 on the plugin file.
If you need to adjust the TA timilimit set without custom tracktime, edit the line 78:
Quote:
$CustomTimeLimit= 5*60*1000;
You can change the minutes count, or use time already calculated at matchsettings.

Known Bugs

- there is no check of the time you set, so remember to use always mm:ss time format, and do not use times over 60 min.

Link(s)

Forum: https://www.tm-forum.com/viewtopic.php?t=23771

Download(s)

File Version Date Size Downloads
custom_TA_timelimit(1.0).zip 1.0 2010-02-20 1.73 KB 1719