Jump to content

error on some base loads

Pending 2.1.0

mainloot

Posted

Hi,

We got a player report about a base they previously saved not loading properly. It gets to 96%, but then fails to continue. I noticed at time of load, it fails with:

08/29 22:50:25 | Failed to execute OnFrame callback (Object reference not set to an instance of an object.)
at void Oxide.Plugins.Creative.MapEntityID(IOEntity ioEntity, JObject ioData, string key) in /var/www/servers/us-build/carbon/plugins/Creative.cs:line 5892
at void Oxide.Plugins.Creative.MapConnectedIDs(IOEntity ioEntity, JObject entityData, bool cp) in /var/www/servers/us-build/carbon/plugins/Creative.cs:line 5833
at Task Oxide.Plugins.Creative.SpawnEntitiesCopyPasteStyle(BasePlayer player, JArray entitiesArray, Vector3 zoneCenterPos, float fileCenterX, float fileCenterY, float fileCenterZ, float fileRotDiff, float fileRotY, Quaternion rotation, string saveName, float terrainYOffset)+() => { } in /var/www/servers/us-build/carbon/plugins/Creative.cs:line 5234
at void Carbon.Managers.CarbonProcessor.Update() in /__w/Carbon/Carbon/Carbon.Core/Carbon/src/Processors/CarbonProcessor.cs:line 63

it seems connectedTo can be null in some cases and it may not be getting checked?

I've attached a copy of the base json that causes the error if it helps.

bunker1.json

mainloot

Posted

I think what it might boil down to is spawn order. It's spawning io entities before it spawns the foundations on which it's supposed to live

mainloot

Posted

the copy paste style method seems to load everything in the order in which they're present in the data file. IO entities, etc don't wait for foundations to fully spawn. We applied a fix locally and seems to resolve the issue. Hoping to see a similar change implemented here. We can provide a snippet of what we added if that would be helpful

1.9m

Downloads

Total number of downloads.

9.2k

Customers

Total customers served.

134.8k

Files Sold

Total number of files sold.

2.8m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.