Game Development Community

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:
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.

#1
09/22/2010 (9:16 am)
In T3D 1.1 Beta 2 the code moved to sceneObject.cpp!