Skip to content

Commit

Permalink
Update devel/export-dt-ini for DT 42.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cvuchener committed Feb 26, 2023
1 parent c7345f6 commit 24e445e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions devel/export-dt-ini.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ end
header('addresses')
address('cur_year_tick',globals,'cur_year_tick')
address('current_year',globals,'cur_year')
address('dwarf_civ_index',globals,'ui','civ_id')
address('dwarf_race_index',globals,'ui','race_id')
address('fortress_entity',globals,'ui','main','fortress_entity')
address('dwarf_civ_index',globals,'plotinfo','civ_id')
address('dwarf_race_index',globals,'plotinfo','race_id')
address('fortress_entity',globals,'plotinfo','main','fortress_entity')
address('historical_entities_vector',globals,'world','entities','all')
address('creature_vector',globals,'world','units','all')
address('active_creature_vector',globals,'world','units','active')
Expand Down Expand Up @@ -129,6 +129,7 @@ address('historical_figures_vector',globals,'world','history','figures')
address('world_site_type',df.world_site,'type')
address('active_sites_vector',df.world_data,'active_site')
address('gview',globals,'gview')
address('external_flag',globals,'game_extra','external_flag')
vtable('viewscreen_setupdwarfgame_vtable','viewscreen_setupdwarfgamest')

header('offsets')
Expand Down Expand Up @@ -226,10 +227,10 @@ address('id',df.item,'id')
address('general_refs',df.item,'general_refs')
address('stack_size',df.item_actual,'stack_size')
address('wear',df.item_actual,'wear')
address('mat_type',df.item_crafted,'mat_type')
address('mat_index',df.item_crafted,'mat_index')
address('maker_race',df.item_crafted,'maker_race')
address('quality',df.item_crafted,'quality')
address('mat_type',df.item_constructed,'mat_type') -- should be item_crafted
address('mat_index',df.item_constructed,'mat_index') -- should be item_crafted
address('maker_race',df.item_constructed,'maker_race') -- should be item_crafted
address('quality',df.item_constructed,'quality') -- should be item_crafted
address('artifact_id',df.artifact_record,'id')
address('artifact_name',df.artifact_record,'name')

Expand Down Expand Up @@ -390,7 +391,7 @@ address('emotions',df.unit_personality,'emotions')
address('goals',df.unit_personality,'dreams')
address('goal_realized',df.unit_personality.T_dreams,'flags')
address('traits',df.unit_personality,'traits')
address('stress',df.unit_personality,'stress')
address('stress_level',df.unit_personality,'stress')
address('needs',df.unit_personality,'needs')
address('current_focus',df.unit_personality,'current_focus')
address('undistracted_focus',df.unit_personality,'undistracted_focus')
Expand Down Expand Up @@ -431,10 +432,10 @@ address('schedules',df.squad,'schedule')
value('sched_size',df.squad_schedule_entry:sizeof())
address('sched_orders',df.squad_schedule_entry,'orders')
address('sched_assign',df.squad_schedule_entry,'order_assignments')
address('alert',df.squad,'cur_alert_idx')
address('alert',df.squad,'cur_routine_idx')
address('carry_food',df.squad,'carry_food')
address('carry_water',df.squad,'carry_water')
address('ammunition',df.squad,'ammunition')
address('ammunition',df.squad,'ammo','ammunition')
address('ammunition_qty',df.squad_ammo_spec,'amount')
address('quiver',df.squad_position,'quiver')
address('backpack',df.squad_position,'backpack')
Expand Down Expand Up @@ -470,7 +471,7 @@ address('name',df.poetic_form,'name')
header('viewscreen_offsets')
address('view',df.interfacest,'view')
address('child',df.viewscreen,'child')
address('setupdwarfgame_units',df.viewscreen_setupdwarfgamest,'units')
address('setupdwarfgame_units',df.viewscreen_setupdwarfgamest,'s_unit')

-- Final creation of the file

Expand Down

0 comments on commit 24e445e

Please sign in to comment.