Skip to main content
gamedev.net
🔒 Locked

Networking Data Transfers!

Started by Raptor Aug 27, 2000 at 3:25 AM 1 replies 500+ views
Original Post
Raptor
Raptor
In a Real Time Strategy Game, what data should be sent from each player to the others over a peer2peer network. is it enough to send just the players input, with syncronize or should object positions be sent all the time. how does this work, Iam using DPlay. Raptor
MK42
MK42
I don''t think you have to send every click, but every ''action'' the user makes (including a synchronized timestamp) should do fairly well. For example, in order to build a unit, you usually select a building unit, choose a building and a place where to build it. For this you would just send the information (encoded in whatever scheme you use)



Also, moving a unit would only involve something like:

< player P moves unit U to position POS>

The simulation of these commands would then be done on each machine seperately. Also, after a certain number of game slices you might try to synch both simulations in order to make sure that everything is OK. Here you might also just synch the parts which have been modified.

BTW, this is the wrong forum to post this message to!! Try general game discussion or networking.

- MK42
MK42
MK42
Oops, just saw you were using DPlay ... so forget about that ''wrong forum'' thing.

- MK42

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.