Proplem with variable :-)

Hi together,

i tested the GameShow template from eLearning brothers. And at the end (scoreboard) there is something wrong.

undefined

I dont find the mistake, can anyone help please and say whats the reason for this :-)

thanks and greetings

Discussion (10)

I would rebuild the sample. There are some in the 100 row that do not have an answer. This may be messing up the ratio for successful completion.

hey Darrel,

thx for your answer, i build the quiz new; this means with new questions and the students can choose between 1 -3 anwers. And the endscore should be more than 80 percent, but at the end both textboxes appear again....the same mistake...

tomorrow i will upload my new file

greetings marcel

Hi, here is my file, i hope you can help me :-)

It may also result from the impressive number of objects that make the page a little slow. Although I know ELB uses this regularly: Whenever I've asked someone from Trivantis whether or not it's advisable to use groups in groups the answer was: "You shouldn't".

Does the quiz work for you? After import to Lectora 17 I'm not able to go through the quiz because several times (I don't see a pattern) the submit button doesn't hide the entire question group and I can't continue. So I can't reproduce the issue ...

With regards to your issue: I can't find an actual mistake but it may result from the sequence of the actions in your "Done" group. You calculate the percent score when the image "TextBox_Intro" is shown. You use the result to run those action groups when the textfield "Percent" is shown. As it usually takes shorter to show a textfield than an image and it takes a (short) while to execute the calculations it may just be that the action groups are run too early.

The variable "29864_percent" isn't used before the image is shown, so when the "Run action group" action fires its value may be "~~~empty~~~" which (of course) is neither less than nor greater than 80, so both actions to hide either "done_PassText" or "done_FailedText" aren't run due to their conditions ... which is technically correct.

To get to the point:

Move the action to run the groups from the textfield to the image. Make it the last action, to be sure the value of the variable is calculated before the action groups that require this value are run.

... but I couldn't test whether or not this solves it.

I support Darrels advice: Rebuild from scratch.

Now that I've checked the sample in detail I don't understand why they've rebuilt the whole question logic instead of using question objects. It makes the template nearly impossible to maintain and troubleshoot. And (as far as I've found) all of this just to achieve an "Over" state for the options?

hi Tim,

thx for your help, i will try it today :-) i hope i am able to fix it.

i have exported the file in lectora online (newest version).

Have a nice day,

greetings Marcel

oh no :-( i have no time. This should only be a goody. Is there really no possibility?

greetings Marcel

There are lots of bugs in the gameshow although I can't find errors, Darrel also mentioned issues that I can't reproduce. You wrote about bugs that appeared in the original template. So I'd say drop it and rebuild with the aim to make it easier and (more important) to fully understand what happens, which is the basis for troubleshooting in case something's not working as intended.

I've attached my attempt to rebuild it and hope it's easier to understand, update and finalize.

Hi Tim, you are great, THX a lot! :-)

Weekend is near and i have time to give it a look.

I will give you an answer.

Thx :-)

Greetings Marcel

Discussions have been disabled for this post