|
34 | 34 | "ai_civ_name_index"/Byte, |
35 | 35 | "ai_name"/de_string, |
36 | 36 | "name"/de_string, |
| 37 | + "name2"/If(lambda ctx: find_save_version(ctx) >= 66.3,de_string), |
37 | 38 | "type"/PlayerTypeEnum(Int32ul), |
38 | | - "profile_id"/Int32ul, |
| 39 | + "profile_id"/Int32sl, # -1 if it's an empty slot |
39 | 40 | "ai_unknown" / Int32sl, # Often 0, sometimes -1 for AI players |
40 | 41 | "player_number"/Int32sl, |
41 | 42 | "hd_rm_elo"/If(lambda ctx: find_save_version(ctx) < 25.22, Int32ul), |
|
106 | 107 | "handicap"/If(lambda ctx: find_save_version(ctx) >= 25.06, Flag), |
107 | 108 | "unk"/If(lambda ctx: find_save_version(ctx) >= 50, Flag), |
108 | 109 | separator, |
109 | | - "players"/Array(lambda ctx: ctx.num_players if find_save_version(ctx) >= 37 else 8, player), |
| 110 | + "players"/Array(lambda ctx: ctx.num_players if find_save_version(ctx) >= 37 and find_save_version(ctx) < 66.3 else 8, player), |
110 | 111 | Bytes(9), |
111 | 112 | "fog_of_war"/Flag, |
112 | 113 | "cheat_notifications"/Flag, |
113 | 114 | "colored_chat"/Flag, |
114 | | - "empty_slots"/If(lambda ctx: find_save_version(ctx) >= 37, Array(lambda ctx: 8 - ctx.num_players, Struct( |
| 115 | + "empty_slots"/If(lambda ctx: find_save_version(ctx) >= 37 and find_save_version(ctx) < 66.3, Array(lambda ctx: 8 - ctx.num_players, Struct( |
115 | 116 | "unk"/If(lambda ctx: find_save_version(ctx) >= 61.5, Int32ul), |
116 | 117 | "i0x"/Int32ul, |
117 | 118 | "i0a"/Int32ul, |
|
162 | 163 | If(lambda ctx: find_save_version(ctx) >= 50, Bytes(8)), |
163 | 164 | If(lambda ctx: find_save_version(ctx) >= 61.5, Flag), |
164 | 165 | If(lambda ctx: find_save_version(ctx) >= 63, Bytes(5)), |
| 166 | + "unknown_count"/If(lambda ctx: find_save_version(ctx) >= 66.3, Int32ul), |
| 167 | + If(lambda ctx: find_save_version(ctx) >= 66.3, Bytes(12)), |
| 168 | + If(lambda ctx: find_save_version(ctx) >= 66.3, Array(lambda ctx: ctx.unknown_count, Bytes(4))), |
165 | 169 | de_string, |
166 | 170 | Bytes(5), |
167 | 171 | If(lambda ctx: find_save_version(ctx) >= 13.13, Byte), |
|
0 commit comments