Newly created sector exports are failing to import, stating a ClassCastException as the fault.
I imported a sector export called "TheHub" to sector 50 50 50. I made a few changes. Then did a /force_save, waited, and then did a /sector_export to save the changes to a new export file. I then attempted to import the newly created export to sector 60 60 60 to verify it and the import operation failed with a class cast exception.
{F26716}
These ships are part of a "Hub" area, where we sell filled blueprint for bronze bars. We hand out bronze bars as prizes for doing quests and participating in admin events.
So, I tried some more combinations of things.
When saving only ONE ship entity that has newly filled blueprints in it's storage, it also failed.
{F26714}
When saving only ONE ship entity that has NO filled storages.
{F26718}
I then tried saving a few new sector exports, one being blank and the other with only a NEW single core.
{F26720}
Both were successful.
I then took an old ship which was only a power reactor (old) and thruster. I saved a sector export and reimported it.
{F26722}
This was successful.
So then I tried importing the sector export, "TheHub" to sector 50 50 50 again. This time I changed nothing. I did a /force_save and ran "/sector_export 50 50 50 TheHub-TheTest". I then attempted to import this sector to 60 60 60 and it failed with a "ClassCastException: Null" error.
{F26728}
I do not know what is causing the error. Perhaps the fact that entities are docked to each other? I will continue testing and see if I can find the root cause and will update this if I'm successful.
**Here are the sector exports:**
TheHub - This will load in correctly. This export was created prior to the Systems 2.0 update.
{F26730}
TheHub-TheTest - This will NOT load correctly. This is simply a resave of TheHub with no changes made, AFTER the systems 2.0 update.
{F26731}
**Edit: Upon further testing, it seems that when a any entities are DOCKED within the sector when the export is done, it corrupts.**