1. Hello, just updated rust/oxide, and now when I run my plugin I get an ArgumentNullException - Parameter name: key.

    code :
    Code:
                        Debug.Log(r.prefab + " / " + r.pos + " / " + r.rot);
                        BaseEntity entity = GameManager.server.CreateEntity(r.prefab, r.pos, r.rot, true);
    
    r.prefab being a string, r.pos a Vector3 and r.rot a Quaternion.

    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.
     
    Last edited by a moderator: Jul 8, 2016
  2. 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
     
  3. same here cant find it
     
  4. Wulf

    Wulf Community Admin

    Check your RustDedicated_Data/output_log.txt for the full error.
     
  5. 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);
            }
    
    is sufficient to reproduce the problem. Can someone confirm if they can reproduce the issue so I can be sure its not coming from my oxide setup/update ?
     
  6. 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
     
  7. I'm getting the same error, pretty often. Often it happens when entities spawn, such as with Cornucopia or after people kill animals.
     
  8. anyone else with this issue after last update?
     
  9. same error here
    Often it happens when entities spawn, such as with Cornucopia or after people kill animals.
     
  10. i removed them plugins as a test same error
     
  11. seems like an update error of rust
     
  12. u not alone my friend i have the error too
     
  13. Try start the server without plugins like Cornucopia, Betterloot.
     
  14. Rust done a patch today redo your steam update on your server and oxide update fixed it for me all working on my server.
     
  15. How to Redo My Steam Update? Nvm Confuzed u meant server update XD

    it doesnt do nothing the error. it just spamming mate
     
  16. well it stopped my spam msgs :)
     
  17. Ok i will try it... but later btw what is your server name so i can join?
     
  18. Under modded Servers
    [AU/NZ] Mrs Moon|3x|BetterLoot|Shop|Kits|TP+4 Homes|QuickSmelt
     
  19. Last bump ... still have that problem that gives a 5min+ extra server loading time :(
     
  20. Wulf

    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