[clientmod] Chat log [chatlog]

red-001
Member
 
Posts: 205
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

[clientmod] Chat log [chatlog]

by red-001 » Sun Mar 19, 2017 13:23

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
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
Last edited by red-001 on Sun Mar 26, 2017 07:50, edited 2 times in total.
 

User avatar
cx384
Member
 
Posts: 492
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [clientmod] Chat log [chatlog]

by cx384 » Sun Mar 19, 2017 13:31

Nice mod!
The first post locks like this:
viewtopic.php?f=9&t=17046
Can your read this?
 

User avatar
DS-minetest
Member
 
Posts: 1002
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [clientmod] Chat log [chatlog]

by DS-minetest » Sun Mar 19, 2017 13:37

Heh, nice idea to copy nearly everything from my clientmod's first post. :D
Could you write the chatlog also into a file?
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

red-001
Member
 
Posts: 205
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: [clientmod] Chat log [chatlog]

by red-001 » Sun Mar 19, 2017 13:57

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"
 

red-001
Member
 
Posts: 205
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001
 

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

red-001
Member
 
Posts: 205
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001
 

red-001
Member
 
Posts: 205
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: [clientmod] Chat log [chatlog]

by red-001 » Sun Mar 26, 2017 07:52

Update: If you are using a recent version of minetest the prefix for client-sided commands as been changed from "/" to "."
 

red-001
Member
 
Posts: 205
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: [clientmod] Chat log [chatlog]

by red-001 » Thu Apr 06, 2017 21:19

update: The mod is now able to automatically detect if it should log messages that it's sending to the server.
 

Sokomine
Member
 
Posts: 3616
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [clientmod] Chat log [chatlog]

by Sokomine » Tue Apr 11, 2017 02:46

Thanks for the mod! It's a pity that clientside mods can't access the filesystem :-( Thus we need a second script in order to read what was stored.
A list of my mods can be found here.
 

User avatar
Wuzzy
Member
 
Posts: 3214
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [clientmod] Chat log [chatlog]

by Wuzzy » Fri May 19, 2017 18:50

What does this mod do?
My creations. I gladly take any bitcoins you have lying around: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
DS-minetest
Member
 
Posts: 1002
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [clientmod] Chat log [chatlog]

by DS-minetest » Fri May 19, 2017 19:54

Wuzzy wrote:What does this mod do?

AFAIK it logs the chat. :P
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

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

red-001
Member
 
Posts: 205
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: [clientmod] Chat log [chatlog]

by red-001 » Fri Jun 09, 2017 15:35

it saves it as a kind of peusdo table in /client/storage/chatlog
 

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

Re: [clientmod] Chat log [chatlog]

by BBmine » Fri Jun 30, 2017 23:04

red-001 wrote:it saves it as a kind of peusdo table in /client/storage/chatlog

I can't really read it. I opened it with LibreOffice because it seems to be a CSV, but it looks unformatted.
 

User avatar
azekill_DIABLO
Member
 
Posts: 7437
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
DS-minetest
Member
 
Posts: 1002
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [clientmod] Chat log [chatlog]

by DS-minetest » Sun Oct 01, 2017 12:43

@BBmine: Have you tried leafpad?
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

red-001
Member
 
Posts: 205
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: [clientmod] Chat log [chatlog]

by red-001 » Wed Oct 04, 2017 16:54

it's json encoded so yes libreoffice wouldn't handle it.
 


Return to Client-side modding



Who is online

Users browsing this forum: No registered users and 1 guest