I had made one change in hovervehicle.cpp here some time ago
// Todo: ScopeAlways?
mNetFlags.set(Ghostable); << had this set to scopealways, changed it back. I do use the hovervehicle for a helicopter.
Which brings up a question about vehicles in general, they are not scoped ?
In the vehicle creation in my code I was calling onAdd() on each of the vehicles I made, and discovered the vehicle.cs also did an onAdd so each vehicle was hitting an onAdd twice via Parent:;onadd so I changed that.
I wanted to be sure it wasn't some object I was adding to the scene so I added this at line 970:
// Iterate through the scope always objects...
for (j = mGhostZeroUpdateIndex - 1; j >= 0; j--)
Con::printf("Ghost %d %s",j,mGhostArray[j]->obj->getClassName());
What this did was allow me to see each object from the mission file get loaded ( but it doesn't show vehicles )
After these changes we got through the game couple times with no crash.
I did add the TORQUE_DEBUG_NET define and now I get this in the log file. Mostly around mount and dismount and on death Game crashed shortly after this line.
PlayerData::doDismount(331, Kublah, 1)
yes all that code is there.
I use the same code you would do for a dm cycle
I call cancel all game schedules then endMission() in gamecore.cs then delay 1 to 5 seconds before a call to loadMission(x.mis) and it fails on the load in ghost loading