Linux #127: repeated "teleport pc" quest action causes world falling outside

Report specific bugs in Daggerfall Unity. Please read guidelines before posting.
Post Reply
User avatar
Jay_H
Posts: 2140
Joined: Tue Aug 25, 2015 1:54 am

Linux #127: repeated "teleport pc" quest action causes world falling outside

Post by Jay_H » Wed Aug 22, 2018 2:59 pm

Summary: Getting teleported to a dungeon via "teleport pc" works fine until you leave the dungeon. The game doesn't know what height to put you at, and can place you 50 meters above the ground or well below the surface.

(Repro quest expired, can recreate)

Steps: After starting the quest, use either "tele2exit" or "trans_out" console commands to leave repeatedly. The quest is programmed to trap you inside the dungeon. However, though the trigger works, it'll often send you under or over the world and cease recognizing location after the 2nd attempt or so.

Mods activated: None
Last edited by Jay_H on Thu Dec 20, 2018 9:30 pm, edited 1 time in total.
Come join the Unofficial Daggerfall Unity Discord.
Try the first Daggerfall Unity Quest Pack with roughly 210 all-new quests.
I write quests but have no technical knowledge.

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

Re: Linux #127: repeated "teleport pc" quest action causes world falling outside

Post by Interkarma » Tue Dec 18, 2018 3:10 am

I'm working on vampirism and believe I have another way to trigger this now. I'm fairly confident problem is related.
  1. Get infected (e.g. console "disease player vampire")
  2. Rent an inn, create a save, then rest until death.
  3. Exit dungeon after waking up.
  4. Reload previous save and rest until death again.
  5. Exit dungeon after waking up.
When exiting dungeon the second time, player and world are far outside of where game world should be. You might even see the exterior for a moment before falling into the void.

Jay, I'm taking a look at this one now and will let you know once resolved so you can test from quest actions again.

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

Re: Linux #127: repeated "teleport pc" quest action causes world falling outside

Post by Interkarma » Tue Dec 18, 2018 5:04 am

Jay, this should be fixed now in live code if you're able to test from there. Otherwise it will be in first 0.7 builds.

Problem was simply one of floating origin not being reset when chaining interiors together. When player went back into outside world the environment would be setup at obscene offsets where physics don't work and player simply falls through ground or pops off into madspace.

Roughly two hours of debugging to make a one-liner change to code. That's game dev for you. :)

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

Re: Linux #127: repeated "teleport pc" quest action causes world falling outside [RESOLVED]

Post by Jay_H » Tue Dec 18, 2018 5:10 am

Cool! I'll have to try it when 0.7 comes out but that's no problem. Thanks for looking into this.
Come join the Unofficial Daggerfall Unity Discord.
Try the first Daggerfall Unity Quest Pack with roughly 210 all-new quests.
I write quests but have no technical knowledge.

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

Re: Linux #127: repeated "teleport pc" quest action causes world falling outside

Post by Hazelnut » Tue Dec 18, 2018 1:00 pm

Interkarma wrote:
Tue Dec 18, 2018 5:04 am
Jay, this should be fixed now in live code if you're able to test from there. Otherwise it will be in first 0.7 builds.

Problem was simply one of floating origin not being reset when chaining interiors together. When player went back into outside world the environment would be setup at obscene offsets where physics don't work and player simply falls through ground or pops off into madspace.

Roughly two hours of debugging to make a one-liner change to code. That's game dev for you. :)
Yeah, but this little bug has been eluding us for such a long time that's a massive win. Only 2 hours? That's a win! :D

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

Re: Linux #127: repeated "teleport pc" quest action causes world falling outside [RESOLVED]

Post by Jay_H » Thu Dec 20, 2018 9:23 pm

I'm making a quest with this action and the problem persists in #146. It seems to be as before. This save zip includes the text of the quest file I'm working on. If you enter the dungeon and exit twice, you'll be under the world.
Attachments
tele problems.zip
(148.36 KiB) Downloaded 12 times
Come join the Unofficial Daggerfall Unity Discord.
Try the first Daggerfall Unity Quest Pack with roughly 210 all-new quests.
I write quests but have no technical knowledge.

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

Re: Linux #127: repeated "teleport pc" quest action causes world falling outside

Post by Interkarma » Thu Dec 20, 2018 9:49 pm

Thanks Jay! Seems the problems weren't related after all. I'll take a look when I can.

Post Reply