I have a game script with an error in it. The erroneous line is apparently this one:
GSGameSettings::SetValue("difficulty.initial_interest",interest_init);
The error is:
Error scratch minimal/main.nut:101/19: end of statement expected (; or lf)
Well, OK '101' I assume is line '101', quoted above. What does the /19 mean?
I'd have guessed the 19th character but that's 1/3 of the way though the line
at a point of no particular significance. (Edit, should probably have said 'obvious')
While I'm more interested in decoding the error report, what is actually wrong
with that line anyway? It's got a semicolon, and Squirrel's not especially space-
sensitive, is it?
Meaning of error reference
Moderator: OpenTTD Developers
- Simons Mith
- Transport Coordinator
- Posts: 326
- Joined: 14 Jan 2010 23:45
Meaning of error reference
Last edited by Simons Mith on 30 Aug 2015 17:56, edited 1 time in total.
Re: Meaning of error reference
Where did you get the double colon? Afaik, Squirrel uses a single dot.
Did you count the whitespace characters in front of the text too in that "19" ? (where a TAB may be counted as one character, not sure).
Did you count the whitespace characters in front of the text too in that "19" ? (where a TAB may be counted as one character, not sure).
Being a retired OpenTTD developer does not mean I know what I am doing.
- Simons Mith
- Transport Coordinator
- Posts: 326
- Joined: 14 Jan 2010 23:45
Re: Meaning of error reference
Ah, so it /is/ 'characters through line' then. Thx for confirmation. Counting tabs as one character it seems to be flagging the 'S' of SetValue, so just after the double colon.
Who is online
Users browsing this forum: No registered users and 16 guests