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.

User:Mattmoss/MacMemoryHacking

From Dwarf Fortress Wiki
Jump to navigation Jump to search

Addresses[edit]

The table below was taken (as a template) from AzureLightning's memory research page. I've copied it here as a work-in-progress for myself, to keep track of data, not to steal or misrepresent anything of AzureLightning's work. This is information gathering for Mac memory hacking.

How far am I with hacking? Right now, I've just started. It'll take me a while, especially since I'm at school and doing tons of reading and other things that are far more important than DF. This page (and my main user page) will change as things progress.


Address Size Type Name Description
0x00799104 4 long Cursor X Coordinate Number of cells EAST from the west side. Value is -30000 when cursor is not in use.
0x00799108 4 long Cursor Y Coordinate Number of cells SOUTH from the north side.
0x0079910C 4 long Cursor Z Coordinate Number of levels UP from the bottom level
4 long Creature Focus Indexes into the full creature list
4 long Dwarven Race ID Used to identify dwarves (Or it could just be the "controlling" civilization you are playing as.)
4:4 vector Full Creature list List of of all creatures. There are other vectors based upon various factors
4 pointer Map data Points to a list of addresses measuring Block Count X long.

Those each reference a list of addresses measuring Block Count Y long. Each of those reference a list of addresses Block Count Z long. And finally, each of those addresses references a map block.

0x009E4FD0 4 long Block Count X Number of 16x16 blocks in the X direction
0x009E4FD4 4 long Block Count Y Number of 16x16 blocks in the Y direction
0x009E4FD8 4 long Block Count Z Number of Z levels
0x009E4FDC 4 long Cell Count X Number of cells in the X direction (Should be Block Count X * 16)
0x009E4FE0 4 long Cell Count Y Number of cells in the X direction (Should be Block Count Y * 16)
0x009E4FE4 4 long Cell Count Z Number of Z levels (Should equal the Block Count Z)