Game Development Community

AIPlayer Move Problem

by Boğaz Harbi · in Torque 3D Professional · 12/15/2009 (11:58 am) · 2 replies

I'm working on T3D 1.0. I have set the stage with 15 characters and Fps is about 38-39 but they are not walking regularly.

I do not encounter the same problem when I reduce the number of characters.
AIWheeledVehicle class has the same problem and the cars that I done with this resource are not moving regularly too.

I wonder where the problem might be... so it need to be worked properly with this high fps value...

About the author

We are working on FPS game project called Boğaz Harbi : Epic of Gallipoli War at Kodgraf Game Studio in Ankara, Turkey. http://www.bogazharbi.com/en http://www.bogazharbigame.com http://twitter.com/bogazharbigame http://facebook.com/bogazharbigame


#1
12/15/2009 (12:08 pm)
1. If you are on T3D 1.0, move on to to 1.01, it's more stable bugfixed.

2. LOD characters, vehicles and generally everything (anything that moves especially) "aggressively".

3. This is probably the real issue here:

Even in single player mode, T3D uses a server/client system.

In game/scripts/client/prefs.cs change the network settings (caution: this may cause problems on multiplayer).

//old settings
$Pref::Net::LagThreshold = "400";
$pref::Net::PacketRateToClient = "10";
$pref::Net::PacketRateToServer = "32";
$pref::Net::PacketSize = "200";

//new settings
$Pref::Net::LagThreshold = "400";
$pref::Net::PacketRateToClient = "32";
$pref::Net::PacketRateToServer = "32";
$pref::Net::PacketSize = "450";

The new settings are maximums (I believe). That'll give you more bandwidth to send updates and info. But will cause problems online if you're connection isn't up to scratch.

edit:
Also interesting looking game!
#2
12/15/2009 (12:47 pm)
I did the changes you said...

But a few characters plays the walking animation and the others moving slidely...