Offsets, assorted funstuff

develop
Petr Mrázek 2010-04-06 22:47:50 +02:00
parent 7b1edd5122
commit 216cfa74e6
4 changed files with 13 additions and 8 deletions

@ -1,7 +1,7 @@
#ifndef CL_MOD_POSITION #ifndef CL_MOD_POSITION
#define CL_MOD_POSITION #define CL_MOD_POSITION
/* /*
* Translation of names * DF translation tables and name translation
*/ */
#include "Export.h" #include "Export.h"
namespace DFHack namespace DFHack
@ -21,9 +21,7 @@ namespace DFHack
~Translation(); ~Translation();
bool Start(); bool Start();
bool Finish(); bool Finish();
/*
* DF translation tables and name translation
*/
// Get pointer to the two dictionary structures // Get pointer to the two dictionary structures
Dicts * getDicts(); Dicts * getDicts();
// translate a name using the loaded dictionaries // translate a name using the loaded dictionaries

@ -53,7 +53,6 @@ struct Maps::Private
APIPrivate *d; APIPrivate *d;
bool Inited; bool Inited;
bool Started; bool Started;
//uint32_t biome_stuffs;
vector<uint16_t> v_geology[eBiomeCount]; vector<uint16_t> v_geology[eBiomeCount];
}; };

@ -46,9 +46,6 @@ struct Translation::Private
APIPrivate *d; APIPrivate *d;
bool Inited; bool Inited;
bool Started; bool Started;
//uint32_t biome_stuffs;
//vector<uint16_t> v_geology[eBiomeCount];
}; };
Translation::Translation(APIPrivate * d_) Translation::Translation(APIPrivate * d_)

@ -2973,6 +2973,11 @@ map_data_1b60_offset 0x1B9c
<Offset name="creature_labors">0x770</Offset> <Offset name="creature_labors">0x770</Offset>
<Offset name="creature_happiness">0x830</Offset> <Offset name="creature_happiness">0x830</Offset>
<!-- from DT -->
<Address name="dwarf_race_index">0x01470fbc</Address>DWORD, OK
This seems to be wrong:
creature_vector = 0x0166ed2c
Materials Materials
========= =========
<!-- Number vectors are vector <uint32_t> --> <!-- Number vectors are vector <uint32_t> -->
@ -3017,6 +3022,12 @@ map_data_1b60_offset 0x1B9c
<Address name="construction_vector">0x165b290</Address> <Address name="construction_vector">0x165b290</Address>
<Offset name="sizeof_construction">0x14</Offset> <Offset name="sizeof_construction">0x14</Offset>
Translations
============
<Address name="language_vector">0x016B0008</Address>
<Address name="translation_vector">0x016AFFD8</Address>
<Offset name="word_table">0x58</Offset>
<!-- <!--
addresses from belal: vectors might need 8 subtracted from them addresses from belal: vectors might need 8 subtracted from them
buildings 0x0166f9a8 buildings 0x0166f9a8