Console online content NewGRF ID isn't the same on Bananas website

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
betaquarks.well
Engineer
Engineer
Posts: 6
Joined: 02 Jan 2020 20:55
Location: Recife, PE. BR

Console online content NewGRF ID isn't the same on Bananas website

Post by betaquarks.well »

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
NewGRF id online content bug.png
NewGRF id online content bug.png (89.83 KiB) Viewed 563 times
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 988
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: Console online content NewGRF ID isn't the same on Bananas website

Post by frosch »

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.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
betaquarks.well
Engineer
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

Post by betaquarks.well »

frosch wrote: 11 Jan 2023 17:15 * 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.
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.
Oh ok. As I already imagined, it's a bug. And Thank you for the clarifications.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 9 guests