Page 1 of 1

Ask for help:why do the NML keeps informing me that I had used pure white?

Posted: 15 Mar 2020 11:40
by ZeeChung子充
新建位图图像.png
新建位图图像.png (16.6 KiB) Viewed 333 times
Hello everyone! I've been learning NML recently, and something is borthering me: why do it consits that I had used pure white? I've used "almost white"(244,244,244) everywhere. I read the photo with winhex and searched for "FFFFFF" , but only found one, and I replaced it with"FEFEFE". Then the .png became availiable for photoshop, but can't be recongnized by the NML. I also tried to search for that pixel according to the coordinate, but found none. What has happened on the earth? Waiting for the solution. :(

Re: Ask for help:why do the NML keeps informing me that I had used pure white?

Posted: 15 Mar 2020 13:53
by PikkaBird
I've used "almost white"(244,244,244) everywhere.
Apparently not. It doesn't really matter - the only reason not to use the pure white colour is that it does not (or did not with the 8bpp blitter) fade out correctly when displaying the end-of-game screen.
I read the photo with winhex and searched for "FFFFFF" , but only found one, and I replaced it with"FEFEFE". Then the .png became availiable for photoshop, but can't be recongnized by the NML.
When you hex edited the png you modified the palette, which NML wil complain about and which will make no difference in the encoded grf anyway. If you want to eliminate the pure white pixels from the image, use your image editor.

Re: Ask for help:why do the NML keeps informing me that I had used pure white?

Posted: 15 Mar 2020 23:23
by kamnet
You are warned about using pure white because it's typically what's used for the background color of the sprite sheet, and it indicates that your sprite alignments in your code may not match with where your sprite actually is in the spritesheet. It shouldn't prevent you from compiling a NewGRF, but when you use it in the game if the alignment is off it will be noticeable.

Re: Ask for help:why do the NML keeps informing me that I had used pure white?

Posted: 16 Mar 2020 00:57
by ZeeChung子充
All right, I see. Thank you so much! :)