It appears this does not work with Carbon. I am getting the following error and the plugin won't load:
Threading compilation failed for 'D:\AMPDatastore\Instances\RustDevServer01\rust\258550\carbon\plugins\NextGenPVE.cs' [Thread Pool Worker|3479] (Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index)
at ClassDeclarationSyntax System.Collections.Generic.List.get_Item(int index)
at void Carbon.HookCaller.GenerateInternalCallHook(CompilationUnitSyntax input, out CompilationUnitSyntax output, out MethodDeclarationSyntax generatedMethod, out bool isPartial, bool baseCall, string baseName, List classList) in D:/a/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.Common/src/Carbon/Components/HookCaller.cs:line 1383
at void Carbon.HookCaller.GeneratePartial(CompilationUnitSyntax input, out CompilationUnitSyntax output, CSharpParseOptions options, string fileName, List classes) in D:/a/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.Common/src/Carbon/Components/HookCaller.cs:line 1588
at void Carbon.Jobs.ScriptCompilationThread.ThreadFunction() in D:/a/Carbon/Carbon/Carbon.Core/Carbon/src/Threads/ScriptCompilationThread.cs:line 420
It appears this does not work with Carbon. I am getting the following error and the plugin won't load:
Threading compilation failed for 'D:\AMPDatastore\Instances\RustDevServer01\rust\258550\carbon\plugins\NextGenPVE.cs' [Thread Pool Worker|3479] (Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index) at ClassDeclarationSyntax System.Collections.Generic.List.get_Item(int index)
at void Carbon.HookCaller.GenerateInternalCallHook(CompilationUnitSyntax input, out CompilationUnitSyntax output, out MethodDeclarationSyntax generatedMethod, out bool isPartial, bool baseCall, string baseName, List classList) in D:/a/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.Common/src/Carbon/Components/HookCaller.cs:line 1383
at void Carbon.HookCaller.GeneratePartial(CompilationUnitSyntax input, out CompilationUnitSyntax output, CSharpParseOptions options, string fileName, List classes) in D:/a/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.Common/src/Carbon/Components/HookCaller.cs:line 1588
at void Carbon.Jobs.ScriptCompilationThread.ThreadFunction() in D:/a/Carbon/Carbon/Carbon.Core/Carbon/src/Threads/ScriptCompilationThread.cs:line 420