Hello!
NewGRF/AI's ID shown on bananas website and detailed NewGRF information GUI are not the same as the list shown by online content command via console (content select).
This occurs with several NewGRF/AI ID.
Is this a bug from OpenTTD or NewGRF developer?
OpenTTD version 12.2
Dedicated server
Console online content NewGRF ID isn't the same on Bananas website
Moderator: OpenTTD Developers
-
- Engineer
- Posts: 6
- Joined: 02 Jan 2020 20:55
- Location: Recife, PE. BR
Re: Console online content NewGRF ID isn't the same on Bananas website
There are different IDs.
* An ID to identify some specific content, any version of it.
* An ID to identify a specific version of some content.
All versions of an AI are identified via the 4-byte identifier defined by AIInfo.GetShortName().
* For SmallTownAI that is "STAI".
* The hexadecimal representation of "STAI" is 53 54 41 49, which you see on BaNaNaS.
* It is a common bug in OpenTTD to print these IDs in reverse: 49 41 54 53. Many places were fixed, this one apparently not.
The other ID you see (11723158) is a version-specific ID. It identifies the version of the AI, which you can/will download. If you upload a new version of the AI, it will get a new version-specific ID.
The value itself is assigned by BaNaNaS and has no specific meaning. For example: the current version of BaNaNaS (since 2020/2021) computes/assigns it differently than the original version of BaNaNaS (2009). It may change again in the future. This ID is only used in the communication/download between BaNaNaS and OpenTTD; it is not stored in any config files or savegames or used anywhere else.
* An ID to identify some specific content, any version of it.
* An ID to identify a specific version of some content.
All versions of an AI are identified via the 4-byte identifier defined by AIInfo.GetShortName().
* For SmallTownAI that is "STAI".
* The hexadecimal representation of "STAI" is 53 54 41 49, which you see on BaNaNaS.
* It is a common bug in OpenTTD to print these IDs in reverse: 49 41 54 53. Many places were fixed, this one apparently not.
The other ID you see (11723158) is a version-specific ID. It identifies the version of the AI, which you can/will download. If you upload a new version of the AI, it will get a new version-specific ID.
The value itself is assigned by BaNaNaS and has no specific meaning. For example: the current version of BaNaNaS (since 2020/2021) computes/assigns it differently than the original version of BaNaNaS (2009). It may change again in the future. This ID is only used in the communication/download between BaNaNaS and OpenTTD; it is not stored in any config files or savegames or used anywhere else.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
-
- Engineer
- Posts: 6
- Joined: 02 Jan 2020 20:55
- Location: Recife, PE. BR
Re: Console online content NewGRF ID isn't the same on Bananas website
Oh ok. As I already imagined, it's a bug. And Thank you for the clarifications.frosch wrote: ↑11 Jan 2023 17:15 The other ID you see (11723158) is a version-specific ID. It identifies the version of the AI, which you can/will download. If you upload a new version of the AI, it will get a new version-specific ID.
The value itself is assigned by BaNaNaS and has no specific meaning. For example: the current version of BaNaNaS (since 2020/2021) computes/assigns it differently than the original version of BaNaNaS (2009). It may change again in the future. This ID is only used in the communication/download between BaNaNaS and OpenTTD; it is not stored in any config files or savegames or used anywhere else.
Who is online
Users browsing this forum: No registered users and 15 guests