-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata_discovery.txt
118 lines (71 loc) · 2.36 KB
/
data_discovery.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
goal :
iteratively parse folder for 100+ savegame files to:
- load / extract
- create db
- insert data into DB
unit name, hero, army_index, strength, max_strength
// Data discovery
SaveViewer:LoadSave
campaign_save_game.compressed_data.campaign_env.campaign_setup_local
[value ] = player faction key
campaign_save_game.compressed_data.campaign_env.campaign_model.CAMPAIGN_Map_data.provinces_data[]
name or prodice, and who owns ?
TURN - SAVE_GAME_HEADER = [2], [3]
need SESSION ID
..compressed_data.campaign_env.campaign_model.world.faction_array []
factions w/ info
[x]
[1] = faction_tag
[x].Faction_economics
[0] - bank balance
[2] = taxes
[5] = army_upkeep
..compressed_data.campaign_env.campaign_model.campaign_calendar_date
// turn ?
[0] in faction array feels like it's the user's player
..compressed_data.campaign_env.campaign_model.world.faction_array[]
- [0].Faction.Army_array[x].military_force.unit_container.units_array[ ]:
-[0].unit
-[4] = strength
-[5] = max strength
-[9] = rank
- .commander_details.[0] = faction
- .unit_record_key.[0].value = unit name
-[24] - is garrison ?
// ARMIES gets you armies + garrisons
in clean HE save -
[0] - is Eatine's Army
[1] - is lothern garrison
- how do I know this is a garrison from the data ?
Regions contain provinces
world.province_manager.PROVINCE_ARRAY
world.region_manager.region_array
- contains each individual region
- contains the original owner
- contains link to xml path with src files to buildings
region > wh_main_estalia_tobaro.xml
links to :
REGION_SLOT_MANAGER.REGION_SLOT_ARRAY[]
<xml_include path="region_slot/wh_main_estalia_tobaro-0.xml"/>
## Characters
Faction[x]/Character_array
[0] - faction_id ?
[1] - string 'general'
/character_details/
[9] = 'genera' // type
[10] = wh2_main_hef_tyrion // key
/locomotable
[0] = (x,y) coordinates
[1] = UV[0]
[2] = UV[1]
-- bring in office from character
-- bring in character details names
## Battle Outcomes
-- campaign_model-0000.xml
find ( 'battle__result' )
- this only seems to have the last battle result. Not all if there are multiple per turn.
- but does have good data like kills / unit num , etc...
-- world-0000.xml
- BATTLE_LOG_BLOCK
> characters > battle_log_block
> factions > battle_log_block