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

Problem with GRM (GRF Resource Management) ... #1827

Closed
DorpsGek opened this issue Mar 4, 2008 · 1 comment
Closed

Problem with GRM (GRF Resource Management) ... #1827

DorpsGek opened this issue Mar 4, 2008 · 1 comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Mar 4, 2008

OzTransLtd opened the ticket and wrote:

There seems to be a problem with how OpenTTD handles GRM (GRF Resource Management); or is there something I don't know ?

Currently I use the following to reserve IDs for cargo types :

80 * 9 0D 03 00 FF 00 11 00 00 00
81 * 9 0D 03 00 03 FE FF 0B 01 00
82 * 9 0D 03 00 FF 00 2C 00 00 00
83 * 9 0D 03 00 03 FE FF 0B 01 00

the following messages are issued :

dbg: [grf] [Cansetw.grf:81] ParamSet: GRM: Reserving 1 cargos at 17
dbg: [grf] [Cansetw.grf:83] ParamSet: GRM: Reserving 1 cargos at 44

as a result of this, the set is green-flagged, but is not activated and none of the vehicles is available, neither are the rail construction menu items. Further there are more cargo reservations, which seem not be dealt with. The set seems to hang. Skipping the internal industry/cargo section activates the set and makes vehicles available.

from the wiki ...

For newcargos, IDs 00..1F refer to the cargo IDs themselves (e.g. ID 0B is available in the temperate climate, and 0C..1F in all climates), whereas IDs 20..3F refer to the bit number from prop. 08 plus 20 (e.g. ID 2D, being bit number 0D=fruit, is available in all climates except tropical). You need to check and mark both ID types for correct operation.

So my 0x11 reserves the cargo type for 'paper' and 0x2C reserves the same, but for the slot (+ 0x20) in the cargo translation table.

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/1827
@DorpsGek
Copy link
Member Author

DorpsGek commented Mar 5, 2008

peter1138 closed the ticket.

Reason for closing: Fixed

In r12341


This comment was imported from FlySpray: https://bugs.openttd.org/task/1827

@DorpsGek DorpsGek closed this as completed Mar 5, 2008
@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) NewCargos labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant