Page 1 of 1

[clientmod] Chat log [chatlog]

PostPosted: Sun Mar 19, 2017 13:23
by red-001
Log chat messages via CSM.

You need a new minetest-dev version.

How to use:
Just use the ".chatlog" or ".chatlog help" command.

License
License: MIT
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
MIT License

Copyright (c) 2017

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


Get
github
Download

Install
Extract like a normal mod but to "/clientmods" instead of "/mods".
Then enable "client modding" in the advance settings menu

Re: [clientmod] Chat log [chatlog]

PostPosted: Sun Mar 19, 2017 13:31
by cx384
Nice mod!
The first post locks like this:
viewtopic.php?f=9&t=17046

Re: [clientmod] Chat log [chatlog]

PostPosted: Sun Mar 19, 2017 13:37
by DS-minetest
Heh, nice idea to copy nearly everything from my clientmod's first post. :D
Could you write the chatlog also into a file?

Re: [clientmod] Chat log [chatlog]

PostPosted: Sun Mar 19, 2017 13:57
by red-001
Yeah I'm pretty bad at writing bbcode so I used your post as an example. I can't save it to a normal file because CSM doesn't give mods direct filesystem access, however you can find the json file the mod saves to in "/client/mod_storage/chatlog"

Re: [clientmod] Chat log [chatlog]

PostPosted: Sun Mar 19, 2017 18:13
by red-001
Update: You can now add timestamps to messages

Re: [clientmod] Chat log [chatlog]

PostPosted: Sun Mar 19, 2017 21:14
by BBmine
Very cool! Is this a mod, or a feature with the latest dev build?

Re: [clientmod] Chat log [chatlog]

PostPosted: Sun Mar 19, 2017 23:57
by red-001
Both? It's a mod for the new lua api.

Re: [clientmod] Chat log [chatlog]

PostPosted: Sun Mar 26, 2017 07:52
by red-001
Update: If you are using a recent version of minetest the prefix for client-sided commands as been changed from "/" to "."