How to add custom Items: Difference between revisions

m minor formatting fixes, linking to sections
m slight wording changes, added category
Line 48: Line 48:
[[File:Item tutorial 9 export dialog.png|alt=Screenshot of export dialog ("This exports currently selected image with the currently selected palette. image will contain all palettes")|center|border]]
[[File:Item tutorial 9 export dialog.png|alt=Screenshot of export dialog ("This exports currently selected image with the currently selected palette. image will contain all palettes")|center|border]]
This means that the sprite of the Stick will ''look'' brown, but still have the full colormap in its data. Opening the PNG in a sprite editor shows which colors will be used in each variation of the palette. Using an eyedrop tool or color selection mechanic can highlight the index of the brown being used (index 25). Finding the other shades of brown from there gives a point of reference for each row.
This means that the sprite of the Stick will ''look'' brown, but still have the full colormap in its data. Opening the PNG in a sprite editor shows which colors will be used in each variation of the palette. Using an eyedrop tool or color selection mechanic can highlight the index of the brown being used (index 25). Finding the other shades of brown from there gives a point of reference for each row.
[[File:Item tutorial 10 stick index example.png|alt=Screenshot of Stick PNG open in sprite editor, showing which colors share the same columns|center|thumb|408x408px|These colors (23-25) share the same positions within every palette]]
[[File:Item tutorial 10 stick index example.png|alt=Screenshot of Stick PNG open in sprite editor, showing which colors share the same columns|center|thumb|408x408px|These 3 colors share the same positions within every palette]]
This is useful if you make a sprite that you want ''multiple variants'' of (Stick, Iron Thorn, Apple, Golden Apple, etc.).
This is useful if you make a sprite that you want ''multiple variants'' of (Stick, Iron Thorn, Apple, Golden Apple, etc.).


Line 88: Line 88:
==== Possible Error (& Fix) ====
==== Possible Error (& Fix) ====
[[File:Item tutorial uncaught error ex.png|alt=Screenshot of uncaught error that happens when importing with incorrect colors|center|thumb|400x400px|Uncaught error that happens when importing with incorrect colors]]
[[File:Item tutorial uncaught error ex.png|alt=Screenshot of uncaught error that happens when importing with incorrect colors|center|thumb|400x400px|Uncaught error that happens when importing with incorrect colors]]
If you have any “expected color” issues, SkyTemple first will give an error showing the incorrect index, then throw an uncaught TypeError exception. This is slightly different from the error with slot 63 because SkyTemple first creates an entry then cannot process the color data, so the entry becomes invalid while the editor still tries to display it. ''Don’t panic! You can correct this without having to reload/close without saving!'' Correct the color errors and import as ''replacing'' ''current entry'' (i.e.: replacing the invalid entry with colors that the editor can properly validate).
If you have any “expected color” issues, SkyTemple first will give an error showing the incorrect index, then throw an uncaught TypeError exception. This is slightly different from the error with slot 63 because SkyTemple first creates an entry, then cannot process the color data when importing. So the entry becomes invalid while the editor still tries to display it. ''Don’t panic! You can correct this without having to reload/close without saving!'' Correct the color errors and import as ''replacing'' ''current entry'' (i.e.: replacing the invalid entry with colors that the editor can properly validate).
[[File:Image tutorial 13 import settings off.png|alt=Screenshot of import settings needed to replace an existing sprite entry|center|300x300px]]
[[File:Image tutorial 13 import settings off.png|alt=Screenshot of import settings needed to replace an existing sprite entry|center|300x300px]]


==== Current Limitations - Important ====
==== Current Limitations - Important! ====
{{Main|Item/Trap Graphics#Sprite Slots}}
{{Main|Item/Trap Graphics#Sprite Slots}}
Edits to '''slots 96 - 103''' will ''permanently overwrite'' the sprites present in that row (this includes things like Pokémon shadows).
Edits to '''slots 96 - 103''' will ''permanently overwrite'' the sprites present in that row (this includes things like Pokémon shadows).
Line 99: Line 99:


Go back to the ''Items > [item name]'' , and set the Sprite ID to '''63''' (or whatever index you inserted it at). Increment the Palette ID, and you will see the sprite change colors depending on the ones you used (remember the IDs start at 0).
Go back to the ''Items > [item name]'' , and set the Sprite ID to '''63''' (or whatever index you inserted it at). Increment the Palette ID, and you will see the sprite change colors depending on the ones you used (remember the IDs start at 0).
[[Category:Tutorials]]