DragonBreak #89: "teleport pc" quest action makes dungeon map hang [RESOLVED]

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

DragonBreak #89: "teleport pc" quest action makes dungeon map hang [RESOLVED]

Postby Jay_H » Sat Oct 21, 2017 8:13 pm

I'm using a quest with a basic teleport action to dungeon. I get teleported into the dungeon, but if I attempt to open the map, sometimes the map displays no dungeon at all, and closing the map then makes the game hang completely. This was flooded in player log:

NullReferenceException: Object reference not set to an instance of an object
at DaggerfallWorkshop.Game.DaggerfallAutomap.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

This quest that I wrote does trigger it sometimes, except I believe if teleporting from another dungeon.
Last edited by Jay_H on Wed Oct 25, 2017 3:34 am, edited 1 time in total.
Come give your feedback on the ideas in my general thread, and share your DFU characters in the character thread.
Quest-writing tutorial here. Guide for new Daggerfall players here. Daggerfall Mechanics thread here.
User avatar
Interkarma
Posts: 1958
Joined: Sun Mar 22, 2015 1:51 am

Re: DragonBreak #89: "teleport pc" quest action makes dungeon map hang

Postby Interkarma » Sun Oct 22, 2017 12:48 am

Thank you. Looks like the automap needs to initialise something not being satisfied by the teleport action.

I'll take a look and lean on Nystul if I need to, as he's the automap master.
User avatar
Interkarma
Posts: 1958
Joined: Sun Mar 22, 2015 1:51 am

Re: DragonBreak #89: "teleport pc" quest action makes dungeon map hang

Postby Interkarma » Sun Oct 22, 2017 2:20 am

I think all that was required here was for me to raise the OnTransitionDungeonInterior event from PlayerEnterExit when StartDungeonInterior() was called.

StartDungeonInterior() is the method used by "teleport pc" and can create a situation where player is able to teleport directly from one dungeon to another. Even the Shedungent/Mantellan teleports do this.

Prior to calling the event, the automap did not know the dungeon had changed, so the old automap would be left behind and sometimes crash. Now the event is being raised, the automap appears to refresh properly in both directions.

If you see this Nystul, would you be able to let me know if that's all we need or if there's something else I should be considering when player teleports directly from dungeon to dungeon?
User avatar
Nystul
Posts: 867
Joined: Mon Mar 23, 2015 8:31 am

Re: DragonBreak #89: "teleport pc" quest action makes dungeon map hang

Postby Nystul » Sun Oct 22, 2017 2:53 pm

I think only important thing is that a transition events callback from DaggerfallAutomap script needs to be reached - where the InitWhenInInteriorOrDungeon() is called inside. As far as I remember this should be enough. And if I understood correctly this happens with teleport since your latest changes.
If not I will fix any problem in case it does not work correctly. Just let me know ;)

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 3 guests