Fix for veinlook bug related to module reset on resume.

Offsets only for supported tools, creature stuff will come later.
develop
Petr Mrázek 2010-07-13 03:21:18 +02:00
parent 2018ca7fe7
commit 0256a19760
2 changed files with 95 additions and 1 deletions

@ -1680,7 +1680,18 @@ map_data_1b60_offset 0x1B9c
map size Y: 0x16c4b14
-->
</Entry>
<Entry version="v0.31.09" os="windows" id="0.31.09" base="0.31.08" rebase="0xD028" > rebase="0xD030"
<!-- TODO: fix creature offsets -->
<!-- TODO: small offsets added all over the place, investigate -->
<String name="md5">1a85839ab03df082974dc5629d3fbc26</String>
<HexValue name="pe_timestamp">0x4C3897C0</HexValue>
<Address name="cursor_xyz">0xaff2d8</Address>0xaf12d0
</Entry>
<Entry version="v0.31.10" os="windows" id="0.31.10" base="0.31.09">
<String name="md5">349d1ad6eda7b6c5e87f8e4726a0999a</String>
<HexValue name="pe_timestamp">0x4C398089</HexValue>
</Entry>
.-"""-.
' \
|,. ,-. | _________________________
@ -2186,6 +2197,85 @@ map_data_1b60_offset 0x1B9c
<Entry version="v0.31.08" os="linux" id="30_08lin" base="30_07lin">
<String name="md5">e37750890350d7b9d8203879aff8fa5c</String>
</Entry>
<Entry version="v0.31.09" os="linux" id="30_09lin" base="30_08lin" rebase="0x11000">
<!-- TODO: fix creature offsets -->
<!-- TODO: small offsets added all over the place, investigate -->
<String name="md5">4f1f988bc1b425d4193d3d8b7b0579a5</String>
stealing memory...
looking for vectors...
-------------------
!!LANGUAGE TABLES!!
-------------------
translation vector: 0x932bf2c
lang vector: 0x932bf14
word table offset: 0x1c
-------------
!!MATERIALS!!
-------------
inorganics:
0x932bda8
organics:
0x932bdb4
trees:
0x932bdd8
plants:
0x932bdc0
color descriptors:
0x93302b8
Amber color:0xaf842e0
all descriptors:
0x93302d0
toad-first creature types:
0x932be54
all creature types:
0x932be2c
0x932be54
Toad: 0xb076f88
Toad: rawname = 0x0
Toad: character (not reliable) = 0x20
Toad: caste vector = 0x60
Toad: extract? vector = 0x18f4
Toad: colors = 0x36
</Entry>
<Entry version="v0.31.10" os="linux" id="30_10lin" base="30_09lin">
<String name="md5">3e7bea269018a6fb88ef53715685aa64</String>
stealing memory...
looking for vectors...
-------------------
!!LANGUAGE TABLES!!
-------------------
translation vector: 0x932bf2c
lang vector: 0x932bf14
word table offset: 0x1c
-------------
!!MATERIALS!!
-------------
inorganics:
0x932bda8
organics:
0x932bdb4
trees:
0x932bdd8
plants:
0x932bdc0
color descriptors:
0x93302b8
Amber color:0xcc3a770
all descriptors:
0x93302d0
toad-first creature types:
0x932be54
elephant-first creature types:
all creature types:
0x932be2c
0x932be54
Toad: 0xc77d798
Toad: rawname = 0x0
Toad: character (not reliable) = 0x20
Toad: caste vector = 0x60
Toad: extract? vector = 0x18f4
Toad: colors = 0x36
</Entry>
</MemoryDescriptors>
</DFExtractor>

@ -719,6 +719,10 @@ main(int argc, char *argv[])
// Supend, read/write data
DF->Suspend();
// restart cleared modules
Maps->Start();
Mats->Start();
Mats->ReadInorganicMaterials();
uint32_t effectnum;
/*
if(DF.InitReadEffects(effectnum))