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.
Difference between revisions of "User:Belal/Memory research"
Jump to navigation
Jump to search
(→Forts) |
(→Forts: I'm going to assume you meant "word" here, given they're only 2 bytes long) |
||
Line 117: | Line 117: | ||
|- | |- | ||
| align="right" | 0x7a | | align="right" | 0x7a | ||
− | | | + | | word |
| world_map x | | world_map x | ||
| | | | ||
Line 123: | Line 123: | ||
|- | |- | ||
| align="right" | 0x7c | | align="right" | 0x7c | ||
− | | | + | | word |
| world_map y | | world_map y | ||
| | | | ||
Line 129: | Line 129: | ||
|- | |- | ||
| align="right" | 0x100 | | align="right" | 0x100 | ||
− | | | + | | word |
| local_map x_begin | | local_map x_begin | ||
| | | | ||
Line 136: | Line 136: | ||
|- | |- | ||
| align="right" | 0x102 | | align="right" | 0x102 | ||
− | | | + | | word |
| local_map x_end | | local_map x_end | ||
| | | | ||
Line 143: | Line 143: | ||
|- | |- | ||
| align="right" | 0x104 | | align="right" | 0x104 | ||
− | | | + | | word |
| local_map y_begin | | local_map y_begin | ||
| | | | ||
Line 150: | Line 150: | ||
|- | |- | ||
| align="right" | 0x106 | | align="right" | 0x106 | ||
− | | | + | | word |
| local_map y_end | | local_map y_end | ||
| | | |
Revision as of 22:48, 22 February 2010
Feburary 17, 2010 - Windows Version 0.28.181.40d17
Addresses
Address | Type | Name | Information |
---|---|---|---|
0x014240A4 | std::vector() | Notes | holds the notes for the map |
0x016385DC | std::vector() | Fort | vector of fort objects, however only has the currently active fort in it |
0x01637510 | std::vector() | Settlements | holds data for all the settlements in the world, they are in the vector by creation date, so the current fort is always length-1 |
Offsets
Notes
Looks like:
struct Note { char symbol; int foreground; int background; string name; int x; int y; int z; }
Offset (+Hex) | Type | Name | Information |
---|---|---|---|
0x0 | char | symbol type | ascii char for the symbol to use |
0x2 | int | foreground color | foreground color for the note |
0x4 | int | background color | background color for the note |
0x8 | string | name | text for the note |
0x24 | int | x | |
0x26 | int | y | |
0x28 | int | z |
This is interesting: the ints are two bytes each, yet the string starts at offset 0x8, implying something in it requires four-byte alignment. Moving char symbol to immediately after string name in the structure should immediately save at least two bytes per instance without having to change the types of any of the members.
Forts
Offset (+Hex) | Type | Name | Information |
---|---|---|---|
0x38 | dword | prefix | the index for the first part of the fort name |
0x3C | dword | suffix | the index for the last part of the fort name |
0x7a | word | world_map x | |
0x7c | word | world_map y | |
0x100 | word | local_map x_begin |
|
0x102 | word | local_map x_end |
|
0x104 | word | local_map y_begin |
|
0x106 | word | local_map y_end |
|
Object Size = 0x198
These are indexes to the name vectors, in the stock screen both the dwarven name and the generic name are displayed