From 8862a5b6e06cd344962e71ad44248cd93b5a12de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 23 Feb 2011 05:53:37 +0100 Subject: [PATCH] offset search improvements, some linux offsets --- data/Memory-ng.xml | 68 ++++++++++++++++++++++++++- tools/supported/incrementalsearch.cpp | 8 +++- 2 files changed, 73 insertions(+), 3 deletions(-) diff --git a/data/Memory-ng.xml b/data/Memory-ng.xml index 23455ce71..313a67e22 100644 --- a/data/Memory-ng.xml +++ b/data/Memory-ng.xml @@ -2496,11 +2496,75 @@ - + - ... stuff +
+
+
+
+
+ + + + +
+ + + +
+ + + + + +
+
+
+
+
+ ------------------- + !!LANGUAGE TABLES!! + ------------------- + translation vector: 0x943a21c + lang vector: 0x943a204 + word table offset: 0x1c + ------------- + !!MATERIALS!! + ------------- + inorganics: + 0x9439fc0 + organics: + 0x9439fd8 + organics 31.19: + trees: + 0x9439ffc + plants: + 0x9439fe4 + color descriptors: + 0x943e368 + Amber color:0xa380190 + all descriptors: + 0x943e380 + toad-first creature types: + 0x943a074 + all creature types: + 0x943a068 + 0x943a074 + Toad: 0xa441f10 + Toad: rawname = 0x0 + Toad: character (not reliable) = 0x20 + Toad: caste vector = 0x60 + Toad: extract? vector = 0x1f74 + Toad: colors = 0x38 diff --git a/tools/supported/incrementalsearch.cpp b/tools/supported/incrementalsearch.cpp index 8dc04cbc4..f95fba34f 100644 --- a/tools/supported/incrementalsearch.cpp +++ b/tools/supported/incrementalsearch.cpp @@ -749,12 +749,18 @@ void autoSearch(DFHack::Context * DF, vector & ranges) // organics vector to_filter = filtVectors; + sf.Filter(52 * 4,to_filter,vectorLength); + sf.Filter("MUSHROOM_HELMET_PLUMP",to_filter, vectorStringFirst); + printFound(to_filter,"organics"); + + // new organics vector + to_filter = filtVectors; sf.Filter("MUSHROOM_HELMET_PLUMP",to_filter, vectorString); sf.Filter("MEADOW-GRASS",to_filter, vectorString); sf.Filter("TUNNEL_TUBE",to_filter, vectorString); sf.Filter("WEED_BLADE",to_filter, vectorString); sf.Filter("EYEBALL",to_filter, vectorString); - printFound(to_filter,"organics"); + printFound(to_filter,"organics 31.19"); // tree vector to_filter = filtVectors;