Hello, just updated rust/oxide, and now when I run my plugin I get an ArgumentNullException - Parameter name: key.
code :
r.prefab being a string, r.pos a Vector3 and r.rot a Quaternion.Code:Debug.Log(r.prefab + " / " + r.pos + " / " + r.rot); BaseEntity entity = GameManager.server.CreateEntity(r.prefab, r.pos, r.rot, true);
Worked before update, rest of the plugin seems ok. Any clues ?
EDIT : Actually it doesnt fail. It seems the entity is still created, but that warning (?) in the console slows the server down when spawning many entities.
Argument cannot be null. Parameter name: key
Discussion in 'Rust Discussion' started by Yatta, Jul 8, 2016.
-
Hello
How could i find out what plugins causing this issue without deleting all of them lol i have about 30 also i have updated all plugins with today's update..or is there a log file i can get more infomation
Thanks
ArgumentNullException: Argument cannot be null.
Parameter name: key -
same here cant find it
-
Wulf Community Admin
Check your RustDedicated_Data/output_log.txt for the full error.
-
Just for confirmation, a plugin containing only this :
Code:void OnServerInitialized() { BaseEntity entity = GameManager.server.CreateEntity("assets/bundled/prefabs/autospawn/resource/beachside-deadtrees/deadtree-1.prefab", new Vector3(0,100,0), Quaternion.identity, true); }
-
Thanks wulf
[DOUBLEPOST=1468008580][/DOUBLEPOST]All i could find any idea?
Code:nullReferenceException: Object reference not set to an instance of an object at StorageContainer.Load (.LoadInfo info) [0x00000] in <filename unknown>:0 at SaveRestore.Load (System.String strFilename, Boolean allowOutOfDateSaves) [0x00000] in <filename unknown>:0 at ServerMgr.Initialize (Boolean loadSave, System.String saveFile, Boolean allowOutOfDateSaves, Boolean skipInitialSpawn) [0x00000] in <filename unknown>:0 at Bootstrap+<StartServer>c__IteratorF.MoveNext () [0x00000] in <filename unknown>:0 at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0 (Filename: Line: -1)NullReferenceException
-
I'm getting the same error, pretty often. Often it happens when entities spawn, such as with Cornucopia or after people kill animals.
-
anyone else with this issue after last update?
-
same error here
Often it happens when entities spawn, such as with Cornucopia or after people kill animals. -
i removed them plugins as a test same error
-
seems like an update error of rust
-
u not alone my friend i have the error too
-
Try start the server without plugins like Cornucopia, Betterloot.
-
Rust done a patch today redo your steam update on your server and oxide update fixed it for me all working on my server.
-
How to Redo My Steam Update? Nvm Confuzed u meant server update XD
it doesnt do nothing the error. it just spamming mate -
well it stopped my spam msgs
-
Ok i will try it... but later btw what is your server name so i can join?
-
Under modded Servers
[AU/NZ] Mrs Moon|3x|BetterLoot|Shop|Kits|TP+4 Homes|QuickSmelt -
Last bump ... still have that problem that gives a 5min+ extra server loading time
-
Wulf Community Admin
The only thing I can think is that the asset path could have changed for that prefab if it worked before and not now.
Code:ArgumentNullException: Argument cannot be null. Parameter name: key at System.Collections.Generic.Dictionary`2[SpawnPopulation,System.Int32].ContainsKey (.SpawnPopulation key) [0x00000] in <filename unknown>:0 at SpawnHandler.AddInstance (.Spawnable spawnable) [0x00000] in <filename unknown>:0 at Spawnable.Add () [0x00000] in <filename unknown>:0 at Spawnable.OnEnable () [0x00000] in <filename unknown>:0