Jump to content

Carbon: OnTeamMemberInvite patch failure when loading Clans v1.1.57

Pending 1.1.57

rd800919
rd800919

Posted

Hello Mevent,

I am using Clans v1.1.57 on a Carbon Rust server.

When I load or reload Clans, the plugin loads successfully, but Carbon fails to patch the OnTeamMemberInvite hook.

Console log:

Unloaded plugin Clans v1.1.57 by Mevent A hook request for 'OnTeamMemberInvite[0105ee]' received: - The current status is FAILURE: Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RelationshipManager.sendinvite_Patch2 (ConsoleSystem/Arg): IL_011b: ret - Check for possible errors on the log file Loaded plugin Clans v1.1.57 by Mevent [Clans] Loaded 0 clans! A hook request for 'OnTeamMemberInvite[0105ee]' received: - The current status is FAILURE: Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RelationshipManager.sendinvite_Patch2 (ConsoleSystem/Arg): IL_011b: ret - Check for possible errors on the log file Error while patching hook 'OnTeamMemberInvite[0105ee]' Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RelationshipManager.sendinvite_Patch2 (ConsoleSystem/Arg): IL_011b: ret at MethodInfo HarmonyLib.PatchFunctions.UpdateWrapper(MethodBase original, PatchInfo patchInfo) at MethodInfo HarmonyLib.PatchProcessor.Patch() at MethodInfo HarmonyLib.Harmony.Patch(MethodBase original, HarmonyMethod prefix, HarmonyMethod postfix, HarmonyMethod transpiler, HarmonyMethod finalizer) at bool Carbon.Hooks.HookEx.ApplyPatch() in /home/runner/work/Carbon/Carbon/src/Carbon/src/Hooks/HookEx.cs:line 170

I tested this with the Rust Team integration options disabled in Clans.json, including:

"Automatic team creation": false, "Allow players to leave their clan by using Rust's leave team button": false, "Allow players to kick members from their clan using Rust's kick member button": false, "Allow players to invite other players to their clan via Rust's team invite system": false, "Allow players to promote other clan members via Rust's team promote button": false, "Allow players to accept a clan invite using the Rust invite accept button": false, "Force to accept a clan invite using the Rust invite accept button": false, "Show clan creation interface when creating a team?": false, "Force to create a clan when creating a team?": false

However, Clans still appears to request or subscribe to OnTeamMemberInvite when the plugin loads, and Carbon still attempts to patch RelationshipManager.sendinvite.

My goal is to use Clans normally on Carbon, and ideally I would like to use:

"Automatic team creation": true

But currently the OnTeamMemberInvite patch error appears even when the Rust Team integration options are disabled.

Could you please check if OnTeamMemberInvite needs an update for the current Rust / Carbon hook signature, or add a config option to completely skip subscribing to Rust Team hooks when Rust Team integration is disabled?

If needed, I can provide my Clans.json, Carbon version, Rust server version, and the full log file.

Thank you.

I really like the plugin and would prefer to keep using Mevent Clans with Clans Top, so I hope this can be fixed instead of disabling the plugin entirely.

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11k
Customers served
Files Sold
158.6k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.