Skip to content

Commit

Permalink
Merge pull request #689 from Bumber64/patch-1
Browse files Browse the repository at this point in the history
Identify music and sound raws; plotinfo.unk23c8_flags.caverns_opened
  • Loading branch information
myk002 authored Dec 28, 2023
2 parents 5bf43ce + 40369b9 commit 080547f
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 12 deletions.
9 changes: 8 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ Template for new versions:
# Future

## Structures
- ``markup_text_boxst``: updated based on information from bay12
- ``markup_text_boxst``: updated based on information from Bay12
- ``markup_text_linkst``, ``markup_text_wordst``, ``script_environmentst``: defined
- ``plotinfost``: ``unk23c8_flags`` renamed to ``flags``, updated based on information from Bay12
- ``world_raws``: ``unk_v50_1``, ``unk_v50_2``, ``unk_v50_3`` renamed to ``text_set``, ``music``, ``sound``
- ``soundst``: defined
- ``announcement_alertst``: defined
- ``announcement_alert_type``: enum defined
- ``announcement_type``: added ``alert_type`` enum attribute
- ``alert_button_announcement_id``: now int32_t vector (contains report ids)

# 50.11-r4

Expand Down
2 changes: 1 addition & 1 deletion df.announcements.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@
<enum base-type='int32_t' type-name='announcement_alert_type' name='type'/>
<stl-vector name='announcement_id' type-name='int32_t'/>
<stl-vector name='report_unid' type-name='int32_t' comment='unit id'/>
<stl-vector name='report_unit_announcement_category'>
<stl-vector name='report_unit_announcement_category' comment='vector must be same length as report_unid'>
<enum type-name='unit_report_type'/>
</stl-vector>
</struct-type>
Expand Down
27 changes: 21 additions & 6 deletions df.raws.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@
</virtual-methods>
</class-type>

<class-type type-name='soundst'>
<stl-string name='token'/>
<int32_t name='index'/>
<stl-vector name='current_definition' pointer-type='stl-string'/>
<df-flagarray name='flag'/>
<int32_t name='source_hfid'/>
<int32_t name='source_enid'/>
<int32_t name='sound' comment='index of sound to be played'/>
<stl-vector name='announcement' comment='sound can be selected for these announcement types'>
<enum type-name='announcement_type'/>
</stl-vector>
</class-type>

<struct-type type-name='world_raws'>
!! in bay12 each of these is its own compound and some of them are classes with their own methods !!

Expand Down Expand Up @@ -197,19 +210,21 @@

<stl-vector name='interactions' since='v0.34.01' pointer-type='interaction'/>

-- Unknown new stuff
-- Text set

<compound name='unk_v50_1'>
<compound name='text_set'>
<stl-vector/>
<static-array count='63' type-name='int32_t'/>
</compound>

<compound name='unk_v50_2'>
<stl-vector/>
-- Audio

<compound name='music'>
<stl-vector name='music'/>
</compound>

<compound name='unk_v50_3'>
<stl-vector/>
<compound name='sound'>
<stl-vector name='sound' pointer-type='soundst'/>
</compound>

-- Material index
Expand Down
13 changes: 9 additions & 4 deletions df.ui.xml
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,15 @@
<stl-vector name='economic_stone' type-name='bool'
index-refers-to='(material-by-id 0 $)'/>

<bitfield name='unk23c8_flags'>
<flag-bit name='first_year'/>
<flag-bit name='recheck_aid_requests'/>
<flag-bit name='force_elections'/>
<bitfield name='flags'>
<flag-bit name='first_year' comment='(FIRSTYEAR)'/>
<flag-bit name='recheck_aid_requests' comment='(EVAL_REQUESTERCANCHECK)'/>
<flag-bit name='force_elections' comment='(RUN_SPECIAL_ELECTIONS)'/>
<flag-bit name='need_to_do_tutorial' comment='(NEED_TO_DO_TUTORIAL)'/>
<flag-bit name='minor_victory' comment='(MINOR_VICTORY)'/>
<flag-bit name='major_victory' comment='(MAJOR_VICTORY)'/>
<flag-bit name='did_first_caravan_announcement' comment='(DID_FIRST_CARAVAN_ANNOUNCEMENT)'/>
<flag-bit name='did_first_cavern_announcement' comment='(DID_FIRST_CAVERN_ANNOUNCEMENT) required for CAVERNS_OPENED music context'/>
</bitfield>
<int16_t name='mood_cooldown'/>

Expand Down

0 comments on commit 080547f

Please sign in to comment.