v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
40d:Memory hacking/v0.27.169.33c
Jump to navigation
Jump to search
Addresses
Feel free to format nicely:
map_data_loc == 0145F560 map_x_count_loc == 0145F578 map_y_count_loc == 0145F57C map_z_count_loc == 0145F580 dwarven_race_index_loc == 0123EAC8 main_creature_vector_loc == 0141DA30 another_creature_vector_loc == 0141DA40 yet_another_creature_vector_loc == 0141DA80 whathe_another_creature_vector_loc == 0141DA10 current_unit_focus_loc == 00C36540 next_creature_id_loc == 00C0E9EC art_defacement_malus_loc == 007A301F
Be advised that creature.happiness_level is now at offset 0x508, implying that a new dword field has been added to the object.
creature.professionlist is now at 0x45c
Game Structures
Creature Structures
Be warned that this information is out of date while Rick updates it.
Creature Structure
Total of 0x664
bytes for the structure.
Offset | Size | Type | Name | Notes | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x0000
|
28 | string | First name | |||||||||||||||
0x001C
|
28 | string | Nickname | |||||||||||||||
0x0038
|
28 | Not a string, just a coincidence. | ||||||||||||||||
0x0054
|
14 | |||||||||||||||||
0x0064
|
4 | |||||||||||||||||
0x0068
|
2 | |||||||||||||||||
0x006A
|
1 | byte | Seems to denote whether or not this creature has a custom nickname/profession name? Something like that. | |||||||||||||||
0x006C
|
28 | string | Custom profession name | |||||||||||||||
0x0088
|
2 | short | Type ID #1 | Dwarf types. 0x88 is the original dwarf type, 0x8a is the current dwarf type (I'm told Toady stores the original dwarf type for legends). The key is in the "Type ID" table, woefully incomplete. | ||||||||||||||
0x008A
|
2 | short | Type ID #2 | |||||||||||||||
0x008C
|
4 | long | Creature race | 0xA6 is the dwarf default (this may be different if the user has a mod installed)
| ||||||||||||||
0x0090
|
2 | |||||||||||||||||
0x0092
|
2 | |||||||||||||||||
0x0094
|
2 | short | X position | Current X coordinate of creature (0x00AC is some other X coordinate) | ||||||||||||||
0x0096
|
2 | short | Y position | Current Y coordinate of creature | ||||||||||||||
0x0098
|
2 | short | Z position | Current Z coordinate of creature | ||||||||||||||
0x009A
|
2 | |||||||||||||||||
0x009C
|
2 | |||||||||||||||||
0x009E
|
2 | |||||||||||||||||
0x00A0
|
4 | |||||||||||||||||
0x00A4
|
2 | |||||||||||||||||
0x00A8
|
4 | |||||||||||||||||
0x00AC
|
2 | short | X coordinate | |||||||||||||||
0x00AE
|
2 | short | Y coordinate | |||||||||||||||
0x00B0
|
2 | short | Z coordinate | |||||||||||||||
0x00B2
|
2 | |||||||||||||||||
0x00B4
|
16 | vector of shorts | ||||||||||||||||
0x00C4
|
16 | vector of shorts | ||||||||||||||||
0x00D4
|
16 | vector of shorts | ||||||||||||||||
0x00E4
|
4 | ulong | Flags | (1 << 1) Unclear. It is set on dead things. Also, when a merchant caravan arrives, merchants and guards are added to the entity list slightly before they are added to the "u" list - during this period, this bit is set. | ||||||||||||||
0x00E8
|
4 | ulong | Flags |
| ||||||||||||||
0x00EC
|
1 | |||||||||||||||||
0x00EE
|
2 | |||||||||||||||||
0x00F0
|
2 | |||||||||||||||||
0x00F2
|
1 | byte | Gender |
| ||||||||||||||
0x00F4
|
4 | long | Creature ID | When a new creature is added to the creature vector at 0x01416A38 , it is assigned the value of the next creature ID and the next creature ID value is then increased by 1. This value most likely does NOT persist between loading games (eg, saving then loading your game and creatures will have different IDs).
| ||||||||||||||
0x00F8
|
2 | |||||||||||||||||
0x00FC
|
4 | |||||||||||||||||
0x0100
|
4 | |||||||||||||||||
0x0104
|
16 | vector of shorts | ||||||||||||||||
0x0114
|
16 | vector of shorts | ||||||||||||||||
0x0124
|
16 | vector of shorts | ||||||||||||||||
0x0134
|
4 | |||||||||||||||||
0x0138
|
16 | vector of ...something... | ||||||||||||||||
0x01C4
|
1 | |||||||||||||||||
0x01C5
|
1 | |||||||||||||||||
0x01C8
|
4 | |||||||||||||||||
0x01CC
|
4 | |||||||||||||||||
0x01D0
|
4 | |||||||||||||||||
0x01D4
|
2 | |||||||||||||||||
0x01D6
|
2 | |||||||||||||||||
0x01D8
|
2 | |||||||||||||||||
0x01DC
|
4 | |||||||||||||||||
0x01E0
|
2 + 2 + 2 + 4 + 4 | Unknown structure. | ||||||||||||||||
0x01F0
|
4 | |||||||||||||||||
0x01F4
|
4 | |||||||||||||||||
0x01F8
|
2 | short | Strange mood | 0xFFFF means no mood | ||||||||||||||
0x01FA
|
2 | |||||||||||||||||
0x01FC
|
4 | |||||||||||||||||
0x0200
|
4 | |||||||||||||||||
0x0204
|
4 | |||||||||||||||||
0x0208
|
4 | |||||||||||||||||
0x0210
|
36 | |||||||||||||||||
0x0214
|
2 | |||||||||||||||||
0x0238
|
2 | |||||||||||||||||
0x023A
|
2 | |||||||||||||||||
0x023C
|
16 | vector of pointers to 238 struct | Possibly inventory? | |||||||||||||||
0x024C
|
16 | vector of longs | Owned objects | Each long is an index into the item vector. | ||||||||||||||
0x028C
|
16 | vector of longs | ||||||||||||||||
0x029C
|
4 | |||||||||||||||||
0x02A0
|
4 | |||||||||||||||||
0x02A4
|
4 | pointer | Appears to be a pointer to another creature. | |||||||||||||||
0x02A8
|
4 | pointer | It's a pointer to something, don't know what yet. | |||||||||||||||
0x02AC
|
2 | |||||||||||||||||
0x02AE
|
2 | |||||||||||||||||
0x02B0
|
2 | |||||||||||||||||
0x02B2
|
2 | |||||||||||||||||
0x02B4
|
2 | |||||||||||||||||
0x02B8
|
4 | |||||||||||||||||
0x02BC
|
16 | vector of shorts | ||||||||||||||||
0x02CC
|
16 | vector of shorts | ||||||||||||||||
0x02DC
|
16 | vector of shorts | ||||||||||||||||
0x02EC
|
16 | vector of shorts | ||||||||||||||||
0x02FC
|
2 | |||||||||||||||||
0x0300
|
4 | |||||||||||||||||
0x0304
|
4 | |||||||||||||||||
0x0308
|
16 | vector of shorts | Bodypart Health | A list to body part health, the list of ushorts, values range 0 to 15 from what i've seen. 15 being white, 0 being red. | ||||||||||||||
0x0318
|
16 | vector of longs | Bodypart related. | |||||||||||||||
0x032C
|
2 | |||||||||||||||||
0x0330
|
4 | |||||||||||||||||
0x0334
|
4 | |||||||||||||||||
0x0338
|
4 | |||||||||||||||||
0x033C
|
4 | long | Bleeding level | |||||||||||||||
0x0340
|
4 | |||||||||||||||||
0x0344
|
4 | |||||||||||||||||
0x0348
|
4 | |||||||||||||||||
0x034C
|
4 | |||||||||||||||||
0x0350
|
2 | |||||||||||||||||
0x0352
|
2 | short | Nauseousness | |||||||||||||||
0x0354
|
2 | short | Drowning | |||||||||||||||
0x0356
|
2 | short | Stunned | |||||||||||||||
0x0358
|
2 | |||||||||||||||||
0x035A
|
2 | |||||||||||||||||
0x035C
|
2 | short | Webbed | How much a creature is webbed | ||||||||||||||
0x035E
|
2 | short | Paralysis | |||||||||||||||
0x0360
|
12 | |||||||||||||||||
0x036C
|
2 | |||||||||||||||||
0x036E
|
2 | |||||||||||||||||
0x0370
|
4 | long | Pain level | |||||||||||||||
0x0374
|
4 | long | Exhaustion | |||||||||||||||
0x0378
|
4 | long | Hunger | |||||||||||||||
0x037C
|
4 | long | Thirst | |||||||||||||||
0x0380
|
4 | long | Drowsiness | |||||||||||||||
0x0384
|
4 | |||||||||||||||||
0x0388
|
16 | vector of pointers to 384 struct | ||||||||||||||||
0x0398
|
16 | vector of pointers to 394 struct | ||||||||||||||||
0x03A8
|
4 | |||||||||||||||||
0x03AC
|
4 | |||||||||||||||||
0x03B0
|
1 | |||||||||||||||||
0x0420
|
4 | Strength |
| |||||||||||||||
0x0424
|
4 | Agility |
| |||||||||||||||
0x0428
|
4 | Toughness |
| |||||||||||||||
0x042C
|
16 | vector of pointers to skill struct | Skills | |||||||||||||||
0x043C
|
16 | vector of pointers to like struct | Likes | |||||||||||||||
0x044C
|
16 | vector of pointers to 448 struct | ||||||||||||||||
0x045C
|
102 | bytes | Labor preferences | 102 1 byte values, corresponding to the profession list. Mostly bools, with notable exceptions of shieldtype,armortype, and weaponnum. "Weaponnum" may be the number of weapons wielded (i.e. 2 for a dual-wielding character.) | ||||||||||||||
0x04C4
|
4 | |||||||||||||||||
0x04C8
|
16 | vector of pointers to 4C4 struct | ||||||||||||||||
0x04D8
|
16 | vector of longs | ||||||||||||||||
0x04E8
|
16 | vector of pointers to 4E4 struct | ||||||||||||||||
0x04F8
|
16 | vector of pointers to 4F4 struct | ||||||||||||||||
0x0508
|
4 | Happiness level | 0 = miserable, >149 = ecstatic | |||||||||||||||
0x050C
|
2 | |||||||||||||||||
0x0510
|
16 | vector of pointers to 50C struct | ||||||||||||||||
0x0520
|
16 | vector of pointers to 51C struct | ||||||||||||||||
0x0530
|
16 | vector of pointers to 52C struct | ||||||||||||||||
0x0540
|
16 | vector of pointers to 53C struct | ||||||||||||||||
0x0550
|
2 | |||||||||||||||||
0x0554
|
4 | |||||||||||||||||
0x0558
|
4 | |||||||||||||||||
0x055C
|
4 | |||||||||||||||||
0x0560
|
16 | vector of longs | ||||||||||||||||
0x0570
|
16 | vector of longs | ||||||||||||||||
0x0580
|
16 | vector of longs | ||||||||||||||||
0x0590
|
4 | CreatureID | Probable internal ID used by 0x41CD60 in v0.27.169.33d | |||||||||||||||
0x0594
|
2 | |||||||||||||||||
0x0596
|
2 | |||||||||||||||||
0x0598
|
2 | |||||||||||||||||
0x059A
|
2 | |||||||||||||||||
0x05A0
|
2 | |||||||||||||||||
0x059E
|
2 | |||||||||||||||||
0x05A0
|
4 | |||||||||||||||||
0x05A4
|
16 | vector of pointers to 5A0 struct | Bodypart related. | |||||||||||||||
0x05B4
|
4 | |||||||||||||||||
0x05B8
|
60 | trait struct | Traits | |||||||||||||||
0x05F4
|
4 | |||||||||||||||||
0x05F8
|
1 |
Skill Structure
Offset | Size | Type | Name | Notes |
---|---|---|---|---|
0x0000
|
2 | short | Skill type | |
0x0004
|
4 | long | Skill rating | The upper word is the actual rating (0:Dabbling to 15:Legendary). The lower word is likely the experience in that skill, akin to how you see it in Adventure Mode whereby a level 10 skill requires 1000 points of experience to advance. |
0x0008
|
4 | long |
Like Structure
Offset | Size | Type | Name | Notes |
---|---|---|---|---|
0x0000
|
2 | short | ||
0x0002
|
2 | short | ||
0x0004
|
2 | short | ||
0x0006
|
2 | short | ||
0x0008
|
2 | short | ||
0x000A
|
1 | byte | 'When possible' | |
0x000C
|
4 | long |
Trait Structure
Offset | Size | Type | Name | Notes | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x0000
|
2 | short | Nervousness | Out of 100?
| ||||||||||||||
0x0002
|
2 | short | Rage | Out of 100?
| ||||||||||||||
0x0004
|
2 | short | Depression | Out of 100?
| ||||||||||||||
0x0006
|
2 | short | Self-consciousness | Out of 100?
| ||||||||||||||
0x0008
|
2 | short | Urge | Out of 100?
| ||||||||||||||
0x000A
|
2 | short | Stress | Out of 100?
| ||||||||||||||
0x000C
|
2 | short | Friendly | Out of 100?
| ||||||||||||||
0x000E
|
2 | short | Company | Out of 100?
| ||||||||||||||
0x0010
|
2 | short | Leadership | Out of 100?
| ||||||||||||||
0x0012
|
2 | short | Activeness | Out of 100?
| ||||||||||||||
0x0014
|
2 | short | Thrillseeking | Out of 100?
| ||||||||||||||
0x0016
|
2 | short | Optimism | Out of 100?
| ||||||||||||||
0x0018
|
2 | short | Imagination | Out of 100?
| ||||||||||||||
0x001A
|
2 | short | Artistic? | Out of 100?
| ||||||||||||||
0x001C
|
2 | short | Emotion | Out of 100?
| ||||||||||||||
0x001E
|
2 | short | Adventure | Out of 100?
| ||||||||||||||
0x0020
|
2 | short | Thinking | Out of 100?
| ||||||||||||||
0x0022
|
2 | short | Rebelliousness | Out of 100?
| ||||||||||||||
0x0024
|
2 | short | Trusting | Out of 100?
| ||||||||||||||
0x0026
|
2 | short | Liar | Out of 100?
| ||||||||||||||
0x0028
|
2 | short | Helpfulness | Out of 100?
| ||||||||||||||
0x002A
|
2 | short | Compromising | Out of 100?
| ||||||||||||||
0x002C
|
2 | short | Modesty | Out of 100?
| ||||||||||||||
0x002E
|
2 | short | Compassion | Out of 100?
| ||||||||||||||
0x0030
|
2 | short | Confidence | Out of 100?
| ||||||||||||||
0x0032
|
2 | short | Organization | Out of 100?
| ||||||||||||||
0x0034
|
2 | short | Lawfulness? | Out of 100?
| ||||||||||||||
0x0036
|
2 | short | Excellence | Out of 100?
| ||||||||||||||
0x0038
|
2 | short | Willpower | Out of 100?
| ||||||||||||||
0x003A
|
2 | short | Cautiousness | Out of 100?
|
238 Structure
Offset | Size | Type | Name | Notes |
---|---|---|---|---|
0x0000
|
4 | long | ||
0x0004
|
2 | short | ||
0x0006
|
2 | short | ||
0x0008
|
4 | long |
384 Structure
Offset | Size | Type | Name | Notes |
---|---|---|---|---|
0x0000
|
2 | short | ||
0x0002
|
2 | short | ||
0x0004
|
2 | short | ||
0x0008
|
4 | long | ||
0x000C
|
2 | short | ||
0x000E
|
2 | short |
394 Structure
Offset | Size | Type | Name | Notes |
---|---|---|---|---|
0x0000
|
2 | short | ID | |
0x0004
|
4 | long | Value |
448 Structure
Offset | Size | Type | Name | Notes |
---|---|---|---|---|
0x0000
|
2 | short | ||
0x0002
|
2 | short | ||
0x0004
|
2 | short | ||
0x0006
|
2 | short | ||
0x0008
|
2 | short | ||
0x000A
|
2 | short | ||
0x000C
|
4 | long | ||
0x0010
|
4 | long |
4C4 Structure
Offset | Size | Type | Name | Notes |
---|---|---|---|---|
0x0000
|
4 | long | ||
0x0004
|
4 | long | ||
0x0008
|
4 | long | ||
0x000C
|
4 | long | ||
0x0010
|
4 | long | ||
0x0014
|
4 | long | ||
0x0018
|
4 | long | ||
0x001C
|
2 | short | ||
0x0020
|
1 | byte |
4E4 Structure
Offset | Size | Type | Name | Notes |
---|---|---|---|---|
0x0000
|
2 | short | ||
0x0004
|
4 | long | ||
0x0008
|
2 | short | ||
0x000C
|
4 | long |
4F4 Structure
Offset | Size | Type | Name | Notes |
---|---|---|---|---|
0x0000
|
2 | short | ||
0x0004
|
4 | long | ||
0x0008
|
2 | short | ||
0x000C
|
4 | long |
50C Structure
Offset | Size | Type | Name | Notes |
---|---|---|---|---|
0x0000
|
2 | short | ||
0x0002
|
2 | short | ||
0x0004
|
4 | long |
51C Structure
Offset | Size | Type | Name | Notes |
---|---|---|---|---|
0x0000
|
2 | short | ||
0x0002
|
2 | short | ||
0x0004
|
2 | short |
52C Structure
Offset | Size | Type | Name | Notes |
---|---|---|---|---|
0x0000
|
4 | long | ||
0x0004
|
4 | long | ||
0x0008
|
4 | long | ||
0x000C
|
4 | long |
53C Structure
Offset | Size | Type | Name | Notes |
---|---|---|---|---|
0x0000
|
4 | long | ||
0x0004
|
4 | long |
5A0 Structure
Offset | Size | Type | Name | Notes |
---|---|---|---|---|
0x0000
|
2 | short | ||
0x0002
|
2 | short |