Page 1 of 1

Rumors can't initialize in custom quest, 0.10.25

Posted: Fri Sep 18, 2020 7:25 am
by Jay_H
Finishing a custom quest; when I started asking for rumors for a necessary quest element, the townspeople gave no answer at all, totally blank. I looked in the player log and found this: (available on Pastebin)

Code: Select all

AddDialogLinkForQuestInfoResource() could not find quest with questID 33561415 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
 
AddDialogLinkForQuestInfoResource() could not find quest with questID 33561415 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
 
AddDialogLinkForQuestInfoResource() could not find quest with questID 33561415 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
 
AddDialogLinkForQuestInfoResource() could not find quest with questID 33561415 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
 
AddDialogLinkForQuestInfoResource() could not find quest with questID 33561415 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
 
...
 
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 <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.TalkManager.GetDialogHint (DaggerfallWorkshop.Game.TalkManager+ListItem listItem) [0x0005d] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.TalkManager+TalkManagerDataSource.DialogHint () [0x0008c] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Utility.MacroHelper.DialogHint (DaggerfallWorkshop.Utility.IMacroContextProvider mcp) [0x0000b] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Utility.MacroHelper.GetValue (System.String symbolStr, DaggerfallWorkshop.Utility.IMacroContextProvider mcp, DaggerfallWorkshop.Utility.IMacroContextProvider mcp2) [0x0001c] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Utility.MacroHelper.ExpandMacros (DaggerfallConnect.Arena2.TextFile+Token[]& tokens, DaggerfallWorkshop.Utility.IMacroContextProvider mcp) [0x00146] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.TalkManager.ExpandRandomTextRecord (System.Int32 recordIndex) [0x00012] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.TalkManager.GetAnswerTellMeAboutTopic (DaggerfallWorkshop.Game.TalkManager+ListItem listItem, System.Single chanceNPCknowsSomething) [0x000c1] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.TalkManager.GetAnswerText (DaggerfallWorkshop.Game.TalkManager+ListItem listItem) [0x000db] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.UserInterface.DaggerfallTalkWindow.SelectTopicFromTopicList (System.Int32 index, System.Boolean forceExecution) [0x000cc] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.UserInterface.DaggerfallTalkWindow.ButtonOkay_OnMouseClick (DaggerfallWorkshop.Game.UserInterface.BaseScreenComponent sender, UnityEngine.Vector2 position) [0x00045] in <17a078b2c33542c7ae7314a058187e7e>: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 <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.UserInterface.BaseScreenComponent.Update () [0x00347] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.UserInterface.Panel.Update () [0x00009] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.UserInterface.Button.Update () [0x00000] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.UserInterface.Panel.Update () [0x00049] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.UserInterface.Panel.Update () [0x00049] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.UserInterface.Panel.Update () [0x00049] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.UserInterface.UserInterfaceWindow.Update () [0x00008] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.UserInterfaceWindows.DaggerfallBaseWindow.Update () [0x0003d] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.UserInterfaceWindows.DaggerfallPopupWindow.Update () [0x00000] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.UserInterface.DaggerfallTalkWindow.Update () [0x00000] in <17a078b2c33542c7ae7314a058187e7e>:0 
  at DaggerfallWorkshop.Game.DaggerfallUI.Update () [0x000d8] in <17a078b2c33542c7ae7314a058187e7e>:0 
Exiting DFU and loading the save game again made the rumors proceed as normal. Here's the quest file, if it's relevant: https://pastebin.com/0SyYNegt

Re: Custom quest support

Posted: Fri Sep 18, 2020 8:46 am
by Interkarma
I don't have an answer right now, would mind if I split this one into its own bug report for follow-up later?

Re: Rumors can't initialize in custom quest, 0.10.25

Posted: Fri Sep 18, 2020 8:51 am
by Jay_H
That'd be silly, I can split it myself :lol:

Re: Rumors can't initialize in custom quest, 0.10.25

Posted: Fri Sep 18, 2020 8:36 pm
by Interkarma
Thank you :)

Re: Rumors can't initialize in custom quest, 0.10.25

Posted: Sat Jun 25, 2022 3:15 am
by Interkarma
Jay, do you know if this one is still present? There has been a lot of touch to talk system since then (including a rather large number of fixes) and it might have been resolved in the interim.

Re: Rumors can't initialize in custom quest, 0.10.25

Posted: Sat Jun 25, 2022 11:00 am
by Jay_H
I've had a lot of quests with rumors since then, and no reports of failing to find needed rumors. Let's call this one done; we can bring it back if we hear of it again.