Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Nova - Development » Orders
Re: Orders Thu, 07 July 2011 05:39 Go to previous messageGo to previous message
Musmuris

 
Master Chief Petty Officer
Stars! Nova developer
Stars! Nova developer

Messages: 96
Registered: June 2011
I agree that not all the state needs to be sent - however keeping track of orders like this will get tricky. Orders can maybe consist of state that the user can change.

e.g. for Fleets the position etc. can't change. However the Name and Waypoint data can change. The client can just write the fleet name and new waypoint data into the orders which the server can check and apply. This is a lot eaiser than trying to work out what waypoints have changed and then applying that diff at the other end.

Merge/Split is tricker. Maybe the fleets sent above also contain current ships and cargo levels. The server can see what fleets it sent the client and can find what fleets exist now, and as long as total cargo & ships at any given position is consistent then it's all good

In fact for fleets maybe it is just simpler to dump all the Fleet State into the orders, then the server just looks at each one and applies relevant changes and ignores things like position. Or if it sees that a fleet has magically moved then it can flag that player as cheating?

Again for stars send the whole production queue. The server can check that the planet can produce that stuff (i.e. make sure that Starbase exists before trying to build a ship)

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Waypoint System
Next Topic: More Testing
Goto Forum:
  


Current Time: Sun May 12 00:20:23 EDT 2024