BetterChat

Moved

Total Downloads: 26,143 - First Release: Apr 21, 2015 - Last Update: Jan 12, 2018

4.9898/5, 98 likes
  1. I'm maybe wrong because I'm new to the Rust admin community and I don't know Oxide very well, but I think BetterChat should be most "transparent" as possible for adminitrators, it means that it shouldn't break the default internal behavior of the chat.
    Currently, I've the feeling that BetterChat is like a new chat replacing the old one and removing all the default behavior of this one.
    Because of that, admins adding BetterChat can sometime break their administration workflow and 3rdparty apps devs must write more specific code to work with it. That's why I think the last RCON change is a good starting point to deal with that.

    Now my question is: In your code is there a way to use/extend a more "standard" send method to hook the default message behavior and internally do exactly the same things as if a regular message were sent (without making additional things to "simulate" it) ? I think trying to simulate the default behavior can cause unexpected things happen.

    I don't know if i'm clear, I hope you'll understand what I mean.

    Thanks
     
    Last edited by a moderator: Sep 21, 2017
  2. i dont like the new version about this:
    * now sending messages to RCON as chat type message

    the plugin spam the console with this:

    (16:07:16) | {

    "Message": "pec707: friends",

    "UserId": 76561198838340356,

    "Username": "pe1707",

    "Color": null,

    "Time": 1506002837


    how can i disable this in console
     
  3. After installing plugin we have some problem... Double chat. How to disable standart chat and work with BetterChat only in Rust?
    Ex:
    [Admin] Muchacho: Hi!
    Muchacho: Hi!
     
    Last edited by a moderator: Sep 21, 2017
  4. Is anyone else having issues with BetterchatFilter?
     
  5. For help with BetterChat Filter, please go to that plugins support thread.
    [DOUBLEPOST=1506091718][/DOUBLEPOST]
    I am simply calling what rust uses in its own chat handling. I'll see what else I gotta add.
    [DOUBLEPOST=1506091750][/DOUBLEPOST]
    Are you using a RCON client?
     
  6. Ignore this! Pasted something in wrong spot

    (11:12:07) | [Better Chat Mute] Unable to call hook directly: OnBetterChat(System.Collections.Generic.Dictionary`2[System.String,System.Object])
     
  7. Hello there , trying to get different colors for Titles/Username and message for each group i have!
    I have 5 groups default/steam/vip/moderador and admin.
    BetterChat.json [ { "GroupName": "default", "Priority": 0, "Title": { " - Pastebin.com

    default group Gyazo - 636622eba1058ae7f4ccafec845c3005.png
    used usergroup add revoolt steam
    steam group Gyazo - 42ba250295192f155db6c694134a47ff.png
    used usergroup add revoolt vip
    vip group Gyazo - ba721c61cf5555167b361bca8ed68a28.png
    etc

    Can you please tell me what im doing wrong ?
    Thanks in advance !
     
  8. I'll be more than happy to help you out. Message me on Discord (Psifio):
     
  9. I am having an issue where people automatically keep getting added back to the default group when I've removed them and added them to another. Also the plugin is preventing Rust:IO clan tags from showing as well.
     
  10. [Error] Error while compiling: BetterChat.cs(10,7): error CS0246: The type or namespace name `Facepunch' could not be found. Are you missing an assembly reference?
     
  11. If I try run the command: /chat user groups "PlayerName"

    This error happens: Syntax: chat user <add|remove>

    I'm trying to see what betterchat has myself in which groups but the syntax is wrong apparently?

    I can't get the titles to show as I am trying to get player rankings to work. I have posted on that support thread but was curious does my BetterChat data file look correct?

    Code:
    [
      {
        "GroupName": "default",
        "Priority": 1,
        "Title": {
          "Text": "[New Player]",
          "Color": "White",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "White",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "hero",
        "Priority": 2,
        "Title": {
          "Text": "[Hero]",
          "Color": "#6C6CFF",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#ce422b",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "treasurehunter",
        "Priority": 3,
        "Title": {
          "Text": "[Treasure Hunter]",
          "Color": "#55aaff",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#ce422b",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "vip",
        "Priority": 0,
        "Title": {
          "Text": "[VIP]",
          "Color": "#45c920",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#800000ff",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "newman",
        "Priority": 4,
        "Title": {
          "Text": "[Newman]",
          "Color": "#FF00FF",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#d85540",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "regular",
        "Priority": 5,
        "Title": {
          "Text": "[Regular]",
          "Color": "#0000FF",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#0000FF",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "pro",
        "Priority": 6,
        "Title": {
          "Text": "[Pro]",
          "Color": "#00FF00",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#00FF00",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "l33t",
        "Priority": 7,
        "Title": {
          "Text": "[L33T]",
          "Color": "#d85540",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#FF00FF",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      }
    ]
    Essentially I want to have it so new joining players get the default group [New Player] then after that it goes [Newman] etc. etc. The group's: vip, hero & treasure hunter are assigned by different plugins.

    Do I have to have them in a specific priority?

    Also does Betterchat change the oxide group of players or does it keep them in default and append extra groups? Like [Newman] etc.
     
  12. priority is wrong default needs to have the highest number also you need to add the admin and moderator group as they are default groups for auth 1 and 2
    admin = 0
    moderator = 1
    upload this file then reload plugin all auth level 1 and 2 would be best to relog
     

    Attached Files:

    Last edited by a moderator: Sep 27, 2017
  13. Thank you @Resistance didn't realise I required admin and mod. Also didn't realise default needed to be highest number either!

    If I make the "default" group the Parent of: "Newman", "Regular", "Pro" & "L33T" would that affect the showing of titles? For instance I have the PlayerRankings plugin and am trying to get that to show the default as [New Player] (as shown in this) and then Newman etc. however none of those titles are showing and I just can't work it out! Any ideas?
     
  14. If you want more than one title to show then you need to set HiddenIfNotPrimary to false for Newman, Regular, Pro & L33T groups
     
  15. oh no I just want one of the player rankings titles (which ever one they are currently at) with vip or no vip after that followed by player challenges title then clan if any, finally the username.

    So:

    [Pro][VIP][Lumber Jack][Miner][Clan Tag]USERNAME:
    (PlayerRanking)(Manually added group)(PlayerChallenges)(ClansReborn)

    Or:

    [Newman][Deadshot]USERNAME:

    Hope this makes more sense now?
     
  16. Try what I posted first to see if its what you wanted
     
  17. it seems to work for non VIP's but if you are in the VIP group then you don't get the player ranking title :/ I'm not sure what to do tbh
     
  18. try setting HiddenIfNotPrimary to false for all groups except default, admin and mod
     
  19. Hey mate! With Hurtworld V2 right around the corner it will be quite useful to start adding some things from rust only plugins that work with betterchat to work universally. For example "betterchat mute" would be quite useful for Hurtworld V2.

    As you probably know, Hurtworld admins have no really been able to take advantage of BetterChat due to its chat mechanism hating more than a little bit of formatting. V2 is going to have this problem fixed, so many Hurtworld admins will be looking to use it.