Author |
Message |
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Tue Feb 03, 2009 3:17 pm Post subject: <C> ASSS Colors/Say/Voice Module |
|
|
|
|
I have made a module
which allows anyone to send an arena message or zone message
in any color capable by continuum,
both can be either signed or anonymous.
Powers are limited by groupdef.
Source attached.
***NEW***
You can now create modules which can send colored player or arena messages!
Simply use the interface and insert color->Pink(p,"bleh") into your code!
***NEWER***
The colors module has now become 3 modules in 1!
The core of the module has changed, using less memory and all that junk n stuff.
Also, the interface has been greatly extended, allowing you to send any color to the zone, an arena, or a player.
Additionally, you can now use the ?say command, just like the old *say in subgame, and !say in mervbot (kind of), to make any player, real or fake, say whatever you want them to! (I would suggest limiting these powers by groupdef to only those who you can -truly- trust)
Also, a ?voice command has been added to change your boring old blue pub chats into a more fun color, like pink or gray!
(Disclaimer: currently an echo due to technical limitations)
***NEWEST***
The core of the module and ?say has been streamlined.
Additionally, the interface has gained freq color functionality!
***FINAL***
The core of the module has undergone a final redesign, achieving perfection.
This includes code optimization, in which the number of lines was literally cut in half.
Also, an unloading bug has been fixed.
Additionally, the interface has been changed, and is now easier to use.
***Update***
Have gone through code and cleaned a lot of things up, and updated everything to be compatible with ASSS 1.6.0
Also removed voice and xchat modules, since they are cruft and require the not yet existing chat advisor.
Seperated the modules into different files for those that only want certain parts.
lines for modules.conf:
commands for groupdef:
cmd_bluea
cmd_blueaa
cmd_bluez
cmd_blueaz
cmd_yellowa
cmd_yellowaa
cmd_yellowz
cmd_yellowaz
cmd_greena
cmd_greenaa
cmd_greenz
cmd_greenaz
cmd_reda
cmd_redaa
cmd_redz
cmd_redaz
cmd_orangea
cmd_orangeaa
cmd_orangez
cmd_orangeaz
cmd_graya
cmd_grayaa
cmd_grayz
cmd_grayaz
cmd_pinka
cmd_pinkaa
cmd_pinkz
cmd_pinkaz
privcmd_say
|
Any comments/suggestions/ideas would be appreciated.
_________________ SSC Distension Owner
SSCU Trench Wars Developer
Colors+Say Module Pack
By Cheese
For ASSS 1.6.0
colors+say.zip - 3.25 KB
File downloaded or viewed 304 time(s)
Colors/Say/Voice Module
By Cheese
colors.zip - 16.91 KB
File downloaded or viewed 350 time(s)
Last edited by Cheese on Fri Jul 10, 2015 11:23 pm, edited 19 times in total |
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:32 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Tue Feb 03, 2009 3:46 pm Post subject: |
|
|
|
|
maybe more dynamic commands such as ?colora pink hello how are you, or ?colorzz blue this is the message. other than that nice work.
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Feb 03, 2009 3:50 pm Post subject: |
|
|
|
|
Suggestion: don't call it as3. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me
|
|
Back to top |
|
|
Hakaku Server Help Squatter
Joined: Apr 07 2006 Posts: 299 Location: Canada Offline
|
Posted: Tue Feb 03, 2009 5:14 pm Post subject: |
|
|
|
|
Question: I noticed both you and Brain didn't release the playerdata interface in MM_UNLOAD. Is this intentional? Also, why are the commands being removed after the cmdman interface is released?
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Feb 03, 2009 6:53 pm Post subject: |
|
|
|
|
Hakaku wrote: | Question: I noticed both you and Brain didn't release the playerdata interface in MM_UNLOAD. Is this intentional? | Not intentional on my part. I'll try and correct that for future releases. Not that I actually expect there to be many more for the fuchsia module.
|
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Tue Feb 03, 2009 7:41 pm Post subject: |
|
|
|
|
im surprised i missed that as well, i basically pirated dr brains work, and also inherited that.
good eyes!
it has now been fixed.
attachment updated.
--edit--
which is why it is now referred to as 'pink'
also, whats the deal with ASSS vs AS3?
arent the terms interchangable?
ive been using AS3 because it has 25% less letters to type D:
Last edited by Cheese on Wed Feb 04, 2009 2:45 am, edited 1 time in total |
|
Back to top |
|
|
Bak ?ls -s 0 in
Age:25 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:32 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Wed Feb 04, 2009 3:42 pm Post subject: |
|
|
|
|
although AS3 is less words, it's harder to type because you have to type 3 unique characters, where as ASSS is only 2 different letters. even further, AS3 has a number in it, while ASSS has no numbers, and the different characters (a and s) are right next to eachother.
|
|
Back to top |
|
|
Initrd.gz Seasoned Helper
Joined: Sep 18 2008 Posts: 134 Location: Over there ---> Offline
|
Posted: Sun Feb 15, 2009 2:08 pm Post subject: |
|
|
|
|
tcsoccerman wrote: | although AS3 is less words, |
ASSS and AS3 are both one word. Lol.
Looks like a very useful module. Will definitely attract player's attention when they notice there is a pink text color.
... Or maybe fake a team message to look like a public message
|
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:32 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Sun Feb 15, 2009 4:02 pm Post subject: |
|
|
|
|
They mean the same, but they're different words.
|
|
Back to top |
|
|
Initrd.gz Seasoned Helper
Joined: Sep 18 2008 Posts: 134 Location: Over there ---> Offline
|
Posted: Sun Feb 15, 2009 5:24 pm Post subject: |
|
|
|
|
tcsoccerman wrote: | They mean the same, but they're different words. | Correction: One word long.
</ offtopic>
What would be a good idea is to use Targets. So you could do something like this:
//?blue hello
Linuxuser> hello
in team chat
|
|
Back to top |
|
|
Goldeye Novice
Gender: Joined: Dec 15 2003 Posts: 57 Offline
|
Posted: Wed Feb 18, 2009 12:01 am Post subject: |
|
|
|
|
More importantly than commands for colors, I'd like to have the chat interface expanded to take a color enum easily.
|
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Wed Feb 18, 2009 1:36 am Post subject: |
|
|
|
|
what, like ?color YELLOW mehmehmeh..?
and i suppose i could add a target for v2, that way you could literally fake someone saying something...
it would be pretty cool, but i can only see it getting misused >_>
|
|
Back to top |
|
|
Initrd.gz Seasoned Helper
Joined: Sep 18 2008 Posts: 134 Location: Over there ---> Offline
|
Posted: Wed Feb 18, 2009 8:19 pm Post subject: |
|
|
|
|
Well I thought that most zones would restrict colors to mods... If it becomes a problem then mods can just disable the command.
And goldeye, just look at the source code. Its not really hard to implement in other projects.
|
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Thu Feb 19, 2009 12:43 am Post subject: |
|
|
|
|
the commands can currently be used by whatever group you give capabilities to...
no need to disable anything...
|
|
Back to top |
|
|
JoWie Server Help Squatter
Gender: Joined: Feb 25 2004 Posts: 215 Offline
|
Posted: Thu Feb 19, 2009 6:41 am Post subject: |
|
|
|
|
Cheese wrote: | and i suppose i could add a target for v2, that way you could literally fake someone saying something...
it would be pretty cool, but i can only see it getting misused >_> |
That's the reason *say got removed in subgame.
As for adding targets, with other ASSS chat commands like ?aa, the target restricts what players see the message.
For example :Player:?aa abcdefghjilk shows the arena message just for Player (You will need the privcmd_aa capability though)
|
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Sat Mar 14, 2009 5:31 pm Post subject: |
|
|
|
|
updated files, added load/unload log messages
also, i think im going to make an interface soon, so other mods can use fun spiffy colors >:3
|
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Mon Mar 16, 2009 2:26 pm Post subject: |
|
|
|
|
huge update, added that interface, you can send arena messages in any color, or to a specific player.
i also completely redesigned how the module works.
files updated
|
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Tue Sep 22, 2009 3:08 pm Post subject: |
|
|
|
|
yet another huge redesign of how the module works, cut the number of lines of code roughly in half, as well as added new functionality!
|
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Tue Sep 29, 2009 12:11 am Post subject: |
|
|
|
|
did another big redesign.
fixed this
added freq functionality.
should be 100% stable now...
|
|
Back to top |
|
|
Hakaku Server Help Squatter
Joined: Apr 07 2006 Posts: 299 Location: Canada Offline
|
Posted: Tue Sep 29, 2009 10:36 am Post subject: |
|
|
|
|
It's fine in Voice, but in both Say and Colors you repeated the same issue: using an interface after you finished unloading it (e.g. when you remove commands). Just thought I'd give you a heads up
|
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Tue Sep 29, 2009 11:08 am Post subject: |
|
|
|
|
zomg ;_;
forgot those, lulz
|
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Fri Oct 02, 2009 3:39 pm Post subject: |
|
|
|
|
fixed
|
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Tue Feb 23, 2010 3:23 am Post subject: |
|
|
|
|
big update
new color features
- all references to 'gray' have been changed to 'grey' for international compliance
- module will work as before. however: voice module will be reliant on my xchat module until changes are made to the existing chat module
new xchat (eXtended Chat) features
- xchat module will be packaged with color module
- ABILITY TO REWRITE OR EVEN REMOVE CHAT MESSAGES (before they happen)
- constants added/renamed for GREY/PINK
- addition of high staff chat (in pink), simply uses \\, modchat (still in red) still uses \ (many zones have a seperate upper staff chat)
- clarification added to capman constants (ex: modchat --> seemodchat)
- subtle rewording of error/log messages (ex: shut up --> silenced)
- fixed bug with sending nmepriv to same freq
since i suck at this, please look over the code and see where i screwed up, especially in regards to the chatnet parts...
fuschia was renamed to pink because #1: even its creator can not spell it correctly, and #2: color is a subjective term, meaning 'pink', 'fusha', and 'purple' are all equally acceptable.
i would like all if not most of these improvements made standard.
the bonus is that the code is already written (even if its made with duct tape and on fire)
:D
Colors Module for v1.5
with
XChat Module
By Cheese
colors+xchat.zip - 45.73 KB
File downloaded or viewed 312 time(s)
|
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Wed Feb 24, 2010 2:32 pm Post subject: |
|
|
|
|
idea checklist for xchat:
fix bug sending silence message to ppl with unlimitedchat cap
inform modchat of silence
add seperate limit for cmd spam, cmd=text if !defined
fixed:
rewritten chats are no longer counted for spam limits
|
|
Back to top |
|
|
|