Page 1 of 3

Very few houses for sale.

Posted: Thu Aug 08, 2019 1:56 am
by SkyShadowing
There's but a single house for sell in all of the city of Daggerfall, and no houses for sell in the town that I, a young stupid lad, always bought a specific house in, Penwold in Daggerfall.

Is this possibly a bug because of mods (I uninstalled all mods, or at least tried to, Mountains and Hills still seems to be applying despite my best efforts), or is this a possible known bug in Alpha .10?

Re: Very few houses for sale.

Posted: Thu Aug 08, 2019 8:43 pm
by Hazelnut
This is a known issue, rather than bug. Currently the list of houses for sale is only populated by the buildings marked as such in the world data. They are few and far between. Unfortunately we don't know how DF populates this list yet with other houses, and as yet no one has reverse engineered that part of the original binary. It's definitely nothing to do with any mods though.

Re: Very few houses for sale.

Posted: Fri Aug 09, 2019 1:03 pm
by SkyShadowing
Ah, that makes sense. Thanks for the answer!

Re: Very few houses for sale.

Posted: Fri Aug 30, 2019 8:38 pm
by Ferital
Just to inform I found the classic function which populates a given town house for sales list. I now need to understand it, this may still require some time...

Re: Very few houses for sale.

Posted: Fri Aug 30, 2019 9:03 pm
by Jay_H
YAAAAAAAY! Ferital once again to the rescue! :D Take your time, it's just good to know that at some point there's going to be a solution.

Re: Very few houses for sale.

Posted: Fri Aug 30, 2019 10:59 pm
by Hazelnut
Ferital wrote: Fri Aug 30, 2019 8:38 pm Just to inform I found the classic function which populates a given town house for sales list. I now need to understand it, this may still require some time...
Even if you don't understand everything, clues can often be enough so post whatever you find. Great news!

Re: Very few houses for sale.

Posted: Fri Aug 30, 2019 11:12 pm
by Interkarma
Well done Ferital! :)

Re: Very few houses for sale.

Posted: Sat Aug 31, 2019 10:03 am
by Ferital
I mostly need to figure out a bunch of global variables as the algorithm in itself seems pretty straightforward, I'll be back there as soon as I get enough information.

Re: Very few houses for sale.

Posted: Mon Sep 02, 2019 8:30 am
by Ferital
A little update: the algorithm only checks if a building type is equal to 1 (House for Sale) to populate the list until it reaches at most 20 houses. So I now need to find where DF changes some houses building type field...

Re: Very few houses for sale.

Posted: Mon Sep 02, 2019 9:19 am
by Hazelnut
Ah, very interesting. I'd assumed other building types were used rather than some of the houses had their type changed from the game data.