-
Notifications
You must be signed in to change notification settings - Fork 36
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
Support extended object/station/roadstop limits (draft) #287
Conversation
Seems you are using an outdated |
I'm using no such thing at all :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't force push to the branch, let's use the other way
nml/actions/action0.py
Outdated
@@ -194,7 +194,7 @@ def find_unused(self, length): | |||
BlockAllocation(88, 0xFFFF, "Road Vehicle"), | |||
BlockAllocation(11, 0xFFFF, "Ship"), | |||
BlockAllocation(41, 0xFFFF, "Aircraft"), | |||
BlockAllocation(0, 255, "Station"), | |||
BlockAllocation(0, 0xFFFE, "Station"), # UINT16_MAX - 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BlockAllocation(0, 0xFFFE, "Station"), # UINT16_MAX - 1 | |
BlockAllocation(0, 0xFFFE, "Station"), # UINT16_MAX - 1 |
nml/actions/action0.py
Outdated
@@ -205,12 +205,12 @@ def find_unused(self, length): | |||
BlockAllocation(0, -1, "Sound"), | |||
BlockAllocation(0, 127, "Airport"), | |||
BlockAllocation(0, -1, "Signal", False), | |||
BlockAllocation(0, 255, "Object"), | |||
BlockAllocation(0, 0xF9FF, "Object"), # 64000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BlockAllocation(0, 0xF9FF, "Object"), # 64000 | |
BlockAllocation(0, 64000, "Object"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact just s/0xF9FF/64000/ and remove the comment would do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the suggestion
nml/actions/action0.py
Outdated
BlockAllocation(0, 63, "Railtype"), | ||
BlockAllocation(0, 255, "Airport Tile"), | ||
BlockAllocation(0, 62, "Roadtype"), | ||
BlockAllocation(0, 62, "Tramtype"), | ||
BlockAllocation(0, 255, "RoadStop"), | ||
BlockAllocation(0, 0xFFFE, "RoadStop"), # UINT16_MAX - 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BlockAllocation(0, 0xFFFE, "RoadStop"), # UINT16_MAX - 1 | |
BlockAllocation(0, 0xFFFE, "RoadStop"), # UINT16_MAX - 1 |
23571f7
to
f6904c1
Compare
Added to nml spec https://newgrf-specs.tt-wiki.net/wiki/NML:Objects |
Draft, support for OpenTTD/OpenTTD#10672