Big Brother Bot Forum

Add-Ons => Plugins by flinkaflenkaflrsk => Topic started by: flinkaflenkaflrsk on February 01, 2009, 06:14:59 AM



Title: Mapcycle plugin [Urt4.1]
Post by: flinkaflenkaflrsk on February 01, 2009, 06:14:59 AM
Description:

This plugin- provides a solution for mapcycle management for Urban Terror.
We found it pretty annoying that after a mapvote the cycle would return to the first map in the mapcycle.txt file.
This plugin will continue where the mapcycle left off before the vote. It comes with a part for the B3 bot, which
can managae mapcycle and gametype. And a part which you can implement in your echelon. It will need to create 3
new tables in total for full functionality. 2 tables for basic functionality.

Changelog :
24-01-2009 v 0.0.2 - Webfront created revamp of the whole code and posibility to use different server identifiers - Flinkaflenkaflrsk
01-02-2009 v 0.0.3 - First plugin status for tryout - Flinkaflenkaflrsk
02-02-2009 v 0.0.4 - Changed the stop minutes and webfront "server" naming - Flinkaflenkaflrsk
28-02-2009 v 0.0.5 - made timer obsolete it is not needed in this context - Flinkaflenkaflrsk

Download : v0.0.5 (http://rapidshare.com/files/203937988/Mapcycle.zip)

Note : this plugin does not work if you are using B3 in remote FTP mode


Title: Re: Mapcycle plugin [Urt4.1]
Post by: Courgette on February 01, 2009, 07:55:59 AM
It is a nice idea :) Trying it right now.

I'm confused with the tabs called 'server1' to 7 on the echelon page 'mapselection.php'.... what are those ? If there are to match the 'mapcyclenumber' of the plugin config, wouldn't it make more sense to call those tabs mapcycle1..7 ?

Also, when using that plugin, do we have to disable the classic macycle option in ioUrTded config ?

Why stopminutes ? Wouldn't it be better to set the nextmap let say 30 sec after the begining of the round, instead of 'stopminutes' before the end of the round. Because if your round timelimit is 20 minutes, and stopminutes is 2, and someone call a nextmap vote at 5 min, this vote would be overridden by the plugin, am I right ?


Title: Re: Mapcycle plugin [Urt4.1]
Post by: Bakes on February 01, 2009, 10:50:50 AM
i'm thinking that this is like the maprotation plugin, so yes, you do have to have this instead of your stock. But I haven't seen it, so I can't tell you with any certainty.


Title: Re: Mapcycle plugin [Urt4.1]
Post by: flinkaflenkaflrsk on February 01, 2009, 12:56:59 PM
It is a nice idea :) Trying it right now.

I'm confused with the tabs called 'server1' to 7 on the echelon page 'mapselection.php'.... what are those ? If there are to match the 'mapcyclenumber' of the plugin config, wouldn't it make more sense to call those tabs mapcycle1..7 ?
Yes, it is because the basic idea was 1 mapcycle per server so that can be changed :)

Also, when using that plugin, do we have to disable the classic macycle option in ioUrTded config ?

It does not interfere with the classic server side configuration. If you turn off this mapcycle by using the command it will fall back on to the server one.

Why stopminutes ? Wouldn't it be better to set the nextmap let say 30 sec after the begining of the round, instead of 'stopminutes' before the end of the round. Because if your round timelimit is 20 minutes, and stopminutes is 2, and someone call a nextmap vote at 5 min, this vote would be overridden by the plugin, am I right ?
the stop minutes should at least be longer then the warmup time in front of each map, since B3 does not seem to differentiate and both sees them as a  game round start. If it is not longer then that it will mean that it will increase the counter by +2 every new map and therefore would skip one in the mapcyle.
The reason i have named them stop minutes (althought I think I will change it now) is because we run a more extended version of this plugin on our servers which require calculations from the end of the map :)

Thanks for your feedback!


Title: Re: Mapcycle plugin [Urt4.1]
Post by: flinkaflenkaflrsk on March 01, 2009, 02:37:31 AM
Version 0.0.5 released

Cleaned up some of the redundant code and took out a small bug


Title: Re: Mapcycle plugin [Urt4.1]
Post by: ripp on April 12, 2009, 09:36:55 PM
Having an issue with Mapcycle, i have it installed and it lists my maps but when i hit "add to cycle" the browser goes white screen and nothing ever happens to the database.

Note:  When selecting the mapcycle tab i have the following message and top of browser screen, only for mapcycle tab:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/username/domains/myserver.com/public_html/echelon/mapselection.php:4) in /home/username/domains/myserver.com/public_html/echelon/login/inc_authorize.php on line 3

Please help   =)


Title: Re: Mapcycle plugin [Urt4.1]
Post by: Courgette on April 13, 2009, 01:17:51 PM
that is symptomatic of a php error, can you check your webserver/php log to extract the matching error message ?


Title: Re: Mapcycle plugin [Urt4.1]
Post by: ripp on April 13, 2009, 01:28:54 PM
If i can find it you bet...  checking now


Title: Re: Mapcycle plugin [Urt4.1]
Post by: ripp on April 13, 2009, 03:49:47 PM
I have the server hosted on solidgameservers.com, i have a ticket in for them to figure out if i can get to the php.log because i see it no where.  Is this error being display on the screen have something to do why when adding maps to the queue it goes to a white screen and stops, never inserting the data into the database?  Maybe something else i might check out in the meantime?


Title: Re: Mapcycle plugin [Urt4.1]
Post by: misamix on March 10, 2010, 12:04:29 AM
is this works on remote running b3?

i cant setup on remote


Title: Re: Mapcycle plugin [Urt4.1]
Post by: Courgette on March 10, 2010, 02:40:52 AM
No, B3 has to run on game server for this plugin to work


Title: Re: Mapcycle plugin [Urt4.1]
Post by: Tiracon on April 12, 2010, 06:41:52 AM
hello,
i have the same problem

Quote
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/echelon/mapselection.php:4) in /var/www/echelon/login/inc_authorize.php on line 3

this mistake is only on Mapcycle Management (echlon works great)
i can't find a log what can help :(

so i hope anyone can help me

thanks
Tira


Title: Re: Mapcycle plugin [Urt4.1]
Post by: bagu on April 21, 2010, 12:39:01 PM
Hi,

i have some maps which name don't start by ut_ neither ut4_
How can i add them please ?


Title: Re: Mapcycle plugin [Urt4.1]
Post by: iShOxX on September 04, 2010, 04:56:42 AM
Can this plugin work with ftp?To locate the mapcycle with ftp