Autohost Games List Changing on Beta

Author: Fyron
Date: Sep 22, 2013 7:55 PM
Category: Dev Log
Posts: 3
We have deployed some changes to the beta version of the site to better support autohost usage with THANCS games. These changes will allow SuicideJunkie to develop a new version of the autohost. The current autohost will no longer work with the beta site. If you are still using the beta site for general feature testing, we recommend that you switch your autohost to use the non-beta site immediately.
The /node/host games list has been split up into three sections. Games that are ready for some action to be taken are available in three states.

empires_ready :: All player empire files have been uploaded. Game is ready for
the host to create the first turn, or the host setup file.

host_ready :: The host setup file has been uploaded. Game is ready for the game
server to generate the first turn.

players_ready :: The game turn is ready to be processed. Either all player order
files have been uploaded, or the turn deadline has passed


Commenter: ekolis
Date: Sep 24, 2013 10:06 AM
Autohost Games List Changing on Beta
Any reason you had to split the /node/host list into three lists, instead of just adding an extra field to each record returned by the /node/host list?
Commenter: Fyron
Date: Sep 29, 2013 10:58 AM
Autohost Games List Changing on Beta
Its really a bundling 3 potential API calls:

  1. give me games that have empire files so that I can start them

  2. give me THANCS games that have a host turn 0 plr file so I can create the first turn

  3. give me games that have player order files so that I can process the current turn

Merging them all into one list would force the client to build extra-careful logic to take these separate actions. Having PBW2 do the work of separating them means the client always knows that everything in one list is in the same state, so the same actions should be taken.
Edited 1 time(s). Lasted edited Sep 29, 2013 10:58 AM.