forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.globals.xml
383 lines (337 loc) · 16.8 KB
/
df.globals.xml
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
<data-definition>
<enum-type type-name='weather_type' base-type='int8_t'>
<enum-item name='None'/>
<enum-item name='Rain'/>
<enum-item name='Snow'/>
</enum-type>
-- .data
<!-- Cursor: to find, look in the non-bss .data segment -->
<global-object name='cursor'>
<int32_t name='x'/>
<int32_t name='y'/>
<int32_t name='z'/>
</global-object>
<!-- Designation selection rect: to find, look just after cursor for six -30000 values. -->
<global-object name='selection_rect'>
<int32_t name='start_x'/>
<int32_t name='start_y'/>
<int32_t name='start_z'/>
<int32_t name='end_x'
comment='only valid for an instant while its being completed'/>
<int32_t name='end_y'/>
<int32_t name='end_z'/>
</global-object>
<enum-type type-name='game_mode'>
<enum-item name='DWARF'/>
<enum-item name='ADVENTURE'/>
<enum-item name='num'/>
<enum-item name='NONE'/>
</enum-type>
<enum-type type-name='game_type'>
<enum-item name='DWARF_MAIN'/>
<enum-item name='ADVENTURE_MAIN'/>
<enum-item name='VIEW_LEGENDS'/>
<enum-item name='DWARF_RECLAIM'/>
<enum-item name='DWARF_ARENA'/>
<enum-item name='ADVENTURE_ARENA'/>
<enum-item name='ADVENTURE_DUNGEON'/>
<enum-item name='DWARF_TUTORIAL'/>
<enum-item name='DWARF_UNRETIRE'/>
<enum-item name='ADVENTURE_WORLD_DEBUG'/>
<enum-item name='num'/>
<enum-item name='NONE'/>
</enum-type>
<global-object name='gamemode'>
<enum base-type='int32_t' type-name='game_mode'/>
</global-object>
<global-object name='gametype'>
<enum base-type='int32_t' type-name='game_type'/>
</global-object>
<global-object name='ui_area_map_width' type-name='int8_t'/>
<global-object name='ui_menu_width' type-name='int8_t'/>
-- .bss compound - THAT IS, NOT SIMPLE INTEGER VARIABLES!
<global-object name='created_item_type'>
<stl-vector>
<enum base-type='int16_t' type-name='item_type'/>
</stl-vector>
</global-object>
<global-object name='created_item_subtype'>
<stl-vector>
<int16_t refers-to='(item-subtype-target $global.created_item_type[$$._key] $)'/>
</stl-vector>
</global-object>
<global-object name='created_item_mattype'>
<stl-vector>
<int16_t ref-target='material' aux-value='$global.created_item_matindex[$._key]'/>
</stl-vector>
</global-object>
<global-object name='created_item_matindex'>
<stl-vector type-name='int16_t'/>
</global-object>
<global-object name='created_item_count'>
<stl-vector type-name='int32_t'/>
</global-object>
<!-- To find: with world, place cursor over unit, and trace pointers to unit -->
<global-object name='map_renderer' type-name='map_renderer'/>
<global-object name='d_init' type-name='d_init'/>
<global-object name='flows'>
<stl-vector pointer-type='flow_info'/>
</global-object>
<global-object name='enabler' type-name='enabler'/>
<global-object name='gps' type-name='graphic'/>
<!-- To find: search for strings in the welcome or textview screen, then trace pointers -->
<global-object name='gview' type-name='interfacest'/>
<global-object name='init' type-name='init'/>
<global-object name='texture' type-name='texture_handler'/>
<global-object name='timed_events'>
<stl-vector pointer-type='timed_event'/>
</global-object>
<!-- To find: create squad, enter the 's' menu, trace pointers to squad -->
<global-object name='ui' type-name='ui'/>
<global-object name='ui_advmode' type-name='ui_advmode'/>
<!-- To find: start creating a building, trace the build material item pointers -->
<global-object name='ui_build_selector' type-name='ui_build_selector'/>
<global-object name='ui_building_assign_type'>
<stl-vector type-name='int8_t'/>
</global-object>
<global-object name='ui_building_assign_is_marked'>
<stl-vector type-name='bool'/>
</global-object>
<!-- Candidates for a building owner. To find: backtrack from unit. -->
<global-object name='ui_building_assign_units'>
<stl-vector pointer-type='unit'/>
</global-object>
<global-object name='ui_building_assign_items'>
<stl-vector pointer-type='item'/>
</global-object>
<!-- To find: place loo'k' cursor over a unit, trace pointers to unit -->
<global-object name='ui_look_list' type-name='ui_look_list'/>
<!-- To find: select a unit in 'v'iew, open inventory page, trace unit.inventory.* pointers -->
<global-object name='ui_sidebar_menus' type-name='ui_sidebar_menus'/>
<!-- To find: search for unit nickname, backtrace pointers to find the main unit list. -->
<global-object name='world' type-name='world'/>
-- .bss primitive
<global-object name='activity_next_id' type-name='int32_t'/>
<global-object name='agreement_next_id' type-name='int32_t'/>
<global-object name='army_controller_next_id' type-name='int32_t'/>
<global-object name='army_next_id' type-name='int32_t'/>
<global-object name='army_tracking_info_next_id' type-name='int32_t'/>
<global-object name='art_image_chunk_next_id' type-name='int32_t'/>
<global-object name='artifact_next_id' type-name='int32_t'/>
<global-object name='building_next_id' type-name='int32_t'/>
<global-object name='crime_next_id' type-name='int32_t'/>
<global-object name='cultural_identity_next_id' type-name='int32_t'/>
<global-object name='dance_form_next_id' type-name='int32_t'/>
<global-object name='entity_next_id' type-name='int32_t'/>
<global-object name='flow_guide_next_id' type-name='int32_t'/>
<global-object name='formation_next_id' type-name='int32_t'/>
<global-object name='hist_event_collection_next_id' type-name='int32_t'/>
<global-object name='hist_event_next_id' type-name='int32_t'/>
<global-object name='hist_figure_next_id' type-name='int32_t'/>
<global-object name='identity_next_id' type-name='int32_t'/>
<global-object name='incident_next_id' type-name='int32_t'/>
<global-object name='interaction_instance_next_id' type-name='int32_t'/>
<global-object name='item_next_id' type-name='int32_t'/>
<global-object name='job_next_id' type-name='int32_t'/>
<global-object name='machine_next_id' type-name='int32_t'/>
<global-object name='musical_form_next_id' type-name='int32_t'/>
<global-object name='nemesis_next_id' type-name='int32_t'/>
<global-object name='occupation_next_id' type-name='int32_t'/>
<global-object name='poetic_form_next_id' type-name='int32_t'/>
<global-object name='proj_next_id' type-name='int32_t'/>
<global-object name='rhythm_next_id' type-name='int32_t'/>
<global-object name='scale_next_id' type-name='int32_t'/>
<global-object name='schedule_next_id' type-name='int32_t'/>
<global-object name='squad_next_id' type-name='int32_t'/>
<global-object name='task_next_id' type-name='int32_t'/>
<global-object name='unit_chunk_next_id' type-name='int32_t'/>
<global-object name='unit_next_id' type-name='int32_t'/>
<global-object name='vehicle_next_id' type-name='int32_t'/>
<global-object name='written_content_next_id' type-name='int32_t'/>
<global-object name='announcements' type-name='announcements'/>
<global-object name='cur_year' type-name='int32_t'/>
<global-object name='cur_year_tick' type-name='int32_t'/>
<global-object name='cur_year_tick_advmode' type-name='int32_t'/>
<global-object name='cur_season' type-name='int8_t'/>
<global-object name='cur_season_tick' type-name='int32_t'/>
<global-object name='current_weather'>
<static-array count='5'>
<static-array count='5'>
<enum base-type='int8_t' type-name='weather_type'/>
</static-array>
</static-array>
</global-object>
<global-object name='pause_state' type-name='bool'/>
<global-object name='process_dig' type-name='bool'
comment='Requests dig designations to be processed next frame.'/>
<global-object name='process_jobs' type-name='bool'
comment='Requests building jobs to be processed next frame.'/>
<global-object name='ui_building_in_assign' type-name='bool'/>
<global-object name='ui_building_in_resize' type-name='bool'/>
<!-- To find: open building i't'ems, move list highlight around, search for changes -->
<global-object name='ui_building_item_cursor'>
<int32_t/>
</global-object>
<!-- To find: enter loo'k' mode, move list highlight around, search for changes -->
<global-object name='ui_look_cursor'>
<int32_t refers-to='$global.ui_look_list.items[$]'/>
</global-object>
<!-- To find: enter unit 'v'iew mode, move to a point with multiple units
within range, toggle them by pressing 'v', search for changes. -->
<global-object name='ui_selected_unit'>
<int32_t refers-to='$global.world.units.active[$]'/>
</global-object>
<!-- To find: enter unit 'v'iew mode, switch pages, search for changes -->
<global-object name='ui_unit_view_mode' type-name='ui_unit_view_mode'/>
<!-- To find: enter 'q'uery, add jobs, see which bool changes between
the main query page and selecting job to add. -->
<global-object name='ui_workshop_in_add' type-name='bool'/>
<!-- To find: enter 'q'uery, move the job list highlight, search for changes. -->
<global-object name='ui_workshop_job_cursor'>
<int32_t refers-to='$global.world.selected_building.jobs[$]'/>
</global-object>
<enum-type type-name='lever_target_type' base-type='int8_t'>
<enum-item name='None' value='-1'/>
0-59
<enum-item/><enum-item/><enum-item/><enum-item/><enum-item/>
<enum-item/><enum-item/><enum-item/><enum-item/><enum-item/>
<enum-item/><enum-item/><enum-item/><enum-item/><enum-item/>
<enum-item/><enum-item/><enum-item/><enum-item/><enum-item/>
<enum-item/><enum-item/><enum-item/><enum-item/><enum-item/>
<enum-item/><enum-item/><enum-item/><enum-item/><enum-item/>
<enum-item/><enum-item/><enum-item/><enum-item/><enum-item/>
<enum-item/><enum-item/><enum-item/><enum-item/><enum-item/>
<enum-item/><enum-item/><enum-item/><enum-item/><enum-item/>
<enum-item/><enum-item/><enum-item/><enum-item/><enum-item/>
<enum-item/><enum-item/><enum-item/><enum-item/><enum-item/>
<enum-item/><enum-item/><enum-item/><enum-item/><enum-item/>
60
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item name='VerticalBars'/> 'B'
<enum-item/>
<enum-item/>
<enum-item/>
70
<enum-item name='FloorBars'/> 'F'
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
80
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item name='SpearsSpikes'/> 'S'
<enum-item name='TrackStop'/> 'T'
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
90
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item name='GearAssembly'/> 'a'
<enum-item name='Bridge'/> 'b'
<enum-item name='Chain'/> 'c'
100
<enum-item name='Door'/> 'd'
<enum-item/>
<enum-item name='Floodgate'/> 'f'
<enum-item name='FloorGrate'/> 'g'
<enum-item name='Hatch'/> 'h'
<enum-item/>
<enum-item name='Cage'/> 'j'
<enum-item/>
<enum-item/>
<enum-item/>
110
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item name='Support'/> 's'
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item name='WallGrate'/> 'w'
</enum-type>
<!-- To find: enter 'q'uery, select a lever, queue a "link to" job and search for changes. -->
<global-object name='ui_lever_target_type'>
<enum base-type='int8_t' type-name='lever_target_type'/>
</global-object>
<global-object name='window_x' type-name='int32_t'/>
<global-object name='window_y' type-name='int32_t'/>
<global-object name='window_z' type-name='int32_t'/>
<global-object name='debug_nopause' type-name='bool' comment='Prevents the game from being paused'/>
<global-object name='debug_nomoods' type-name='bool' comment='Same as ARTIFACTS:NO'/>
<global-object name='debug_combat' type-name='bool' comment='Functionality unknown, combat-related'/>
<global-object name='debug_wildlife' type-name='bool' comment='Functionality unknown, wildlife-related'/>
<global-object name='debug_nodrink' type-name='bool' comment='Disables thirst on everything'/>
<global-object name='debug_noeat' type-name='bool' comment='Disables hunger on everything'/>
<global-object name='debug_nosleep' type-name='bool' comment='Disables drowsiness on everything'/>
<global-object name='debug_showambush' type-name='bool' comment='Makes hidden ambushers visible on-screen and in the units list (but not to your citizens)'/>
<global-object name='debug_fastmining' type-name='bool' comment='All dwarves mine as fast as a Legendary Miner'/>
<global-object name='debug_noberserk' type-name='bool' comment='Insanity can only result in Crazed or Melancholy, never Berserk'/>
<global-object name='debug_turbospeed' type-name='bool' comment='All units move and work at maximum speed'/>
<global-object name='save_on_exit' type-name='bool' comment='Ending the game saves its state back to world.dat or world.sav'/>
<global-object name='standing_orders_gather_minerals' type-name='uint8_t'/>
<global-object name='standing_orders_gather_wood' type-name='uint8_t'/>
<global-object name='standing_orders_gather_food' type-name='uint8_t'/>
<global-object name='standing_orders_gather_bodies' type-name='uint8_t'/>
<global-object name='standing_orders_gather_animals' type-name='uint8_t'/>
<global-object name='standing_orders_gather_furniture' type-name='uint8_t'/>
<global-object name='standing_orders_farmer_harvest' type-name='uint8_t'/>
<global-object name='standing_orders_job_cancel_announce' type-name='uint8_t'/>
<global-object name='standing_orders_mix_food' type-name='uint8_t'/>
<global-object name='standing_orders_gather_refuse' type-name='uint8_t'/>
<global-object name='standing_orders_gather_refuse_outside' type-name='uint8_t'/>
<global-object name='standing_orders_gather_vermin_remains' type-name='uint8_t'/>
<global-object name='standing_orders_dump_corpses' type-name='uint8_t'/>
<global-object name='standing_orders_dump_skulls' type-name='uint8_t'/>
<global-object name='standing_orders_dump_skins' type-name='uint8_t'/>
<global-object name='standing_orders_dump_bones' type-name='uint8_t'/>
<global-object name='standing_orders_dump_hair' type-name='uint8_t'/>
<global-object name='standing_orders_dump_shells' type-name='uint8_t'/>
<global-object name='standing_orders_dump_other' type-name='uint8_t'/>
<global-object name='standing_orders_forbid_used_ammo' type-name='uint8_t'/>
<global-object name='standing_orders_forbid_other_dead_items' type-name='uint8_t'/>
<global-object name='standing_orders_forbid_own_dead' type-name='uint8_t'/>
<global-object name='standing_orders_forbid_other_nohunt' type-name='uint8_t'/>
<global-object name='standing_orders_forbid_own_dead_items' type-name='uint8_t'/>
<global-object name='standing_orders_auto_loom' type-name='uint8_t'/>
<global-object name='standing_orders_auto_collect_webs' type-name='uint8_t'/>
<global-object name='standing_orders_auto_slaughter' type-name='uint8_t'/>
<global-object name='standing_orders_auto_butcher' type-name='uint8_t'/>
<global-object name='standing_orders_auto_tan' type-name='uint8_t'/>
<global-object name='standing_orders_auto_fishery' type-name='uint8_t'/>
<global-object name='standing_orders_auto_kitchen' type-name='uint8_t'/>
<global-object name='standing_orders_auto_kiln' type-name='uint8_t'/>
<global-object name='standing_orders_auto_smelter' type-name='uint8_t'/>
<global-object name='standing_orders_auto_other' type-name='uint8_t'/>
<global-object name='standing_orders_use_dyed_cloth' type-name='uint8_t'/>
<global-object name='standing_orders_zoneonly_drink' type-name='uint8_t'/>
<global-object name='standing_orders_zoneonly_fish' type-name='uint8_t'/>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->