ArgumentNullException in OnPlayerChatError
You're done because you just dont like to update it, or are you doing because of cant handle criticism? Like, dont see me as some kind of enemy, I'm just saying and giving my opinion.
for example, we have player challenges fully recoded to handle more challenges. We deleted over 30% of unneeded code and simplified it. Normally, the plugin loads within 2000ms. With the simplified code, it takes only 400 ms before it's loaded and well, including the fix when the server would reboot that you would lose your ranks until reload of the plugin. ( own use only ofc )
If you dont want to split it, I dont mind it. Again, I just give my opinion and only want to help out reporting issues to make plugins better.
Merged post
For people still having these issues:
- Make sure all your channel IDs are correct.
- Make sure your bot token is correct.
- Make sure your bot is online and invited to Discord.
- If possible, install a secondary test server with a tiny map and only rustcord and oxide installed, see if it works on that.
It seems to be an issue with only a few people that the game and discord arent connecting properly.
Merged post
Also list your server host company please.
others should do the same. There is such a big difference between having the rustcord plugin active or not.
Kirollos has identified an issue in the Discord Extension that may be causing ArgumentNullException issue for some people, but we are unsure if this also fixes the ArgumentException error posted above.
@imkat98@quietconundrum@knoepert@Addiis Please try updating your extension to 1.0.6 when it's pushed through and see if Rustcord works properly now.
OuTSMoKE
Kiro is looking into this further.
Merged post
For people still having these issues:
- Make sure all your channel IDs are correct.
- Make sure your bot token is correct.
- Make sure your bot is online and invited to Discord.
- If possible, install a secondary test server with a tiny map and only rustcord and oxide installed, see if it works on that.
It seems to be an issue with only a few people that the game and discord arent connecting properly.
Merged post
Also list your server host company please.
Make sure you don't have any duplicates with the same channel id. That breaks it. I had to re write the entire config until I found it
Failed to call hook 'OnPlayerChat' on plugin 'Rustcord v2.4.1' (ArgumentException: oldValue is the empty string.)
at System.String.ReplaceInternal (System.String oldValue, System.String newValue) [0x00016] in <437ba245d8404784b9fbab9b439ac908>:0
at System.String.Replace (System.String oldValue, System.String newValue) [0x0000e] in <437ba245d8404784b9fbab9b439ac908>:0
at Oxide.Plugins.Rustcord.OnPlayerChat (BasePlayer player, System.String message, ConVar.Chat+ChatChannel channel) [0x000fe] in <08d9766d174749af9d75c270db826ce2>:0
at Oxide.Plugins.Rustcord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003b2] in <08d9766d174749af9d75c270db826ce2>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
My config:
{
"FilterWords": [
"",
"",
""
],
"FilteredWord": "<censored>",
"LogExcludeGroups": [
"default"
],
"LogExcludePerms": [
"example.permission"
],
"Apikey": "censored",
"AutoReloadPlugin": false,
"AutoReloadTime": 901,
"GameChatIconSteamID": 76561197960324311,
"GameChatTag": "[OsloDiscord]",
"GameChatTagColor": "#7289DA",
"GameChatNameColor": "#55aaff",
"GameChatTextColor": "#ffffff",
"LogChat": true,
"LogJoinQuits": true,
"LogDeaths": true,
"LogVehicleSpawns": true,
"LogCrateDrops": false,
"LogUserGroups": true,
"LogPermissions": true,
"LogKickBans": true,
"LogNameChanges": true,
"LogServerCommands": true,
"LogServerMessages": true,
"LogF7Reports": true,
"LogTeams": true,
"LogRCON": true,
"LogPluginAdminHammer": true,
"LogPluginAdminRadar": false,
"LogPluginBetterChatMute": true,
"LogPluginClans": true,
"LogPluginDiscordAuth": true,
"LogPluginPrivateMessages": true,
"LogPluginRaidableBases": false,
"LogPluginSignArtist": true,
"LogPluginVanish": false,
"ReportCommand": "report",
"Commandprefix": "!",
"Channels": [
{
"Channelid": "563195087371108372",
"perms": [
"cmd_allow",
"cmd_players",
"cmd_kick",
"cmd_com",
"msg_join",
"msg_quit",
"msg_chat",
"death_pvp",
"death_npc",
"death_vehicle",
"msg_serverinit",
"log_groups",
"msg_planespawn",
"msg_bradleyspawn",
"msg_shipspawn",
"msg_helispawn",
"msg_chinookspawn",
"plugin_adminhammer",
"plugin_betterchatmute",
"log_namechange",
"cmd_mute",
"cmd_unmute"
]
},
{
"Channelid": "563195087371108372",
"perms": [
"msg_joinlog"
]
},
{
"Channelid": "563195106275098624",
"perms": [
"game_report",
"log_f7reports"
]
},
{
"Channelid": "752175191001530379",
"perms": [
"game_bug",
"log_teams",
"msg_teamchat"
]
}
],
"Commandroles": {
"players": [],
"kick": [
"Admins",
"Staff",
"Mods"
],
"mute": [
"Admins",
"Staff",
"Mods"
],
"unmute": [
"Admins",
"Staff",
"Mods"
],
"com": [
"Admins",
"Staff"
]
}
}I have autoexec for the plugin
{
"FilterWords": [
"",
"",
"" Rustcord keeps spitting out this error:
It'll keep looping this with a little break in between.
Merged post
Issue has been identified, disabling GroupLimits allows in-game chat to relay to Discord. Any chance there's a way to make these 2 plugins compatible? As a duo server, i'm highly dependant on this plugin. Or is there an alternative plugin I could use for this?
Merged post
Nvm, bad umod page for Group Limits, it listed a denpendancy as a "works with" instead.
Hi,
I get following error when i send a chat message ingame and Rustcord wants to display it in a discord channel:
[Better Chat] [Global] [Support] [BlaueFraktion] Funkybeatz: f
Failed to call hook 'OnPlayerChat' on plugin 'Rustcord v2.5.2' (ArgumentException: oldValue is the empty string.)
at System.String.ReplaceInternal (System.String oldValue, System.String newValue) [0x00016] in <fb001e01371b4adca20013e0ac763896>:0
at System.String.Replace (System.String oldValue, System.String newValue) [0x0000e] in <fb001e01371b4adca20013e0ac763896>:0
at Oxide.Plugins.Rustcord.OnPlayerChat (BasePlayer player, System.String message, ConVar.Chat+ChatChannel channel) [0x000fe] in <cfe2f9e2a53047dea28f32254adc7641>:0
at Oxide.Plugins.Rustcord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003b2] in <cfe2f9e2a53047dea28f32254adc7641>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0 solved!ProxiSolved: These can't be empty.{ "FilterWords": [ "", "", ""
Hey Folks, I know this is old, but I just had this error on the latest version, googling for answers brought me here, and thought it would be good to update this thread on what caused the error for me and how my error was easily fixed, obviously it may not fix everyones errors.
In my settings file I had the removed "badword1" and left "" instead, and just assumed it would not censor any words, this caused the error and putting a word in there rather than a blank fixed the issue (there are plenty of words to choose from ;) :
"Filter Settings": {
"Chat Filter: Replacement Word": "<censored>",
"Chat Filter: Words to Filter": [
"badword1"
]
},
and apparently I also can't see when there's pagnation and the solution was posted a long time ago :)
- 1
- 2