From 215bb64a1e7a6440cc139f24e0d86f08581620d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 7 Nov 2009 23:35:38 +0000 Subject: [PATCH] tons of stuff --- library/DFHackAPI.cpp | 38 +++++++-------- output/Memory.xml | 104 ++++++++++++++++++++++++++++-------------- 2 files changed, 89 insertions(+), 53 deletions(-) diff --git a/library/DFHackAPI.cpp b/library/DFHackAPI.cpp index 20d2512a8..d04113f66 100644 --- a/library/DFHackAPI.cpp +++ b/library/DFHackAPI.cpp @@ -647,25 +647,25 @@ uint32_t DFHackAPIImpl::InitReadCreatures() creature_type_offset = offset_descriptor->getOffset("creature_type"); creature_flags1_offset = offset_descriptor->getOffset("creature_flags1"); creature_flags2_offset = offset_descriptor->getOffset("creature_flags2"); - creature_first_name_offset = offset_descriptor->getOffset("first_name"); - creature_nick_name_offset = offset_descriptor->getOffset("nick_name"); - creature_last_name_offset = offset_descriptor->getOffset("last_name"); - creature_custom_profession_offset = offset_descriptor->getOffset("custom_profession"); - creature_profession_offset = offset_descriptor->getOffset("creature_profession"); - creature_sex_offset = offset_descriptor->getOffset("sex"); - creature_id_offset = offset_descriptor->getOffset("id"); - creature_squad_name_offset = offset_descriptor->getOffset("squad_name"); - creature_squad_leader_id_offset = offset_descriptor->getOffset("squad_leader_id"); - creature_money_offset = offset_descriptor->getOffset("money"); - creature_current_job_offset = offset_descriptor->getOffset("current_job"); - creature_current_job_id_offset = offset_descriptor->getOffset("current_job_id"); - creature_strength_offset = offset_descriptor->getOffset("strength"); - creature_agility_offset = offset_descriptor->getOffset("agility"); - creature_toughness_offset = offset_descriptor->getOffset("toughness"); - creature_skills_offset = offset_descriptor->getOffset("skills"); - creature_labors_offset = offset_descriptor->getOffset("labors"); - creature_happiness_offset = offset_descriptor->getOffset("happiness"); - creature_traits_offset = offset_descriptor->getOffset("traits"); + creature_first_name_offset = offset_descriptor->getOffset("creature_first_name"); + creature_nick_name_offset = offset_descriptor->getOffset("creature_nick_name"); + creature_last_name_offset = offset_descriptor->getOffset("creature_last_name"); + creature_custom_profession_offset = offset_descriptor->getOffset("creature_custom_profession"); + creature_profession_offset = offset_descriptor->getOffset("creature_creature_profession"); + creature_sex_offset = offset_descriptor->getOffset("creature_sex"); + creature_id_offset = offset_descriptor->getOffset("creature_id"); + creature_squad_name_offset = offset_descriptor->getOffset("creature_squad_name"); + creature_squad_leader_id_offset = offset_descriptor->getOffset("creature_squad_leader_id"); + creature_money_offset = offset_descriptor->getOffset("creature_money"); + creature_current_job_offset = offset_descriptor->getOffset("creature_current_job"); + creature_current_job_id_offset = offset_descriptor->getOffset("creature_current_job_id"); + creature_strength_offset = offset_descriptor->getOffset("creature_strength"); + creature_agility_offset = offset_descriptor->getOffset("creature_agility"); + creature_toughness_offset = offset_descriptor->getOffset("creature_toughness"); + creature_skills_offset = offset_descriptor->getOffset("creature_skills"); + creature_labors_offset = offset_descriptor->getOffset("creature_labors"); + creature_happiness_offset = offset_descriptor->getOffset("creature_happiness"); + creature_traits_offset = offset_descriptor->getOffset("creature_traits"); assert(creatures && creature_pos_offset && creature_type_offset && creature_flags1_offset && creature_flags2_offset && creature_nick_name_offset && creature_custom_profession_offset diff --git a/output/Memory.xml b/output/Memory.xml index 64a931cf9..551d6a97e 100644 --- a/output/Memory.xml +++ b/output/Memory.xml @@ -389,6 +389,14 @@
0x01587A24
0x01583224
+ +
0x015c6ef0
+
0x015c6ed0
+ 0x40 + + + 0x08 +
0x015C4D70
0x015C4D74
@@ -408,31 +416,28 @@ 0x1D64 - 0x00 - 0x1C - 0x94 + 0x00 + 0x1C + 0x38 + 0x6c 0x88 - 0x8C + 0x8C + 0x94 0xE4 0xE8 - 0x6c - 0x88 - 0x8C - 0xFC - 0x100 - 0x10A - 0x10C - 0x1D8 - 0x268 - 0x2F8 - 0x314 - 0x4f0 - 0x4f4 - 0x4f8 - 0x504 - 0x544 - 0x610 - 0x700 + 0xF2 + 0xF4 + 0x1A4 + 0x228 + 0x2F8 + 0x2AC + 0x438 + 0x43C + 0x440 + 0x444 + 0x474 + 0x520 + 0x5D0 0x70 @@ -561,11 +566,30 @@
0x014ee978
0x014F4B4C
0x014edfcc
+ + +
0x01534270
+
0x01534240
+ 0x58 0xFC 0x100 - + 0x10A + 0x10C + 0x1D8 + 0x268 + 0x2F8 + 0x314 + 0x4F0 + 0x4F4 + 0x4F8 + 0x504 + 0x51C + 0x544 + 0x610 + 0x700 + 0x70 @@ -634,6 +658,10 @@
0x015BD924
0x015B6DA4
+ +
0x015FD07C
+
0x015FD04C
+
0x015FACEC
0x015FACF0
@@ -650,7 +678,7 @@
0x015FCE3C
- + @@ -682,13 +710,7 @@ 59ab29021aca9f3c66b1ab102fb3ceea - -
0x01604134
-
0x01604104
- 0x38 - 0x58 - 0x08 -
+ .-"""-. ' \ @@ -727,13 +749,27 @@
0x093326AC
- 0x00 - 0x04 - 0x38 + 0x00 + 0x04 + 0x08 0x4C 0x44 0x90 0x94 + 0x003c + 0x0040 + 0x009E + 0x00A0 + 0x0100 + 0x02F8 + 0x0200 + 0x0334 + 0x0338 + 0x033C + 0x0340 + 0x0364 + 0x0400 + 0x0490 0x40