Here's the weird thing though, it's not always broken. If I query the game by the username the <players> field is null, however if I do the request by passing in the Game Number I get the correct result. It's all really weird.
Request: http://www.conquerclub.com/api.php?mode ... n=13438668
Result:
- Code: Select all
<api>
<page>1 of 1</page>
<games total="1">
<game>
<game_number>13438668</game_number>
<game_state>A</game_state>
<tournament/>
<private>N</private>
<speed_game>N</speed_game>
<map>Vertex</map>
<game_type>P</game_type>
<initial_troops>E</initial_troops>
<play_order>S</play_order>
<bonus_cards>2</bonus_cards>
<fortifications>P</fortifications>
<war_fog>Y</war_fog>
<trench_warfare>N</trench_warfare>
<round_limit>0</round_limit>
<round>4</round>
<time_remaining>22:56:28</time_remaining>
<chat>102889063</chat>
<players>
<player state="Waiting">koontz1973</player>
<player state="Waiting">koontz1973</player>
<player state="Waiting">koontz1973</player>
<player state="Waiting">Leehar</player>
<player state="Ready">Leehar</player>
<player state="Waiting">Leehar</player>
</players>
<events/>
</game>
</games>
</api>
Request: http://www.conquerclub.com/api.php?mode ... n=13438668 and http://www.conquerclub.com/api.php?mode ... eehar&gs=a
Result: (Why does this return 3 results including two bad ones?)
- Code: Select all
<api>
<page>1 of 1</page>
<games total="3">
<game>
<game_number>13438668</game_number>
<game_state>A</game_state>
<tournament/>
<private>N</private>
<speed_game>N</speed_game>
<map>Vertex</map>
<game_type>P</game_type>
<initial_troops>E</initial_troops>
<play_order>S</play_order>
<bonus_cards>2</bonus_cards>
<fortifications>P</fortifications>
<war_fog>Y</war_fog>
<trench_warfare>N</trench_warfare>
<round_limit>0</round_limit>
<round>4</round>
<time_remaining>23:00:56</time_remaining>
<chat/>
<players></players>
<events/>
</game>
<game>
<game_number>13438668</game_number>
<game_state>A</game_state>
<tournament/>
<private>N</private>
<speed_game>N</speed_game>
<map>Vertex</map>
<game_type>P</game_type>
<initial_troops>E</initial_troops>
<play_order>S</play_order>
<bonus_cards>2</bonus_cards>
<fortifications>P</fortifications>
<war_fog>Y</war_fog>
<trench_warfare>N</trench_warfare>
<round_limit>0</round_limit>
<round>4</round>
<time_remaining>23:00:56</time_remaining>
<chat/>
<players></players>
<events/>
</game>
<game>
<game_number>13438668</game_number>
<game_state>A</game_state>
<tournament/>
<private>N</private>
<speed_game>N</speed_game>
<map>Vertex</map>
<game_type>P</game_type>
<initial_troops>E</initial_troops>
<play_order>S</play_order>
<bonus_cards>2</bonus_cards>
<fortifications>P</fortifications>
<war_fog>Y</war_fog>
<trench_warfare>N</trench_warfare>
<round_limit>0</round_limit>
<round>4</round>
<time_remaining>23:00:56</time_remaining>
<chat>102889063</chat>
<players>
<player state="Waiting">koontz1973</player>
<player state="Waiting">koontz1973</player>
<player state="Waiting">koontz1973</player>
<player state="Waiting">Leehar</player>
<player state="Ready">Leehar</player>
<player state="Waiting">Leehar</player>
</players>
<events/>
</game>
</games>
</api>
Is there an ETA on a fix for this? My app won't run for anyone in a polymorphic game until this is fixed or I write some code to work around it.