NRE on staging build todaySolved

Hi, I ran staging server today and got a few(5) NREs after the server started up. I looked up the IDs in my data file and they were monuments that only had a drop zone (assets/bundled/prefabs/modding/dropzone.prefab) set. Thanks.

[Error] [Monument Addons] Caught exception when spawning addon 36d5234f-50a3-4a46-a10f-f6486e6eb128.
System.NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.MonumentAddons+PrefabAdapter.Spawn () [0x0002f] in <a412204416ce42f0966f03b2d0cd173d>:0 
  at Oxide.Plugins.MonumentAddons+BaseController.SpawnAtMonument (Oxide.Plugins.MonumentAddons+BaseMonument monument) [0x00014] in <a412204416ce42f0966f03b2d0cd173d>:0 
  at Oxide.Plugins.MonumentAddons+BaseController+<SpawnAtMonumentsRoutine>d__19.MoveNext () [0x00075] in <a412204416ce42f0966f03b2d0cd173d>:0 ​

Thanks for reporting this. I tested and was able to reproduce the issue, but I'm not sure how to solve it.

I also see these 2 lines before the above error:

Prefab 'assets/bundled/prefabs/modding/dropzone.prefab' requires asset scene 'AssetScene-props.11' to be loaded first.
Couldn't find prefab "assets/bundled/prefabs/modding/dropzone.prefab"

It may have something to do with the maps we are testing with. I speculate that doing this on a custom map which already has the prefab placed somewhere may avoid this issue.

In the worst case, I may be able to simply create a game object and add the CH47DropZone component as a workaround.

 

Thanks, something about the "Loading Optimisations" coming I presume. It seems silly they have these modding prefabs for us but then it doesn't get loaded? I placed a dropzone manually in the .map file before running it and still had the NRE issues from monumentaddons at startup. I would think the server should have loaded what it needed before MonumentAddons tried to spawn them? Good luck and thanks again.

Merged post

I think this is solved now. 

This is happening to me right now (minus the NRE) in a vanilla map generated by my staging server (changeset 128110) with Carbon Staging:

Prefab 'assets/bundled/prefabs/modding/dropzone.prefab' requires asset scene 'AssetScene-props' to be loaded first.
Couldn't find prefab "assets/bundled/prefabs/modding/dropzone.prefab"
[Monument Addons] Caught exception when spawning addon e24d1ae8-8db7-4f98-b5af-c171632a81af.
System.NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.MonumentAddons+PrefabAdapter.Spawn () [0x00028] in C:\Games\rustStaging\carbon\plugins\MonumentAddons.cs:6653 
  at Oxide.Plugins.MonumentAddons+BaseController.SpawnAtMonument (Oxide.Plugins.MonumentAddons+BaseMonument monument) [0x00014] in C:\Games\rustStaging\carbon\plugins\MonumentAddons.cs:6521 
  at Oxide.Plugins.MonumentAddons+BaseController+<SpawnAtMonumentsRoutine>d__19.MoveNext () [0x00075] in C:\Games\rustStaging\carbon\plugins\MonumentAddons.cs:6540 ​


Merged post

Also happens with Oxide staging:
Prefab 'assets/bundled/prefabs/modding/dropzone.prefab' requires asset scene 'AssetScene-props' to be loaded first.
Prefab 'assets/bundled/prefabs/modding/dropzone.prefab' requires asset scene 'AssetScene-props' to be loaded first.
Couldn't find prefab "assets/bundled/prefabs/modding/dropzone.prefab"
Couldn't find prefab "assets/bundled/prefabs/modding/dropzone.prefab"
[Monument Addons] Caught exception when spawning addon e24d1ae8-8db7-4f98-b5af-c171632a81af.
System.NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.MonumentAddons+PrefabAdapter.Spawn () [0x0002f] in <340dd7d6b6444ad59836addc8b8deca1>:0 
  at Oxide.Plugins.MonumentAddons+BaseController.SpawnAtMonument (Oxide.Plugins.MonumentAddons+BaseMonument monument) [0x00014] in <340dd7d6b6444ad59836addc8b8deca1>:0 
  at Oxide.Plugins.MonumentAddons+BaseController+<SpawnAtMonumentsRoutine>d__19.MoveNext () [0x00075] in <340dd7d6b6444ad59836addc8b8deca1>:0 
[Monument Addons] Caught exception when spawning addon e24d1ae8-8db7-4f98-b5af-c171632a81af.
System.NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.MonumentAddons+PrefabAdapter.Spawn () [0x0002f] in <340dd7d6b6444ad59836addc8b8deca1>:0 
  at Oxide.Plugins.MonumentAddons+BaseController.SpawnAtMonument (Oxide.Plugins.MonumentAddons+BaseMonument monument) [0x00014] in <340dd7d6b6444ad59836addc8b8deca1>:0 
  at Oxide.Plugins.MonumentAddons+BaseController+<SpawnAtMonumentsRoutine>d__19.MoveNext () [0x00075] in <340dd7d6b6444ad59836addc8b8deca1>:0 
Prefab 'assets/bundled/prefabs/modding/dropzone.prefab' requires asset scene 'AssetScene-props' to be loaded first.
Prefab 'assets/bundled/prefabs/modding/dropzone.prefab' requires asset scene 'AssetScene-props' to be loaded first.
Couldn't find prefab "assets/bundled/prefabs/modding/dropzone.prefab"
Couldn't find prefab "assets/bundled/prefabs/modding/dropzone.prefab"
[Monument Addons] Caught exception when spawning addon 561c8a0b-3dea-4dbc-82cd-a7a9ed012d1d.
System.NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.MonumentAddons+PrefabAdapter.Spawn () [0x0002f] in <340dd7d6b6444ad59836addc8b8deca1>:0 
  at Oxide.Plugins.MonumentAddons+BaseController.SpawnAtMonument (Oxide.Plugins.MonumentAddons+BaseMonument monument) [0x00014] in <340dd7d6b6444ad59836addc8b8deca1>:0 
  at Oxide.Plugins.MonumentAddons+BaseController+<SpawnAtMonumentsRoutine>d__19.MoveNext () [0x00075] in <340dd7d6b6444ad59836addc8b8deca1>:0 
[Monument Addons] Caught exception when spawning addon 561c8a0b-3dea-4dbc-82cd-a7a9ed012d1d.
System.NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.MonumentAddons+PrefabAdapter.Spawn () [0x0002f] in <340dd7d6b6444ad59836addc8b8deca1>:0 
  at Oxide.Plugins.MonumentAddons+BaseController.SpawnAtMonument (Oxide.Plugins.MonumentAddons+BaseMonument monument) [0x00014] in <340dd7d6b6444ad59836addc8b8deca1>:0 
  at Oxide.Plugins.MonumentAddons+BaseController+<SpawnAtMonumentsRoutine>d__19.MoveNext () [0x00075] in <340dd7d6b6444ad59836addc8b8deca1>:0 
Prefab 'assets/bundled/prefabs/modding/dropzone.prefab' requires asset scene 'AssetScene-props' to be loaded first.
Prefab 'assets/bundled/prefabs/modding/dropzone.prefab' requires asset scene 'AssetScene-props' to be loaded first.
Couldn't find prefab "assets/bundled/prefabs/modding/dropzone.prefab"
Couldn't find prefab "assets/bundled/prefabs/modding/dropzone.prefab"
[Monument Addons] Caught exception when spawning addon 23202c37-0889-40f0-a533-046c9cf16567.
System.NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.MonumentAddons+PrefabAdapter.Spawn () [0x0002f] in <340dd7d6b6444ad59836addc8b8deca1>:0 
  at Oxide.Plugins.MonumentAddons+BaseController.SpawnAtMonument (Oxide.Plugins.MonumentAddons+BaseMonument monument) [0x00014] in <340dd7d6b6444ad59836addc8b8deca1>:0 
  at Oxide.Plugins.MonumentAddons+BaseController+<SpawnAtMonumentsRoutine>d__19.MoveNext () [0x00075] in <340dd7d6b6444ad59836addc8b8deca1>:0 
[Monument Addons] Caught exception when spawning addon 23202c37-0889-40f0-a533-046c9cf16567.
System.NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.MonumentAddons+PrefabAdapter.Spawn () [0x0002f] in <340dd7d6b6444ad59836addc8b8deca1>:0 
  at Oxide.Plugins.MonumentAddons+BaseController.SpawnAtMonument (Oxide.Plugins.MonumentAddons+BaseMonument monument) [0x00014] in <340dd7d6b6444ad59836addc8b8deca1>:0 
  at Oxide.Plugins.MonumentAddons+BaseController+<SpawnAtMonumentsRoutine>d__19.MoveNext () [0x00075] in <340dd7d6b6444ad59836addc8b8deca1>:0 ​
Locked automatically