Skip to content

Instantly share code, notes, and snippets.

@RWJMurphy
Created February 10, 2013 09:09
Show Gist options
  • Save RWJMurphy/4748932 to your computer and use it in GitHub Desktop.
Save RWJMurphy/4748932 to your computer and use it in GitHub Desktop.
Dwarf Therapist memory layout for DF 0.34.11 on OSX
[info]
checksum=0x8f421f9c
version_name=v0.34.11
complete=true
[addresses]
translation_vector=0x01636a88
language_vector=0x01636a70
creature_vector=0x015f56ec
dwarf_race_index=0x015dcf80
squad_vector=0x01633600
current_year=0x01fb1f21
[offsets]
word_table=0x001C
[word_offsets]
base=0x0000
noun_singular=0x0004
noun_plural=0x0008
adjective=0x000C
verb=0x0014
present_simple_verb=0x0018
past_simple_verb=0x001C
past_participle_verb=0x0020
present_participle_verb=0x0024
[dwarf_offsets]
first_name=0x0000
nick_name=0x0004
last_name=0x0008
custom_profession=0x003c
profession=0x0040
race=0x0044
flags1=0x008C
flags2=0x0090
sex=0x00A6
id=0x00A8
recheck_equipment=0x0158
current_job=0x0288
turn_count=0x0540
states=0x0
souls=0x05fc
labors=0x0618
happiness=0x06a8
squad_ref_id=0x070c
[soul_details]
skills=0x01D4
traits=0x01EC
[job_details]
id=0x0008
on_break_flag=0x0011
sub_job_id=0x0040
[squad_offsets]
id=0x0000
name=0x0004
members=0x0044
[valid_flags_1]
size=1
1\name=Not from around these parts
1\value=0x80000000
[valid_flags_2]
size=1
1\name=Dead. Deceased. An Undwarf!
1\value=0x02000000
[invalid_flags_1]
size=7
1\name=a zombie
1\value=0x00001000
2\name=a skeleton
2\value=0x00002000
3\name=a merchant or diplomat
3\value=0x00000040
4\name=outpost liason
4\value=0x00000800
5\name=an invader or hostile
5\value=0x00020000
6\name=an invader or hostile
6\value=0x00080000
7\name=an invader or hostile
7\value=0x000C0000
[invalid_flags_2]
size=2
1\name="dead, Jim."
1\value=0x00000080
2\name=from the Underworld. SPOOKY!
2\value=0x00040000
@RomanoCodes
Copy link

Many thanks! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment