I’ve been running into this a few times: When I use a numeral variable to keep track of continuity quick- and random test do well when it is a
*create var 0
until i get into a subscene
Then QT stumbles over executing things. Only in subscenes, never in chapters.
So, should numeral vars be created with a starting value of 1 or should I just change the guilty party to one for testing?
I’ve generally found this is because Quicktest is overzealous.
If you have code like
*temp faction_selected 0
Choose the faction you want to join:
*fake_choice
#The Great Serpent
*set faction_selected 1
#Machinists
*set faction_selected 2
#Laser Mice
*set faction_selected 3
#Nobody
*if faction_selected != 0
Your fellow @{faction_selected snake scales|engineers|rodentia} welcome you @{faction_selected coldly|with a disinterested shrug|warmly}.
QT is going to complain that faction_selected is 0 in that multireplace, even though the code can never reach that line in actual play if that is the case. So I end up having to throw lines like
*if choice_quicktest
*set faction_selected 1
at the top of every optional block like this, even though logically it shouldn’t be necessary.
What worries me is that the qt and rt upon submission won’t pan out, about the same as I’m worried to miss a choice where I do set something +1 and end up with a wrong result
I know what is meant here, but … the game itself is working fine, it’s just really the submission QT that worries me.
e.g. the ‘mcsize’ variable gets set even before the game starts, so by the time of ch4 it’s definitely having a positive value.
will the submissions stuff work without having to set these to 1 in the startup?
edit:
cause right now it’s like this:
There’s a couple of variables that are steadily increased to keep track of the MCs progress with things (romances, sidequests etc) and i’m very worried something will get messed up along the line if I have those variables start out as 1.
Curiously QT has no problem with variables being increased with *set var +1
so… it’s all very confusing
If Quicktest passes when you run it on your code, it will pass when the team runs it. (Assuming you aren’t running some old version from years ago or something.)
This is what i worried.
Well, so far the error at least only occured at steady variables, so i can probably create them as 1 in the startup.
Still eehh
Mmm, that might be a bad idea. I believe the best solution is to just put this right before any line that gives you an error about mcsize, for instance: