Going to stats screen or settings and back advances past choice?


#1

Let’s say I have a simple choice:

startup.txt

*comment just a quick test project

*title Choice Script Test
*author Anonymous

*scene_list
  startup
  test

*goto_scene test

choicescript_stats.txt

This is a stats screen!

test.txt

Hello World

*choice
	#do nothing
		you did nothing
		*goto done
	#do something
		you did something
		*goto done

*label done

Now if I press “Show Stats” or “Settings” and then “Return To Game” before I make a choice, it should return to the choice and let me pick an option.

And it does … the first time you play.

Let’s say I did that once and now press “Play Again”.
I’m now at the choice screen again.

But if I press “Show Stats” or “Settings” and then “Return To Game” this time, it will advance past the choice, as if I had picked the same option I did the last time I played.
I.e. if I selected “#do nothing” in the first round, I will now be reading “you did nothing” and the game ends.
If I selected “#do something”, I will read “you did something” and the game ends.

This looks like a bug to me. Anybody able to reproduce this?


#2

Ar you testing this on firefox/safari or dashingdon?


#3

Firefox

(also seems to happen on IExplorer, but who on earth uses that?)

Chrome won’t let me test it.


#4

You can’t test on chrome due to some java stuff IIRC.

Try clearing the cache for each test (yeah, it’s annoying) and see if it stays?


#5

Clearing the cache seems to have no effect.

On a side note, this error does not seem to occur when I manually restart the scene, i.e.

Hello World

*choice
	#do nothing
		you did nothing
		*goto done
	#do something
		you did something
		*goto done

*label done

*page_break Restart

*goto_scene test

So it seems to be somehow tied to the game’s ending.


#6

I’ll let @dfabulich know about this.
Hopefully, if it’s indeed a bug, it’ll be documented and fixed on future versions.


#7

Yup, it was a bug. (Visiting the stats screen after restarting the game was undoing the restart.) It’s fixed now in the latest ChoiceScript on github.


#8

And here I am, thinking that you’re busy with the omnibus v2.0 :face_with_monocle: