-->
julis

Torque: Load GhostObject of InteriorInstance and TSStatic during gameplay

when mission loading, it's :
- load all datablocks in mission
- stream object that marked up as scopeAlways
- initializes replicators, lighting mission, etc

because in my mission is contain alot of TSStatic and InteriorInstance, so when load mission it's take a long time to finished. So, i decide to change the mark of TSStatic and InteriorInstance to Ghostable.

change is in:
TSStatic.cc
change in constructor,
from:
mNetFlags.set(Ghostable | ScopeAlways);
to:
mNetFlags.set(Ghostable);

in InteriorInstance.cc
from:
mNetFlags.set(Ghostable | ScopeAlways);
to:
mNetFlags.set(Ghostable);

then recompile the engine, and it's work.
But WAAIIITTT !!!, it's get the problem, the problem is
if the player logout and the position is in upstairs,
when the player login, it will be spawned in downstairs, so we must get to solved it.
julis
julis
Load comments