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 07:49 Go to previous messageGo to previous message
Musmuris

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

Messages: 96
Registered: June 2011
Aeglos wrote on Thu, 07 July 2011 07:02


What I understood is that for merging, for example, the client merges the fleets, and sends it's state with the fleets already merged. So the server checks if it's valid and updates it's own copies. But to do so, it needs to first find the two fleets that were merged, and double check that everything is still the same; designs, components, cargo amounts, damage amounts.



Well to find the fleets it can use ship IDs as a ship can only ever be in one fleet. Once it's done that it just has to check what cargo is in the new fleets and make sure that the totals are the same as previously, and that each fleet can carry what it now has. Damage ammouns, designs and components CANNOT be changed by the client so it doesn't check those, it just ignores them, throws them away in fact, and keeps what it already has from what it sent to the client.

I.e. it takes the ships from the previous turns, puts them into new the fleet objects, adjusts the cargo and fuel etc.

[edit to remove last edits]



[Updated on: Thu, 07 July 2011 07:59]

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 02:34:25 EDT 2024