Ofunniku / dwarftherapist

Automatically exported from code.google.com/p/dwarftherapist
Other
0 stars 0 forks source link

Missing dwarves in 34_10, possibly incorrect memory layout #422

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate a world and start a fort in DF. The attached save shows the issue.
2. Start Dwarftherapist.
3. Compare the number of dwarves in DT and DF z-screen.

What is the expected output? What do you see instead?

Expected all dwarves to show up in DT, but two of them are missing. Checked in 
Legends mode, but they did not seem to be out of the ordinary. Dfhack does not 
tell me that there are any vampires or similar on the map. (This might be 
misleading though). 

The log (attached) shows that the missing dwarves have (assuming correct 
offsets) FLAGS2 values of [0x14000040], while the others have [0x12000040], 
apart from one (who recently grew from child to peasant) who has [0x12000070].

Since valid_flags_2 for 34_10 has the value 0x02000000, this causes the two 
dwarves to be filtered out as "Dead. Deceased. An Undwarf!". Changing the 
layout, bypassing the valid_flags_2 (setting to 0x00000000) lets the dwarves 
show up as expected.

I assume the cause is one of the following:
1. I'm to dumb to understand why, but the dwarves are filtered out on purpose. 
The message "Dead. Deceased. An Undwarf!" is not useful to identyify the cause 
of the filter.
2. The offset in the layout is incorrect, and the dwarves are filtered out 
because of some other random property that occupies the offset.
3. The flag value has changed in DF to mean something else than it used to, and 
is now invalid in DT.

What version of the product are you using? On what operating system?

- Gentoo Linux amd64 (unstable).
- Latest Dwarftherapist (with layout for 34_10) from hg, compiled for x64.
- DF version 34_10, with locally compiled libgraphics and external libstdc++ 
and libgcc.
I use Dfhack, also locally compiled.

Original issue reported on code.google.com by erikdens...@gmail.com on 24 May 2012 at 8:41

Attachments:

GoogleCodeExporter commented 9 years ago
run.log w/o -trace

Original comment by erikdens...@gmail.com on 24 May 2012 at 8:45

Attachments:

GoogleCodeExporter commented 9 years ago
Additional info:
The two dwarves in question are married and arrived as the sole two members of 
migration wave 2. They have extensive family, including a number of children 
(not brought along).

Migration wave 1 also has two married couples, one of them has two children, of 
which one was brought along.

Original comment by erikdens...@gmail.com on 24 May 2012 at 9:21

GoogleCodeExporter commented 9 years ago
I played the fortress a bit further until a third wave of migrants arrived. 
(Any changes might have happened in the mean time, though). Now the two 
originally problematic dwarves no longer show any problems, while one of the 
new dwarves is missing.

Original comment by erikdens...@gmail.com on 25 May 2012 at 1:07

Attachments: