Where are the newgrf palette files?

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
lukasz1985
Route Supervisor
Route Supervisor
Posts: 429
Joined: 27 Mar 2013 08:58
Location: Strumien
Contact:

Where are the newgrf palette files?

Post by lukasz1985 »

Hi. Since I want to try myself at making some sprites for OpenTTD, I'm looking for the palette files.
The problem I'm having is that files linked at this address: https://newgrf-specs.tt-wiki.net/wiki/NML:Graphic_files give me 502 bad gateway error.
lukasz1985
Route Supervisor
Route Supervisor
Posts: 429
Joined: 27 Mar 2013 08:58
Location: Strumien
Contact:

Re: Where are the newgrf palette files?

Post by lukasz1985 »

User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Where are the newgrf palette files?

Post by PikkaBird »

For future reference, both the DOS palette and comparative palette images on https://newgrf-specs.tt-wiki.net/wiki/P ... oordinates are 256 colour pngs with the DOS palette applied.
User avatar
kamnet
Moderator
Moderator
Posts: 8504
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Where are the newgrf palette files?

Post by kamnet »

lukasz1985 wrote: 12 Oct 2023 09:01 Ok I found the dos palette here: https://web.archive.org/web/20121115112 ... rf-dos.gpl
Now I coulda sworn that I updated this wiki some years ago with the alternate links to Internet Archive, but I think I updated a different one instead. Oh well, that reminds me that I should just update this one too. :)
lukasz1985
Route Supervisor
Route Supervisor
Posts: 429
Joined: 27 Mar 2013 08:58
Location: Strumien
Contact:

Re: Where are the newgrf palette files?

Post by lukasz1985 »

kamnet wrote: 13 Oct 2023 08:13
lukasz1985 wrote: 12 Oct 2023 09:01 Ok I found the dos palette here: https://web.archive.org/web/20121115112 ... rf-dos.gpl
Now I coulda sworn that I updated this wiki some years ago with the alternate links to Internet Archive, but I think I updated a different one instead. Oh well, that reminds me that I should just update this one too. :)
Is there no way to just upload the palette files to the wiki?
Eddi
Tycoon
Tycoon
Posts: 8246
Joined: 17 Jan 2007 00:14

Re: Where are the newgrf palette files?

Post by Eddi »

a wiki and a file hoster are probably two separate bits of software/infrastructure.
User avatar
le_harv
Engineer
Engineer
Posts: 77
Joined: 27 Sep 2014 05:16
Location: Calgary, Canada

Re: Where are the newgrf palette files?

Post by le_harv »

I am a little new to the coding of this game but is there a list of colours and corresponding numbers in lieu of the palletes being available? (That web archive GPL file wasn't recognised by GIMP for some reason.)

For example, an industry has map_colour "174"... where can I look this up to see what colour that is?
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1724
Joined: 30 Mar 2005 09:43

Re: Where are the newgrf palette files?

Post by peter1138 »

He's like, some kind of OpenTTD developer.
User avatar
le_harv
Engineer
Engineer
Posts: 77
Joined: 27 Sep 2014 05:16
Location: Calgary, Canada

Re: Where are the newgrf palette files?

Post by le_harv »

peter1138 wrote: 07 Feb 2024 18:25 You might find https://github.com/OpenTTD/OpenTTD/tree ... s/palettes of use.
Marvelous, exactly what I need. Thanks so much.
_dp_
Transport Coordinator
Transport Coordinator
Posts: 273
Joined: 18 Dec 2013 12:32

Re: Where are the newgrf palette files?

Post by _dp_ »

If it's just for coding and not drawing this is probably more convenient https://newgrf-specs.tt-wiki.net/wiki/P ... oordinates
User avatar
le_harv
Engineer
Engineer
Posts: 77
Joined: 27 Sep 2014 05:16
Location: Calgary, Canada

Re: Where are the newgrf palette files?

Post by le_harv »

Thanks for that link. I find the github link super easy to reference for coding because I can easily see what colour '127' is for example. Whereas I wouldn't know how to look up '127' on the wiki link. Unless I am missing something?
_dp_
Transport Coordinator
Transport Coordinator
Posts: 273
Joined: 18 Dec 2013 12:32

Re: Where are the newgrf palette files?

Post by _dp_ »

You need to look up in hex :) 127 is 7F so last in 8th row
_dp_
Transport Coordinator
Transport Coordinator
Posts: 273
Joined: 18 Dec 2013 12:32

Re: Where are the newgrf palette files?

Post by _dp_ »

Oh, there is a similar image in that github, nvm then. I didn't notice it at first and thought it's only editor palette files.

Wiki page does a better job at explaining what colors are safe to use though.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 4 guests