error in console
[ERRO] Failed to call internal hook 'Paste' on plugin 'CopyPaste v4.2.0' [1499839286] (Object reference not set to an instance of an object)
at PasteData Oxide.Plugins.CopyPaste.Paste(ICollection<Dictionary<string, object>> entities, Dictionary<string, object> protocol, bool ownership, Vector3 startPos, IPlayer player, bool stability, float rotationCorrection, float heightAdj, bool auth, Action callback, Action<BaseEntity> callbackSpawned, string filename, bool checkPlaced, bool enableSaving) in C:/rustservers/XXXXXXXX/plugins/CopyPaste.cs:line 1164
at object Oxide.Plugins.CopyPaste.InternalCallHook(uint hook, object[] args) in CopyPaste.cs/Internal:line 404
[ERRO] Failed to call internal hook 'Paste' on plugin 'CopyPaste v4.2.0' [1499839286]Not An Issue
somehow plugin still works with raidable bases but it throws this error on every paste and its spamming the console
Yup same here
are your errors on Carbon or Oxide?
Getting this on Carbon.
it might be that Carbon has parameter support limit at 13 and needs to increase it still
Carbon as well here
I asked Raul and he said that's not the issue, because the parameters are going across as an object array in this case.nivexit might be that Carbon has parameter support limit at 13 and needs to increase it still
Merged post
I noticed that it's failing when dereferencing the protocol parameter. Raidable Bases seems to check if it's null before calling, but doesn't check if the cast to dictionary succeeds. Not sure if it's possible for the cast to fail.
"protocol" would not be null, which is why the second "Paste" call with 13 arguments works. if you send 14 arguments then Carbon shows every single argument as being null (debug Puts from the CopyPaste plugin in the Paste method). if you send 13 arguments then none of them are null.
_ => HookCaller.CallStaticHook(hookId, args, true),
this should handle arguments 14 and above but it doesn't appear to be working
Raul says he's fixed the issue and is currently testing.
very nice
Raul pushed a Carbon update v2.0.138 that has fixed the issue for me. Everyone give this a try.