Page 1 of 1

Bug in Adventure Create Bridge since 5.6 Update?

Posted: Tue Jul 11, 2017 3:24 am
by kyuubi
Hi Tony,
Been a while since I opened an issue (always a good sign) but I think I came across a bug since the last update.
So we have both DS 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 (and I suspect it's in the AC bridge) but wanted to flag this to see what next steps could be?
Thanks in advance for your help.
Cheers,

Duarte

Re: Bug in Adventure Create Bridge since 5.6 Update?

Posted: Tue Jul 11, 2017 3:46 am
by kyuubi
One more thing I forgot to mention was that this was the update:
viewtopic.php?f=3&t=921
The package on this link.
Cheers,

Re: Bug in Adventure Create Bridge since 5.6 Update?

Posted: Tue Jul 11, 2017 9:35 am
by Tony Li
Hi,

I'll work on a solution for this.

The problem is that at the beginning of the conversation the bridge syncs AC's inventory to the Dialogue System. During the conversation, you can manipulate the Dialogue System's variables (e.g., Item["Sword"].Count = 1).

At the end of the conversation, the bridge syncs the Dialogue System variables back to AC. This is where things go wrong in your case. The Dialogue System variables still have a count of 0 for the object, so it removes the object from the inventory when it syncs back to AC.

You could add the object by setting the Dialogue System variable, but it may be more convenient if I add a checkbox to the bridge that will let you disable this automatic syncing.

Re: Bug in Adventure Create Bridge since 5.6 Update?

Posted: Tue Jul 11, 2017 9:16 pm
by Tony Li
The Dialogue System Extras page has an updated Adventure Creator support package. It adds to the Adventure Creator Bridge a new Sync Settings section where you can specify what data to copy to the Dialogue System at the start of conversations and what data to copy back to AC at the end of conversations. If you're using AC actions to give items during conversations, you could untick the On Conversation End > Copy Dialogue System To AC Item Counts checkbox.

Re: Bug in Adventure Create Bridge since 5.6 Update?

Posted: Sat Jul 15, 2017 8:08 am
by kyuubi
Hi Tony,
Thank you again for the superb support.
I understand the issue now, makes sense. Tried the sync option and works like a charm so now I just need to be consistent and never assign inventory in DS (which I'm not doing anyway).
Thank you so much!

Re: Bug in Adventure Create Bridge since 5.6 Update?

Posted: Sat Jul 15, 2017 10:09 am
by Tony Li
Glad to help!