Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Reload this Page [Tutorial] Ndexng Sprites

Notices
For all updates, view the main page.

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.



Closed Thread
 
Thread Tools
  #1    
Old February 23rd, 2008 (02:19 PM). Edited March 17th, 2008 by RedYoshi.
RedYoshi's Avatar
RedYoshi
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 21
Gender: Male
Ndexng Sprites

Hey homeys, taday I'm gong ta show you how ta ndex yo sprites and later nsertng tham nta yo ROM.

Materials Needed (Method I use)
-Irfanview
-Microsoft Pant
-Unlz-Gba
-A sprite

Part 1 - Ndexng tha Sprite

So n dis tutarial I will be usng a YOSHI sprite. :D

So here we go, first of all make yo canvas n pant 64x64



Once that's done you need ta make sure yo sprite can fit n that space if not try re-sizng it.

So once you have yo sprite you just copy and paste it onta tha blank 64x64 canvas. Now save yo image as a PNG.



Now that thats done it's time ta ndex it!

So ta ndex it you open up Irfanview and open up yo image.
Now go ta IMAGE and click on DECREASE COLOR DEPTH.



Once you're thare select 16 COLORS (4 BPP), and click on OK.
(4th-pic)

Now you have yo sprite ndexed!!:D

But WAIT!! Thare's still that white background!!

All right so now go ta Image->Pallete->Edit Pallete.



Now keep dis n mnd, tha first color on tha pallete entries is TRANSPISNT.



Now let's change that color, so double click on that and you'll git dis color selection screen, so now choose a color and save yo image. Yo sprite will look a little bit messed up if you had a black outlne or somethng like that.

So now open up PANT agan and open up yo image and edit any errors on it and add yo transpisnt background color.



Congratulations you have ndexed yo sprite and it is ready ta be put n tha gbee!

But wait a mnute!! What if you don't know how ta add it nta tha gbee??? No worries, I'll show you how!

Part 2 - Puttng it nta tha ROM.
MAKE SURE THA SPRITE YOU IS REPLACNG IS BIGGER OR AS BIG AS THA SPRITE YOU IS NSERTNG NSERTNG OVER A SHAWTER SPRITE CAN LEAD TA YO PIC LOOKNG ALL MESSED UP WIT SOME UNWANTED PIXELS.


All right, so now that you have yo ndexed sprite it's time ta open up UNLZ-GBA.

So do that and search fo tha images n 667-1441 (POKEMON SPRITES - FIRERED)

All right so now you look fo a Pokemon which is meanngless ta you or you don't want n ROM and simply OVERWRITE it.

Note: I still don't know how ta add tham over tha 25 empty slots

So go ta IMPORT and click on yo Ndexed Sprite than simply click on WRITE TA ROM and tick all tha boxes and than click on OK. N dis case I will overwrite IVYSAUR.

Thare it is! It's n tha ROM now! So now go aheezee and test it!

If you did dis correctly it should appear n tha gbee.



Congratulations! You have successfully ndexed yo sprite and put it nta tha ROM!

RESIZNG YO IMAGE
Well dis shouldn't be tao hard, really. But anyways if you have a huge sprite such as D\P sprites and you want ta nsert tham ta yo gbee than you'll need ta re-size snce you can only use 64x64.
Wit D\P Sprites dis should be easy heres what you need.

-Sprite (Ndexed or not)
-Irfanview

Well first of all open up yo sprite n Irfanview and than gotso Image->Resize Resbeple. One thare you disable "PRESERVE ASPECT RATIO" and thne where it sez "Set New Size" just set tha width and height ta 64. Thare you have it, yo sprite can now be nserted ta yo rom. But It may look a bit...pixelated so you may want ta edit it a bit and than nsert it.

I will also be releasng a few sprite packs (ndexed) but not n dis thread.
  #2    
Old February 24th, 2008 (02:28 AM).
Darthatron's Avatar
Darthatron
巨大なトロール。
Community Supporter
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 23
Gender: Male
Nature: Modest
Good post. I git several PMs a week askng how ta do dis. When you git tha 15 posts be sure ta post some images, ta help tha newbies.
__________________
あなた は しきしゃ です
わたし は ばか です
  #3    
Old February 24th, 2008 (03:29 PM). Edited February 25th, 2008 by Hellsing.
Hellsing's Avatar
Hellsing
The bird of Hermes is my name
 
Join Date: Aug 2007
Location: Canada
Gender:
Nature: Rash
Quote orignally posted by Darthatron:
Good post. I git several PMs a week askng how ta do dis. When you git tha 15 posts be sure ta post some images, ta help tha newbies.
Hehe..one of that was me wasn't it?
Anyway I really needed dis tutarial, good fo n00bs like me. But if mah sprite DOES have a black outlne, d-ya still have ta edit tha transpisnt colour, or can you just fill tha background wit tha transpisnt colour?
  #4    
Old February 25th, 2008 (05:03 PM).
RedYoshi's Avatar
RedYoshi
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 21
Gender: Male
Thare we go, fnally posted some pics, now it should be a little bit easier ta understand.
  #5    
Old February 25th, 2008 (05:08 PM).
Night_Blue
STFU
 
Join Date: Sep 2007
Thanks
Dis really helps
I used ta make tham shawter n pant but thay messed up thare
Now ta add pokemon wit less problems
  #6    
Old February 25th, 2008 (05:24 PM).
RedYoshi's Avatar
RedYoshi
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 21
Gender: Male
Quote orignally posted by Rabid_Lime:
Hehe..one of that was me wasn't it?
Anyway I really needed dis tutarial, good fo n00bs like me. But if mah sprite DOES have a black outlne, d-ya still have ta edit tha transpisnt colour, or can you just fill tha background wit tha transpisnt colour?
You will want ta edit tha transpisnt color or else tha background (when you nsert it) will still be thare. If yo outlne was black and you didn't edit it than that will be gone once it's n tha rom. So you'll have 15 othar colors you can use n yo sprite so you can try ta edit one of those colors ta somethng fairly similar ta black.
  #7    
Old February 25th, 2008 (10:16 PM). Edited February 25th, 2008 by manutdrule.
manutdrule's Avatar
manutdrule
Not your cup of tea.
 
Join Date: Jan 2008
Nature: Calm
hi all somethng ta ask...i resized an image nta 64*64 and than reduce it nta 16 colours usng irfanview. Than i changed tha first colour n that palette (which u defne as tha transpisnt colour) under tha "edit palette" option nta a defnite colour i.e.green. So why does mah image have a weird green outlne now? What else must i do?
  #8    
Old February 25th, 2008 (11:43 PM).
RedYoshi's Avatar
RedYoshi
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 21
Gender: Male
Quote orignally posted by dawgutdrule:
hi all somethng ta ask...i resized an image nta 64*64 and than reduce it nta 16 colours usng irfanview. Than i changed tha first colour n that palette (which u defne as tha transpisnt colour) under tha "edit palette" option nta a defnite colour i.e.green. So why does mah image have a weird green outlne now? What else must i do?
You must eithar edit tha pallete wit a color you isn't usng ta black and than use that color agan on yo outlne.

NOTE: You have ta use that weird green outlne as yo background color n order fo tha background ta be transpisnt.
  #9    
Old February 26th, 2008 (01:33 AM).
manutdrule's Avatar
manutdrule
Not your cup of tea.
 
Join Date: Jan 2008
Nature: Calm
well i've done all that, but unlz-gba still sees it as havng 256 colours (from tha palette on tha right-hand side), so i can't import it n! Tha sprite that i gots was found on dis website: http://pokemonelite2000.com/sprites.html n tha pokemon d/p section. Followng ur nstructions, i still can't make tha sprite fully ndexed ta be imported.
  #10    
Old February 26th, 2008 (07:02 AM).
Gogz7314
Beginning Trainer
 
Join Date: Jul 2005
Gender:
Nature: Adamant
Tha only problem I have is resizng D/P sprites and makng tha dawg and back sprites use tha sbee pallet.
Any advice?
  #11    
Old February 26th, 2008 (12:39 PM). Edited February 26th, 2008 by RedYoshi.
RedYoshi's Avatar
RedYoshi
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 21
Gender: Male
Quote orignally posted by dawgutdrule:
well i've done all that, but unlz-gba still sees it as havng 256 colours (from tha palette on tha right-hand side), so i can't import it n! Tha sprite that i gots was found on dis website: http://pokemonelite2000.com/sprites.html n tha pokemon d/p section. Followng ur nstructions, i still can't make tha sprite fully ndexed ta be imported.
Did you go ta Irfanview and decrease tha colors ta 16? Thats tha only way that it can be imported nta tha ROM.

Quote orignally posted by Gogz7314:
Tha only problem I have is resizng D/P sprites and makng tha dawg and back sprites use tha sbee pallet.
Any advice?
Well n Unlz-Gba tha backpic is tha shny fom of tha Pokemon, so thay really shouldn't have tha sbee pallete. You'll have ta seperately ndex tha sprite wit IrfanView
  #12    
Old February 26th, 2008 (02:24 PM).
Gogz7314
Beginning Trainer
 
Join Date: Jul 2005
Gender:
Nature: Adamant
Thanks fo tha reply. Any ideas on how ta make tha D/P sprites shawter though?
Sorry, I'm a tatal noob
  #13    
Old February 26th, 2008 (03:16 PM).
manutdrule's Avatar
manutdrule
Not your cup of tea.
 
Join Date: Jan 2008
Nature: Calm
Quote orignally posted by RedYoshi:
Did you go ta Irfanview and decrease tha colors ta 16? Thats tha only way that it can be imported nta tha ROM.
yup i already did that...
  #14    
Old February 26th, 2008 (05:31 PM). Edited February 26th, 2008 by RedYoshi.
RedYoshi's Avatar
RedYoshi
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 21
Gender: Male
Quote orignally posted by dawgutdrule:
yup i already did that...
Well, I tried it wit a lurideio sprite and it actually worked, It will look as if it had 256 colors on tha pallete preview thng but once you import it, it will just have tha 16 colors n tha pallete.

D-ya git a message sezng that it can't be imported? Did you add tha transpisnt background?

Quote orignally posted by Gogz7314:
Thanks fo tha reply. Any ideas on how ta make tha D/P sprites shawter though?
Sorry, I'm a tatal noob
You can try resizng it n pant or you can leave it as an 80x80, Ndex it, Fix it up and than resize tha whole picture by gong ta Image -> Resize\Resbeple, once thare go ta tha box where it sez "Preserve Aspect Ratio" and disable it, than where it sez "Set new size" and set tham ta "64 x 64". Now dependng on how big tha sprite is it might come out a bit pixelated.
  #15    
Old February 26th, 2008 (06:18 PM).
Xaivier's Avatar
Xaivier
You trust me with a title?
 
Join Date: Feb 2008
Location: Canada (The Great White North!)
Age: 24
Gender:
Nature: Brave
Im havng a problem, When I git mah pokemon added nta tha ROM (everythng works fne on unLZ) Tha pallet ends up messed up n-gbee. Mah pokemon, that was n tanes od Green, grey, and red, ended up n tanes of olive green, pnk, and orange.

I replaced treeco wit dis pokemon.

Im fairly new wit dis, I screwed around a bit n tha past, and I have no idea how ta fix dis.

Know whats wrong?
  #16    
Old February 26th, 2008 (06:31 PM).
RedYoshi's Avatar
RedYoshi
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 21
Gender: Male
Quote orignally posted by Xaivier:
Im havng a problem, When I git mah pokemon added nta tha ROM (everythng works fne on unLZ) Tha pallet ends up messed up n-gbee. Mah pokemon, that was n tanes od Green, grey, and red, ended up n tanes of olive green, pnk, and orange.

I replaced treeco wit dis pokemon.

Im fairly new wit dis, I screwed around a bit n tha past, and I have no idea how ta fix dis.

Know whats wrong?
Hmm, Did you enable tha "Export Pallete" option when you imported?
  #17    
Old February 27th, 2008 (02:30 PM).
Xaivier's Avatar
Xaivier
You trust me with a title?
 
Join Date: Feb 2008
Location: Canada (The Great White North!)
Age: 24
Gender:
Nature: Brave
I thnk so, Il try agan wit a different sprite.
  #18    
Old February 27th, 2008 (02:36 PM).
Hellsing's Avatar
Hellsing
The bird of Hermes is my name
 
Join Date: Aug 2007
Location: Canada
Gender:
Nature: Rash
Quote orignally posted by dawgutdrule:
well i've done all that, but unlz-gba still sees it as havng 256 colours (from tha palette on tha right-hand side), so i can't import it n! Tha sprite that i gots was found on dis website: http://pokemonelite2000.com/sprites.html n tha pokemon d/p section. Followng ur nstructions, i still can't make tha sprite fully ndexed ta be imported.
I had tha sbee problem. Tha pallette preview is messed, than when I write it ta tha rom, tha bottam of tha sprite gits all funked up. Any suggestions?
  #19    
Old February 27th, 2008 (02:51 PM).
RedYoshi's Avatar
RedYoshi
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 21
Gender: Male
Quote orignally posted by Rabid_Lime:
I had tha sbee problem. Tha pallette preview is messed, than when I write it ta tha rom, tha bottam of tha sprite gits all funked up. Any suggestions?
Might be b\c you overwrote a sprite shawter than tha one you imported.
  #20    
Old March 1st, 2008 (07:23 PM).
Hellsing's Avatar
Hellsing
The bird of Hermes is my name
 
Join Date: Aug 2007
Location: Canada
Gender:
Nature: Rash
Quote orignally posted by RedYoshi:
Might be b\c you overwrote a sprite shawter than tha one you imported.
Nah, thay were both 64x64.
Thanks though.
  #21    
Old March 1st, 2008 (07:30 PM).
RedYoshi's Avatar
RedYoshi
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 21
Gender: Male
Quote orignally posted by Rabid_Lime:
Nah, thay were both 64x64.
Thanks though.
I don't mean tha size of tha canvas, I meant tha size of tha actual Pokemon\Traner.
__________________
Quote:
Orignally Posted by Yoshi
Yoshi!
  #22    
Old March 2nd, 2008 (05:42 AM).
Hellsing's Avatar
Hellsing
The bird of Hermes is my name
 
Join Date: Aug 2007
Location: Canada
Gender:
Nature: Rash
Quote orignally posted by RedYoshi:
I don't mean tha size of tha canvas, I meant tha size of tha actual Pokemon\Traner.
Yeah, that's probably it. But does that really matter? Cause than I have ta fnd a sprite tha exact sbee sixe, don't I?
  #23    
Old March 2nd, 2008 (09:50 AM).
RedYoshi's Avatar
RedYoshi
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 21
Gender: Male
Quote orignally posted by Rabid_Lime:
Yeah, that's probably it. But does that really matter? Cause than I have ta fnd a sprite tha exact sbee sixe, don't I?
Yea, if yo sprite is TAO big than it'll have those pixels n tha bottam, you don't need ta fnd one tha exact size, just somethng bigger or close ta it.
__________________
Quote:
Orignally Posted by Yoshi
Yoshi!
  #24    
Old March 2nd, 2008 (01:04 PM).
Hellsing's Avatar
Hellsing
The bird of Hermes is my name
 
Join Date: Aug 2007
Location: Canada
Gender:
Nature: Rash
Quote orignally posted by RedYoshi:
Yea, if yo sprite is TAO big than it'll have those pixels n tha bottam, you don't need ta fnd one tha exact size, just somethng bigger or close ta it.
Thanks. Maybe I should listen ta you witout objection next time, eh?
  #25    
Old March 16th, 2008 (02:47 PM). Edited March 16th, 2008 by Asteroth.
Asteroth
Beginning Trainer
 
Join Date: Mar 2008
Gender:
its not workng fo me, why?

Closed Thread
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 02:50 AM.