Skip to content
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

Roadtypes and Tramtypes size is 63 not 15 or 64 #109

Closed
andythenorth opened this issue Apr 27, 2020 · 5 comments
Closed

Roadtypes and Tramtypes size is 63 not 15 or 64 #109

andythenorth opened this issue Apr 27, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@andythenorth
Copy link
Contributor

andythenorth commented Apr 27, 2020

Current

This is a blocking issue and should be an easy fix.

Desired

  • confirm that the OpenTTD pool is 63
  • update nml to 63
  • update docs to 63
  • release nml 0.5.1
@FLHerne
Copy link
Contributor

FLHerne commented Apr 27, 2020

@frosch123 - are you sure they're shared?
According to the docs in landscape.html:

Bits 5..0: Road roadtype, 0x3F for no road.
Bits 11..6: Tram roadtype, 0x3F for no tram.

That's enough bits for each to have 64 IDs (or 63 and 'none'?)

@PeterN must know...

@PeterN
Copy link
Member

PeterN commented Apr 27, 2020

They're shared.

@andythenorth
Copy link
Contributor Author

NFO and NML wiki pages updated to correct limit of 63.

@andythenorth
Copy link
Contributor Author

Fixed by #110 and wiki docs changes, thanks all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants