[Xaseco] Custom TA timelimit for each track (26.11.2009)

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
reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

[Xaseco] Custom TA timelimit for each track (26.11.2009)

Post by reaby » 26 Nov 2009 05:36

Custom Timelimit
Initial release 26.11.2009

This release is just a simple plugin to set custom TA time for each track.

### USAGE ###
to set timelimit of 5min 30sek for current track
use chat command /timeset 5:30

Be alerted that there is no checks of the time you set, so remember to use always mm:ss time format!
and do not use times over 60 min.

### Install ###

Install the table custom_tracktimes.sql to your local xaseco database.

Apply http://koti.mbnet.fi/reaby/xaseco/plugi ... cktime.zip to plugins.xml

Add your logins to admin-list on row 39, so you can actually use it in game.
Last edited by reaby on 17 Feb 2010 01:25, edited 2 times in total.

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: [Xaseco] Custom TA timelimit for each track

Post by Jackel » 26 Nov 2009 06:07

what's wrong with the Autotime option that exists in Xaseco already? it sets round time for each track based on author time multiplied by a time ratio, and has a min and max limit so nothing is too short or too long.
Founder and Admin of Cobra Gaming Systems.

Image
Image
Image

reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

Re: [Xaseco] Custom TA timelimit for each track

Post by reaby » 26 Nov 2009 06:13

Well, there's nothing wrong with autotime, but one guy needed this sort of plugin so i created one and now released it, if some body else needs to set own times to tracks without autotime.

User avatar
Katagrama
road tourist
road tourist
Posts: 86
Joined: 22 Nov 2008 18:31
Owned TM-games: TMNF
Location: Brazil

Re: [Xaseco] Custom TA timelimit for each track

Post by Katagrama » 27 Nov 2009 18:48

Jackel wrote:what's wrong with the Autotime option that exists in Xaseco already? it sets round time for each track based on author time multiplied by a time ratio, and has a min and max limit so nothing is too short or too long.
Some multilaps tracks have 10 seconds lenght but the author time is like 3 minutes long because it is a 20 lap track. When playing these tracks in Time-Attack mode, the Autotime option that exists in Xaseco will set a very long time for these tracks.
Also, I've seen great small tracks where the author started to validate the track, then decided to drink a cup of coffe, take a shower, and then complete the track.
If you have a server with these tracks and some endurance tracks together, it will be a complete mess.
So, I think this plugin will be very useful for servers with these kind of tracks. Thank you for sharing! :thumbsup:

2 questions to the author:
Can I use this plugin together with the Xaseco Autotime?
What happens if I don't set a custom timelimit for a track?
Image

reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

Re: [Xaseco] Custom TA timelimit for each track

Post by reaby » 27 Nov 2009 21:05

Can I use this plugin together with the Xaseco Autotime?

To be honest, I haven't tried it, but I think it indeed can run with autotime. But the loading order on plugins.xml will set which one gets priority, as these both uses callbacks to server to set TA timelimit, so the later one will get priority.

What happens if I don't set a custom timelimit for a track?
time limit of track will be set to 5 min.

and to your problem..
actually if you load first autotime and then this plugin and from plugin disable setting the 5 minute time limit for tracks not in database, you should get the wished behaviour of these 2 combined plugins.

and disabling is as simple as deleting or commenting lines 77-79

User avatar
Katagrama
road tourist
road tourist
Posts: 86
Joined: 22 Nov 2008 18:31
Owned TM-games: TMNF
Location: Brazil

Re: [Xaseco] Custom TA timelimit for each track

Post by Katagrama » 28 Nov 2009 13:34

Thank you for the information. I will try it when I have some time.
Image

User avatar
Katagrama
road tourist
road tourist
Posts: 86
Joined: 22 Nov 2008 18:31
Owned TM-games: TMNF
Location: Brazil

Re: [Xaseco] Custom TA timelimit for each track

Post by Katagrama » 29 Nov 2009 16:33

I tried it, and seems to be working very well!
To run with autotime, I did the changes you said, but also I did another 2 changes:
1) move lines 82 and 83 to inside the "if" above
2) remove the function get_trackinfo to avoid a conflict
Thank you!
Image

Nanir
cyclist
cyclist
Posts: 32
Joined: 25 Dec 2009 10:30
Owned TM-games: TMUF

Re: [Xaseco] Custom TA timelimit for each track

Post by Nanir » 25 Dec 2009 10:53

I found this very useful, but it had quite some sideeffects for me, so I chose to merge both plugins.
Once I am done with it I will contribute it here.

Stay tuned.

User avatar
szkodnik
cyclist
cyclist
Posts: 30
Joined: 17 Aug 2009 16:27
Owned TM-games: TMU, TMS, TMO
Manialink(s): tmtp://#join=szkodziu
Location: Poland, Szczecin

Re: [Xaseco] Custom TA timelimit for each track

Post by szkodnik » 25 Dec 2009 19:10

Jackel wrote:what's wrong with the Autotime
Don't set correct time after track replay for example.
I don't know english, PHP and MySQL but I scratch along ; )
TM accs: 20szn, szkodziu, szkodnisia

Greco
happy cruiser
happy cruiser
Posts: 144
Joined: 13 May 2009 18:40
Owned TM-games: TMN

Re: [Xaseco] Custom TA timelimit for each track

Post by Greco » 26 Dec 2009 08:21

add a photo man to check your plugin before we download it

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: [Xaseco] Custom TA timelimit for each track

Post by Jackel » 27 Dec 2009 00:17

szkodnik wrote:
Jackel wrote:what's wrong with the Autotime
Don't set correct time after track replay for example.
never had an issue with that in the past.
Founder and Admin of Cobra Gaming Systems.

Image
Image
Image

User avatar
szkodnik
cyclist
cyclist
Posts: 30
Joined: 17 Aug 2009 16:27
Owned TM-games: TMU, TMS, TMO
Manialink(s): tmtp://#join=szkodziu
Location: Poland, Szczecin

Re: [Xaseco] Custom TA timelimit for each track

Post by szkodnik » 27 Dec 2009 09:09

You're playing on track A. When time is over and scoreboard is on the screen (track B loaded), you want to play A again. Press restart and look on time. It's time set for B.
I don't know english, PHP and MySQL but I scratch along ; )
TM accs: 20szn, szkodziu, szkodnisia

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

Re: [Xaseco] Custom TA timelimit for each track

Post by Xymph » 27 Dec 2009 09:45

szkodnik wrote:You're playing on track A. When time is over and scoreboard is on the screen (track B loaded), you want to play A again. Press restart and look on time. It's time set for B.
Known problem with the controller/dedicated interaction. At scoreboard time, it's too late. You need to use /admin replay (or the Replay button in the admin panel) before the scoreboard is displayed.
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: [Xaseco] Custom TA timelimit for each track

Post by Jackel » 27 Dec 2009 14:08

szkodnik wrote:You're playing on track A. When time is over and scoreboard is on the screen (track B loaded), you want to play A again. Press restart and look on time. It's time set for B.

Why I don't have that issue, none of my admins use the force restart at end of round. they all use /admin replay too make the re-load after the next round.
I'm sure this plugin might be a good idea, but it just seems it would be conflicting with the current auto-time feature in Xaseco already. you gonna set a custom time for a track, and have auto-time set the time limit for the round. I can see if you ran one without the other but not both at the same time. and I have no problem with a restarted round default too my secondary time limit in the event of a force restart seeing I have my time limit for that set at 5:30 which was the time limit I originally used back in the days of TMN.
Founder and Admin of Cobra Gaming Systems.

Image
Image
Image

Post Reply