AdvancedChat filters for CubeVille

Made your own guide, or can't find one you need? Post here!
Post Reply
User avatar
magicus
Posts: 15
Joined: Sun Feb 21, 2021 4:28 pm

AdvancedChat filters for CubeVille

Post by magicus »

If you too feel overwhelmed about the amount of text that comes in on the chat, I highly recommend installing the AdvancedChat mod.

About AdvancedChat

The AdvancedChat mod adds among other the following functionality:
  • Ability to use smaller font for chat to see more backlog
  • Ability to store much longer log of the chat, and to persist it after logging out
  • An even larger chat history, with search
  • Ability to split chat into "tabs" based on filters
  • You can chose to only see incoming messages in a specific tab (e.g. local chat messages) in real time, and only check other tabs "at will" later on. (Beware though, that this might make you miss important messages in other tabs)
  • You can chose to filter out some tabs, e.g. the highly repetitive [Cubeville] announcements.

About my Cubeville configuration

As a starting point, I will provide my configuration for AdvancedChat (see below), that adds the following tabs:
  • msg -- private messages sent using /msg
  • grp -- group messages sent using /p
  • local -- local messages sent using normal chat (no command)
  • glob -- global chat sent using /y
  • mch -- market chat sent using /mch
  • pvp -- pvp chat (send using /pvp, I assume..?)
  • info -- all [Cubeville] announcements
  • log -- all login/logout announements
  • misc -- all other messages, e.g. death messages, NPC conversations, command feedback
AdvancedChat also adds a Main tab, which contains chat from all tabs that are not blocked. In my setup, only info messages are blocked. (So you can use this purely as a way to filter out the [Cubeville] announcements, if that's all you need.)

Notes

I've experienced only one problem/pitfall: if you select a tab while being in the chat, then only messages from that tab will show up during play. While this can be useful to silence a discussion in the global chat to focus only on a private, local or group chat, it is also easy to forget that you have selected that filter (and wonder why noone replies to your global chat messages...), or even to select it by mistake when in the chat. My rule is: before leaving the chat, make sure to click on Main, unless I really really want to filter it out.

(There was a problem with hovers and links, but this has been fixed now.)

I also highly recommend replacing T with Return as the hotkey to bring up the chat. This way, you can both open and close the chat dialog using the same key.

Installing my configuration

The AdvancedChat mod will create a configuration file named config/advancedchat/filterconfig.json which will be in your .minecraft directory. (The location of this differs from system to system, ask for assistance if you need help finding it!) This will be created after you run Minecraft with the mod installed the first time. Do this, exit Minecraft, and then open the file in a text editor. Copy the contents below, and paste them in the text editor to replace all of the default file that was created by the mod. Save the file. When you restart Minecraft, you should have my configuration. You can now modify it to your heart's content. (There is a "Setting" button in the chat to change it.)
Expand to show configuration

Code: Select all

{
  "filters": [],
  "tabs": [
    {
      "name": "Other Messages",
      "findString": "^(?!\\[|\u003c)(?!(\\((From|To) )).+(?\u003c! the game\\.)$",
      "findType": "regex",
      "startingMessage": "",
      "forward": true,
      "abreviation": "misc"
    },
    {
      "name": "Login/logout",
      "findString": " (left)|(joined) the game\\.$",
      "findType": "regex",
      "startingMessage": "",
      "forward": true,
      "abreviation": "log"
    },
    {
      "name": "Server Info",
      "findString": "^\\[Cubeville\\] ",
      "findType": "regex",
      "startingMessage": "",
      "forward": false,
      "abreviation": "info"
    },
    {
      "name": "PVP",
      "findString": "^\\[PVP\\]",
      "findType": "regex",
      "startingMessage": "",
      "forward": true,
      "abreviation": "pvp"
    },
    {
      "name": "Market",
      "findString": "^\\[Market\\]",
      "findType": "regex",
      "startingMessage": "",
      "forward": true,
      "abreviation": "mch"
    },
    {
      "name": "Global",
      "findString": "^\\Q[||||||||||]\\E",
      "findType": "regex",
      "startingMessage": "",
      "forward": true,
      "abreviation": "glob"
    },
    {
      "name": "Local",
      "findString": "^\u003c",
      "findType": "regex",
      "startingMessage": "",
      "forward": true,
      "abreviation": "local"
    },
    {
      "name": "Group",
      "findString": "^\\[Group\\]",
      "findType": "regex",
      "startingMessage": "",
      "forward": true,
      "abreviation": "grp"
    },
    {
      "name": "Private",
      "findString": "^\\((From|To) ",
      "findType": "regex",
      "startingMessage": "",
      "forward": true,
      "abreviation": "msg"
    }
  ],
  "timeFormat": "HH:mm",
  "replaceFormat": "[%TIME%] ",
  "timeColor": {
    "red": 255,
    "green": 255,
    "blue": 255,
    "alpha": 255,
    "color": -1
  },
  "clearOnDisconnect": false,
  "visibility": "VANILLA",
  "chatStack": 0,
  "alternatelines": false,
  "background": "TRANSPARENT",
  "chatConfig": {
    "height": 171,
    "width": 280,
    "showTabs": true,
    "lineSpace": 9,
    "yOffset": 30,
    "xOffset": 0,
    "storedLines": 1000,
    "chatscale": 0.5,
    "hudBackground": {
      "red": 0,
      "green": 0,
      "blue": 0,
      "alpha": 100,
      "color": 1677721600
    },
    "emptyText": {
      "red": 255,
      "green": 255,
      "blue": 255,
      "alpha": 255,
      "color": -1
    },
    "showTime": true,
    "sideChars": 5
  },
  "chatLogConfig": {
    "storedLines": 3000,
    "showTime": false
  }
}
Last edited by magicus on Wed Mar 10, 2021 8:34 am, edited 1 time in total.
OfflineOffline
User avatar
Epich
Posts: 297
Joined: Sun Jan 31, 2021 2:50 am
Location: haha epich go brrr

Re: AdvancedChat filters for CubeVille

Post by Epich »

cool, but i can press p or press f1 too but maybe this is good
the nubbiest of nubs which wants to be good at building and is bad is literally everything else (also featuring being neither a founder, mayor, member and 0 popularity as well as 1 game coin)


so hi whats up
OfflineOffline
dogmatic69
Posts: 44
Joined: Tue Feb 16, 2021 8:23 pm

Re: AdvancedChat filters for CubeVille

Post by dogmatic69 »

p does not work on CV due to the custom chat and F1 simply hides everything which makes play kinda difficult. I've just setup this and it works great. Also nice to have notifications for mentions / msg
OfflineOffline
Post Reply