Game Development Community

Client/Server synchronization

by Olivier Arguimbau · in Torque Game Engine · 01/09/2002 (1:13 am) · 3 replies

Hi.

I want to know if there's a way (i'm sure it is but i don't know how yet) to get a single TIMER on the server and synchronize it on each clients.

What i want to do is to synchronize the water waves on all clients. The water waves use a sinus function depending on the position and the current time, if i can synchronize the clients with the server timer i can have an uniform wave on all clients.

I'm sure it's an easy question.
I hope....

#1
01/09/2002 (2:10 am)
Take a look at the mission timer code. Mission time is synchronised on all clients, there is a tutorial about mission timers somewhere I think, either that or its part of the standard gui interface.

Phil.
#2
01/09/2002 (2:49 am)
I'll take a look.
I didn't find a tutorial on mission timer but i'll look at the code...

Thanks for your help !
#3
01/09/2002 (5:40 am)
Cool :)

I use Sim::getSimTime() and it works fine !

Now with the magic function fluid::GetWaterLevel... i can move my vehicles on the waves :)

I'm happy :)