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.

Editing User:Belal/Memory research

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.


The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
[[Category:Hacking|Memory research|]]
+
[[Category:Hacking]]
 
+
[[Category:Memory research]]
=Feburary 17, 2010 - Windows Version 0.28.181.40d17=
+
[[Category:Version 0.28.181.40d17]]
 +
=Feburary 17, 2010 - Version 0.28.181.40d17=
 
==Addresses==
 
==Addresses==
  
Line 13: Line 14:
 
| align="right" | 0x014240A4
 
| align="right" | 0x014240A4
 
| std::vector()
 
| std::vector()
| Notes
+
| notes
 
| holds the notes for the map
 
| holds the notes for the map
 
|-
 
| align="right" | 0x01E185DC
 
| std::vector()
 
| Fort
 
| vector of fort objects, however only has the currently active fort in it
 
 
|-
 
| align="right" | 0x01E18510
 
| 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
 
  
 
|}
 
|}
Line 32: Line 21:
 
==Offsets==
 
==Offsets==
 
===Notes===
 
===Notes===
Looks like:
 
struct Note {
 
  char symbol;
 
  int foreground;
 
  int background;
 
  string name;
 
  int x;
 
  int y;
 
  int z;
 
}
 
 
 
{| width="100%" border="1" cellspacing="0" cellpadding="2"
 
{| width="100%" border="1" cellspacing="0" cellpadding="2"
 
! width="12%" align="right" | Offset (+Hex)
 
! width="12%" align="right" | Offset (+Hex)
Line 74: Line 52:
  
 
|-
 
|-
| align="right" | 0x24
+
| align="right" | 0x34
 
| int
 
| int
 
| x
 
| x
Line 80: Line 58:
  
 
|-
 
|-
| align="right" | 0x26
+
| align="right" | 0x36
 
| int
 
| int
 
| y
 
| y
Line 86: Line 64:
  
 
|-
 
|-
| align="right" | 0x28
+
| align="right" | 0x38
 
| int
 
| int
 
| z
 
| z
Line 92: Line 70:
  
 
|}
 
|}
 
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==
 
 
settlements 8B 0D ? ? ? ? 8B 0C A9 83 79  70 FF
 
current_settlement 8B 0D ? ? ? ? 8B 0C B1 83 B9 14 01 00 00 00
 
 
{| width="100%" border="1" cellspacing="0" cellpadding="2"
 
! width="12%" align="right" | Offset (+Hex)
 
! width="25%" | Type
 
! width="13%" | Name
 
! width="50%" | Information
 
 
|-
 
| align="right" | 0x38
 
| dword
 
| prefix
 
| the index for the first part of the fort name
 
 
|-
 
| align="right" | 0x3C
 
| dword
 
| suffix
 
| the index for the last part of the fort name
 
 
|-
 
| align="right" | 0x7a
 
| word
 
| world_map x
 
|
 
 
|-
 
| align="right" | 0x7c
 
| word
 
| world_map y
 
|
 
 
|-
 
| align="right" | 0x100
 
| word
 
| local_map x_begin
 
|
 
 
 
|-
 
| align="right" | 0x102
 
| word
 
| local_map x_end
 
|
 
 
 
|-
 
| align="right" | 0x104
 
| word
 
| local_map y_begin
 
|
 
 
 
|-
 
| align="right" | 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
 
 
=Linux d16=
 
 
==Addresses==
 
settlements 8B 15 ? ? ? ? 29 D0 C1 E8  02 0F 84 B1 00 00 00 0x08F9C77C
 
current_settlement A1 ? ? ? ? 8B 1C 30 8B 83 A8 00 00 00 89 2C 24 0x08F9C7E8
 

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)