[FAQ]Why does grfcodec-e generate 8bpp NewGRF file?

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

Moderator: Graphics Moderators

Post Reply
User avatar
NewGRF
Engineer
Engineer
Posts: 11
Joined: 04 Apr 2017 02:36

[FAQ]Why does grfcodec-e generate 8bpp NewGRF file?

Post by NewGRF »

Changes in 6.0.1 (2012-09-21)
- NFORenum specific changes:
- Data file updates
- Action 0 station property 1A.
- Action 2 global variables 06, 0B..0F, 13..16, 1E, 21, 22.
- Action 2 train variables 4C, 61, 62.
- Action 2 road vehicle variables 4B, 4C, 61, 62.
- Action 2 ship variables 4B, 4C.
- Action 2 aircraft variables 4B, 4C.
- Action 5 type 15.
- Callback 15F.
- Add RPN calculations; the RPN expression is replaced by the calculated value.
- GRFcodec specific changes:
- Fix reading/writing the size value for pseudo sprites so pseudo sprites actually work with container v2.
- Reject pseudo sprites that are too large for container v1 when not compiling v2.
- Do not write incomplete sprites when the maximum height of output images is limited.
- Fix reading incorrect graphics when multiple graphics are provided for a sprite and writing a GRF container version 1 GRF and the y position decreases.
- Fix decoding of regular encoded 32bpp sprites.
grfcodec:6.0.6

Code: Select all

grfcodec -d my32bpp.grf
grfcodec -e my32bpp.grf

Why does grfcodec-e generate 8bpp NewGRF file?
:bow:
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4763
Joined: 09 Sep 2007 05:03
Location: home

Re: [FAQ]Why does grfcodec-e generate 8bpp NewGRF file?

Post by Alberth »

All NewGRFs with graphics have 8bpp graphics, and some also have a 32bpp graphics. That is, 32bpp is optional, 8bpp is not.
Being a retired OpenTTD developer does not mean I know what I am doing.
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 988
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: [FAQ]Why does grfcodec-e generate 8bpp NewGRF file?

Post by frosch »

Try

Code: Select all

grfcodec -e -g 2 my32bpp.grf
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
NewGRF
Engineer
Engineer
Posts: 11
Joined: 04 Apr 2017 02:36

Re: [FAQ]Why does grfcodec-e generate 8bpp NewGRF file?

Post by NewGRF »

Thanks to Alberth.
Thanks to frosch.
frosch wrote:Try

Code: Select all

grfcodec -e -g 2 my32bpp.grf
It works!
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 5 guests