Raised This Month: $32 Target: $400
 8% 

[Any] Save player chat to file V1.2.1


Post New Thread Reply   
 
Thread Tools Display Modes
Werewolf_UK
AlliedModders Donor
Join Date: Oct 2010
Location: United Kingdom
Old 07-04-2017 , 03:08   Re: [Any] Save player chat to file V1.2.1
Reply With Quote #41

Quote:
Originally Posted by Ethorbit View Post
I love this addon and so I made a few modifications and added 2 new features.
1. Player disconnects are logged
2. All player console commands are logged, ones that are console commands have [COMMAND]: behind the commands and chat messages are in the same format as before.

Both require sc_record_detail to be set on 1.

Source file:
https://depositfiles.com/files/lgglwhm9z

Compiled file:
https://depositfiles.com/files/iiym0g2g6

I don't like deposit files at all, but we can't reply to posts with our own uploaded files and I know that I will never use deposit files again, so these uploads should be up forever.
Compiled and tested against SourceMod 1.8.0.6014 on a TF2 server, so I can confirm it works.

The additions you've made are welcome and I like them, though I have a couple of suggestions.
  1. Make player disconnects NOT require the use of the sc_record_detail cvar, as the joining detail does not require this.
  2. Filter out or ignore certain commands that are entered via the console. Things like VModEnable 1 and 'team_ui_setup' aren't things we need logged. I would say that any command manually entered into the console, team changes and class changes only really need to be logged, otherwise you end up with very long, large log files with a tonne of detail you don't need.
__________________
Werewolf_UK is offline
jevgienij
Junior Member
Join Date: Nov 2018
Old 11-26-2018 , 10:26   Re: [Any] Save player chat to file V1.2.1
Reply With Quote #42

Works fine on Insurgency but when I run multiple servers how can I tell the difference which logged chat message applies to certain server?
jevgienij is offline
jevgienij
Junior Member
Join Date: Nov 2018
Old 12-25-2018 , 09:42   Re: [Any] Save player chat to file V1.2.1
Reply With Quote #43

Quote:
Originally Posted by jevgienij View Post
Works fine on Insurgency but when I run multiple servers how can I tell the difference which logged chat message applies to certain server?
I edited the plugin. It now adds server port number (using hostport cvar) to the log file name.
Attached Files
File Type: smx savechat.smx (6.2 KB, 164 views)
File Type: sp Get Plugin or Get Source (savechat.sp - 389 views - 5.8 KB)
jevgienij is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 05-10-2021 , 03:36   Re: [Any] Save player chat to file V1.2.1
Reply With Quote #44

The links to Ethorbit's plugin (in post 40) are broken. Luckily I found another copy of the script, so I've re-uploaded it here should anyone else want this edited version, I've also renamed this file to "SaveChat-Ver-2"
Attached Files
File Type: sp Get Plugin or Get Source (SaveChat-Ver-2.sp - 162 views - 6.7 KB)

Last edited by Sunyata; 05-10-2021 at 03:37.
Sunyata is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 05-11-2021 , 03:16   Re: [Any] Save player chat to file V3.0
Reply With Quote #45

I've updated the code in the opening poster's plugin to now include 'player disconnection.'
Attached Files
File Type: sp Get Plugin or Get Source (SaveChat-Ver-3.sp - 272 views - 5.0 KB)

Last edited by Sunyata; 02-11-2022 at 08:17. Reason: script update
Sunyata is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 05-14-2021 , 04:25   Re: [Any] Save chat stuff to file V3.0
Reply With Quote #46

Anyone know how to add some extra code to my plugin (in post 45) so it can print messages to chat when a 'player dies' and also when 'game difficulty' is switched up or down by players in-game at any time?

Last edited by Sunyata; 03-31-2023 at 05:59. Reason: some comments redacted as they're not applicable here anymore
Sunyata is offline
weffer
Member
Join Date: Oct 2020
Old 07-03-2021 , 20:22   Re: [Any] Save player chat to file V1.2.1
Reply With Quote #47

does it work for linux?
weffer is offline
hefiwhfcds2
Junior Member
Join Date: Jun 2022
Old 07-09-2022 , 07:49   Re: [Any] Save player chat to file V1.2.1
Reply With Quote #48

Well, some people type garbled characters on the keyboard, causing strange bugs

Quote:
L 07/09/2022 - 19:29:04: [SM] Exception reported: String formatted incorrectly - parameter 3 (total 2)
L 07/09/2022 - 19:29:04: [SM] Blaming: SaveChat-Ver-3.smx
L 07/09/2022 - 19:29:04: [SM] Call stack trace:
L 07/09/2022 - 19:29:04: [SM] [0] WriteFileLine
L 07/09/2022 - 19:29:04: [SM] [1] Line 238, SaveChat-Ver-3.sp::SaveMessage
L 07/09/2022 - 19:29:04: [SM] [2] Line 168, SaveChat-Ver-3.sp::LogChat
L 07/09/2022 - 19:29:04: [SM] [3] Line 69, SaveChat-Ver-3.sp::Command_Say
L 07/09/2022 - 19:41:04: Error log file session closed.
hefiwhfcds2 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode