Jump to content
  • Advertisement
Sign in to follow this  
speciesUnknown

The most basic RTS networking

This topic is 2828 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
Advertisement
The Forum FAQ contains a link to the Age of Empires lockstep networking article ("1,500 archers") which is a description of the canonical lock-step system used by most RTS-es.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!