AdventureCreatorBridge, NullReferenceException

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Ooghe
Posts: 8
Joined: Mon Oct 06, 2014 12:19 pm

AdventureCreatorBridge, NullReferenceException

Post by Ooghe »

I've just installed the Third Party package for Adventure Creator support, and my test interaction seems to be working smoothly.



I am, however, getting the following error in AdventureCreatorBridge:

NullReferenceException: Object reference not set to an instance of an object



PixelCrushers.DialogueSystem.LuaTableWrapper+<>c__Iterator1.MoveNext ()



PixelCrushers.DialogueSystem.AdventureCreator.AdventureCreatorBridge.SyncLuaToInventory () (at Assets/Dialogue System/Third Party Support/Adventure Creator/Scripts/AdventureCreatorBridge.cs:331)



PixelCrushers.DialogueSystem.AdventureCreator.AdventureCreatorBridge.SyncLuaToAdventureCreator () (at Assets/Dialogue System/Third Party Support/Adventure Creator/Scripts/AdventureCreatorBridge.cs:240)



PixelCrushers.DialogueSystem.AdventureCreator.AdventureCreatorBridge.OnConversationEnd (UnityEngine.Transform actor) (at Assets/Dialogue System/Third Party Support/Adventure Creator/Scripts/AdventureCreatorBridge.cs:82)



UnityEngine.GameObject:BroadcastMessage(String, Object, SendMessageOptions)



PixelCrushers.DialogueSystem.DialogueSystemController:OnEndConversation()



PixelCrushers.DialogueSystem.ConversationController:Close()



PixelCrushers.DialogueSystem.ConversationController:OnFinishedSubtitle(Object, EventArgs)



PixelCrushers.DialogueSystem.ConversationView:FinishSubtitle()



PixelCrushers.DialogueSystem.ConversationView:OnFinishedSubtitle()



PixelCrushers.DialogueSystem.Sequencer:FinishSequence()



PixelCrushers.DialogueSystem.Sequencer:Update()

Each of the errors messages seems to have something to do with Lua:

AdventureCreatorBridge.cs:331

foreach (var luaItem in luaItemTable.Values) {;

AdventureCreatorBridge.cs:240:



SyncLuaToInventory();



AdventureCreatorBridge.cs:82:



SyncLuaToAdventureCreator();;





I have AC v1.39 installed, and although this is not preventing my game from running, I'm curious if anyone else has encoutnered this error.



thanks!
User avatar
Tony Li
Posts: 22093
Joined: Thu Jul 18, 2013 1:27 pm

AdventureCreatorBridge, NullReferenceException

Post by Tony Li »

Hi,



AC v1.39 just came out a few hours ago. I'm taking a look at it now. I'll probably have to provide an updated support package later today.
User avatar
Tony Li
Posts: 22093
Joined: Thu Jul 18, 2013 1:27 pm

AdventureCreatorBridge, NullReferenceException

Post by Tony Li »

No, it was an issue with the abstraction layer on top of the underlying Lua implementation. It didn't handle empty tables gracefully. It's fixed now in a patch on the customer download site. If you need access, please email your invoice number to tony (at) pixelcrushers.com.
Post Reply