Before anything, I’ve gone through these posts.
and
I could not find the solution for this problem on either thread.
I was running a Quicktest, when this showed up.
HeistModule,goto VelvetCutsB,9574F,10106F,2505F
HeistModule,goto VelvetCutsB,9574F,10106F,2506F
HeistModule,goto VelvetCutsB,9574F,10106F,2508F
HeistModule,goto VelvetCutsB,9574F,10106F,10146F
QUICKTEST FAILED
TypeError: stack[0] is undefined
I then went and ran a Randomtest, and this showed up.
You're at the loot already, if nothing goes wrong, you should be out of there before cops arrive.
HeistModule *choice 10160#2 (line 10164) #"Roger that"
"Good luck. I'll tell you if anything changes.. Mouse out"
RANDOMTEST FAILED: TypeError: stack[0] is undefined
At first, I thought it was because I had a *return command going back from a *goto, but when I went through the codes, everything seemed perfectly fine.
You're at the loot already, if nothing goes wrong, you should be out of there before cops arrive.
*fake_choice
#"Thanks for the update"
*set RelMouse +2
"You're welcome!" ${Mhe} says cheerfully.
#"Roger that"
#Say nothing
"Good luck. I'll tell you if anything changes.. Mouse out"
*if HeistNum = 1
Sariel also decides to chime in.
*if S_token = 1
"Hey, hey. How's it going in there?" You hear him mumbling through the earpiece. You also hear a faint sound of chewing in the background.
"Everything alright?" He asks, he sounds as if he has something in his mouth.
*if S_token = 2
"Hello? Hey, is everything alright in there?" You hear her through the earpiece. You also hear a faint sound of music in the background.
*fake_choice
*if (S_token = 1) #".. Are you eating something?"
*set RelCharlie +3
"Yeah, I got hungry and there was a Mike Donald's cheeseburger in the glove box.."
*if U_Token = 1
"Hey! That's MY cheeseburger!!" Uriel shouts into her radio.
"Oh shit.. um.."
"You better not be halfway through, or I'll shove my crowbar down your throat!" She angrily scolds her brother.
"I.. um.. may have just finished it.."
"... You owe me a cheeseburger!"
"Okay! sorry.." His voice trails off
"Is there anyone there? You're supposed to be lookout" Uriel says.
"Nah, no one's here.. just me and the ${heistvehicle}.. There was a fly a few minutes ago but I got it out.."
"Alright just keep an eye out. Tell me if you see anything" You say to him.
"Roger that, governor!"
*if (S_token = 2) #".. Are you listening to the radio?"
*set RelCarly +3
"Yes, I mean, what else am I supposed to do? I'm just waiting on you three"
"Is there anyone there? You're supposed to be lookout"
"No, no. No one's here. Just me and the ${heistvehicle}. There [i]was[/i] a squirrel in the parking lot a few moments ago, but I think something scared it away.."
"Alright just keep an eye out. Tell me if you see anything" You say to her.
"Yes sir! My eyes are open"
#"We're good, how are you?"
*set RelCharlie +2
*set RelCarly +2
"Sleepy, but doing well. Thanks for asking. How's the robbery going?"
"We're at the loot, should be done in a few.."
"Oh, great to hear! I'll be in the ${heistvehicle} if you need me.."
#"We're at the loot, should be done in a few.."
"Oh, great to hear! I'll be in the ${heistvehicle} if you need me.."
*set RelCharlie +1
*set RelCarly +1
#"Shut up and just wait for us"
*set RelCharlie -4
*set RelCarly -4
*if S_token = 1
"Sorry, jeez. I was just starting a conversation.." He stops talking.
*if S_token = 2
"Oh.. uh. Sorry.." She stops talking.
*return
And so, I decided to look through the .js files, and I found this in the scene.js file:
Scene.prototype.create = function create(line) {
var result = /^(\w*)(.*)/.exec(line);
if (!result) throw new Error(this.lineMsg()+"Invalid create instruction, no variable specified: " + line);
var variable = result[1];
this.validateVariable(variable);
variable = variable.toLowerCase();
var expr = result[2];
var stack = this.tokenizeExpr(expr);
if (stack.length === 0) throw new Error(this.lineMsg()+"Invalid create instruction, no value specified: " + line);
var self = this;
function complexError() {
throw new Error(self.lineMsg()+"Invalid create instruction, value must be a a number, true/false, or a quoted string: " + line);
}
if (stack.length > 1) complexError();
var token = stack[0];
if (!/STRING|NUMBER|VAR/.test(token.name)) complexError();
if ("VAR" == token.name && !/^true|false$/i.test(token.value)) complexError();
if ("STRING" == token.name && /(\$|@)!?!?{/.test(token.value)) throw new Error(this.lineMsg() + "Invalid create instruction, value must be a simple string without ${} or @{}: " + line);
var value = this.evaluateExpr(stack);
this.stats[variable] = value;
if (this.nav) this.nav.startingStats[variable] = value;
};
I have to be honest, I have no clue how to work Javascript, so I don’t know if it’s related or not…
Either way, thank you in advance for even taking the time to read this…



