[XAseco plugin] entermessage v0.1

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
folen
wheelbarrow operator
wheelbarrow operator
Posts: 15
Joined: 27 Jan 2008 18:49
Owned TM-games: TMU

[XAseco plugin] entermessage v0.1

Post by folen » 03 Jan 2009 16:32

Time to release my first plugin. It's quite small and not exceptionally useful. Basically it allows each player to set his own message when entering and leaving the server. The messages can use certain tags that will be replaced with player information, currently these are
  • %n - will be replaced with player nickname
  • %p - will be replaced with player ladderpoints
  • %w - will be replaced with player world ladder rank
  • %s - will be replaced with player server rank
  • %t - will be replaced with total number of ranked players on server
Normal TM formatting and colour tags should also work well. A few silly examples:
"%n enters the server carrying %p ladderpoints."
"Alarm! Server invaded by %n (%s/%t)."

The two commands added by this plugin are /entermessage and /exitmessage. They will both show the player how the new message will look when formatted. Since the jfreu-plugin already does the same with fixed messages you will probably want to disable that functionality if you use this plugin.

Implementation-wise it relies on being loaded after the localdatabase-plugin, and it does not open its own database connection, but relies on the existing one. This is somewhat dodgy, and at some point I may want to rectify this. It also adds the message data in two new fields in the PLAYERS-table. You do not have to alter the table manually as the plugin adds the fields to the table if necessary. I'm not sure if there is any policy on plugins changing already existing tables, the potential for future conflicts is of course there, but I chose the easy way for now since the amount of new plugins seems fairly limited. I'm very open to suggestions and patches for enhancements.

Cons
By using this plugin you will consume a bit more database space, and you open up slightly more potential for abuse (I assume that the enter and exitmessages will fly beneath the radar of any chat-filters like badwords, and I also assume muted players may be able to express themselves via these messages). There is of course a small performance hit as well, but I think it shouldn't be noticeable in most cases.

There is a default entermessage and a default exitmessage that are currently a result of me running this plugin on the servers for my team Royal Pandas, you will probably want to change these into something more generic og more fitting for your servers.

Todo
  • Put some more error checking in the code
  • Implement more tags (like nationality)
  • Add ingame help for users that explains the tags
  • Maybe make it easier to set default messages and possibly message length and such
Download here

djarrett
smooth traffic navigator
smooth traffic navigator
Posts: 235
Joined: 04 Jul 2006 15:01
Owned TM-games: TMO,TMS,TMN,TMU,TMUF
Location: Fayetteville,GA
Contact:

Re: [XAseco plugin] entermessage v0.1

Post by djarrett » 04 Jan 2009 13:01

Works Great...Thanks :1
People on my server are having great fun with it.
Last edited by djarrett on 08 Jan 2009 01:37, edited 1 time in total.

folen
wheelbarrow operator
wheelbarrow operator
Posts: 15
Joined: 27 Jan 2008 18:49
Owned TM-games: TMU

Re: [XAseco plugin] entermessage v0.1

Post by folen » 06 Jan 2009 19:35

Thanks for trying it :)

Let me know if you run into any problems or want some functionality.

djarrett
smooth traffic navigator
smooth traffic navigator
Posts: 235
Joined: 04 Jul 2006 15:01
Owned TM-games: TMO,TMS,TMN,TMU,TMUF
Location: Fayetteville,GA
Contact:

Re: [XAseco plugin] entermessage v0.1

Post by djarrett » 17 Jan 2009 13:20

Update...Still works great ..no errors

sdl
wheelbarrow operator
wheelbarrow operator
Posts: 22
Joined: 13 Nov 2006 16:22
Owned TM-games: TMN, TMU
Location: Friesland
Contact:

Re: [XAseco plugin] entermessage v0.1

Post by sdl » 14 Feb 2009 09:12

folen wrote:Since the jfreu-plugin already does the same with fixed messages you will probably want to disable that functionality if you use this plugin.
In wich plugin & on what line do i disable that?


Dynamite
pedestrian
pedestrian
Posts: 6
Joined: 01 Oct 2009 13:16
Owned TM-games: TMN & TMU
Contact:

Re: [XAseco plugin] entermessage v0.1

Post by Dynamite » 04 Oct 2009 15:15

Does anybody know if this is still available anywhere? The guys in our clan would really like this.

djarrett
smooth traffic navigator
smooth traffic navigator
Posts: 235
Joined: 04 Jul 2006 15:01
Owned TM-games: TMO,TMS,TMN,TMU,TMUF
Location: Fayetteville,GA
Contact:

Re: [XAseco plugin] entermessage v0.1

Post by djarrett » 04 Oct 2009 15:44

send me a PM with email and I will send u my copy
:1

Dynamite
pedestrian
pedestrian
Posts: 6
Joined: 01 Oct 2009 13:16
Owned TM-games: TMN & TMU
Contact:

Re: [XAseco plugin] entermessage v0.1

Post by Dynamite » 04 Oct 2009 16:19

Thanks man, you're a legend

:1

mmatej
pedestrian
pedestrian
Posts: 8
Joined: 23 Dec 2009 09:23
Owned TM-games: TMUF

Re: [XAseco plugin] entermessage v0.1

Post by mmatej » 06 Jan 2010 09:34

Message when I tried to download this good-looking plugin:

Code: Select all

Not Found

The requested URL /rokdownloads/plugin.entermessage.v0.1.tar.gz was not found on this server.
Please correct download link!

User avatar
Knutselmaaster
swift roadking
swift roadking
Posts: 692
Joined: 16 Feb 2007 01:40
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Location: Between DisneyLand and Paris
Contact:

Re: [XAseco plugin] entermessage v0.1

Post by Knutselmaaster » 16 Jan 2010 11:06

plz pm me this one.

Thanks

djarrett
smooth traffic navigator
smooth traffic navigator
Posts: 235
Joined: 04 Jul 2006 15:01
Owned TM-games: TMO,TMS,TMN,TMU,TMUF
Location: Fayetteville,GA
Contact:

Re: [XAseco plugin] entermessage v0.1

Post by djarrett » 17 Jan 2010 14:08

mmatej wrote:Message when I tried to download this good-looking plugin:

Code: Select all

Not Found

The requested URL /rokdownloads/plugin.entermessage.v0.1.tar.gz was not found on this server.
Please correct download link!
send me a PM with email and I will send u my copy
:1

User avatar
Bryan199810
sunday driver
sunday driver
Posts: 65
Joined: 19 Feb 2010 01:23
Owned TM-games: All
Location: Kennewick, Washington
Contact:

Re: [XAseco plugin] entermessage v0.1

Post by Bryan199810 » 07 Aug 2010 20:01

Can you PM me Plugin?

User avatar
david_jumper
happy cruiser
happy cruiser
Posts: 140
Joined: 21 Mar 2009 09:28
Owned TM-games: TMU, TMS
Manialink(s): djump
Location: Pforzheim (Germany)
Contact:

Re: [XAseco plugin] entermessage v0.1

Post by david_jumper » 07 Aug 2010 20:27


User avatar
Bryan199810
sunday driver
sunday driver
Posts: 65
Joined: 19 Feb 2010 01:23
Owned TM-games: All
Location: Kennewick, Washington
Contact:

Re: [XAseco plugin] entermessage v0.1

Post by Bryan199810 » 08 Aug 2010 00:32

Thanks! :gobananas:

Post Reply