destinedjagold
Oh Hai Thar.
- 8,594
- Posts
- 17
- Years
- Stinky/Old/Fart
- On your ceiling...
- Seen Apr 17, 2025
destinedjagold's Sprite Indexing and Inserting Tutorial
updated
Before anything else, here's RedYoshi's Indexing Sprites Tutorial, where I based my tutorial.updated
Oh, and if you find this tutorial difficult to understand, try viewing the video tutorial I have uploaded entitled 'How to Insert Sprites'
Introduction...
Okay, so hi everyone. I am destinedjagold, a ROM hacker/modder who stinks at spriting, but is showing you a spriting tutorial. o.O
Anyways, this thread is updated now since I lost my images. Blame PhotoBucket -__- ...
Anyways, I hope you'll find this tutorial useful, and pardon me for reusing this old thread of mine.
Since I saw this thread's still open, I decided to update it instead of making a new one. Might be a waste of space in the forums.
What You Need...
[*]ROM
[*]Unlz-GBA
[*]MS Paint
[*]Your sprite
[*]IrfanView
[*]Hex Editor (I'll be using Hex Workshop)
Before Anything Else...
Remember to make a back-up of your ROM. Just in case you messed something up.
Remember the golden rule in ROM-hacking... "SAVE BACK-UP"...
STEPS
Step 1...
1. Open your sprite through MS Paint. Then resize it to 64x64. If it's too big, then you'll have to reduce it. How? It's up to you. :\
2. Pick a colour which is not used by the sprite. Exampe, HAUNTER has a purple pallete, so you have to use Yellow or Orange or Cyan as it's back colour.
Spoiler:
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i41.tinypic.com/a1tquf.jpg)
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i40.tinypic.com/2cprtap.jpg)
Step 2...
1. After you saved your 64x64 sprite, open it with IfranView (if you don't have one, Google it).
2. Then on the 'Image' tab, click the 'Decrease Color Depth'.
3. A little window will show up. From 256, change it to 16 colors and press 'Ok'.
4. Then go to the 'Image' tab once again, but this time, go to 'Palletes' and click 'Edit Pallete...'.
5. A window will show up. You will see all 16 colours the sprite uses. On the left-most pallete/color, change it to the same color of the background color. Then change the other color which is the same color as your background color to the color you replaced in the left-most pallete/color.
6. Click 'Ok'. Then you'll have to save it. But here's a trick to make things easier. Don't replace your old 64x64 sprite. Save it with a different name.
Spoiler:
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i40.tinypic.com/wjbcp5.jpg)
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i40.tinypic.com/xf50cw.jpg)
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i43.tinypic.com/280mtth.jpg)
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i41.tinypic.com/v2xv1t.jpg)
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i40.tinypic.com/900jsg.jpg)
Step 3...
1. Open both your sprites;the IrfanView and the MS Paint ones.
2. Press CTRL+A or Select All on your old 64x64 sprite, and then Copy it.
3. Paste it on the MS Paint where you opened the sprite you edited through IrfanView. This will lessen the burden of fixing your sprite, in case it has been pixelized by IrfanView.
4. Save it. In this step, you can now delete the unindexed sprite to avoid confusion.
Spoiler:
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i43.tinypic.com/345ey5e.jpg)
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i41.tinypic.com/flip1h.jpg)
Step 4...
1. Open your ROM with Unlz-GBA.
2. Find the old PKMN sprite you want to replace.
3. Click on the 'Import' button and select your newly indexed sprite.
4. Click the 'Write to ROM' button.
5. A window will pop-up. Check the 'Automatically Fix Pointers'.
6. Open your ROM with a Hex Editor and find a free space for your new sprite. You can use FSF as well if you want to. Memorize the free offset.
7. Close your FSF, or any programs that opened your ROM as well, such as A-Text or A-Map and the like.
8. Type the offset on the 'Image Offset' box. Don't remove those two zeros.
9. Click on the OK button and you're done. If a pop-up window appears and states 'Ptr found at <offsets go here>. Changed.'.., then it means that you have successfully inserted a new sprite, or rather replaced an old sprite for a new one! Horay!
10. You can do the same for it's palletes, of if you're too lazy to run a search for free offsets, you can use APE or just check the 'Export Pallete', but remember to uncheck the 'Automatically Fix Pointers'.
11. Test it out on your ROM.
Spoiler:
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i40.tinypic.com/oj2hbd.jpg)
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i39.tinypic.com/oh8ndu.jpg)
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i42.tinypic.com/34y3brq.jpg)
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i43.tinypic.com/14bpc12.jpg)
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i42.tinypic.com/runr80.jpg)
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i42.tinypic.com/rsg283.jpg)
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i43.tinypic.com/50ns5c.jpg)
Continuation...
Indexing the backsprite...
June 4, 2009
Introduction...
Okay... Now you know how to index and insert your new POKéMON's front sprite.
But now you ask, how to do the backsprite?
It's quite simple, actually...
Now, I'm gonna use Stormidran, Samson's fakemon.
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i44.tinypic.com/33u8u3s.jpg)
I am assuming that by this time, you already know how to index your front sprites...
Spoiler:
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i41.tinypic.com/rvd20z.jpg)
STEPS
1. Open both your POKéMON's front and back sprites...
Spoiler:
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i42.tinypic.com/30lpiy1.jpg)
2. Select All, then Copy your back sprite and paste it to your front sprite. Don't forget to make the background the same as your front sprite...
Spoiler:
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i44.tinypic.com/2lijwhs.jpg)
3. Open the back sprite of the POKéMON that you will replace. In this example, I'll replace Tropius...
Spoiler:
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i42.tinypic.com/2epu83n.jpg)
4. Select All, then copy the back sprite of the POKéMON you'll replace and paste it to your back sprite. Notice that both back sprite is 'cut'. If you aren't bothered, put a line starting from the replaced POKéMON's back sprite to your new back sprite...
Spoiler:
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i42.tinypic.com/14w56o6.jpg)
5. After doing that, you should put the 'cut' of your new back sprite on the line, so it won't look floating on the game.
Spoiler:
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i39.tinypic.com/2us8iok.jpg)
6. After making sure that the new sprite's on the same level of the replaced sprite, turn it back to 64x64 in size, save it, and it should be in .png format...
Spoiler:
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i39.tinypic.com/28a7oy9.jpg)
7. Then, open your ROM in Unlz-GBA and go to your replace-to-be back sprite. The same to inserting the front sprite, first try if you can insert it by checking both 'Auto abort if new data is bigger' and 'Export Image'...
Spoiler:
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i40.tinypic.com/o6yb0o.jpg)
8. And if your new sprite's bigger, simply search for free offset, click 'Auto abort if new data is bigger', 'Export Image' and 'Automaticly Fix Pointers'...
Spoiler:
![[PokeCommunity.com] Indexing and Inserting Sprites [PokeCommunity.com] Indexing and Inserting Sprites](https://i41.tinypic.com/2iliq37.jpg)
Note...
You might be asking about the back sprite's pallete if it will also be included to export.
Well, since you already inserted the front sprite along with the front sprite's pallete, you need not to export the back sprite's pallete, as long as you copied your back sprite and pasted it on your indexed front sprite.
Message...
Okay. I hope that this will help you all to insert new sprites for your hacks/mods. ;)
I had fun updating this tutorial though.
Thanks for sparing time to read this tutorial. :)
Well, good luck and have fun hacking/modding!
Last edited by a moderator: