Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Nova - Development » ClientState and .intel files
Re: ClientState and .intel files Thu, 23 June 2011 17:13 Go to previous messageGo to previous message
Aeglos is currently offline Aeglos

 
Chief Warrant Officer 1
Stars! Nova developer
Stars! Nova developer

Messages: 142
Registered: May 2011
Location: Chile
Multiple copies to an extent, yes.

For example, the ServerState currently holds all the fleets in the game on AllFleets and seends them ALL to each player each turn. Ideally each EmpireData object (one for each player) would hold a separate collection of KnownFleets which the server populates from AllFleets during turn generation depending on what each player owns and sees with scanners, so the data would be duplicated to an extent; but the difference is that EmpireData.KnownFleets should contain FleetReports (FleetIntel? there is a naming conflict with a dialog) instead of Fleets, just as the KnownStars collection should contain StarReports instead of Star objects.

The EmpireData(s) would be assembled during turn generation for each player and sent out with what each player needs to know only, and the local copy can then be used on the next turn to check for valid orders. For example if a nasty player edits his .order file to include designs with tech he doesn't own, or magically adds a fleet of Nubians, the server just checks if those tech/fleet/star/resources were available to that player on his last sent EmpireData and validate the orders or flag as scum Twisted Evil before processing his turn.

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
Previous Topic: rev630 - failing on WinXP using MonoDevelop
Next Topic: Amount of Info on scanning enemy fleets
Goto Forum:
  


Current Time: Sat Apr 27 16:00:28 EDT 2024