Plugin autoTrackManager v0.2b original by ck|cyrus

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

Moderators: Xymph, TM-Patrol

Post Reply
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

Plugin autoTrackManager v0.2b original by ck|cyrus

Post by w1lla » 24 Jun 2008 17:05

viewtopic.php?p=56602 is the original version.

Code: Select all

	
Plugin autoTrackManager
	Removes/Deletes tracks from tracklist if track karma got lower than a given value

	Written by ck|cyrus
	martin@die-webber.com
	www.chaoskrieger.com
	
	modified by W1lla
	www.tmnfvenray.nl
	w1llaopgezwolle@gmail.com
	or w1lla in tm-forum.com
	Updated @ 12.01.2007 v2
	
	Updated @ 24.06.2008 v2b. w1lla
	added manialink support by w1lla 
	tested and double checked for errors all the way
	Updated @ 25.06.2008 v2b. w1lla
	Removed:
	Clear previous info
	$this->aseco->addCall("SendHideServerMessageToLogin", array($login));
	because it gave the login part which now is gone.
	removed $this->showInfoTMU($login); because of having no function.
	removed helpfunction due to lack of /atm;
	every action results in a manialink.

////////////////
// Installation

- Copy file "plugin.autotrackmanager.php" and "plugin.autotrackmanager.config.xml" to your aseco plugin directory
- Add <plugin>plugin.autotrackmanager.php</plugin> at the END of your "plugins.xml"
- Open file "plugin.autotrackmanager.config.xml" and edit the variables if you want to change them 
	(You can easily change them ingame. Simply type "/atm"
or the following commands:
/atm', 'Show autoTrackManager infos/options');
/atm setminvotes', 'Min. votes needed to activate autotrackmanager for this track');
/atm setpercent',  'percentage 40% bad 60% good');
/atm switchdebug',  'sets debug on/off');
/atm switchatmlogfile',  'Logfile to log removed tracks | Leave emtpy to disable logging ');
/atm switchwritematchsetting',  'Set to true/false if matchsetting file should be updated after ATM action');
/atm switchdbfree', 'Set to true/false if database entries should be deleted too');
/atm switchtrackhandle',  'Set to "remove" or "erase" to specify what to do with the track if it will be sort out ');
/atm switchstatus', 'sets to on/off');

- Have fun and enjoy playing with nice tracklists!


////////////////
// SUPPORT:

Visit: http://www.tm-forum.com/viewtopic.php?p=56602 is the original topic
msn:w1llaopgezwolle@gmail.com
[manialink=]mentiz manialink[/manialink] and then xaseco plugins
some screenshot:

http://www.tmnfvenray.nl/tm.bmp

with kind regards and happy removing w1lla

its still beta at this time.
Last edited by w1lla on 25 Jun 2008 09:03, edited 2 times in total.

Code: Select all

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

Yorkshire
smooth traffic navigator
smooth traffic navigator
Posts: 192
Joined: 21 May 2008 08:39
Owned TM-games: TMUF

Re: Plugin autoTrackManager v0.2b original by ck|cyrus

Post by Yorkshire » 24 Jun 2008 17:19

Thanks w1lla, will try it tomorrow :)

Regards,

Nick.

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

Re: Plugin autoTrackManager v0.2b original by ck|cyrus

Post by nouseforname » 24 Jun 2008 17:49

installed it.
seems fine. /atm command works. didn't try more till now.

only if somebody use /atm command his/hers login will be written into the chat.. looks strange and makes no sense.
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

User avatar
utal
speedy pilot
speedy pilot
Posts: 408
Joined: 30 Apr 2006 01:25
Owned TM-games: TMN, TMU, TMO, TMS
Location: Massamá, Portugal
Contact:

Re: Plugin autoTrackManager v0.2b original by ck|cyrus

Post by utal » 25 Jun 2008 01:18

tks a lot :D

TripleT
smooth traffic navigator
smooth traffic navigator
Posts: 193
Joined: 12 Feb 2008 15:14
Owned TM-games: TMNF
Location: Germany

Re: Plugin autoTrackManager v0.2b original by ck|cyrus

Post by TripleT » 25 Jun 2008 07:26

lol i played with the thought do write the plugin for xaseco. but i realized that it is a lot of work because i have no idea how to write a plugin for xaseco :roflol: so thanks w1lla and nice work! :thumbsup:

btw: is there any good guide how to write plugins?

TripleT

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: Plugin autoTrackManager v0.2b original by ck|cyrus

Post by w1lla » 25 Jun 2008 07:27

hmmm well not really but in plugin.ml_howto.php its explained how to use manialinks.

Code: Select all

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

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: Plugin autoTrackManager v0.2b original by ck|cyrus

Post by w1lla » 25 Jun 2008 07:54

updated head post:
removed:
showing login after every /atm
removed $this->showInfoTMU($login); because of having no function.
removed helpfunction due to lack of /atm;
every action results in a manialink.

Code: Select all

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

User avatar
utal
speedy pilot
speedy pilot
Posts: 408
Joined: 30 Apr 2006 01:25
Owned TM-games: TMN, TMU, TMO, TMS
Location: Massamá, Portugal
Contact:

Re: Plugin autoTrackManager v0.2b original by ck|cyrus

Post by utal » 25 Jun 2008 08:57

ty! this is a must for those public servers with 300+ tracks :)

TripleT
smooth traffic navigator
smooth traffic navigator
Posts: 193
Joined: 12 Feb 2008 15:14
Owned TM-games: TMNF
Location: Germany

Re: Plugin autoTrackManager v0.2b original by ck|cyrus

Post by TripleT » 27 Jun 2008 10:16

w1lla wrote:hmmm well not really but in plugin.ml_howto.php its explained how to use manialinks.
well i know it won't be much work for you but for me because i have no idea about the functions and so in xaseco
but thanks for the information i will have a look at the "howto" plugins :thumbsup:

TripleT

User avatar
Mathousal-IX
pedestrian
pedestrian
Posts: 8
Joined: 16 Aug 2008 15:15
Owned TM-games: TMU

Re: Plugin autoTrackManager v0.2b original by ck|cyrus

Post by Mathousal-IX » 03 Sep 2008 13:47

hello w1lla,
i have your new updated version, i'm masteradmin and i have xaseco v1.03.
The plugin doesnt work..."you have to be admin to use autotrackmanager admin functions".
The function isMasterAdmin is still working?
thx

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: Plugin autoTrackManager v0.2b original by ck|cyrus

Post by w1lla » 03 Sep 2008 16:41

Double post is enough.

A little error evolved after i stopped using xaseco for the moment.

But i started to recreate the error.
And fixed the error.

Will make a new clean headtopic about AutoTrackManager.

Code: Select all

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

Post Reply