@DwarfEngineer - Is m_current_year actually referenced or used anywhere right now?
Not in vanilla DwarfTherapist, it's part of preparations to merge in some of these other changes that are floating around. (chrisadams & splinterz changes)
Thanks - I went through your sources and couldn't find anything for it; scan for current year gives me a whole slew of addresses, none of which seem to quite resolve to an integer or word that all appear to be -1. I didn't dig deeper then that.
@kionmaru, thanks. That config works perfectly.
You're more than welcome Glad to hear it's behaving itself.
Current year looks like it's always going to be the last address (the address closest to dwarf_race_index) on v34.04 linux its: 0x09571d40
I'm updating the scanner script to report the last (and most likely) address.
On mine it's not reporting the correct offset at all then. 0x09571d40 is indeed an integer which appears to be correct; here's the list I get:
current year = 0x08c8ea8c (uncorrected:0x08c8ea8c)
current year = 0x08c8eaa4 (uncorrected:0x08c8eaa4)
current year = 0x08c8eae8 (uncorrected:0x08c8eae8)
current year = 0x08c8eb28 (uncorrected:0x08c8eb28)
current year = 0x08c8eb64 (uncorrected:0x08c8eb64)
current year = 0x08c8eba4 (uncorrected:0x08c8eba4)
current year = 0x08cab2b2 (uncorrected:0x08cab2b2)
current year = 0x08ceb760 (uncorrected:0x08ceb760)
current year = 0x08dbf16c (uncorrected:0x08dbf16c)
current year = 0x08dbf778 (uncorrected:0x08dbf778)
current year = 0x08dbfc10 (uncorrected:0x08dbfc10)
I can upload the world to dffd, it was genned with 0.34.04.
And just to verify, current_year should be in the [addresses] section if I'm reading your sources correctly, is that right?
** edit
hg failed to merge game_data.ini properly so I ended up with no expected year setting; that's what was causing the bad year search. Apologies, I should have caught that; it was no longer showing up in hg merge as a problem. Probably touched the file and it became more recent than your patch.