• Advertisement
Sign in to follow this  

The most basic RTS networking

This topic is 2710 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

I wanted to try my hand at some network programming, and I thought that making a basic network structure for an RTS would be a good place to do it. I've been playing around with raknet and it seems perfectly powerful enough for the task, I'd like to know something about the basics of networking an RTS game.

As far as I can see, you have two kinds of datagram to be send wrt an RTS game. The first is an event which every client must recieve. The second is simply an incremental update, whereby if one does not arrive, the next one will contain a newer set of data and so its not a problem.

What does the basic RTS network architecture look like, with this in mind?

I'm thinking that as the player gives a command to a unit, each command given requires "guaranteed" delivery. This will go to the server, which will do the task of resolving what each unit on the battlefield should be doing. Then, on each server tick, all clients recieve an update of where units are, where they are currently headed to (in the form of a map grid) and their basic stats such as health.

Does this sound sane?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement