As you'll see in this picture ...
My compiler suddenly decided to reject my template.pnml code and spit out "unexpected token template on line 73"...
This is code I was compiling just fine the other day and today I decided to change some offsets for 6/8 size trains (template_L6A) but now the token line for template_L8A is being rejected when it was just fine the other day...
This isn't the first time this has happened to me and I dunno how to fix it other then redoing the project from the ground up >_>
Any ideas guys? Pretty hard to work on NARS ADD-ON SET when nothing will compile.
EDIT : Just in case someone says that perhaps its due to me working out of my dropbox folder with ~ tilde's in the name. I did try moving the project to the root of my C:\ and D:\ drives and the compiler still complains about that "template" token
Random and sudden "Unexpected token template" issue
Moderator: Graphics Moderators
- NekoMaster
- Tycoon
- Posts: 4001
- Joined: 16 Aug 2008 22:26
- Skype: neko-master
- Location: Oshawa, Ontario, CANADA
Random and sudden "Unexpected token template" issue
- Attachments
-
- nml-problem.png
- (130.47 KiB) Not downloaded yet
Proud Canadian
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Re: Random and sudden "Unexpected token template" issue
Check the generated .nml file, find the correct place by searching for something unique near the line with the error, like that comment at line 70.
Given that it barks about the first thing on the template line, likely the construct before isn't properly ended or so.
Given that it barks about the first thing on the template line, likely the construct before isn't properly ended or so.
Being a retired OpenTTD developer does not mean I know what I am doing.
Re: Random and sudden "Unexpected token template" issue
If the unexpected token is the first word of the line, then it's worth looking at the last non-comment line before the line highlighted by the error.
- NekoMaster
- Tycoon
- Posts: 4001
- Joined: 16 Aug 2008 22:26
- Skype: neko-master
- Location: Oshawa, Ontario, CANADA
Re: Random and sudden "Unexpected token template" issue
I'd like to say this has been solved earlier, and I've already released an update to NARS ADD-ON SET
Proud Canadian
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Who is online
Users browsing this forum: No registered users and 22 guests