[Mod] Player notes [player_notes]
- Krock
- Developer
- Posts: 4683
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
[Mod] Player notes [player_notes]
Add a note to a player!
This is why I created this mod.
It allows everybody with the "player_notes" privilege to write comments/messages/notices about a specific player.
Every note gets a random key from 100 to 999.
There can be multiple keys with the same number, just on diffrent players.
Commands:
/notes Shows up notes GUI
Optional settings: (in "init.lua")
Enable/disable timestamps
Define minimal and maximal number of keys.
Privilege required: player_notes (Added by mod)
Depends: nothing
License: WTFPL
Download: Master *.zip, View source
This is why I created this mod.
It allows everybody with the "player_notes" privilege to write comments/messages/notices about a specific player.
Every note gets a random key from 100 to 999.
There can be multiple keys with the same number, just on diffrent players.
Commands:
/notes Shows up notes GUI
Optional settings: (in "init.lua")
Enable/disable timestamps
Define minimal and maximal number of keys.
Privilege required: player_notes (Added by mod)
Depends: nothing
License: WTFPL
Download: Master *.zip, View source
Last edited by Krock on Thu Oct 08, 2015 07:03, edited 8 times in total.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
- CraigyDavi
- Member
- Posts: 582
- Joined: Sat Aug 10, 2013 13:08
- GitHub: davisonio
- IRC: davisonio
- In-game: CraigyDavi
- Location: Hampshire, UK
- Contact:
- Krock
- Developer
- Posts: 4683
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Impossible.Achilles wrote:Could the mod be adapted so that as soon as someone kills another it would appear on their notes screen?
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
-
- Member
- Posts: 93
- Joined: Thu Nov 21, 2013 10:59
- In-game: Andromeda
- Location: United Kingdom
Does this mod let the people see the notes on them or just the person with the priv who added it?
Is it possible for more than one player to see the notes or can anyone with the right priv see the notes? This would of course be useful for admins and mods on a server to keep track of people.
Is it possible for more than one player to see the notes or can anyone with the right priv see the notes? This would of course be useful for admins and mods on a server to keep track of people.
My Mods: Kerova - viewtopic.php?id=8054
My Server: Kalisae - viewtopic.php?id=9040 <--CLOSED UNTIL FURTHER NOTICE!
My Server: Kalisae - viewtopic.php?id=9040 <--CLOSED UNTIL FURTHER NOTICE!
- Krock
- Developer
- Posts: 4683
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Only people with the "player_notes" privilege can add/remove and view the notes.rommiekerova wrote:Does this mod let the people see the notes on them or just the person with the priv who added it?
Is it possible for more than one player to see the notes or can anyone with the right priv see the notes?
Yup. This mod is useful for teamwork under moderators.rommiekerova wrote:This would of course be useful for admins and mods on a server to keep track of people.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
-
- Member
- Posts: 93
- Joined: Thu Nov 21, 2013 10:59
- In-game: Andromeda
- Location: United Kingdom
Awesome! This is definitely going to be added to my server.
My Mods: Kerova - viewtopic.php?id=8054
My Server: Kalisae - viewtopic.php?id=9040 <--CLOSED UNTIL FURTHER NOTICE!
My Server: Kalisae - viewtopic.php?id=9040 <--CLOSED UNTIL FURTHER NOTICE!
-
- Member
- Posts: 93
- Joined: Thu Nov 21, 2013 10:59
- In-game: Andromeda
- Location: United Kingdom
There is a serious problem with this mod. I added it and when it came to using /add_note, it said the note got added but suddenly the server announced it was shutting down.
There is nothing printed in debug to show why it is happening.
After rebooting the server I checked if the note had added and it hadn't.
There is nothing printed in debug to show why it is happening.
After rebooting the server I checked if the note had added and it hadn't.
My Mods: Kerova - viewtopic.php?id=8054
My Server: Kalisae - viewtopic.php?id=9040 <--CLOSED UNTIL FURTHER NOTICE!
My Server: Kalisae - viewtopic.php?id=9040 <--CLOSED UNTIL FURTHER NOTICE!
- Krock
- Developer
- Posts: 4683
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Shame on me.
Last edited by Krock on Thu Oct 08, 2015 06:56, edited 1 time in total.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
-
- Member
- Posts: 93
- Joined: Thu Nov 21, 2013 10:59
- In-game: Andromeda
- Location: United Kingdom
There is absolutely nothing in the debug about the crashes or error.
I use windows XP.
Its easy to reproduce. Every time I type something like: /add_note rommie test note
it makes the server shut down.
/list_notes works fine but obviously returns the message stating the player has no notes.
I use windows XP.
Its easy to reproduce. Every time I type something like: /add_note rommie test note
it makes the server shut down.
/list_notes works fine but obviously returns the message stating the player has no notes.
My Mods: Kerova - viewtopic.php?id=8054
My Server: Kalisae - viewtopic.php?id=9040 <--CLOSED UNTIL FURTHER NOTICE!
My Server: Kalisae - viewtopic.php?id=9040 <--CLOSED UNTIL FURTHER NOTICE!
- Krock
- Developer
- Posts: 4683
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Ah my bad.. a typo, it should be "_note" instead of "_node".rommiekerova wrote:/add_note rommie test note
Fixed in new v3 (even if it's not worth to add a version number)
Last edited by Krock on Sun Apr 13, 2014 07:53, edited 1 time in total.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
-
- Member
- Posts: 93
- Joined: Thu Nov 21, 2013 10:59
- In-game: Andromeda
- Location: United Kingdom
So its local note = string.gsub(_node, "|", "/")
that causes the issue?
Changing it to _note
fixes it?
that causes the issue?
Changing it to _note
fixes it?
My Mods: Kerova - viewtopic.php?id=8054
My Server: Kalisae - viewtopic.php?id=9040 <--CLOSED UNTIL FURTHER NOTICE!
My Server: Kalisae - viewtopic.php?id=9040 <--CLOSED UNTIL FURTHER NOTICE!
- Krock
- Developer
- Posts: 4683
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Exactly.rommiekerova wrote:So its local note = string.gsub(_node, "|", "/")
that causes the issue?
Changing it to _note
fixes it?
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
-
- Member
- Posts: 93
- Joined: Thu Nov 21, 2013 10:59
- In-game: Andromeda
- Location: United Kingdom
Awesome. Altered the right bit and tested it. Works fine now.
My Mods: Kerova - viewtopic.php?id=8054
My Server: Kalisae - viewtopic.php?id=9040 <--CLOSED UNTIL FURTHER NOTICE!
My Server: Kalisae - viewtopic.php?id=9040 <--CLOSED UNTIL FURTHER NOTICE!
- Krock
- Developer
- Posts: 4683
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Re: [Mod] Player notes [v4] [player_notes]
New version with a GUI! (old chat commands are included in chatcommands.lua)
Image in the 1st post updated.
Download me!
Use the chatcommand "/notes" to see the GUI.
EDIT: fixed possible fails in the formspec, added "view-only" window.
Image in the 1st post updated.
Download me!
Use the chatcommand "/notes" to see the GUI.
EDIT: fixed possible fails in the formspec, added "view-only" window.
Last edited by Krock on Mon Apr 21, 2014 14:05, edited 1 time in total.
- crazyginger72
- Member
- Posts: 69
- Joined: Wed Jan 01, 2014 07:57
- GitHub: crazyginger72
- IRC: cg72
- In-game: crazyginger72
- Location: gone to lunch
Re: [Mod] Player notes [v4] [player_notes]
nice, cheapie will love this one, he was asking for it at one time :)
and it will be going on my server
and it will be going on my server
Re: [Mod] Player notes [v5] [player_notes]
Cool! Is it possible that the next version would have a combobox instead of simple edit field for username selection? You probably don't want to add notes on inexistent players..
- Krock
- Developer
- Posts: 4683
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Re: [Mod] Player notes [v5] [player_notes]
It'll throw errors if the user isn't registred on the server. It also should be possible to add note to an offline player, so is a textbox the best way at the moment.4aiman wrote:Cool! Is it possible that the next version would have a combobox instead of simple edit field for username selection? You probably don't want to add notes on inexistent players..
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
Re: [Mod] Player notes [v5] [player_notes]
Either one of us is confused...
If you were able to make your mod to "throw errors if the user isn't registred on the server" then what's the problem of adding a note for some player who went off-line ATM?
Edit->combobox replacement won't cause any harm, but would save you from checking whether a player is on~ or off-line every time someone adds a note.
If you were able to make your mod to "throw errors if the user isn't registred on the server" then what's the problem of adding a note for some player who went off-line ATM?
Edit->combobox replacement won't cause any harm, but would save you from checking whether a player is on~ or off-line every time someone adds a note.
- Krock
- Developer
- Posts: 4683
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Re: [Mod] Player notes [v5] [player_notes]
It does not matter if a player is online or offline when you want to add a note about him.4aiman wrote:Either one of us is confused...
<snip>
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
- rubenwardy
- Moderator
- Posts: 7025
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: London, United Kingdom
- Contact:
Re: [Mod] Player notes [player_notes]
Would it be possible to add xban2 support? So notes are shared between different usernames.
- Krock
- Developer
- Posts: 4683
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Re: [Mod] Player notes [player_notes]
Yes, it's possible to add new notes with some code changes.
The main problem there is the deletion: What if the player gets unbanned? Should it delete the note or create a new one about "Unbanned by <player>"?
The main problem there is the deletion: What if the player gets unbanned? Should it delete the note or create a new one about "Unbanned by <player>"?
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>