Game Development Community

PackUpdate problem

by Radoslaw Marcin Kurczewski · in Torque Game Engine · 09/10/2003 (6:21 am) · 3 replies

Hi,

I have a problem with ai cars in my racing game. They behave quite well but a few seconds after start they suddenly stop in place for a while and after that are teleported far away.
I found that the problem happens because client doesn't receive data from server (no packUpdate for this particular moment).
The question is why packUpdate is not sent as it was a minute ago and will be again later, while processTick() for my ai car is called as often as earlier.
The server HAS proper data, just doesn't send them...

Any ideas?

Best regards

Ania

#1
09/10/2003 (9:15 am)
I had a similar problem with one of my projectiles. It would appear for a second, then just disappear - no render, no packUpdate, no nothing. I figured out that it was because I wasn't setting up the bounding box, so it was getting occluded from render and the network. If this is a custom class, it could be a similar problem.
#2
09/10/2003 (10:18 pm)
Hi, thanx for response

I use standard WheeledVehicle class and there is nothing special in it. The bounding box is also setup correctly.
Rendering is ok, I can see an AI car, the problem is that data for positioning the car are not sent.
#3
09/14/2003 (5:04 am)
Hi, again

After some more tests I discovered that this problem occurs only if I switch to camera mode and follow the AI car.
While driving a car, AI car in front of me goes smoothly.
It looks like this gap happens when AI car leaves visibility area of my car.