Tags duplicated on Trigger Event

Announcements, support questions, and discussion for Quest Machine.
GorkaGames
Posts: 178
Joined: Fri Sep 21, 2018 8:38 pm

Tags duplicated on Trigger Event

Post by GorkaGames »

There is a bug on a the Trigger Event script.
When you choose a tag for a filter, another tag (around 20 tags up or down) get selected. If you try to unchek the new tag, your desired tag get unselected also so you can't have the tags you want. I have around 40 tags on 2018.1
Any update on the way or am I the only one? Thanks
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Tags duplicated on Trigger Event

Post by Tony Li »

Hi,

I haven't been able to reproduce this. This is the test set I'm using:

Image

Can you email your ProjectSettings / TagManager.asset file to tony (at) pixelcrushers.com?
GorkaGames
Posts: 178
Joined: Fri Sep 21, 2018 8:38 pm

Re: Tags duplicated on Trigger Event

Post by GorkaGames »

Hi Tony,

I have sent you the tags by email, maybe that is also causing the giver issue, as it`s searching for more tags...
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Tags duplicated on Trigger Event

Post by Tony Li »

Thanks for sending the tags. I didn't create enough tags in my test. Unity's EditorGUI.MaskField() method casts to a 32-bit int, so it can't handle more than 32 tags. I'll have to rewrite that property drawer as a custom context menu instead. I'll have a fix by the end of the day.
GorkaGames
Posts: 178
Joined: Fri Sep 21, 2018 8:38 pm

Re: Tags duplicated on Trigger Event

Post by GorkaGames »

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

Re: Tags duplicated on Trigger Event

Post by Tony Li »

Hi,

This is the fix for the Trigger Event component that supports more than 32 tags:

TagMaskDrawer_20180927.unitypackage
GorkaGames
Posts: 178
Joined: Fri Sep 21, 2018 8:38 pm

Re: Tags duplicated on Trigger Event

Post by GorkaGames »

Thanks!! now works fine!!
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Tags duplicated on Trigger Event

Post by Tony Li »

Glad to help! Thanks for letting me know about that issue.
GorkaGames
Posts: 178
Joined: Fri Sep 21, 2018 8:38 pm

Re: Tags duplicated on Trigger Event

Post by GorkaGames »

Hi Tony,

Tags now work fine, now I have the following issues:

1. Cancel with rewire doesn't work with the GamePad (it works fine with the keyboard). "A" button works fine selecting but "B" button doesn¡t work for canceling (this issue it was also before)

2. This is new: now I can activate the quests always but when i try to leave and cancel the dialogue box shows again and again until I leave the trigger area :( I close it and it shows up again.....

I don't have any error or warnings to track this....
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Tags duplicated on Trigger Event

Post by Tony Li »

Hi,
GorkaGames wrote: Thu Sep 27, 2018 4:44 pm1. Cancel with rewire doesn't work with the GamePad (it works fine with the keyboard). "A" button works fine selecting but "B" button doesn¡t work for canceling (this issue it was also before)
Inspect this GameObject: Quest Machine > Quest Machine Canvas > Quest Dialogue UI > Cancel Button. It has a UI Button Key Trigger component. In the Button Name field, specify the Rewired input that is mapped to the "B" button.
GorkaGames wrote: Thu Sep 27, 2018 4:44 pm2. This is new: now I can activate the quests always but when i try to leave and cancel the dialogue box shows again and again until I leave the trigger area :( I close it and it shows up again.....
Can you post a screenshot or description of how you're calling QuestGiver.StartDialogue()? Is it a Trigger Event component? If so, this component should only run its OnTriggerEnter() UnityEvent when it receives an OnTriggerEnter message from a GameObject that matches the specifies tag(s).
Post Reply