[0.10.25] Dungeon spawned quest NPCs half buried in the ground [RESOLVED 0.14]

Locked
User avatar
pango
Posts: 3347
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

[0.10.25] Dungeon spawned quest NPCs half buried in the ground [RESOLVED 0.14]

Post by pango »

Quest NPCs spawned in dungeons can be more or less badly buried in the ground:
Screenshot.jpg
Screenshot.jpg (135.95 KiB) Viewed 1575 times
My guess is that this issue, that has been otherwise fixed in 2016 by AlignBillboardToBase(), is doing a come back because that function is not called for billboards added dynamically by quests; Clicking on "Align to Surface" button in the editor fixes the issue.

(or dungeons explicitly excluded?)
Attachments
SAVE744.zip
(211.24 KiB) Downloaded 127 times
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

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

Re: [0.10.25] Dungeon spawned quest NPCs half buried in the ground

Post by Interkarma »

pango wrote: Mon Aug 31, 2020 10:50 pm (or dungeons explicitly excluded?)
That's setting the origin point. Sprites in dungeons have a different origin point relative to stored coordinates than sprites in exterior world. That conditional is just for initial placement.

NPCs should be aligned to base using their size & scale data. Will need to look into why this doesn't happen for NPCs placed in dungeons by quests.

User avatar
pango
Posts: 3347
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: [0.10.25] Dungeon spawned quest NPCs half buried in the ground

Post by pango »

Okay, so that must be a different problem then...

I noticd that the button calls AlignToGround() -> AlignControllerToGround()
CreateFoe.FinalizeFoe() calls the latter, but nothing similar in CreateNpc, I assume a similar logic would be useful there.
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
BadLuckBurt
Posts: 948
Joined: Sun Nov 05, 2017 8:30 pm

Re: [0.10.25] Dungeon spawned quest NPCs half buried in the ground

Post by BadLuckBurt »

This may tie into the bug where the handpainted models sink into the floor. I hope you can figure out whats going on
DFU on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
DFU Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

.

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

Re: [0.10.25] Dungeon spawned quest NPCs half buried in the ground [RESOLVED 0.14]

Post by Interkarma »

I've added a ground alignment step for NPCs injected by quest system. They should no longer get buried in ground.

aligned-npc.jpg
aligned-npc.jpg (180.44 KiB) Viewed 755 times

Locked