From e8a3106b1004c95010a7919f9e5da9dae8fc0ca9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 14 Apr 2010 12:16:56 +0200 Subject: [PATCH] Plant/Wood materials reading fixed. --- examples/materialtest.cpp | 14 +++++++++++++- output/Memory.xml | 40 ++++++++++++++++++++++++--------------- 2 files changed, 38 insertions(+), 16 deletions(-) diff --git a/examples/materialtest.cpp b/examples/materialtest.cpp index db7e5d2a8..9bc466c2b 100644 --- a/examples/materialtest.cpp +++ b/examples/materialtest.cpp @@ -56,12 +56,24 @@ int main (int numargs, const char ** args) { cout << i << ": " << matgloss[i].id << endl; } + cout << endl << "----==== Organic - trees ====----" << endl; + Materials->ReadWoodMaterials (matgloss); + for(uint32_t i = 0; i < matgloss.size();i++) + { + cout << i << ": " << matgloss[i].id << endl; + } + cout << endl << "----==== Organic - plants ====----" << endl; + Materials->ReadPlantMaterials (matgloss); + for(uint32_t i = 0; i < matgloss.size();i++) + { + cout << i << ": " << matgloss[i].id << endl; + } cout << endl << "----==== Creature types ====----" << endl; vector creature; Materials->ReadCreatureTypes (matgloss); for(uint32_t i = 0; i < matgloss.size();i++) { - cout << i << ": " << matgloss[i].id << endl; + cout << i << ": " << matgloss[i].id << endl ; } #ifndef LINUX_BUILD cout << "Done. Press any key to continue" << endl; diff --git a/output/Memory.xml b/output/Memory.xml index 297c12dc7..6189e55c6 100644 --- a/output/Memory.xml +++ b/output/Memory.xml @@ -1178,16 +1178,23 @@ map_data_1b60_offset 0x1B9c Materials ========= - + soil, stone, metal inorganics vector = WORLD + 0x54B7C = 0x16AFD04
0x16afd04
- + wood and plant matter, WORLD + 0x54B94
0x16afd1C
- + plant matter, WORLD + 0x54BAC +
0x16afd34
+ + just wood, WORLD + 0x54BDC +
0x16afd64
+ + creature types actually used for creatures, WORLD + 0x54CD0
0x016AFE58
- + + 0x0 0x6c 0x88 @@ -1363,7 +1367,7 @@ map_data_1b60_offset 0x1B9c 0xFC 0x110 0x114 - 0X120 + 0X120 0X1F4 0X21C 0x238 @@ -1387,15 +1391,21 @@ map_data_1b60_offset 0x1B9c Materials ========= - + soil, stone, metal inorganics vector = WORLD + 0x54B7C = 0x16B0D4C
0x16B0D4C
- -
0x16B0D64
inorg + 0x18 + wood and plant matter, WORLD + 0x54B94 +
0x16B0D64
+ + plant matter, WORLD + 0x54BAC +
0x16B0D7C
+ + just wood, WORLD + 0x54BDC +
0x16B0DAC
- -
0x16B0EA0
inorg + 0x154 + creature types actually used for creatures, WORLD + 0x54CD0 +
0x16B0EA0
Constructions =============