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 »

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: 3016
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Very few houses for sale.

Post 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.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

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

Re: Very few houses for sale.

Post by SkyShadowing »

Ah, that makes sense. Thanks for the answer!

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

Re: Very few houses for sale.

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

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

Re: Very few houses for sale.

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

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

Re: Very few houses for sale.

Post 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!
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

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

Re: Very few houses for sale.

Post by Interkarma »

Well done Ferital! :)

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

Re: Very few houses for sale.

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

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

Re: Very few houses for sale.

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

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

Re: Very few houses for sale.

Post 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.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

Post Reply