Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Reload this Page [Tutorial] A Beginner's guide to inserting d/p sprites into a gba rom(No need to outline)

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.



Reply
 
Thread Tools
  #1    
Old March 3rd, 2009 (05:34 PM). Edited April 15th, 2010 by hashtag.
psyduck6199's Avatar
psyduck6199 psyduck6199 is offline
 
Join Date: Sep 2007
Gender:
Nature: Relaxed
Posts: 57
PLEASE DO NOT STEAL THIS.


This is a tutorial to insert sprites larger than 64x64 in a gba rom without you having to outline(so boring). This tutorial also works for backsprites.

Things you will need:

unlz-gba(hacked)(get it from hackmew's thread)
microsoft paint(comes with windows xp or vista)
a rom of your choice.(get it somewhere)
freespace finder(get it from hackmew's thread)
irfanview(just google it)

Stage 1(Spriting)

1. Open up the sprite u are inserting with paint. I will use torterra.

2. Fill the background with a color not used by the sprite. I will use blue.

3. Now goto Image>Stretch/Skew. Put both the circled values to 80 if u are using a d/p sprite or anything else if u are using some other sprite.

4. Save it. Now minimize paint and open up that picture in irfanview. Then go to Image>Decrease color depth. Select 16 Colors (4 BPP). The image will look a little messed up after this. Don't panic!

5. Now goto Image>Pallete>Edit Pallete. Find your background color there. Also open up a notepad or get something to write with. Write down the Value:RGB for the background color and the first color(in the left corner).

6. Now exchange those two colors. Double click the background color and put in the value of the first color.

Double click the first color and put in the value of the background color.

7. The image will look messed up again(and don't panic again).Now save the file from irfanview using a different name than the paint file. Close irfanview and the notepad.

8. Goto the minimized paint file press Ctrl+A(to select it) and press Ctrl+C(to copy it). ALso open up the irfanview file you just closed using paint.

9. Now press Ctrl+V(to paste it) in the messsed up picture.
it should look like this...

10.Save it and now u can delete the old picture but make sure you keep the new one.

Stage 2(Inserting)

1. Now,open up unlz-gba(hacked) and open your gba rom with it. Goto a picture you you want to replace. I will replace venusaur. Get the numbers for pokemons somewhere else. In firered the pokemon pictures start at 669.

2. Click import and select the file that you didn't delete.

3. Click write to rom.

4. Make sure "Expot Image" and "Auto Abort if new data is bigger" are checked and press ok. Uh-oh! It didn't work. Note the compressed size.

5. Now is the time for you to open up your free space finder. Open up your rom with it. Select "Search from the beginning of the ROM". In the right bottom corner in a box called "HEX", put in the Compressed Size i told you to note. You will have noticed that a number has appeared above that box in a box called "Dec". Copy the number in the Dec box to the "Needed Bytes" box. Note the numbers/letters(HEX Number) that appeared.

6. Go back to unLz-GBA(hacked). and click on write to rom again. This time also select the "Automatically Fix Pointer" box. In the box that says "Image Offset: put in the number I told you to note. Also don't forget the two zeros before the number.

7. Click ok and it should say something like this...

8. Almost done. Now click on write to rom again. But this time make sure you have only checked "Export Pallete" and ""Auto Abort if new data is bigger". Click ok.

9.Now you are done. Open up your rom and check it out. Here's mine.
__________________
Reply With Quote
  #2    
Old March 5th, 2009 (09:55 AM).
Sophidius's Avatar
Sophidius Sophidius is offline
Need a storyline? PM me!
 
Join Date: Mar 2009
Location: Farawaystan
Nature: Quiet
Posts: 153
just one question. How do u change the NAME of the Pokemon?
Reply With Quote
  #3    
Old March 5th, 2009 (11:09 AM).
psyduck6199's Avatar
psyduck6199 psyduck6199 is offline
 
Join Date: Sep 2007
Gender:
Nature: Relaxed
Posts: 57
use yape just search for it in the toolbox
__________________
Reply With Quote
  #4    
Old March 5th, 2009 (02:15 PM).
nemesish's Avatar
nemesish nemesish is offline
Azure Trainer
 
Join Date: Jan 2008
Location: Lima, Perú
Gender:
Nature: Adamant
Posts: 249
Finally a good way to do this.
Specially the indexing thing, since I have seen the replace-new-with-old-sprite-after-indexing thingy on only ONE tut apart of this.

Thank you
__________________
Games I support:

Pokemon Raptor - Pokemon Island - Pokemon Rejuvenation - Pokemon Zeta/Omicron/Insurgence

Hacks I support:
Eccentric Emerald - Emerald Omega - Fire Red 251+ - Pokemon Liquid Crystal
Reply With Quote
  #5    
Old March 6th, 2009 (03:42 PM).
Seb*s Seb*s is offline
 
Join Date: Feb 2009
Gender:
Posts: 12
how or where can i find at what number pokemon pictures start at ruby?
great tutorial btw.
Reply With Quote
  #6    
Old March 6th, 2009 (08:51 PM).
hello there's Avatar
hello there hello there is offline
 
Join Date: Nov 2008
Location: 781 2da 727
Age: 26
Gender:
Nature: Calm
Posts: 16
how would you change the back sprites??
Reply With Quote
  #7    
Old March 6th, 2009 (08:59 PM).
RedYoshi's Avatar
RedYoshi RedYoshi is offline
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 22
Gender: Male
Posts: 215
Quote originally posted by hello there:
how would you change the back sprites??
The same way as this, except you index the back sprite and search for the back sprite in unLZ-Gba and then replace it
__________________
Quote:
Originally Posted by Yoshi
Yoshi!
Reply With Quote
  #8    
Old March 7th, 2009 (11:40 AM).
psyduck6199's Avatar
psyduck6199 psyduck6199 is offline
 
Join Date: Sep 2007
Gender:
Nature: Relaxed
Posts: 57
yeah to change the backsprite its the same way but just make sure you go to previous pal and you don't need to export pallete if you have already put in the front sprite. oh ya i got the irfan view idea from u red yoshi
__________________
Reply With Quote
  #9    
Old March 7th, 2009 (02:08 PM).
Seb*s Seb*s is offline
 
Join Date: Feb 2009
Gender:
Posts: 12
Quote originally posted by RedYoshi:
The same way as this, except you index the back sprite and search for the back sprite in unLZ-Gba and then replace it

Hey, i followed your steps and they've worked fine and i've been able to import some, but when i import weaville it never aborts. Does it work with Weaville?
Reply With Quote
  #10    
Old March 7th, 2009 (05:53 PM).
RedYoshi's Avatar
RedYoshi RedYoshi is offline
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 22
Gender: Male
Posts: 215
Quote originally posted by Seb*s:
Hey, i followed your steps and they've worked fine and i've been able to import some, but when i import weaville it never aborts. Does it work with Weaville?
What do you mean by never aborts? Its only supposed to abort if the Sprite is too big and such.
__________________
Quote:
Originally Posted by Yoshi
Yoshi!
Reply With Quote
  #11    
Old March 7th, 2009 (06:53 PM).
psyduck6199's Avatar
psyduck6199 psyduck6199 is offline
 
Join Date: Sep 2007
Gender:
Nature: Relaxed
Posts: 57
if it doesn't abort then it still works
__________________
Reply With Quote
  #12    
Old March 7th, 2009 (10:15 PM).
Nearsighted king of Ice's Avatar
Nearsighted king of Ice Nearsighted king of Ice is offline
We'll get to that tomorrow
 
Join Date: Feb 2009
Location: Manehattan, Equestria
Age: 19
Gender: Male
Nature: Naive
Posts: 995
Send a message via Windows Live Messenger to Nearsighted king of Ice Send a message via Yahoo to Nearsighted king of Ice
how can you insert the trainer sprites? cuz i tried it and it said image not indexed
__________________

Make sense? Oh, what fun is there in making sense?

Black FC: 1592-5761-9212
Pokemon X FC: 2921-9174-9000
Reply With Quote
  #13    
Old March 7th, 2009 (10:35 PM).
RedYoshi's Avatar
RedYoshi RedYoshi is offline
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 22
Gender: Male
Posts: 215
Quote originally posted by pikachu_X:
how can you insert the trainer sprites? cuz i tried it and it said image not indexed
It's pretty much the same thing as Pokemon Sprites except you don't need a back sprite for trainer sprites. The sprite you are inserting is not indexed, thus you cannot import it into the rom.
__________________
Quote:
Originally Posted by Yoshi
Yoshi!
Reply With Quote
  #14    
Old March 8th, 2009 (12:19 AM).
Jerros's Avatar
Jerros Jerros is offline
TloS FTW!!!
 
Join Date: Feb 2008
Location: Alkmaar, Netherlands
Age: 23
Gender:
Nature: Quiet
Posts: 72
Very nice, but doesn't work for Emerald...
__________________
Reply With Quote
  #15    
Old March 8th, 2009 (12:24 AM).
Nearsighted king of Ice's Avatar
Nearsighted king of Ice Nearsighted king of Ice is offline
We'll get to that tomorrow
 
Join Date: Feb 2009
Location: Manehattan, Equestria
Age: 19
Gender: Male
Nature: Naive
Posts: 995
Send a message via Windows Live Messenger to Nearsighted king of Ice Send a message via Yahoo to Nearsighted king of Ice
tried it did not work in fire red turn the sprite into a scrambled image with a truck like image underneath it
__________________

Make sense? Oh, what fun is there in making sense?

Black FC: 1592-5761-9212
Pokemon X FC: 2921-9174-9000
Reply With Quote
  #16    
Old March 8th, 2009 (09:20 AM). Edited March 8th, 2009 by RedYoshi.
RedYoshi's Avatar
RedYoshi RedYoshi is offline
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 22
Gender: Male
Posts: 215
Quote originally posted by Jerros:
Very nice, but doesn't work for Emerald...
Actually it does. But in Emerald you have to also insert a 2nd sprite for the animation.

Here is a guide on how to do it on Emerald

http://www.pokecommunity.com/showthread.php?t=159773

Quote originally posted by pikachu_X:
tried it did not work in fire red turn the sprite into a scrambled image with a truck like image underneath it
Would it be something like this?




(Image was taken from HackMew's Knowledge)
__________________
Quote:
Originally Posted by Yoshi
Yoshi!
Reply With Quote
  #17    
Old March 8th, 2009 (01:06 PM).
madarawolf's Avatar
madarawolf madarawolf is offline
Espada Cuarta
 
Join Date: Nov 2008
Gender:
Posts: 56
How would you insert all the forms of arceus? I looked at pokemon with diferent forms and they were just put on one picture. so I did that, I took a picture with all the forms on it, and when I tried to insert unlz-gba just closed.
__________________
why yes I am made of awsome
Reply With Quote
  #18    
Old March 8th, 2009 (03:57 PM).
RedYoshi's Avatar
RedYoshi RedYoshi is offline
Wah! Yoshi!
 
Join Date: Feb 2008
Location: Yoshi's Island, DUH.
Age: 22
Gender: Male
Posts: 215
Quote originally posted by madarawolf:
How would you insert all the forms of arceus? I looked at pokemon with diferent forms and they were just put on one picture. so I did that, I took a picture with all the forms on it, and when I tried to insert unlz-gba just closed.
Certain Pokemon are like that, such as the Unown. To insert all forms of Arceus you would have to use up the 25 empty slots or Overwrite some of the other Pokemon and edit the evolution.

Example : Use Fire Stone on Arceus = Fire Type Arceus and to revert Arceus back to "Normal" Arceus use something like a Moon Stone
__________________
Quote:
Originally Posted by Yoshi
Yoshi!
Reply With Quote
  #19    
Old March 9th, 2009 (01:30 AM).
Rycanthropy's Avatar
Rycanthropy Rycanthropy is offline
Wrecking Ball
 
Join Date: Mar 2009
Location: India
Age: 20
Gender: Male
Nature: Jolly
Posts: 73
Thank you! It works very well, but I believe the finished sprite still needs some cleaning. I did this with a Gallade sprite and used a violet background, but when I finished Gallade had a slightly violet border. Anyway it's not really evident in game, so it works.
Reply With Quote
  #20    
Old March 10th, 2009 (10:08 AM).
madarawolf's Avatar
madarawolf madarawolf is offline
Espada Cuarta
 
Join Date: Nov 2008
Gender:
Posts: 56
Thanks, I had thought of that but I prefered not ot do it like that. Oh, well I guess thats just what I'll have to do.
__________________
why yes I am made of awsome
Reply With Quote
  #21    
Old March 15th, 2009 (02:04 PM).
The Prince of Sweet Sorrow's Avatar
The Prince of Sweet Sorrow The Prince of Sweet Sorrow is offline
La tristeza es mi sangre
Crystal Tier
 
Join Date: Feb 2009
Location: Witty
Age: 19
Gender: Male
Nature: Lonely
Posts: 3,319
Send a message via Skype™ to The Prince of Sweet Sorrow
Finally!Now,i know how to insert sprites!I got bored with mapping and scripting!
Thanx psyduck!
__________________
Character Interview | Take Off OOC / IC | Pair
Reply With Quote
  #22    
Old March 24th, 2009 (10:17 PM).
Perfect_Palkia_10's Avatar
Perfect_Palkia_10 Perfect_Palkia_10 is offline
Ruler of Space
 
Join Date: Apr 2008
Location: Between Dimensions
Age: 19
Nature: Naive
Posts: 28
Awesome tutorial. Thanks, you've really helped me out.
__________________

Reply With Quote
  #23    
Old March 26th, 2009 (10:59 PM).
ThunderEmblem's Avatar
ThunderEmblem ThunderEmblem is offline
 
Join Date: Mar 2009
Gender:
Posts: 24
Thank you so much man.One thing whats wrong with the blue outlining?Is there someway to fix or if i can make it black some how?
Reply With Quote
  #24    
Old March 28th, 2009 (12:05 PM).
psyduck6199's Avatar
psyduck6199 psyduck6199 is offline
 
Join Date: Sep 2007
Gender:
Nature: Relaxed
Posts: 57
yeah some pokemons have that blue outline just goto paint and fix it. its not that noticable anyways.
__________________
Reply With Quote
  #25    
Old March 31st, 2009 (12:09 AM).
onyx79's Avatar
onyx79 onyx79 is offline
Red Dead Revolver
 
Join Date: Jan 2009
Location: Orange Islands (=
Gender: Male
Nature: Modest
Posts: 503
I need to do all the ways here?because some are really hard...
and the unlz doesn't work...
it doesn't shows me the picture of my 4th pokemon...
ut shows nothing to me...
Reply With Quote
Reply
Quick Reply

Sponsored Links

You may also like.. (Beta)
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 03:41 PM.