"action 1 and 2 are not valid before action 8"
When I compile this NML file: (If you want comments please ask. My compiling system is slightly odd)
It works fine in openTTD but when I uploaded it to BaNaNas it crashed the openttd.org server. (It doesn't happen now)
They told me the problem that occurred in my newGRF was "action 1 and 2 are not valid before action 8". I have no idea what that means.
#1 Updated by skyem123 over 5 years ago
- File rail.zip added
This should compile:
#3 Updated by planetmaker over 5 years ago
- Status changed from New to Confirmed
That is actually a limitation in the grf specs and a missing piece of documentation with NML: the grf block must (currently) be defined first thing within a grf, everything else should follow.
The better solution to documenting this behaviour is to have NML automatically detect the grf block and output the resulting code at the start of the grf file.
#4 Updated by frosch over 4 years ago
- Status changed from Confirmed to Rejected
This is similar to object/industry/house/rail substitute. They define the entities and have to appear before other things dealing with the entities.
Because of "if" and GRF parameter checks it's not possible for NML to automatically move the GRF block.
The documentation meanwhile reflects that GRF must be at the beginning.