1. I have corrected the e-mail settings so that outgoing e-mails from these forums should be sent now. If you tried to Register or Reset your Password, please try again!
    Dismiss Notice

Error in esamirmap json

Discussion in 'Census: General Discussion' started by Casey, Apr 5, 2013.

  1. Casey

    Casey Guest

    I currently building a parser that maps the json of the api to pojos. While doing so, I encountered a problem with the static zone info for Esamir. Usually a facility has a name for each local. It looks like this:

    "facility":{"de":"Die Traverse","it":"The Traverse","tr":"The Traverse","fr":"The Traverse","en":"The Traverse","es":"The Traverse"}

    But there is one facility on Esamir which seems to be treated differently. Commander's Rest. It looks like this:

    "facility":"Commander's Rest"

    Obviously this isn't a locale -> name mapping like in all the other facilities. This makes parsing pretty compilcated. The corresponding XML looks fine.

    Update: I had an other look at the XML and it seems their are to regions "Commander's Rest" and the first one, which is broken, causes the problems.

    {"id":"244400","control_point_loc":{},"region_hexes_list":[{"y":"-4","x":"4"},{"y":"-5","x":"4"},{"y":"-5","x":"5"}],"ts":"1.359653956028267E9","facility":"Commander's Rest","region_id":"8035","map_region_id":{"hex_reward":{"reward_group_id_list":[{"reward_id_group_list":[{}],"reward_id":{"id":"737","reward_amount":"5","resource_type":{"id":"3","de":"Mechanisiert","it":"Meccanizzate","tr":"Mekanize","fr":"Mécanisé(e)","en":"Mechanized","es":"Mecanizados"}}}],"reward_set_id":"737"}},"facility_type":{"id":"6","facilityname":"Small Outpost"}},

    {"id":"310005","control_point_loc":{"id":"236266","z":"628.624","y":"75.009","x":"-939.405"},"region_hexes_list":[{"y":"-4","x":"4"},{"y":"-5","x":"5"},{"y":"-5","x":"4"}],"ts":"1.361560301423917E9","facility":{"de":"Commander's Rest","it":"Commander's Rest","tr":"Commander's Rest","fr":"Commander's Rest","en":"Commander's Rest","es":"Commander's Rest"},"region_id":"8035","map_region_id":{"hex_reward":{"reward_group_id_list":[{"reward_id_group_list":[{}],"reward_id":{"id":"737","reward_amount":"5","resource_type":{"id":"3","de":"Mechanisiert","it":"Meccanizzate","tr":"Mekanize","fr":"Mécanisé(e)","en":"Mechanized","es":"Mecanizados"}}}],"reward_set_id":"737"}},"facility_type":{"id":"6","type":"Small Outpost"}}

    The first one also missing the <span style="font-family: 'serif'">"control_point_loc". Maybe it is some old "version" which was accedentially added twice.
     

Share This Page