Why Do RTSProjectiles Not Render On Client Machines?
by Robert Seeman · in RTS Starter Kit · 03/04/2009 (9:55 pm) · 3 replies
A host server shows every RTSprojectile that gets created. However, none of the clients see any of the projectiles, explosions, or anything other than RTSUnits and RTSBuildings.
Do projectiles need to be generated on the client side also?
I've tried adding:
mNetFlags.clear(Ghostable); // (add this) NOT ghostable - don't want this networked
mNetFlags.set(IsGhost);
to RTSprojectile.cc (1.5.2) but it simply results in the .exe crashing whenever a new RTSprojectile is created.
Do projectiles need to be generated on the client side also?
I've tried adding:
mNetFlags.clear(Ghostable); // (add this) NOT ghostable - don't want this networked
mNetFlags.set(IsGhost);
to RTSprojectile.cc (1.5.2) but it simply results in the .exe crashing whenever a new RTSprojectile is created.
#2
%q = new RTSProjectile()
{
dataBlock = TestProjectile;
initialVelocity = 0;
targetPos = %tpos;
speed = 23;
initialPosition = %ipos;
sourceObject = %src;
};
MissionCleanup.add(%q);
03/08/2009 (7:58 pm)
The crash occurs at the moment the RTSProjectile is called:%q = new RTSProjectile()
{
dataBlock = TestProjectile;
initialVelocity = 0;
targetPos = %tpos;
speed = 23;
initialPosition = %ipos;
sourceObject = %src;
};
MissionCleanup.add(%q);
#3
In Visual Studio you can click the call stack window, hit CTRL-A to select everything, then CTRL-C to copy the whole stack.
03/08/2009 (10:10 pm)
I don't know why it would do that. Can you get a call stack from running in a debugger? That would reveal more.In Visual Studio you can click the call stack window, hit CTRL-A to select everything, then CTRL-C to copy the whole stack.
Torque Owner Geom