ChatLog is a mod designed for players who, for whatever reason, like keeping an easily accessible log of chat that arrives in their game from servers and other players. ChatLog was first developed as a vanilla mod in 2012, before being ported to Minecraft Forge when Minecraft 1.6.4 came out. ChatLog's goal is simple - all chat received in the in-game chatbox should be saved in a file, complete with timestamps and colors. All log files are named by date, and stored in .minecraft/chatlogs. It's about as easy as it gets.
ChatLog can be configured to behave differently, if you so desire. The configuration file, .minecraft/config/ChatLog.properties, is created as soon as you connect to a server and receive chat, and allows you to easily alter the way the mod operates. You can change the timestamp format (null to disable timestamps), select between colors packs (0=default, 1=dark), decide whether you want repeated identical messages to only be printed once (collapse_repetitions=true or false) and configure a maximum amount of log files to be stored in the chatlogs directory (-1 for unlimited, is default). In the Forge version, you can also disable logging completely (enabled=false), turn on/off log flags (logflags=true or false)
ChatLog is the first mod in Minecraft's history to be kept up-to-date single-handedly by a bot. The server that you download ChatLog from continually searches for new Minecraft versions, and makes sure to update ChatLog to newer versions whenever they become available. New versions of ChatLog are typically released between 10 and 30 minutes afte new Minecraft versions become available. This means that updates to ChatLog are guaranteed to be released quickly, even if I, the developer, is sleeping or off the grid at the time. Unless, of course, the servers are down.
There are several versions of ChatLog available for you to download. ChatLog Tweak for Meddle versions are the first to be released for every version. ChatLog for Forge follows thereafter if Minecraft Forge is available and functional for the released version of Minecraft.
Meddle Mod Loader
Minecraft 15w31a (1.9) and newer
This ChatLog version is the one that automatically updates whenever new versions are available.
Installation
ChatLog Tweak for Meddle is most easily installed with the Meddle mod loader. It is also compatible with vanilla Minecraft's tweak class loader.
Installation
ChatLog for Vanilla Minecraft is rather hard to install compared to ChatLog Tweak for Meddle and ChatLog for Forge.
Create a duplicate of the folder with the Minecraft version you want to install ChatLog to in .minecraft/versions. Rename this folder to <versionname>-CL.
Open the folder. Rename both the files in the folder to <versionname>-CL. If you see .jar or .json at the end of these file names, make sure you do not remove these extensions.
Open the file <versionname>-CL.json in Notepad or another plan text editor. If you don't know which of the files is the .json one, open the smallest one. Look for a field named "id" at the top of the file, and replace the value <versionname> following it by <versionname>-CL. Save and close the file.
Download ChatLog for the Minecraft version from the link above.
Open the other file in <versionname>-CL with 7-Zip or another archive manager. Drag and drop all the files from the downloaded ChatLog zip into this file.
Delete the META-INF folder. Close 7-Zip.
Open the Minecraft launcher. Create a new profile in the bottom left corner, and make sure to choose <versionname>-CL as the game version. Save the profile and play.
ChatLog for Vanilla Minecraft can be installed on top of OptiFine. To do this, drop the files from the ChatLog zip into the OptiFine jar instead. You do not need to copy or rename any files in this case. Make sure you still delete META-INF.
Video guide
Thanks to NicsGames!
Minecraft Forge
Minecraft 1.6.4 and newer
This version of ChatLog offers extensive compatibility with hundreds of other mods and many more features than the other versions. Use the //cl command in-game to view a list of Forge-exclusive features. Keep in mind that ChatLog is a client-side only mod, it will crash if installed on a server.
ChatLog 2.0 uses regular expressions (regex) to filter messages. It might be a bit hard to use, and hard to read, but provides the most in terms of flexibility and allows to easily match complex criteria.
Matching regex is done with characters and character groups, and is case sensitive. "A" will match any messages containing an uppercase A. "a" Will match any messages containing a lowercase A. It is possible to make filters case-insensitive by prefixing "(?i)" to the filter. "(?i)a" will match and log all messages containing either lowercase or uppercase A's, or both.
It is possible to match one of several characters. This is done using square brackets. Example: "[a-c]" will match either a, b or c. "[aglu]" will match either a, g, l or u. "[a-exz]" will match any one of a, b, c, d, e, x and z. One can match numbers as well. "[a-d0-4]" will match a, b, c, d, 0, 1, 2, 3 or 4. Keep in mind, regex is case sensitive: "[a-cA-C]" will match a, b, c, A, B or C. "[a-cD-F]" will match a, b, c, D, E or F (case sensitive!). "(?i)" still applies, so "(?i)[a-cD-F]" will match any one of a, b, c, d, e, f, A, B, C, D, E, F.
Regex has a bunch of special characters. They are the following: \, ^, $, . (period), |, *, +, ?, (, ), [, ], { and }. To use any of these, you have to escape them with a backslash. For instance: \$ will match the dollar sign. $ on its own will cause trouble. You can also surround a string using the two special entities \Q and \E, which means "\Q$\E" will match "$", and "\Q\$\E" will match "\$".
To anchor the search query in the text, use the two symbols ^ and $. ^ means "start of text" and $ means "end of text". With query "hello$", you'll match "I say hello", but not "hello world", since "hello" does not come at the end of the second string of characters. Similarly, "^hello" would not match "I say hello", but would match "hello world" because "hello" has to come first. "^hello$" wouldn't match either of them, but would match "hello" on its own, because "hello" is both the first and last word. A period (.) will match any character. Using "." as a query will match any charaters in a line of text. It is useful for separating words: using "hello(.*)world" will match any string that has "hello" at some point and "world" at a later point. This means "hello world", "hello, awesome big world" and "hello otherworld" would all match, but "world, hello!", "hello" and "world" wouldn't match.
Setting how many characters should be matched is also important. "A" will match any single A. It would match, for instance, "A book", "AAA battery" and "I got an A grade". Adding a question mark will match either 0 or 1 character - "A?" will match "A battery", "Cookie", "AAA battery" - in other words, anything. However, if you use the query "I have [0-9]? cookies", it would match any line containing "I have x cookies" where x is a number between 0 and 9. It would also match "I have cookies". However, it would not match "I have 10 cookies" because 10 consists of 2 characters; we're looking for 0 or 1. While "?" means 0 or 1, "+" means 1 or more, "*" means 0 or more, "{4}" means exactly 4 times, and "{5,7}" means 5, 6 or 7 times.
Finally, I'll teach you about grouping and finding one of several possible matches in a line of text. You can group characters with parenthesises. "^([A-Z]{4}[0-9])+$" will match any 4 character long string of uppercase characters followed by a numerical digit, one or more times. This would match "ABCD1", "HKAJ7" and "HKAU6OLPA2", but not "HKA8LKJA7L" or "QWER5TY".
Using a selector to find one of several matches in a line of text is also easy. "I love (cookies|cakes)" will match both "I love cookies" and "I love cakes". However, it won't match "I love pies".
There are a lot of things to learn about regex in Java. I recommend you look at this article for a great regex guide. You can verify valid regex on this validator site. I also compiled a list of examples below, for those interested:
Filter a single word
(?i)electricity
This will pass the filter if the word "electricity" is present in any case setting.
Filter all uppercase letters in a chat message
^<[A-Za-z0-9]+> [A-Z0-9\W]+$
This will match " HELLO EVERYONE", but not " Hello Everyone", " HELLO EVERYONe" or "HELLO EVERYONE". The \W means any non-word character. For more of these convenient shortcuts, look at the article linked above.
Filter IP addresses
\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
This will match "198.51.100.56" and "203.0.113.176", but not "1967.78.61.251" or "example.com". \d means any numerical character and is a shorthand for "[0-9]".
Remember, you can add several filters! To manage filters, use:
//cl filter add - add a filter
//cl filter clear - removes all filters
//cl filter list - lists your active filters
//cl filter remove - removes a previously set regex filter
//cl filter ridx - removes a filter using an index number from //cl filter list
If you need help using filters in-game, just remember this command: "//cl filter?"
Mod packs, distribution and linking rules (rules updated Nov 24, 2014, reworded April 11, 2015)
The license for each download is prominently visible on its respective download page. You are required to agree to these terms for you to download the mod.
You are allowed to distribute ChatLog in your modpack, but only if you meet all thesecriteria:
You must link back to this page in your credit list
You can place my username in your credits list if you want
You are not allowed to use AdFly or similar services on your modpack download
This mod can not be the only mod in your modpack
Your modpack must contain mods by other authors in addition to ChatLog
If you are using a MultiMC QuickMod modpack, you are not allowed to redistribute the ChatLog files, instead you must list the original ChatLog download link as the target download for the ChatLog QuickMod.*
All other redistributions are strictly prohibited and illegal under copyright law. Illegal redistributions will be taken down. The owner and developer of this mod, bilde2910, reserves the right to revoke these permissions for any reason at any time should bilde2910 find this neccessary.
* QuickMods have not been released yet. More details and information on how to properly bundle ChatLog in a QuickMod pack will be available from me when QuickMods are released.
Linking rules
You are free to link to this topic and/or any pages on my website varden.info, including the direct download links above. You are not allowed to monetize those links with AdFly or similar services. Visitors from such links will automatically be redirected when they land on my site. (That is, I won't prevent you from using monetized links, you'll just end up making your users go somewhere else, and you probably don't want that.)
Frequently Asked Questions
Q: Does this mod require ModLoader or Forge?
A: It depends on which edition of the mod you download.
Q: Can I include this mod in my mod pack?
A: See above section.
Q: How do I install it?
A: Open up your minecraft.jar file with a compression utility like 7-Zip or WinRAR, delete the folder META-INF and move the class file you downloaded into the .jar.
Q: Do I have to pay anything to download this mod?
A: Of course not!
Q: Help, Minecraft freezes, blackscreens or crashes when I use the mod! What is wrong?
A: First of all, check that you deleted the META-INF folder. If you have, ensure you're installing the correct version for your game. If you are, check that you don't have any other mods installed that add a class file with the same name as this one. If you DO have conflicting mods, please tell me of them, and I will add them to the list of incompatible mods. If you DON'T have conflicting mods, read the "Submitting a crash report" section below.
Q: I love this mod so much I feel like donating to you! How can I do that?
A: Well, thank you a lot for appreciating my work that highly! I am sadly unable to get a PayPal account or similar up and running in the near future, so donating would be hard
Known bugs
Does not save other formatting that colors (bold, italics, strikethrough, underline). It was a bit complex to add and was buggy when I tried, so I discarded it for now.
Does not add godtalk. This would be so complex that you wouldn't know, with all the JavaScript and everything.
Not proper HTML syntax, but should work fine still.
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
When testing this out, how was the file size? Does it get big over time?
And if it does can you make it so that it deletes files older than a certain time?
When testing this out, how was the file size? Does it get big over time?
And if it does can you make it so that it deletes files older than a certain time?
Tested it on an intermediately popular server for about an hour, it gave me a 55 kB file. I got on average about 255 bytes per message received.
Sure, I could set up some auto-pruning thing, but I'd obviously need a configuration file for that.. I could make it store messages for the last 30 days containing gameplay. But unless you're a mad chatter, or a spammer visits the server, there's little chance you'd get a ton of chat.
I calculated a little over 10 MB when doing continuous gameplay over 7 days on an intermediately popular server. That's the equivalent of ~10 screenshots
I'll put it on my to-do list, and will work on it as soon as I can.
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
Tested it on an intermediately popular server for about an hour, it gave me a 55 kB file. I got on average about 255 bytes per message received.
Sure, I could set up some auto-pruning thing, but I'd obviously need a configuration file for that.. I could make it store messages for the last 30 days containing gameplay. But unless you're a mad chatter, or a spammer visits the server, there's little chance you'd get a ton of chat.
I calculated a little over 10 MB when doing continuous gameplay over 7 days on an intermediately popular server. That's the equivalent of ~10 screenshots
I'll put it on my to-do list, and will work on it as soon as I can.
Some more quick questions,
Is there a way to filter the saved chat? I.e. spam filter, or not to save, let's say, any Console commands etc.
Does the mod also save chat from the server, i.e. if I do /help does it save the stuff the server spits back at me?
Why should I use this over some other mod that saves chat like TabbyChat?
Some more quick questions,
Is there a way to filter the saved chat? I.e. spam filter, or not to save, let's say, any Console commands etc.
Does the mod also save chat from the server, i.e. if I do /help does it save the stuff the server spits back at me?
Why should I use this over some other mod that saves chat like TabbyChat?
The point of the mod as of yet is to take all the chat the server sends you and save it to disk. I guess I can enter an anti-spam option in the default configuration, that shouldn't be too hard.
Now, I don't know what TabbyChat does, I didn't even know it existed, but I'm not sure it saves chat in colors. The only thing I wanted off my mod was to log chat. And I wanted to make such a mod myself
My mod only has one class file, making the size small, and you don't need to struggle with ZIP folders.
Back to the filtering question. Filtering out /help, console commands etc. could also have been a useful function but I do not see how I would be able to implement it. I'd love to try, but I don't know how.
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
Yes, you can!
Sorry for late reply I try my best to answer every question, but I've been on vacation for a while.
- bilde2910
Rollback Post to RevisionRollBack
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
Even though I stumbled over this mod accidentically, it somehow became one of my standart mods I use when updating MineCraft.
Keep up the great work, dude !
Thanks! It's fun to see my mod is being used
I'll try and update the mod as soon as possible every time Minecraft updates.. when that will be depends on the developing platform I'm using.. but you won't have to wait a long time for me
- bilde2910
Rollback Post to RevisionRollBack
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
I have a suggestion for this mod here. Would it be possible?
I will look into it and see what I can do, thanks for your suggestion
Rollback Post to RevisionRollBack
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
I can't seem to get this mod to work in 1.5.2. The config file is never created and i don't see any chat logs being created either. Help?
Tested against vanilla and using tukmc (which was my ui that I was checking out for a while)
That is really strange. The config and logs should be created.. which OS are you using? And can you confirm that you are putting the file in minecraft.jar, not mods folder?
Love your mod, it's so useful as admin
There's only one thing that I've noticed, the yellow color is almost not readable, is there something you can do about that?
as all normal people on the server talk in yellow, it's impossible to know who it is without highlighting it.
Thanks
I followed Minecraft's chat colors, but I see that the yellow might hard to read. I could add a config setting to change color packs (like default, dark, light etc,) Thanks for telling me
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
The mod now has two included color packs: Default, and Dark. See the Configuration section in the main post for more info. Default is the original colors, and Dark makes everything darker (should be quite obvious). The Dark pack is, unfortunately, a bit dull in my opinion. For information on how to get this new setting into your config file, please see the Configuration section in the main post. There was also a bug fix involving case sensitivity in color codes (minor).
Rollback Post to RevisionRollBack
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
One of the first mods updated to 1.6.1. Before MCP came out. I feel happy.
But I had to decompile and recompile manually. Terrible. Took over an hour :3
So, happy chatting everyone!
EDIT: MCP has come out as of writing this.
Rollback Post to RevisionRollBack
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
I think there's a problem with this mod and Forge on 1.6.1. I couldn't run Minecraft (vanilla launcher) when I dragged the .class file into the Forge Jar file, nor could I get the mod to function when I put it in the mods folder. I have used this mod before, on 1.5.2, so I would roughly know what kind of file it would look like, but I just can't find it.
I think there's a problem with this mod and Forge on 1.6.1. I couldn't run Minecraft (vanilla launcher) when I dragged the .class file into the Forge Jar file, nor could I get the mod to function when I put it in the mods folder. I have used this mod before, on 1.5.2, so I would roughly know what kind of file it would look like, but I just can't find it.
I just tested it, installed the mod in .minecraft\versions\Forge(version)\Forge(version).jar and everything worked for me. I don't know what's causing the problem on your side, but you can try this:
Place the class file in .minecraft\coremods - Tell me if it worked or not, I'll do what I can to fix bugs
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
I just tested it, installed the mod in .minecraft\versions\Forge(version)\Forge(version).jar and everything worked for me. I don't know what's causing the problem on your side, but you can try this:
Place the class file in .minecraft\coremods - Tell me if it worked or not, I'll do what I can to fix bugs
Nope, it doesn't work, I also tried zipping the class file and putting that in the coremods but it didn't work, and installing it into the Forge jar only causes Minecraft to not launch.
Sorry for not coming back to you guys earlier, I've been very busy last week and my website has crashed, so I've spent a lot of time troubleshooting as well. Anyway:
Great mod! Does what it says on the tin and does it really effectively.
Is there any chance that a future release will create different files for outputs from different servers? Right now I think it squashes all the chats together into one file per day, but it'd be nice to get it organized by server.
Thanks for your feedback! I'm sort of already planning to sort logs by server, however, as I'm not sure how this can be done, I've put it on my to-do list for now. Time will tell if I can get this functionality implemented.
Nope, it doesn't work, I also tried zipping the class file and putting that in the coremods but it didn't work, and installing it into the Forge jar only causes Minecraft to not launch.
A little strange this, since it all works for me - but you could try cathedrals' solution below, see if this helps
It's so annoying when bugs don't reproduce for me :/ I guess I'll just blame Java or something.
Placing the .class file in coremods doesn't fix it. I think new versions of Forge don't like edited .jars, which, if that's the case, is really inconvenient. Is there some way to allow this mod to be placed in Forge's /mods folder?
EDIT: Found the fix. Install Forge (with their auto-installer utility), then install ChatLog straight into the .jar. When you go to run the Forge profile in the launcher, edit the profile, check the box that says "JVM Arguments", and in that field, add this to the end:
I ran that profile and it loads the game just fine. Forge 9.10.0.789, Optifine A3 Ultra Preview for 1.6.2, and ChatLog v1.3, with two other mods in Forges /mods folder.
Thanks a lot for your valuable contribution! I don't really have a lot of knowledge about the way Forge works - but I'm sure this will be of help to other users. I'll place your quote on the main post also Again, thank you a lot!
Sincerely yours,
- bilde2910
Rollback Post to RevisionRollBack
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
ChatLog is a mod designed for players who, for whatever reason, like keeping an easily accessible log of chat that arrives in their game from servers and other players. ChatLog was first developed as a vanilla mod in 2012, before being ported to Minecraft Forge when Minecraft 1.6.4 came out. ChatLog's goal is simple - all chat received in the in-game chatbox should be saved in a file, complete with timestamps and colors. All log files are named by date, and stored in .minecraft/chatlogs. It's about as easy as it gets.
ChatLog can be configured to behave differently, if you so desire. The configuration file, .minecraft/config/ChatLog.properties, is created as soon as you connect to a server and receive chat, and allows you to easily alter the way the mod operates. You can change the timestamp format (null to disable timestamps), select between colors packs (0=default, 1=dark), decide whether you want repeated identical messages to only be printed once (collapse_repetitions=true or false) and configure a maximum amount of log files to be stored in the chatlogs directory (-1 for unlimited, is default). In the Forge version, you can also disable logging completely (enabled=false), turn on/off log flags (logflags=true or false)
ChatLog is the first mod in Minecraft's history to be kept up-to-date single-handedly by a bot. The server that you download ChatLog from continually searches for new Minecraft versions, and makes sure to update ChatLog to newer versions whenever they become available. New versions of ChatLog are typically released between 10 and 30 minutes afte new Minecraft versions become available. This means that updates to ChatLog are guaranteed to be released quickly, even if I, the developer, is sleeping or off the grid at the time. Unless, of course, the servers are down.
There are several versions of ChatLog available for you to download. ChatLog Tweak for Meddle versions are the first to be released for every version. ChatLog for Forge follows thereafter if Minecraft Forge is available and functional for the released version of Minecraft.
This ChatLog version is the one that automatically updates whenever new versions are available.
Downloads
All versions, from newest to oldest, are available by clicking this link.
Installation
ChatLog Tweak for Meddle is most easily installed with the Meddle mod loader. It is also compatible with vanilla Minecraft's tweak class loader.
This is the original version of ChatLog, with versions available back to Minecraft 1.4.5.
Downloads
All versions, from newest to oldest, are available by clicking this link.
Installation
ChatLog for Vanilla Minecraft is rather hard to install compared to ChatLog Tweak for Meddle and ChatLog for Forge.
ChatLog for Vanilla Minecraft can be installed on top of OptiFine. To do this, drop the files from the ChatLog zip into the OptiFine jar instead. You do not need to copy or rename any files in this case. Make sure you still delete META-INF.
Video guide
Thanks to NicsGames!
This version of ChatLog offers extensive compatibility with hundreds of other mods and many more features than the other versions. Use the //cl command in-game to view a list of Forge-exclusive features. Keep in mind that ChatLog is a client-side only mod, it will crash if installed on a server.
Downloads
All versions, from newest to oldest, are available by clicking this link.
Installation
ChatLog for Forge is just as easy to install as ChatLog Tweak for Meddle.
Video guide
Thanks to NicsGames!
ChatLog is one of the few mods which are also available to play using Minecraft Classic.
Downloads
All versions, from newest to oldest, are available by clicking this link.
Installation
ChatLog for OpenClassic is as easy to install as the Forge and Meddle versions.
ChatLog for LiteLoader is discontinued. It is still available for download on 1.6.4.
Downloads
All versions, from newest to oldest, are available by clicking this link.
Installation
ChatLog for OpenClassic is, as with Forge, Meddle and OpenClassic versions, easy to install.
Any version supported by Craft.Net
ChatLog for Craft.Net is intended for developers making .Net servers with Craft.Net. This is the only server-side ChatLog distribution.
Downloads
All versions, from newest to oldest, are available by clicking this link.
Installation
For implementation instructions, please refer to this webpage.
Screenshots
Source code
Same license applies to this as to the binary downloads themselves.
ChatLog for Forge:
https://code.varden.info/repo/ChatLog-Forge/
ChatLog for Craft.Net:
https://code.varden.info/repo/ChatLog-Craft.Net/
Regex filtering tutorial (ChatLog 2.0)
Matching regex is done with characters and character groups, and is case sensitive. "A" will match any messages containing an uppercase A. "a" Will match any messages containing a lowercase A. It is possible to make filters case-insensitive by prefixing "(?i)" to the filter. "(?i)a" will match and log all messages containing either lowercase or uppercase A's, or both.
It is possible to match one of several characters. This is done using square brackets. Example: "[a-c]" will match either a, b or c. "[aglu]" will match either a, g, l or u. "[a-exz]" will match any one of a, b, c, d, e, x and z. One can match numbers as well. "[a-d0-4]" will match a, b, c, d, 0, 1, 2, 3 or 4. Keep in mind, regex is case sensitive: "[a-cA-C]" will match a, b, c, A, B or C. "[a-cD-F]" will match a, b, c, D, E or F (case sensitive!). "(?i)" still applies, so "(?i)[a-cD-F]" will match any one of a, b, c, d, e, f, A, B, C, D, E, F.
Regex has a bunch of special characters. They are the following: \, ^, $, . (period), |, *, +, ?, (, ), [, ], { and }. To use any of these, you have to escape them with a backslash. For instance: \$ will match the dollar sign. $ on its own will cause trouble. You can also surround a string using the two special entities \Q and \E, which means "\Q$\E" will match "$", and "\Q\$\E" will match "\$".
To anchor the search query in the text, use the two symbols ^ and $. ^ means "start of text" and $ means "end of text". With query "hello$", you'll match "I say hello", but not "hello world", since "hello" does not come at the end of the second string of characters. Similarly, "^hello" would not match "I say hello", but would match "hello world" because "hello" has to come first. "^hello$" wouldn't match either of them, but would match "hello" on its own, because "hello" is both the first and last word. A period (.) will match any character. Using "." as a query will match any charaters in a line of text. It is useful for separating words: using "hello(.*)world" will match any string that has "hello" at some point and "world" at a later point. This means "hello world", "hello, awesome big world" and "hello otherworld" would all match, but "world, hello!", "hello" and "world" wouldn't match.
Setting how many characters should be matched is also important. "A" will match any single A. It would match, for instance, "A book", "AAA battery" and "I got an A grade". Adding a question mark will match either 0 or 1 character - "A?" will match "A battery", "Cookie", "AAA battery" - in other words, anything. However, if you use the query "I have [0-9]? cookies", it would match any line containing "I have x cookies" where x is a number between 0 and 9. It would also match "I have cookies". However, it would not match "I have 10 cookies" because 10 consists of 2 characters; we're looking for 0 or 1. While "?" means 0 or 1, "+" means 1 or more, "*" means 0 or more, "{4}" means exactly 4 times, and "{5,7}" means 5, 6 or 7 times.
Finally, I'll teach you about grouping and finding one of several possible matches in a line of text. You can group characters with parenthesises. "^([A-Z]{4}[0-9])+$" will match any 4 character long string of uppercase characters followed by a numerical digit, one or more times. This would match "ABCD1", "HKAJ7" and "HKAU6OLPA2", but not "HKA8LKJA7L" or "QWER5TY".
Using a selector to find one of several matches in a line of text is also easy. "I love (cookies|cakes)" will match both "I love cookies" and "I love cakes". However, it won't match "I love pies".
There are a lot of things to learn about regex in Java. I recommend you look at this article for a great regex guide. You can verify valid regex on this validator site. I also compiled a list of examples below, for those interested:
Filter a single word
(?i)electricity
This will pass the filter if the word "electricity" is present in any case setting.
Filter all uppercase letters in a chat message
^<[A-Za-z0-9]+> [A-Z0-9\W]+$
This will match " HELLO EVERYONE", but not " Hello Everyone", " HELLO EVERYONe" or "HELLO EVERYONE". The \W means any non-word character. For more of these convenient shortcuts, look at the article linked above.
Filter IP addresses
\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
This will match "198.51.100.56" and "203.0.113.176", but not "1967.78.61.251" or "example.com". \d means any numerical character and is a shorthand for "[0-9]".
Remember, you can add several filters! To manage filters, use:
//cl filter add - add a filter
//cl filter clear - removes all filters
//cl filter list - lists your active filters
//cl filter remove - removes a previously set regex filter
//cl filter ridx - removes a filter using an index number from //cl filter list
If you need help using filters in-game, just remember this command: "//cl filter?"
Mod packs, distribution and linking rules (rules updated Nov 24, 2014, reworded April 11, 2015)
You are allowed to distribute ChatLog in your modpack, but only if you meet all these criteria:
* QuickMods have not been released yet. More details and information on how to properly bundle ChatLog in a QuickMod pack will be available from me when QuickMods are released.
Linking rules
You are free to link to this topic and/or any pages on my website varden.info, including the direct download links above. You are not allowed to monetize those links with AdFly or similar services. Visitors from such links will automatically be redirected when they land on my site. (That is, I won't prevent you from using monetized links, you'll just end up making your users go somewhere else, and you probably don't want that.)
Frequently Asked Questions
A: It depends on which edition of the mod you download.
Q: Can I include this mod in my mod pack?
A: See above section.
Q: How do I install it?
A: Open up your minecraft.jar file with a compression utility like 7-Zip or WinRAR, delete the folder META-INF and move the class file you downloaded into the .jar.
Q: Do I have to pay anything to download this mod?
A: Of course not!
Q: Help, Minecraft freezes, blackscreens or crashes when I use the mod! What is wrong?
A: First of all, check that you deleted the META-INF folder. If you have, ensure you're installing the correct version for your game. If you are, check that you don't have any other mods installed that add a class file with the same name as this one. If you DO have conflicting mods, please tell me of them, and I will add them to the list of incompatible mods. If you DON'T have conflicting mods, read the "Submitting a crash report" section below.
Q: I love this mod so much I feel like donating to you! How can I do that?
A: Well, thank you a lot for appreciating my work that highly! I am sadly unable to get a PayPal account or similar up and running in the near future, so donating would be hard
Known bugs
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
And if it does can you make it so that it deletes files older than a certain time?
Tested it on an intermediately popular server for about an hour, it gave me a 55 kB file. I got on average about 255 bytes per message received.
Sure, I could set up some auto-pruning thing, but I'd obviously need a configuration file for that.. I could make it store messages for the last 30 days containing gameplay. But unless you're a mad chatter, or a spammer visits the server, there's little chance you'd get a ton of chat.
I calculated a little over 10 MB when doing continuous gameplay over 7 days on an intermediately popular server. That's the equivalent of ~10 screenshots
I'll put it on my to-do list, and will work on it as soon as I can.
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
Some more quick questions,
Is there a way to filter the saved chat? I.e. spam filter, or not to save, let's say, any Console commands etc.
Does the mod also save chat from the server, i.e. if I do /help does it save the stuff the server spits back at me?
Why should I use this over some other mod that saves chat like TabbyChat?
The point of the mod as of yet is to take all the chat the server sends you and save it to disk. I guess I can enter an anti-spam option in the default configuration, that shouldn't be too hard.
Now, I don't know what TabbyChat does, I didn't even know it existed, but I'm not sure it saves chat in colors. The only thing I wanted off my mod was to log chat. And I wanted to make such a mod myself
My mod only has one class file, making the size small, and you don't need to struggle with ZIP folders.
Back to the filtering question. Filtering out /help, console commands etc. could also have been a useful function but I do not see how I would be able to implement it. I'd love to try, but I don't know how.
Thanks your your interest in this mod, though!
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
Yes, you can!
Sorry for late reply I try my best to answer every question, but I've been on vacation for a while.
- bilde2910
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
Thanks! It's fun to see my mod is being used
I'll try and update the mod as soon as possible every time Minecraft updates.. when that will be depends on the developing platform I'm using.. but you won't have to wait a long time for me
- bilde2910
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
I will look into it and see what I can do, thanks for your suggestion
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
Tested against vanilla and using tukmc (which was my ui that I was checking out for a while)
That is really strange. The config and logs should be created.. which OS are you using? And can you confirm that you are putting the file in minecraft.jar, not mods folder?
I followed Minecraft's chat colors, but I see that the yellow might hard to read. I could add a config setting to change color packs (like default, dark, light etc,) Thanks for telling me
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
1.2 released!
The mod now has two included color packs: Default, and Dark. See the Configuration section in the main post for more info. Default is the original colors, and Dark makes everything darker (should be quite obvious). The Dark pack is, unfortunately, a bit dull in my opinion. For information on how to get this new setting into your config file, please see the Configuration section in the main post. There was also a bug fix involving case sensitivity in color codes (minor).
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
If you have a question, I'd be happy to answer
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
But I had to decompile and recompile manually. Terrible. Took over an hour :3
So, happy chatting everyone!
EDIT: MCP has come out as of writing this.
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
I just tested it, installed the mod in .minecraft\versions\Forge(version)\Forge(version).jar and everything worked for me. I don't know what's causing the problem on your side, but you can try this:
Place the class file in .minecraft\coremods - Tell me if it worked or not, I'll do what I can to fix bugs
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.
Nope, it doesn't work, I also tried zipping the class file and putting that in the coremods but it didn't work, and installing it into the Forge jar only causes Minecraft to not launch.
don't click this link...
Thanks for your feedback! I'm sort of already planning to sort logs by server, however, as I'm not sure how this can be done, I've put it on my to-do list for now. Time will tell if I can get this functionality implemented.
A little strange this, since it all works for me - but you could try cathedrals' solution below, see if this helps
It's so annoying when bugs don't reproduce for me :/ I guess I'll just blame Java or something.
Thanks a lot for your valuable contribution! I don't really have a lot of knowledge about the way Forge works - but I'm sure this will be of help to other users. I'll place your quote on the main post also Again, thank you a lot!
Sincerely yours,
- bilde2910
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.