Wrong line number


Is anyone familiar with browser error messages reporting a problem, but giving the wrong line number?

I can only guess this started happening as my code has gotten more complicated. It’s obviously frustrating due to the extra time needed to find the problem in a different line

Quick example of a one line deviation:

The message:


The code:



Sometimes the ChoiceScript interpreter will throw an error for one line due to a more silent issue on a preceding line, further up in your code.

This is usually a logical error, for example, if you’ve forgotten to include a *goto_scene at a certain point, the code will “fall through”, which is valid, but not intentional. This would then throw an error if later down the line it encountered a variable that wasn’t defined (as it wouldn’t usually need to be, had the code taken the other route).

EDIT: Just seen your screenshots, in that circumstance, try opening it in another code editor? How far out is the line?


Give me a second - takes a moment to open (oh, and I believe in some circumstances its been more than 1 line. I’ll see if I can make it give me an example)




Here we go. Variance of more than one line:


Code: (see the unecessary = 7 lines below)



That’s very odd. Are you using the latest build of ChoiceScript from https://www.github.com/dfabulich/choicescript?


I’ve just redownloaded and tested and continue to have the issue.

Believe its an issue with the coding in my scene files.

Don’t worry! I can work with it. I was curious whether it was common or if anyone had seen it before : )


Can’t say I have personally. Maybe one line off, but that can be down to something as simple as whether an application starts at line 1 or line 0 etc. Sorry I can’t be of much help there!


Appreciate your attempt! Thank you