Very few houses for sale.

Post here if you need help getting started with Daggerfall Unity or just want to clarify a potential bug. Questions about playing or modding classic Daggerfall should be posted to Community.
SkyShadowing
Posts: 2
Joined: Wed Aug 07, 2019 1:40 pm

Very few houses for sale.

Post by SkyShadowing » Thu Aug 08, 2019 1:56 am

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?

User avatar
Hazelnut
Posts: 1501
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Very few houses for sale.

Post by Hazelnut » Thu Aug 08, 2019 8:43 pm

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.

SkyShadowing
Posts: 2
Joined: Wed Aug 07, 2019 1:40 pm

Re: Very few houses for sale.

Post by SkyShadowing » Fri Aug 09, 2019 1:03 pm

Ah, that makes sense. Thanks for the answer!

User avatar
Ferital
Posts: 152
Joined: Thu Apr 05, 2018 8:01 am

Re: Very few houses for sale.

Post by Ferital » 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...

User avatar
Jay_H
Posts: 2725
Joined: Tue Aug 25, 2015 1:54 am

Re: Very few houses for sale.

Post by Jay_H » Fri Aug 30, 2019 9:03 pm

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.

User avatar
Hazelnut
Posts: 1501
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Very few houses for sale.

Post by Hazelnut » Fri Aug 30, 2019 10:59 pm

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!

User avatar
Interkarma
Posts: 4838
Joined: Sun Mar 22, 2015 1:51 am

Re: Very few houses for sale.

Post by Interkarma » Fri Aug 30, 2019 11:12 pm

Well done Ferital! :)

User avatar
Ferital
Posts: 152
Joined: Thu Apr 05, 2018 8:01 am

Re: Very few houses for sale.

Post by Ferital » Sat Aug 31, 2019 10:03 am

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.

User avatar
Ferital
Posts: 152
Joined: Thu Apr 05, 2018 8:01 am

Re: Very few houses for sale.

Post by Ferital » Mon Sep 02, 2019 8:30 am

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...

User avatar
Hazelnut
Posts: 1501
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Very few houses for sale.

Post by Hazelnut » Mon Sep 02, 2019 9:19 am

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.

Post Reply