Game Development Community

Vehicle in multiplayer

by Albert Steckenborn · in Torque Game Engine Advanced · 10/21/2006 (8:37 am) · 4 replies

Hello guys,

i've coded the Game-Physics-Engine (http://www.game-physics-engine.info/) into the TSE so i can fly an airplane with it. My implementation is not finished yet.

I have the following problem:
I've started my game on two different clients. The Client1 is a server (not dedicated) and the Client2 joined the game. On the Client1 i can walk arount and i let swan an airplane and i can fly with it. On client2 the same. All Airplanes are wisible on both clients. If i want to fly on client2 with the vehicle swawned (created) by client1 i cannot control it.

May be its something with writePacketData and readPacketData ?
Can anybody help me out ?

Thanks forward.

#1
10/25/2006 (5:20 am)
If you have implemented the game physics engine, then you will also need to modify the network code within torque. This is in order to transmit the plane position, orientation etc. etc. after calculating the physics effects. The client shouldn't know anything about the physics from it's end.

Presumably at the moment both the client and the server are fighting for physics level control of the plane. This would result in erratic and un-predictable movement.
#2
10/25/2006 (1:51 pm)
Hi,

thx for reply. Now i understand.
I've read that the simulation is normally done by both (client and server) and both will synced (server wins) for the control object by writePacketData() and readPacketData().

All other clients (not controling the object) will updated by packUpdate() and unpackUpdate().

Hope that's correct :-D

What i wanna do is that the simulation will done only by client. Only the Parameter and User Input's for the simulation will control by server.


How can i do this ?
#3
10/29/2006 (5:42 am)
Hi.

Why should the server calculate the physics ? Only for cheating puroposes. What is when 64 Players doing something physically in the world ? The server performance will be go down. This way do not make any sense for me.

At the Moment i see that the TSE/TGE cannot handle our requirements.

The support in forum ore somewhere else is not really good. I needed two weeks to get the correct information about the world coordinates in GG and the reply in forum was wrong, too. I've found it out by myself. Everything you need to know to create a good game you have to seach very long for it. And nn i need to know are basic informations.

Yes. They have TDN but the really necessary things are not documented (create a controlable object). I guess thats the reason why not many games are released with the TGE Engine (except Tribes).

I think i will take a look to other engines... I'm sad to search for basically informations and writing posts where nobody will reply or the reply is too generally or not helpful.

greeting
#4
11/01/2006 (10:14 pm)
No reply, as ever