Dialogue System: Lua code 'return Conversation[155].Dialog[2].SimStatus' threw exception 'Lookup of field 'SimStatus' in

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
rakkar
Posts: 51
Joined: Mon Jan 13, 2020 10:39 pm

Dialogue System: Lua code 'return Conversation[155].Dialog[2].SimStatus' threw exception 'Lookup of field 'SimStatus' in

Post by rakkar »

Not sure what is causing this. Getting it with many conversations. This is DefendVillage/Stone/Easy/ThroneRoom

Code: Select all

Dialogue System: Lua code 'return Conversation[155].Dialog[2].SimStatus' threw exception 'Lookup of field 'SimStatus' in the table element failed because the table element itself isn't in the table.'
UnityEngine.Debug:LogError(Object)
PixelCrushers.DialogueSystem.Lua:RunRaw(String, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Wrapper/Lua Interpreter/Lua.cs:226)
PixelCrushers.DialogueSystem.Lua:Run(String, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Wrapper/Lua Interpreter/Lua.cs:127)
PixelCrushers.DialogueSystem.Lua:Run(String) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Wrapper/Lua Interpreter/Lua.cs:146)
PixelCrushers.DialogueSystem.ConversationModel:EvaluateLinksAtPriority(ConditionPriority, DialogueEntry, List`1, List`1, List`1, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Model/ConversationModel.cs:416)
PixelCrushers.DialogueSystem.ConversationModel:EvaluateLinks(DialogueEntry, List`1, List`1, List`1, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Model/ConversationModel.cs:358)
PixelCrushers.DialogueSystem.ConversationModel:GetState(DialogueEntry, Boolean, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Model/ConversationModel.cs:252)
PixelCrushers.DialogueSystem.ConversationModel:GetState(DialogueEntry) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Model/ConversationModel.cs:297)
PixelCrushers.DialogueSystem.ConversationController:OnFinishedSubtitle(Object, EventArgs) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Controller/ConversationController.cs:224)
PixelCrushers.DialogueSystem.ConversationView:FinishSubtitle() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:391)
PixelCrushers.DialogueSystem.ConversationView:OnFinishedSubtitle() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:398)
PixelCrushers.DialogueSystem.Sequencer:FinishSequence() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:496)
PixelCrushers.DialogueSystem.Sequencer:Update() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:489)

Attachments
Dialogue Database.zip
(140.76 KiB) Downloaded 88 times
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue System: Lua code 'return Conversation[155].Dialog[2].SimStatus' threw exception 'Lookup of field 'SimStatus

Post by Tony Li »

Hi,

Did you set the Dialogue Manager's Input Settings > [em#] Tag for Old Responses? If so, it requires that Other Settings > Include Sim Status is also ticked.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue System: Lua code 'return Conversation[155].Dialog[2].SimStatus' threw exception 'Lookup of field 'SimStatus

Post by Tony Li »

The database itself works. I created a simple scene that starts and restarts the conversation. The Dialogue Manager is set up the same way as your screenshot.

Are you using multiple databases?

What else is going on that could cause it to do something atypical with its internal data?

Can you send a reproduction project to tony (at) pixelcrushers.com? If so, please also include the steps that I should follow to reproduce the issue. You can zip up the Assets, Packages, and ProjectSettings folder; I won't need any other files.
Post Reply