anyInfo failing on quest item

Moderators will move topics here from Help & Support once an issue has been confirmed and enough information provided to reproduce.
Post Reply
User avatar
Jay_H
Posts: 3880
Joined: Tue Aug 25, 2015 1:54 am
Contact:

anyInfo failing on quest item

Post by Jay_H »

I'm writing a custom quest and need anyInfo behavior to feed from an item given to the player. The quest gives an iron tanto to the player and expects you to get rumors to find an expert who'll give a clue on it. The quest file is here: https://github.com/JayH2971/dfunity-que ... 3.txt#L125

And the item is defined as follows: Item _tanto_ item class 3 subclass 1 anyInfo 1013

It worked fine during my initial test, but now it refuses to print a rumor message when I ask for it.

Code: Select all

NullReferenceException: Object reference not set to an instance of an object
  at DaggerfallWorkshop.Game.TalkManager.GetAnswerFromTokensArray (System.UInt64 questID, System.Collections.Generic.List`1[T] answers) [0x00000] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.TalkManager.GetDialogHint (DaggerfallWorkshop.Game.TalkManager+ListItem listItem) [0x0005d] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.TalkManager+TalkManagerDataSource.DialogHint () [0x0008c] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Utility.MacroHelper.DialogHint (DaggerfallWorkshop.Utility.IMacroContextProvider mcp) [0x0000b] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Utility.MacroHelper.GetValue (System.String symbolStr, DaggerfallWorkshop.Utility.IMacroContextProvider mcp, DaggerfallWorkshop.Utility.IMacroContextProvider mcp2) [0x0001c] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Utility.MacroHelper.ExpandMacros (DaggerfallConnect.Arena2.TextFile+Token[]& tokens, DaggerfallWorkshop.Utility.IMacroContextProvider mcp) [0x000c0] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.TalkManager.ExpandRandomTextRecord (System.Int32 recordIndex) [0x00012] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.TalkManager.GetAnswerTellMeAboutTopic (DaggerfallWorkshop.Game.TalkManager+ListItem listItem) [0x0007f] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.TalkManager.GetAnswerText (DaggerfallWorkshop.Game.TalkManager+ListItem listItem) [0x000a6] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.UserInterface.DaggerfallTalkWindow.SelectTopicFromTopicList (System.Int32 index, System.Boolean forceExecution) [0x000cc] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.UserInterface.DaggerfallTalkWindow.ButtonOkay_OnMouseClick (DaggerfallWorkshop.Game.UserInterface.BaseScreenComponent sender, UnityEngine.Vector2 position) [0x00045] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_BaseScreenComponent_Vector2(DaggerfallWorkshop.Game.UserInterface.BaseScreenComponent,UnityEngine.Vector2)
  at DaggerfallWorkshop.Game.UserInterface.BaseScreenComponent.MouseClick (UnityEngine.Vector2 clickPosition) [0x00008] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.UserInterface.BaseScreenComponent.Update () [0x00347] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.UserInterface.Panel.Update () [0x00009] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.UserInterface.Button.Update () [0x00000] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.UserInterface.Panel.Update () [0x00049] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.UserInterface.Panel.Update () [0x00049] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.UserInterface.Panel.Update () [0x00049] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.UserInterface.UserInterfaceWindow.Update () [0x00008] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.UserInterfaceWindows.DaggerfallBaseWindow.Update () [0x0003d] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.UserInterfaceWindows.DaggerfallPopupWindow.Update () [0x00000] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.UserInterface.DaggerfallTalkWindow.Update () [0x00000] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
  at DaggerfallWorkshop.Game.DaggerfallUI.Update () [0x000d8] in <9b1411347b784f16a7ba6d6b2130bcfd>:0 
Full player log here: https://pastebin.com/b9KG4v8G

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

Re: anyInfo failing on quest item

Post by Interkarma »

Jay do you know if this one still happens? The quest source is no longer present, do you still have another copy?

I'll loop back and take another look later. :)

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

Re: anyInfo failing on quest item

Post by Jay_H »

Ah, darn. I reorganized my mod folders a little while ago, forgetting about topics like this. I have the updated link here: https://github.com/JayH2971/dfunity-que ... 3.txt#L125. However, let me give some tries and see if it's happening. If not, we can call this resolved.

Post Reply