• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Other] Sprite Indexing Problem

  • 2
    Posts
    9
    Years
    • Seen Sep 12, 2016
    Hi, everyone. I'm quite new to ROM hacking, and there is one problem I can't overcome no matter what I do. The thing is, I wanted to change the sprites in FireRed for starters, I've got both unLZ and NSE 2 for doing that, and got PS CC 2015, Irfanview installed. Now, to the problem:
    After finishing editing the sprite, I open it on PS and Index it, the status changes to Index, I even do the color decreasing part and stuff but when I save it and try to Load it with unLZ, I have an "Image not indexed" error, and with NSE 2, I have "Image not indexed or used undefined alpha channel." I found some tutorials about creating alpha channels on Photoshop, and I tried everything, even saving it with a PNG 24 format with transparency, but it still doesn't work. The thing I don't like about Irfanview is it screws up the colors, so it's like I have to draw the sprite again, and it sucks. What should I do to get a correctly indexed PNG from Photoshop? Thanks in advance.
     
    Hi, everyone. I'm quite new to ROM hacking, and there is one problem I can't overcome no matter what I do. The thing is, I wanted to change the sprites in FireRed for starters, I've got both unLZ and NSE 2 for doing that, and got PS CC 2015, Irfanview installed. Now, to the problem:
    After finishing editing the sprite, I open it on PS and Index it, the status changes to Index, I even do the color decreasing part and stuff but when I save it and try to Load it with unLZ, I have an "Image not indexed" error, and with NSE 2, I have "Image not indexed or used undefined alpha channel." I found some tutorials about creating alpha channels on Photoshop, and I tried everything, even saving it with a PNG 24 format with transparency, but it still doesn't work. The thing I don't like about Irfanview is it screws up the colors, so it's like I have to draw the sprite again, and it sucks. What should I do to get a correctly indexed PNG from Photoshop? Thanks in advance.

    If by screwed up you mean the colour in the first index and the background get mixed up, that's supposed to happen.
    Here's a step-by-step of how I index with Irfanview.
    1. Open the image we want and click "Image>Decrease Color Depth".
    2. Select "16 Colors (4BPP)" and click OK.
    3. Click "Image>Palette>Edit Palette".
    4. Take note of the RGB of the colour in the first square and the square that has your transparent colour.
    5. Switch their numbers around and close the menu.
    6. Click "Image>Palette>Export Palette". Save this file.
    7. Click "File>Reopen".
    8. Finally, click "Image>Palette>Import Palette" and select the .pal file from earlier.
    9. Save and finish.

    When we import our palette, the image doesn't get all messed up.
    Hope I helped.
     
    Back
    Top