Jump to content
  • Advertisement
  • entries
    59
  • comments
    0
  • views
    4786

The mysteries of networking code

Sign in to follow this  
LordArt

455 views

I am almost done the load/save code.  This will be a HUGE milestone, because not only does it provide the foundation for the full multiplayer code, but it allows long term play of Rank: Warmaster.  This is crucial since any testing so far was always a brand new game because it had to be.  I am leveraging the networking code as the load/save code.  Because there are almost 60 structures types that need to be sent, this is rather complicated, needless to say.  Until earlier this month, the basics were being sent by hand.  No longer.  I am rather proud of a “byte code” concept that I came up with to move structures simply.  By defining an entire structure, not only can it be broken down generically and sent, but it can be reassembled the same way on the other side with minimal data transferred.   Another advantage is that it reweaves itself back into the client system as if it was natively created there.  This allows me to send entire waves of information and it finds the right spot to go to on the other side.  Without this new means of data transfer, I would still be doing things by hand and I would be months away from finishing this piece of the game.

 

This has already been tested in deep space, and that worked perfectly.  While I had reported earlier about getting the multiplayer code running, which was true, this is now sending the entire game state, including the cities and buildings, damage, and other background information, which is far more complicated (including the individual tech trees).   I am greatly looking forward to seeing everything in action!

 


View the full article

Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!