Error when loading base

[RaidableBases] 100% loaded (957 potential points)
[RaidableBases] Grid initialization completed in 33 seconds and 820 milliseconds on a 2750 size map with 957 potential points.
You've successfully pasted the structure
NullReferenceException: Object reference not set to an instance of an object

 

Says i pasted the base, but it doesnt show up on the map, all the settings are set to show a map marker. I am interested in buying the paid plugin, but i wanted to test the free one first to ensure it would work.

hi, i'd need the full error. that error message is missing the error stack which shows specifically where the error is coming from. you can find that in the server logs (not the oxide logs) and if thats not enabled then you can ask your host how to do that, or add -logfile server.log to your startup parameters if you know how and where to do so

[2024.12.15 08:27:00] [INFO] [RaidableBases] 25% loaded (164 potential points)
[2024.12.15 08:27:07] [INFO] [RaidableBases] 50% loaded (453 potential points)
[2024.12.15 08:27:15] [INFO] [RaidableBases] 75% loaded (787 potential points)
[2024.12.15 08:27:23] [INFO] [RaidableBases] 100% loaded (957 potential points)
[2024.12.15 08:27:23] [INFO] [RaidableBases] Grid initialization completed in 33 seconds and 773 milliseconds on a 2750 size map with 957 potential points.
[2024.12.15 08:27:26] [INFO] You've successfully pasted the structure
[2024.12.15 08:27:42] [ERRO] Unhandled error occurred (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.RaidableBases+RaidableBase.AddToLoot (Oxide.Plugins.RaidableBases+LootItem lootItem) (at /home/container/carbon/plugins/RaidableBases.cs:6650)
at Oxide.Plugins.RaidableBases+RaidableBase.AddToLoot (System.Collections.Generic.List`1[T] source) (at /home/container/carbon/plugins/RaidableBases.cs:6641)
at Oxide.Plugins.RaidableBases+RaidableBase.PopulateLoot (System.Boolean unique) (at /home/container/carbon/plugins/RaidableBases.cs:6902)
at Oxide.Plugins.RaidableBases+RaidableBase.SetupLoot () (at /home/container/carbon/plugins/RaidableBases.cs:5485)
at Oxide.Plugins.RaidableBases+RaidableBase+<EntitySetup>d__465.MoveNext () (at /home/container/carbon/plugins/RaidableBases.cs:5261)
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <470ec865e9cd405cbc45cdbc22bb3c0c>:0)

hi, that error means you have a bad loot table where shortname is null or "" somewhere. 

you can edit the .cs and change line 14948

if (ti.amount == 0 || BlacklistedItems.Contains(ti.shortname))​
to
if (ti.amount == 0 || string.IsNullOrEmpty(ti.shortname) || BlacklistedItems.Contains(ti.shortname))​

you should really fix your loot table also

Thank you for the response. I will look at the loot table!

no problem