How to select a unique grfid?

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
ebla71
Route Supervisor
Route Supervisor
Posts: 442
Joined: 14 Apr 2021 21:48
Location: Earth

How to select a unique grfid?

Post by ebla71 »

Couldn't find any answer to the following question:

How do you select a unique grifid that has not been assigned to any other NewGRF so far?!?

And if there is no suggested procedure - is there at least a list of already used grfid's somewhere?
skc
Traffic Manager
Traffic Manager
Posts: 205
Joined: 17 Sep 2022 02:02

Re: How to select a unique grfid?

Post by skc »

First place I would look is on BaNaNas.
ebla71
Route Supervisor
Route Supervisor
Posts: 442
Joined: 14 Apr 2021 21:48
Location: Earth

Re: How to select a unique grfid?

Post by ebla71 »

skc wrote: 18 Nov 2024 01:36 First place I would look is on BaNaNas.
Thank you very much - yes, in the NewGRF list the first column indeed gives the ID.

Still, some more rational approach to ID assignment would be nice ...
User avatar
Quast65
Tycoon
Tycoon
Posts: 2768
Joined: 09 Oct 2011 13:51
Location: The Netherlands

Re: How to select a unique grfid?

Post by Quast65 »

Its Hexadecimal conversion:
https://www.eso.org/~ndelmott/ascii.html
A lot of people tend to use the first 2 numbers to personalize their ID's.
For example a lot of GarryG's IDs start with 4747, which is GG
Projects: http://www.tt-forums.net/viewtopic.php?f=26&t=57266
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604

Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016, oct 2020
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.
ebla71
Route Supervisor
Route Supervisor
Posts: 442
Joined: 14 Apr 2021 21:48
Location: Earth

Re: How to select a unique grfid?

Post by ebla71 »

Quast65 wrote: 18 Nov 2024 15:49 Its Hexadecimal conversion:
A lot of people tend to use the first 2 numbers to personalize their ID's.
For example a lot of GarryG's IDs start with 4747, which is GG
Yes, I already understood that.

Maybe I'm just thinking too much about it and the "namespace" is large enough to make collisions highly unlikely.

Will try to avoid the initials of the most prolific NewGRF and graphics authors, though :lol:
User avatar
Quast65
Tycoon
Tycoon
Posts: 2768
Joined: 09 Oct 2011 13:51
Location: The Netherlands

Re: How to select a unique grfid?

Post by Quast65 »

Yeah, its just too bad you cant sort the GRF list out on BaNaNas running from low ID to high. That would make it easier to choose a range.
Projects: http://www.tt-forums.net/viewtopic.php?f=26&t=57266
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604

Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016, oct 2020
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.
Brickblock1
Engineer
Engineer
Posts: 120
Joined: 04 Apr 2022 12:44
Location: The openttd discord server
Contact:

Re: How to select a unique grfid?

Post by Brickblock1 »

Quast65 wrote: 18 Nov 2024 15:59 Yeah, its just too bad you cant sort the GRF list out on BaNaNas running from low ID to high. That would make it easier to choose a range.
You actually can just not on the site.
this page works however
User avatar
Quast65
Tycoon
Tycoon
Posts: 2768
Joined: 09 Oct 2011 13:51
Location: The Netherlands

Re: How to select a unique grfid?

Post by Quast65 »

Brickblock1 wrote: 19 Nov 2024 19:22 You actually can just not on the site.
Cheers, I think that is very handy for new developers to find a suitable range!
Projects: http://www.tt-forums.net/viewtopic.php?f=26&t=57266
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604

Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016, oct 2020
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 1 guest