• 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!
  • 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] [FR] Custom Item's Image Problem

Hi.
I'm just starting to experiment with some things about ROM-Hacking.
Yesterday i was able to make my first evolutionary item in Pokemon Ruby following the tutorial of karatekid552 and DavidJCobb <3
The thing is that now i want to try it out in FireRed, but welp.. unlike Ruby, FireRed have an icon for every item you can put in your bag.
And what's the problem? That sounds perfectly normal dude, you're making me lose my time :|
That the item's 24x24 sprite isn't working ;__; ...

Here's a step-by-step of what i did:
1) Took the Razor Fang's sprite from this little sheet
2) Inserted it in a Paint new image of 24x24 and Saved it in .PNG
3) Indexed it and gave it a transparent background with GIMP 2
4) Opened Unlz-GBA, my ROM and when i was about to import the image..
¡BOOM! ¡"ERROR: image is not indexed"!
And i'm importing the GIMP's exported file which should have 16 colors and transparent background!
I'll attach the image to the post, maybe someone can use his/her magic analyzing skills to see if there's something wrong with it ;_;

Thanks in advance for reading and greetings from Uruguay ;_;
 
Hi.
And i'm importing the GIMP's exported file which should have 16 colors and transparent background!

First off, there is no attached image but I can work with that.
The first colour in an indexed file is your transparent one. There should be 15 other colours besides that first one. I'm not quite sure if you did that though and from this line, it sounds like you have 17 colours.
Also, inserted sprites don't support the alpha (transparency) channel. At least, they don't for me.
Try it. Hope this helps.
 
First off, there is no attached image but I can work with that.
The first colour in an indexed file is your transparent one. There should be 15 other colours besides that first one. I'm not quite sure if you did that though and from this line, it sounds like you have 17 colours.
Also, inserted sprites don't support the alpha (transparency) channel. At least, they don't for me.
Try it. Hope this helps.

Hm.. then that could be the problem because that's the type of transparency i've put with GIMP, one with Alpha Channel..
I'll try using another tool and report.
Btw, here's the sprite, sorry, it's the first time i post a problem here xD
"image removed"
 
Hm.. then that could be the problem because that's the type of transparency i've put with GIMP, one with Alpha Channel..
I'll try using another tool and report.
Btw, here's the sprite, sorry, it's the first time i post a problem here xD
"image removed"

I use IrfanView. It let's you export palettes and decrease the amount of colours. Anyway, I indexed your sprite for you. And I'll give you a step by step for IrfanView here, too.

  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.
If the image doesn't stay indexed, you can index it now.
Hope I helped.
 
I use IrfanView. It let's you export palettes and decrease the amount of colours. Anyway, I indexed your sprite for you. And I'll give you a step by step for IrfanView here, too.

  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.
If the image doesn't stay indexed, you can index it now.
Hope I helped.

I tried the Step-by-Step with a Magmarizer and it didn't worked, maybe i didn't got it correctly ;_; ..

Basically what i did was:
1) Took the 24x24 Transparent Icon from Hackmew's Pack
2) Opened it with Paint, just to see the background color it had, didn't saved.
3) Went to IrfanView, and then to "Image>Decrease Color Depth" as you said, picked "16 colors (4 BPP)"
4) Then went to "Palette > Edit Palette"
5) The background color that appeared in Paint for the image was a Light Gray, so i recognized it in IrfanView's palette viewer like this.
6) Took the Light Gray values ("137, 137, 137", right?)
7) Took the first color values ("1, 1, 1", a normal black)
8) Switched them (Light Gray in Black's place and viceversa)
9) Exported the Palette
10) File > Reopen
11) Imported the Palette
12) Saved as "PNG"

And the result.. well.. </3
[PokeCommunity.com] [FR] Custom Item's Image Problem


Here's the image after doing the steps and also the palette, just to analyze it, you don't need to do index it, don't worry xD

"image removed"
 
I tried the Step-by-Step with a Magmarizer and it didn't worked, maybe i didn't got it correctly ;_; ..

5) The background color that appeared in Paint for the image was a Light Gray, so i recognized it in IrfanView's palette viewer like this.
6) Took the Light Gray values ("137, 137, 137", right?)
7) Took the first color values ("1, 1, 1", a normal black)
8) Switched them (Light Gray in Black's place and viceversa)

And the result.. well.. </3
[PokeCommunity.com] [FR] Custom Item's Image Problem


Here's the image after doing the steps and also the palette, just to analyze it, you don't need to do index it, don't worry xD

"image removed"

Well, somehow, it looks like you've affected the palette colours for the bag. I only know the offsets for the bags and their palette (Male bag: E8362C, Female bag: E83DBC, Palette for both:E84560). Check the offset you inserted the image and palette to.
Slightly less important, you've noted the light grey as 137, 137, 137 but your image lists it as 136, 136, 136.
 
guys i created this z-ring and i followed all these steps but i have a faild to load sprite in g3t editor,i share if some one can help to solve this problem please,thank you https://ibb.co/4mVQs4s
 
guys i created this z-ring and i followed all these steps but i have a faild to load sprite in g3t editor,i share if some one can help to solve this problem please,thank you https://ibb.co/4mVQs4s

Did you insert this in unLZ.gba? And if you did, have you edited the .ini file for G3T to include this certain item in it's offsets?
 
Last edited:
Pokechu,yes i try it and also Nameless Editor to add the image and palette,i followed the item inseration here in pokecommunty who use nameless editor,i already added evolution stone and is working fine but i'm not the creator for these sprites,except today i want a z zing and i can't find it and i created one but is not working
 
Pokechu,yes i try it and also Nameless Editor to add the image and palette,i followed the item inseration here in pokecommunty who use nameless editor,i already added evolution stone and is working fine but i'm not the creator for these sprites,except today i want a z zing and i can't find it and i created one but is not working

Even if you inserted the sprite, did you add its files in the game? And as I said above, did you edit the G3T .ini?
 
yes every thing is good on the bpre.ini i think the problem is from the image not on g3t ,i know it because the z ring palette offset is working but not the image offset
 
yes i used advanced offset to get all offsets ,number of items etc....
 
Back
Top