Remod-org / NextGenPVE

Prevent damage to players and objects in a PVE environment
GNU General Public License v2.0
7 stars 0 forks source link

Backwards Compatibility with Carbon #7

Open dustyhansen opened 2 weeks ago

dustyhansen commented 2 weeks ago

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

RFC1920 commented 2 weeks ago

I just loaded it in Carbon last weekend and it appeared to be loaded and working. Unfortunately, that error says a lot but doesn't tell me much.

RFC1920 commented 2 weeks ago

Yes, still working today.