action color / pure white detection
We should, in some way, warn the user about action colours and pure white (0xFFFFFF) when encoding sprites.
Upon encountering such a colour, one of the following actions could be taken
- Remap these colours to 'safe' alternatives.
- Raise an error
- Raise a warning
- Do nothing
This probably needs a parameter or something.
How does grfcodec handle this?
#2 Updated by planetmaker about 7 years ago
An error should only be rised when the palette is wrong or the gfx is not usable / readable for some reason.
Pure white pixels might be worth a warning, as I don't know a case where they're desired (except in newspaper?). All other colours, including action colours, should not even raise a warning by default as they're perfectly legal colours.
It might be a useful thing to have the possibility to enable an action-colour warning.
Automatic re-mapping is imho out-of-question, except if NML caters for that by extending the syntax concerning inclusion of real sprites which allows the user to set flags like 'no action', 'no CC'.
#3 Updated by Ammler about 7 years ago
There are still 3 bits free from http://wiki.ttdpatch.net/tiki-index.php?page=RealSprites#compression, maybe those could be used to define, "noaction" and "nocompany" for autoremap?