Hello everyone, I am trying to figure out how to change the startup items on my modded server to my own..
I have the startupitem.py plugin(haven't made any changes to it) and ran it once and got an error, Here is the error.
Code:[Oxide] 8:13 PM [Error] Failed to call hook 'OnPlayerRespawned' on plugin 'StartupItems v1.0.1' Traceback (most recent call last): File "StartupItems.py", line 40, in OnPlayerRespawned RuntimeError: Failed to call OnPlayerRespawned (KeyNotFoundException: The given key was not present in the dictionary.) at System.Collections.Generic.Dictionary`2<string, object>.get_Item (string) <0x001c5> at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object,object) <0x000c4> at Microsoft.Scripting.Interpreter.DynamicInstruction`3<object, object, object>.Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x00113> at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x000c8>
Trouble changing startup items
Discussion in 'Rust Development' started by JET2000, Dec 15, 2015.
-
Calytic Community Admin Community Mod
That means you are trying to access an item in a collection by an index without checking if the index exists first.
-
Okay so what do you recommend I should do?
-
Calytic Community Admin Community Mod
Check if the index exists first.
We can't tell you specifically without the code. -
It's the original startup items plugin.
-
Calytic Community Admin Community Mod
What is your configuration? This problem looks like a malformed configuration file. Specifically in the "Admin" section
