Ofunniku / dwarftherapist

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

Migration waves are wonky #382

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Dwarves are not being properly divided into migration waves in the new version 
of DF.

Original issue reported on code.google.com by ehler...@gmail.com on 16 Feb 2012 at 1:45

GoogleCodeExporter commented 9 years ago

Original comment by ehler...@gmail.com on 16 Feb 2012 at 2:20

GoogleCodeExporter commented 9 years ago
There is no variable that holds the migration wave of a dwarf. DT calculates it 
by comparing ids and gaps in ids of the dwarfs in the creature vector. Since 
migrants in the new version are not generated when the imigration happenes but 
taken from the world, they have an existing lower id not according to the time 
they arrive. This would explain why the 7 starting dwarfs are in the same wave 
with the higest wave number (highes id = latest wave) and other dwarfs spread 
over many earlyer migrationn waves in the list.

Maybe it can be changed to work with the information on the arrival of the 
dwarf at the fortress you can find at the thoughts and preferences screen. (If 
this can be found anywhere...)

Original comment by timo.wi...@gmx.de on 16 Feb 2012 at 3:53

GoogleCodeExporter commented 9 years ago
Actually, there is a variable now that shows when the migrants arrive. It's in 
the stats screen - v + z + enter. 

"He is a citizen of The Infinite Silvers. He is a member of The Towers of Ice. 
He is a former member of The Confusing Pillar. He is a former member of The 
Work of Bowing. He arrived at Edimetur on the 3rd of Felsite in the year 102."

Note the last sentence. Perhaps this could be utilized?

Original comment by NWeek...@gmail.com on 16 Feb 2012 at 4:55

GoogleCodeExporter commented 9 years ago
Issue 386 has been merged into this issue.

Original comment by ehler...@gmail.com on 17 Feb 2012 at 1:43

GoogleCodeExporter commented 9 years ago

Original comment by ehler...@gmail.com on 17 Feb 2012 at 1:43

GoogleCodeExporter commented 9 years ago
Issue 387 has been merged into this issue.

Original comment by ehler...@gmail.com on 18 Feb 2012 at 2:48

GoogleCodeExporter commented 9 years ago
Finally found a fix for this. Dwarves keep track of their turns at the 
fortress, so I added a new turn_count offset, and migration wave calculation is 
based on groupings of turn counts.

Original comment by ehler...@gmail.com on 18 Feb 2012 at 2:50