[CSM] Faster PMs [pm]

User avatar
ChimneySwift
Member
 
Posts: 319
Joined: Fri Sep 22, 2017 06:46
Location: 127.0.0.1
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift

[CSM] Faster PMs [pm]

by ChimneySwift » Thu Oct 19, 2017 09:02

PM

A simple CSM designed to make sending PMs just a little bit easier.

License: MIT

Download
Github

+ Sales Pitch
A spoon is basically a tiny bowl with a stick on it
 

User avatar
ManElevation
Member
 
Posts: 892
Joined: Tue Aug 02, 2016 22:04
Location: Madrid,Spain
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation

Re: [CSM] Faster PMs [pm]

by ManElevation » Thu Oct 19, 2017 18:58

aha!
This makes so much sense.
Great, thx for the post!
+1
My Public Mods! Discord: Rottweiler Games#3368
 

User avatar
Lone_Wolf
Member
 
Posts: 1942
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: [CSM] Faster PMs [pm]

by Lone_Wolf » Fri Oct 20, 2017 02:56

I missed this topic. Should have made my suggestion here...
I look forward to the update! (If you feel like updating it)
 

User avatar
ChimneySwift
Member
 
Posts: 319
Joined: Fri Sep 22, 2017 06:46
Location: 127.0.0.1
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift

Re: [CSM] Faster PMs [pm]

by ChimneySwift » Fri Oct 20, 2017 03:38

Lone_Wolf wrote:I look forward to the update! (If you feel like updating it)


Yep, I'll definitely be updating it. Good suggestion!
A spoon is basically a tiny bowl with a stick on it
 

User avatar
Lone_Wolf
Member
 
Posts: 1942
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: [CSM] Faster PMs [pm]

by Lone_Wolf » Fri Oct 20, 2017 03:46

ChimneySwift wrote:
Lone_Wolf wrote:I look forward to the update! (If you feel like updating it)


Yep, I'll definitely be updating it. Good suggestion!

You might want to separate the cmds though. Maybe:
.set <playername> to set the single recipient msg
.msg <playername> <message> to PM the single recipient
.all <message> to message the group. Maybe .t <message> the t being short for team
Probably want this too:
.list shows what player is set for the single message and what players are in the multiple message group
For people that haven't seen my suggestion on the Github repo:
.add <playername> add a recipient to the multiple message group
.del <playername> remove a player from the multiple message group
 

User avatar
ChimneySwift
Member
 
Posts: 319
Joined: Fri Sep 22, 2017 06:46
Location: 127.0.0.1
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift

Re: [CSM] Faster PMs [pm]

by ChimneySwift » Fri Oct 20, 2017 03:57

Lone_Wolf wrote:
ChimneySwift wrote:
Lone_Wolf wrote:I look forward to the update! (If you feel like updating it)


Yep, I'll definitely be updating it. Good suggestion!

You might want to separate the cmds though. Maybe:
.set <playername> to set the single recipient msg
.msg <playername> <message> to PM the single recipient
.all <message> to message the group. Maybe .t <message> the t being short for team
Probably want this too:
.list shows what player is set for the single message and what players are in the multiple message group
For people that haven't seen my suggestion on the Github repo:
.add <playername> add a recipient to the multiple message group
.del <playername> remove a player from the multiple message group


Yeah true, but I figure if they need to message a single player as a once-off and don't want to change their recipient, they can just send it normally. I was thinking having something like this:

.pm_set <playername> to set the recipient
.pm <message> to PM the recipient
.pm_add <playername> to add to a group list, which could have unlimited recipients, and is a completely separate list when compared to the single recipient (Save to modstorage?)
.pm_all <message> to send a PM to everyone in the group recipients list. Instead of having a separate command, you could run this command with no parameters to list the members of the PM group.
.pm_del <playername> to remove a player from the group

I want to keep the list of commands themselves as short as possible to make them very fast to type, while also not making them too general so it's easy to have interference from other CSMs (thus adding pm_ before all of the secondary commands.

In future I may also have 2 or 3 .pm commands which would message separate people.
A spoon is basically a tiny bowl with a stick on it
 

User avatar
BBmine
Member
 
Posts: 3455
Joined: Sun Jul 12, 2015 22:51
Location: USA
GitHub: BBmine
IRC: BBmine
In-game: Baggins

Re: [CSM] Faster PMs [pm]

by BBmine » Thu Oct 26, 2017 13:36

In 0.5.0-dev, you can just do [Tab] to autocomplete the name. In 0.4.16, you can also do that, but the player has to be close enough.
 

User avatar
ChimneySwift
Member
 
Posts: 319
Joined: Fri Sep 22, 2017 06:46
Location: 127.0.0.1
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift

Re: [CSM] Faster PMs [pm]

by ChimneySwift » Sun Oct 29, 2017 10:07

Update: for loops are a pain in the butt and I'm a n00b at lua. Working on it tho...
A spoon is basically a tiny bowl with a stick on it
 

User avatar
ChimneySwift
Member
 
Posts: 319
Joined: Fri Sep 22, 2017 06:46
Location: 127.0.0.1
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift

Re: [CSM] Faster PMs [pm]

by ChimneySwift » Sat Nov 04, 2017 02:35

Update:

Ok I've added group messaging functionality. You can now add names to, remove names from and clear a list of recipients, then send a message to everyone on that list with a simple command. You can add as many recipients as you wish, however considering the CSM loops over the list of recipients and sends them via the /msg command, the chat can get a little spammy if you add too many players. Fixing this is on my Todo list.

I'm still not sure whether it would be useful to have the player list save to modstorage, if you feel it should or have any other suggestions, please let me know.

Anyway, the readme has been updated, however the new commands are as follows:

  • .pm_group <message> sends the massage to each recipient on the list. Input no parameters to see the players currently in the list.
  • .pm_add <playername> adds a player to the list, remember playernames are case-sensitive.
  • .pm_remove <playername> removes a player from the list, remember playernames are case-senstitve, if you input a name that is not on the list the CSM will tell you.
  • .pm_clear clears the player list.

I've also fixed a bug where the client will crash if you try to send a message with .pm without first setting a recipient.
A spoon is basically a tiny bowl with a stick on it
 


Return to Client-side modding



Who is online

Users browsing this forum: No registered users and 0 guests