0
Ülevaatamisel

counter target not updating as expected

SeanB 7 aastat tagasi uuendaja Alin Alexandru Matei 6 aastat tagasi 9
I have a global counter working across all pages. There is a minor bug that repro's with 100% consistency.

Steps:

  1. create global counter on page 1 and give it a value
  2. go to page 2
  3. add an Action > Interaction = none, Behavior = CounterDisplay
  4. now on Target row click the "(Self)" and select your counter from the dropdown
Expected: "(Self)" changes to your counter name. Actual: nothing, it doesn't change. See screenshot below.

5. Now under Behavior Settings, Counter click "(Self)" and select your counter name.
Expected: it changes to your counter name. Actual: it changes, and finally so does the "Target" "(Self)" above.

Expected: Target should change on it's own, to reflect it's selection, not depend on Counter.

Related scenario: If I skip setting Target and just set Counter, then Target won't change (until I reopen the book).

In this screenshot I've already clicked the Target "(Self)" and chosen my counter "TalkCounter", yet it didn't change. Only after I make a selection in the (duplicate data?) Counter popup will Target change.



Vasta

Vasta
Alustatud
We were able to recreate this error and we are currently working on a fix for it. Sorry for the inconvenient and thank you for your feedback.
Vasta
Alustatud
We were able to recreate this error and we are currently working on a fix for it. Sorry for the inconvenient and thank you for your feedback.
Bug persists in IB4
1 create global counter on page 1 > set value to 0 and display: works
2 add page 2 with intersection to two elements > increment counter by 1 and display: nothing happens
3 add page 3 with shape / tap > increment value by 1 and display: page 1 now fails along with page 2
4 delete page 3. Page 1 works again. page 2 still dead
I was able to reproduce a part of the problems:
On Page 1 it seems the counter behaviors on counter itself are not working in InteractMode.
Page 2 is working great.
Page 3, the shape element increments the counter, but the problem is that the counter value should continue from the value that the counter had on Page 2, which it doesn't , it starts from 0.
I've forwarded these problems to our lead developer . Thank you for your feedback.
Sean let us know if you are still having this problems in the latest InteractBuilder version. Thank you for your feedback.
Hi yes still occurs; just got latest build on PC. I restart IB when this happens, usually fixes it. It may result from other errors on page in IB4, like unsupported narration actions, files with dot in name. I fixed both of these on page 3 and this bug stopped. I'm going to change rest of pages today.

also I will remove global counter use for this version of book.
Sorry, to clarify, the "self" issue can resolve with restart or above changes, but the global counter never works, even in a new test book. Btw the counter issue blocks my next Game project after this one. :(
For the global counter you can use this:
On Page 1 instead of adding the behaviors on the counter itself, try to add a transparent graphic element and add the behaviors on it.
As for page 3 the increment behavior set on a shape element is working on the latest InteractBuilder version.
Here is a sample app for the situation you are trying to create:
Counter global sample.zip
Let me know if you are having questions regarding this. Thank you for your feedback.