0.7.2 Win x64: %bn[unhandled] in biography [RESOLVED]

BansheeXYZ
Posts: 555
Joined: Fri Oct 23, 2015 8:19 pm

Re: 0.7.2 Win x64: %bn[unhandled] in biography

Post by BansheeXYZ »

I've tried several times to get this macro to appear in classic, but I failed to reproduce a biography using it. Maybe someone has a classic save or knows how to hack it in?

Floppy N'Wah
Posts: 21
Joined: Mon Jun 17, 2019 6:10 am

Re: 0.7.2 Win x64: %bn[unhandled] in biography

Post by Floppy N'Wah »

It's the Nightblade bio. if this helps anyone?

BansheeXYZ
Posts: 555
Joined: Fri Oct 23, 2015 8:19 pm

Re: 0.7.2 Win x64: %bn[unhandled] in biography

Post by BansheeXYZ »

Floppy N'Wah wrote: Fri Jul 26, 2019 3:16 amIt's the Nightblade bio. if this helps anyone?
Thanks, I think I've solved the riddle now. %bn is a random name of your chosen race. So if you chose a Nord, it will be a random Nord name.

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

Re: 0.7.2 Win x64: %bn[unhandled] in biography

Post by Hazelnut »

Great work guys thanks, so it probably stands for bio name then. I'll implement this soon.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

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

Re: 0.7.2 Win x64: %bn[unhandled] in biography

Post by Ferital »

I just reverse engineered the classic function behind the %bn macro, it's a standard random name generation except it uses the player character race, not a random one. In classic, the gender is randomly chosen, but I suppose it should be changed in DFU to be a male name only, because the %q8 token expansion leads to one of the following "profession":

priest
wizard
sorceror
revolutionary
anarchist
warlord
robber baron
assassin

And these are mostly masculine nouns.

To summarize: %bn (biography name) = random name using the player character race and a male gender.

User avatar
mikeprichard
Posts: 1037
Joined: Sun Feb 19, 2017 6:49 pm

Re: 0.7.2 Win x64: %bn[unhandled] in biography

Post by mikeprichard »

Great work! This has been a very visible bug in DFU videos for some time; nice to see it fixed.

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

Re: 0.7.2 Win x64: %bn[unhandled] in biography

Post by Ferital »

Hazelnut, I'm implementing it at the moment, I should push a PR in a few minutes.

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

Re: 0.7.2 Win x64: %bn[unhandled] in biography

Post by Hazelnut »

Okay thanks for letting me know. I will review the PR one it's up.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

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

Re: 0.7.2 Win x64: %bn[unhandled] in biography

Post by Ferital »

PR submitted.

Locked