Hi guys,
I have both Dialog System and Adventure Creator and it has always been working perfectly.
However, since the last unity update (and consequently AC and DS updates) we came across an unexpected behaviour.
Basically what happens is the following:
1- I have an action list in which the first action is a DS conversation. That conversation has "wait until finish" unticked so that while the dialog is still running 2- Adventure Creator moves to the next action.
3- After that action I add an object to the inventory
4- And I play a little pick up sound
What happens is that after the dialog conversation ends (it's basically him talking to himself) the inventory object I added to the inventory disappears!
It took me a while to understand what was happening but basically, if I tick "wait until finish", effectively making the game wait until it moves from the DS action to the next AC action, everything works fine and the inventory item persists.
I am quite certain this one is a bug but the crux is going to find out if it's AC or DS. Can you assist?
Thanks in advance for your help.
Cheers,
Duarte
Comments
It could well be down to the DS Action - if it were somehow removing the item some time after its initially called, then having it run alongside other Actions would cause it to do so after all the others. You should contact @PixelCrushers to see if he can shed some light.
If you're up for some debugging, you could try placing a Debug line in the two Remove functions inside the RuntimeInventory.cs script:
Around lines 481 and 500, there are two functions named Remove (one after the other). Placing the following code just inside them should have the Console show a message whenever an Action removes an item:
Debug.Log ("Removed an item!");
If it shows at the time that this issue occurs, what does the complete error message say, as shown when selected in the Console window?