• Advertisement

Archived

This topic is now archived and is closed to further replies.

Networking Data Transfers!

This topic is 6447 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites

  • Advertisement