-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect error when not providing a name
property for waypoints.
#311
Comments
I believe Openttd supports waypoint names so it is probably a nml bug |
Waypoints can have names. Possibly your version of nmlc produces a NewGRF that is incompatble with 13.x? |
@PeterN Yes, you're right, OpenTTD error does not happen for the latest nightly. I guess this can be closed... But why? Seems like a basic thing, nmlc vs. OpenTTD version sensitivity seems weird to me... |
OpenTTD did OpenTTD/OpenTTD@bc7dfd7 in nightlies, which has been then added to nml in 0.7.4 (but there's a bug with a fix waiting for approval in #305) |
TBH I assumed nmlc would try to keep compatibility with older versions were possible, e.g. by only using the new method if the local id was >= 255. |
I've tested for sanity's sake, and it is indeed |
I can rewrite #305 |
I don't think waypoints, coded as a special class of station, can have a name.
If you code a station using the
"WAYP"
class forITEM_STATIONS
and provide aname
property, then OpenTTD reports a NewGRF error:Unknown action0 property
.If you do not provide a
name
property, thennmlc
reports the errornmlc ERROR: "ogfx2_stations.nml", line XXX: Property 'name' is not set. Item will be invalid.
, but makes a functional NewGRF that OpenTTD seems happy with.Presumably just needs a special case for reporting the error? Or is this an OpenTTD bug?
The text was updated successfully, but these errors were encountered: