How to add custom Items: Difference between revisions

Preparing an Image: clarifying Dungeon Graphics nav
 
Line 68: Line 68:
'''“Expected colors are from Palette 0” when using a non-0 palette'''
'''“Expected colors are from Palette 0” when using a non-0 palette'''
[[File:Item tutorial 14 error 1.png|alt=Screenshot of error that could happen when importing into Slot 63 specifically|center|400x400px]]
[[File:Item tutorial 14 error 1.png|alt=Screenshot of error that could happen when importing into Slot 63 specifically|center|400x400px]]
Even with the Palette ID number set in the UI, '''the tool first looks at the index number of the ''transparent'' color to start checking the rest.''' This means if you mistakenly used the transparent color from Palette 0 when making your sprite, the editor ''now expects everything to come from'' ''Palette 0''. “Color 49” is the black outline color in ''Palette 3''. Because “color 49” is not an expected color, the editor rejects the image.
Even with the Palette ID number set in the UI, '''the tool first looks at the index number of the ''transparent'' color to start checking the rest.''' This means if you mistakenly used the transparent color from Palette 0 when making your sprite, the editor ''now expects everything to come from'' ''Palette 0''. “Color 49” is the black outline color in ''Palette 3''. Because “color 49” is not an expected color ("color 1" is the s the black outline color in Palette 0), the editor rejects the image.


'''“Expected colors are from Palette x”'''
'''“Expected colors are from Palette x”'''
[[File:Item tutorial 15 error 2.png|alt=Error for uploading to slot 63|center|400x400px]]
[[File:Item tutorial 15 error 2.png|alt=Error for uploading to slot 63|center|400x400px]]
Even with the transparency and outline colors corrected, you may still get an “expected colors” error, despite them matching the palette at a glance. Note that Palettes 1 and 3 share a set of greens (index 27, and index 59). Using the “incorrect green” causes the error (especially if indexing a previously-RGB-mode sprite; the drawing program could attempt to auto-assign incorrect indexes). This is why it's recommended to work directly with the colormap.
Even with the transparency and outline colors corrected, you may still get an “expected colors” error, despite them matching the palette at a glance. Note that Palettes 1 and 3 share a set of greens (index 27, and index 59). Using the “incorrect green” causes the error (especially if indexing a RGB-mode sprite; the drawing program could attempt to auto-assign incorrect indexes). This is why it's recommended to work directly with the colormap.


To fix any of these errors, correct the offending colors in your PNG and import again.
To fix any of these errors, correct the offending colors in your PNG and import again.