Game Development Community

TGEA 1.71 Bug and Fix: Water Block Not Visible

by Devin Passage · in Torque Game Engine Advanced · 08/09/2008 (3:21 pm) · 1 replies

Hey, if your water block isn't appearing when you use a dedicated server, change

at line 151 in waterBlock.cpp


void WaterBlock::onGhostAlwaysDone()
{
if ( isClientObject() )
setupVBIB();
}

to

void WaterBlock::onGhostAlwaysDone()
{
// if ( isClientObject() )
// setupVBIB();
}

then at line 132, comment out

NetConnection::smGhostAlwaysDone.notify( this, &WaterBlock::onGhostAlwaysDone );

and above it paste in:

if ( isClientObject() )
setupVBIB();

your water block will now appear when connecting to a ded. server.

#1
08/11/2008 (7:16 pm)
Hum... while this work around fixes the issue.... the bigger problem is that the ghost always signal doesn't work when a client connects to a dedicated server.

Did you look into this at all? I would trace to see why NetConnection::smGhostAlwaysDone.trigger/signal isn't getting called on your client when connecting to a dedicated server.