Plugin Pack for FAST 3.2.0k

Discover FAST, a records keeping server control script with a public records system called Dedimania, which will show records from the server on tm-exchange.com

Moderators: Slig, TM-Patrol

User avatar
AstroGlider
smooth traffic navigator
smooth traffic navigator
Posts: 237
Joined: 13 Aug 2005 01:10
Owned TM-games: TMF, TMU, TMS, TMI?
Location: Tampa, Florida, USA

Plugin Pack for FAST 3.2.0k

Post by AstroGlider » 24 Apr 2008 02:46

Ok FAST fanatics, here is Glider's FAST Plugin pack. Even though they are in separate files, they
are intended to be used together. It's just easier to edit/maintain/debug/troubleshoot when the
code isn't all packed into one humongous file. Just unzip into the FAST directory, and restart the
script. If (when) you find some bug(s), I'd appreciate if you can give me some info about it, maybe
a snippet of the logfile or other aid to help me squash the bugs. Even better, if you fix or improve it,
please share so that all can benefit. That's mainly why I'm releasing this plugin pack.

Some acknowledgements are in order:
Thanks to Slig for making FAST in the first place to give us an alternative to ASECO (no offense intended :)
Slig, your feedback and guidance along the way has been invaluable.
Thanks to ViP-Alex and ViP-KoKo for their Onyx versions that inspired nextmap/maplist/lotto/betcha plugins

Now, some more specific info about each plugin:

1. Jukebox/maplist:

/list or /wish to search, click on mapname to put wish in jukebox.
/juke shows which maps are in the jukebox.
Restrictions: Players can only add one map every 15 minutes, and cannot wish maps that
have played in the last 10 rounds. Admins and guest-admins have no restrictions.
A couple of extra admin commands:
/cv: cancels vote in progress,
/specoff: no players allowed to spectate
/specon: all players allowed to spectate
/clearhistory: erases the map-history for jukebox purposes.
This plugin includes a nextmap manialink showing the mapname/enviro/author/time of the next map.
Also has dynamic timelimit adjuster. Admin command /dyn controls settings:
/dyn on/off: enables/disables it
/dyn min/max: sets the min-max range, default is between 4 (min) and 8 (max) minutes.
/dyn mult: sets the multiplier value, default is 7 times the author-time.


2. TMX adder:

Adds a map from tm-exchange. Currently for admins only. Usage:
/tmx [tmx#]: adds from united.tm-exchange.com,
/tmx sunrise [tmx#]: adds from sunrise.tm-exchange.com (demo powaaa ^^)
/tmx nations [tmx#]: self-explanatory


3. Copper Lottery/donation:

At the end of the round, if there's enough players connected, a random player
is selected. If the player is in official mode, and crossed the finish-line at least
once, they are awarded a random amount of coppers. Admin control:
/lot: shows current settings,
/lot on/off: turns the lottery on/off
/lot pl #: sets minimum # of players required for lottery drawing to take place (default: 3)
/lot min/max: sets the min/max range of coppers to pay out (default between 5-50 coppers)
A donation manialink is included to enable the funding of lotto payouts.


4. EZ-Bar:

The old EZ-Panel has been replaced with the EZ-Bar. Access to maplist/jukebox/guestbook/donation
features are now from the FAST menu on the top left, so the EZ-Bar now only contains admin/guest-admin
controls such as nuke map, skip to previous/next map, and restart map.
Full admins can control the guest-admin list as follows:
/vips: shows list of guest-admin logins
/addvip [login]: adds a player to the list of guest-admins
/delvip [login]: removes a player from the list.


5. Guestbook/private messaging:

/gb shows the guestbook messages. To add an entry, type /gb [message] from the chat.
Admins can delete offensive posts by clicking on the time-column of the entry.
Players can send private messages to other players by typing /pv [login] [message]
If the player is not connected, they will receive a notification when they connect to the server.
Both the guestbook and private messages are stored in files on the server, so they are not
lost if the server is restarted. Some commands:
/pv view: shows your messages,
/pv del: deletes your messages.
/pv view all: shows all messages to all players (admin only)
/pv del all: deletes all messages to/from all players (admin only)


6. MapDetail:

This simple plugin shows the details of the current map, such as name, author, enviro,
mood, UId, and bronze/silver/gold/author times. Just type /mapdetail to open.


7. Betcha:

This is a betting plugin similar to the Onyx Tm-Pari plugin by ViP-Alex and ViP-KoKo. They deserve
all the credit for the idea/conception. All I did was recreate it in FAST. (I tried contacting both
Alex and KoKo, but without success. If this plugin offends them, my intention was only
to give the same experience to FAST users.)
That said, the plugin works as follows:
At the beginning of a round, a manialink shows up at the center right of the screen, allowing bets
to be placed. Default copper values are 50, 100, 250, and 500 coppers. You can bet some other
amounts via chat by typing /bet [25, 50, 75, 100, 250, 500, 1000).
Once a bet has been initiated, other players can accept the bet by clicking 'Yes' on the "Accept?"
manialink, or type /accept in the chat. After 30 seconds into the map, the manialink changes to list
the participants in the bet, plus the number of coppers at stake.
At the end of the round, the winner is determined, and awarded the coppers. If nobody posted a time,
the coppers are refunded to all parties.

Download here: http://www.fileden.com/files/2007/1/10/624870/GPP.zip

Enjoy! ^^

Glider
Image
Image

BL|NK
cyclist
cyclist
Posts: 33
Joined: 28 Mar 2008 11:00
Owned TM-games: TMN, TMU, TMUF, TM2
Location: France / Lorraine / Meurthe et Moselle / Toul

Re: Plugin Pack for FAST 3.2.0k

Post by BL|NK » 24 Apr 2008 06:44

Thx a lot for this pack, i will test it soon :thumbsup:

@+++

User avatar
Lovemaster
sunday driver
sunday driver
Posts: 51
Joined: 28 Mar 2008 10:12
Owned TM-games: TMUF, TM2C, TM2S
Location: Covington, Georgia, USA
Contact:

Re: Plugin Pack for FAST 3.2.0k

Post by Lovemaster » 24 Apr 2008 07:44

Sounds good... Can this plugin be run alongside mcm's plugin.98.lb (with local recs and jukebox functions)?

User avatar
AstroGlider
smooth traffic navigator
smooth traffic navigator
Posts: 237
Joined: 13 Aug 2005 01:10
Owned TM-games: TMF, TMU, TMS, TMI?
Location: Tampa, Florida, USA

Re: Plugin Pack for FAST 3.2.0k

Post by AstroGlider » 24 Apr 2008 07:58

Lovemaster wrote:Sounds good... Can this plugin be run alongside mcm's plugin.98.lb (with local recs and jukebox functions)?
Haven't tried to do so, but it 'should' play nicely with others. I guess there's only one way to find out ^^
Image
Image

User avatar
Lovemaster
sunday driver
sunday driver
Posts: 51
Joined: 28 Mar 2008 10:12
Owned TM-games: TMUF, TM2C, TM2S
Location: Covington, Georgia, USA
Contact:

Re: Plugin Pack for FAST 3.2.0k

Post by Lovemaster » 24 Apr 2008 08:23

AstroGlider wrote:
Lovemaster wrote:Sounds good... Can this plugin be run alongside mcm's plugin.98.lb (with local recs and jukebox functions)?
Haven't tried to do so, but it 'should' play nicely with others. I guess there's only one way to find out ^^
LOL, just curious about two separate plugins competing for jukebox supremacy...

User avatar
AstroGlider
smooth traffic navigator
smooth traffic navigator
Posts: 237
Joined: 13 Aug 2005 01:10
Owned TM-games: TMF, TMU, TMS, TMI?
Location: Tampa, Florida, USA

Re: Plugin Pack for FAST 3.2.0k

Post by AstroGlider » 24 Apr 2008 08:36

Lovemaster wrote:LOL, just curious about two separate plugins competing for jukebox supremacy...
Well, I for one am not battling for supremacy, but I do like to have several options to choose from ^^
Image
Image

User avatar
Lovemaster
sunday driver
sunday driver
Posts: 51
Joined: 28 Mar 2008 10:12
Owned TM-games: TMUF, TM2C, TM2S
Location: Covington, Georgia, USA
Contact:

Re: Plugin Pack for FAST 3.2.0k

Post by Lovemaster » 24 Apr 2008 08:58

Just so there isn't any confusion, I wasn't referring to you and mcm strapping on the gloves and duking it out (metaphorically speaking, of course...) over who has the best jukebox plugin. I was referring to two plugins running in the same script trying to do the same thing... I'm just guessing that there could be some conflict there, which was why I originally posed the question.

User avatar
Lovemaster
sunday driver
sunday driver
Posts: 51
Joined: 28 Mar 2008 10:12
Owned TM-games: TMUF, TM2C, TM2S
Location: Covington, Georgia, USA
Contact:

Re: Plugin Pack for FAST 3.2.0k

Post by Lovemaster » 24 Apr 2008 09:29

I guess what I'm trying to say is, I'd like to try your plugins, but don't want to have to sacrifice local recs to do so... Damn, LOL, I should've just said that to begin with...

User avatar
AstroGlider
smooth traffic navigator
smooth traffic navigator
Posts: 237
Joined: 13 Aug 2005 01:10
Owned TM-games: TMF, TMU, TMS, TMI?
Location: Tampa, Florida, USA

Re: Plugin Pack for FAST 3.2.0k

Post by AstroGlider » 24 Apr 2008 09:42

Lovemaster wrote:I guess what I'm trying to say is, I'd like to try your plugins, but don't want to have to sacrifice local recs to do so... Damn, LOL, I should've just said that to begin with...
Heh, I guess that'll be my next project ^^
Image
Image

BL|NK
cyclist
cyclist
Posts: 33
Joined: 28 Mar 2008 11:00
Owned TM-games: TMN, TMU, TMUF, TM2
Location: France / Lorraine / Meurthe et Moselle / Toul

Re: Plugin Pack for FAST 3.2.0k

Post by BL|NK » 24 Apr 2008 18:41

Hi all,

I have installed this pack and plugin local record, i must modify this plugin because a lot of error with chat settings. I have also installed EZ Panel.
All run perfectly, just a display error and i cant resolve it, what can i do ?
Image

@LoveMaster i can post here my plugin.98.lb.php modified if you want ( i have just uncomment all commands and all chat settings)

Sorry for my bad english :oops:

@+++

User avatar
Lovemaster
sunday driver
sunday driver
Posts: 51
Joined: 28 Mar 2008 10:12
Owned TM-games: TMUF, TM2C, TM2S
Location: Covington, Georgia, USA
Contact:

Re: Plugin Pack for FAST 3.2.0k

Post by Lovemaster » 24 Apr 2008 19:37

BL|NK wrote:LoveMaster i can post here my plugin.98.lb.php modified if you want ( i have just uncomment all commands and all chat settings)
Yes, please do, thx.

BL|NK
cyclist
cyclist
Posts: 33
Joined: 28 Mar 2008 11:00
Owned TM-games: TMN, TMU, TMUF, TM2
Location: France / Lorraine / Meurthe et Moselle / Toul

Re: Plugin Pack for FAST 3.2.0k

Post by BL|NK » 24 Apr 2008 20:04

ok here it is my modified file : http://rapidshare.com/files/110138155/p ... b.php.html

@+++

Firebengel
pedestrian
pedestrian
Posts: 9
Joined: 04 Oct 2007 20:34
Owned TM-games: TMU

Re: Plugin Pack for FAST 3.2.0k

Post by Firebengel » 24 Apr 2008 20:55

Hi there....

some problems with that sa.plugin, too......

....in Code it says that there has to be some changes to locale.custom.xml.txt....what changes ???

...in saInit is missing :
if (!file_exists('fastlog/saVips.txt'))
saSaveVips();


... why using the Chat-Parser for /addvip instead of registerCommand in Init ?

....I cant find the Buttons Nuke,Next, Restart.

...How can i display the donation-Buttons all the time to all players ?

All in al i'd prefer the old-style sa-plugin, but you have done a great Job.


and i added a pay-function for the juke-pluging. If you like i send the modified code to you...just contact me via PN, AstroGlider.

User avatar
AstroGlider
smooth traffic navigator
smooth traffic navigator
Posts: 237
Joined: 13 Aug 2005 01:10
Owned TM-games: TMF, TMU, TMS, TMI?
Location: Tampa, Florida, USA

Re: Plugin Pack for FAST 3.2.0k

Post by AstroGlider » 24 Apr 2008 23:21

Firebengel wrote:Hi there....

some problems with that sa.plugin, too......

....in Code it says that there has to be some changes to locale.custom.xml.txt....what changes ???
In the first zipfile I uploaded, I forgot to put the locale.custom.xml.txt file. It has the text for the FAST menu (GuestBook, Maps, Juke, Donation, and EZ-Panel). If you're missing this custom file, it's in the zip now, so just redownload it and grab it.
Firebengel wrote: ...in saInit is missing :
if (!file_exists('fastlog/saVips.txt'))
saSaveVips();
Yes, you are right. I overlooked that one, thanks.
Firebengel wrote: ... why using the Chat-Parser for /addvip instead of registerCommand in Init ?
I did this for simplicity. If I'd registered a command instead, you'd have to type something like
/sa addvip 'login' instead of just /addvip 'login'. For compatibility, I will change this for the next version.
Firebengel wrote: ....I cant find the Buttons Nuke,Next, Restart.
The Nuke is a black 'X', the Next button is a right-arrow, and the Restart button is a refresh-icon. They will only show up for admins and guest-admins when they click on the EZ-Bar, but this may be related to your locale.custom.xml.txt issue described above.
Firebengel wrote: ...How can i display the donation-Buttons all the time to all players ?
Since it's at the bottom of the chat-area, I chose to remove it after the end of each round. If you want it to display all the time, change line 104 of plugin.53.lotto.php to
ml_donUpdateXml($k,$action='show');
Firebengel wrote: All in al i'd prefer the old-style sa-plugin, but you have done a great Job.
Thanks for the feedback, I appreciate it. :)

Glider
Image
Image

User avatar
AstroGlider
smooth traffic navigator
smooth traffic navigator
Posts: 237
Joined: 13 Aug 2005 01:10
Owned TM-games: TMF, TMU, TMS, TMI?
Location: Tampa, Florida, USA

Re: Plugin Pack for FAST 3.2.0k

Post by AstroGlider » 24 Apr 2008 23:24

BL|NK wrote:Hi all,

I have installed this pack and plugin local record, i must modify this plugin because a lot of error with chat settings. I have also installed EZ Panel.
All run perfectly, just a display error and i cant resolve it, what can i do ?
The locale.custom.xml.txt is missing, you can find it in the updated zip-file.
Image
Image

Locked