Mounted Spotlight on Multiplayer Missions with fix
by Thomas · in Torque 3D Professional · 08/25/2010 (1:20 pm) · 1 replies
On Multiplayer I have a mounted Spotlight. It showed that the client drops connection on connection, because the spotlight unpackUpdate function couldn't resolve the mount object.
So I put in lightBase.cpp line 287 the following:
This line fixed my problem, because all ghosts have been initialized on initialupdate and the spotlights mounts on second turn!
This issue may appaear in T3D1.1 B2 as well, there the resolve mechanism has moved to sceneObject.cpp, but is the same mechanism.
So I put in lightBase.cpp line 287 the following:
if (stream->writeFlag(gIndex != -1 && !(mask & InitialUpdateMask))) // ADD InitialMask Test
This line fixed my problem, because all ghosts have been initialized on initialupdate and the spotlights mounts on second turn!
This issue may appaear in T3D1.1 B2 as well, there the resolve mechanism has moved to sceneObject.cpp, but is the same mechanism.
About the author
A guy from a farm, milking cows and driving tractors... Otherwise I run in burning houses and save some furniture lives...
Torque 3D Owner Thomas
mercatronics