Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2017-03-30 19:13:29

RadonUsedMimic
Member
From: Texas
Registered: 2016-11-22
Post 7/127
Website

Editing, Adding, Evolving Pokemon, Other.

I'm hacking Pokemon Crystal with the pokecrystal disassembly. But I'm starting to get in a few struggles. The first one I'd like to get out of the way is: How do I get the disassembly to know if I want to evolve a Pokemon with a certain move (Ex: Yanma evolves into Yanmega with Ancient Power in their moveset.) ((I'm also adding in Sylveon, and it evolves from Eevee with high happiness and at least one fairy type move, so I wanna know how that works, too.))? And if I wanna add Pokemon like Yanmega, how do I edit .pic, .pal files, insert in cries, and put in the animation? Thanks!


Caramba! I hate it when there’s a lot of hair on the floor! Here, I’ll go clean up!
Woo! Feels good when the floor is clean, doesn’t it? Let’s groove.

Offline

#2 2017-04-04 21:58:48

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 416/450
Website

Re: Editing, Adding, Evolving Pokemon, Other.

You can add new evolution types and program their functionality here: https://github.com/pret/pokecrystal/blo … evolve.asm. Evolution type constants are defined here: https://github.com/pret/pokecrystal/blo … ts.asm#L72

To edit pics use gfx.py (https://github.com/pret/pokemon-reverse … ols/gfx.py) for converting your png files to 2bpp and to compress them (or from 2bpp.lz to png if you want to edit existing sprites). For example, run:

python extras/pokemontools/gfx.py png gfx/pics/abra/front.2bpp.lz

to convert the abra front pic inside gfx/pics/abra to png format

pal files can simply be edited with a hex editor.

Offline

#3 2017-04-04 22:35:23

RadonUsedMimic
Member
From: Texas
Registered: 2016-11-22
Post 8/127
Website

Re: Editing, Adding, Evolving Pokemon, Other.

Thanks! I working on that now! But I also want to know how to add gendered sprites into the game like heartgold and soulsilver (Ex. Pikachu's female counterpart had a heart-shaped tail.). Thanks!


Caramba! I hate it when there’s a lot of hair on the floor! Here, I’ll go clean up!
Woo! Feels good when the floor is clean, doesn’t it? Let’s groove.

Offline

#4 2017-04-05 04:09:09

Mmmmmm
Member
From: West Virginia
Registered: 2015-05-17
Post 250/261

Re: Editing, Adding, Evolving Pokemon, Other.

I imagine the easiest way to do that would be to copy the method Unown uses to load different sprites, and alter it to check for IVs (since that's how gender is determined in Gen 2) and load a sprite based on that. Rangi has already done that, not with gender but with other conditionals like Pikachu loading special sprites if it knows Surf or Fly.

Last edited by Mmmmmm (2017-04-05 04:09:45)

Offline

#5 2017-04-05 18:51:18

comet
Member
Registered: 2012-04-09
Post 673/679

Re: Editing, Adding, Evolving Pokemon, Other.

Use GetGender (main.asm). https://github.com/pret/pokecrystal/blo … .asm#L3897

Last edited by comet (2017-04-05 18:51:33)

Offline

#6 2017-04-16 21:56:20

RadonUsedMimic
Member
From: Texas
Registered: 2016-11-22
Post 9/127
Website

Re: Editing, Adding, Evolving Pokemon, Other.

Crystal_ wrote:

You can add new evolution types and program their functionality here: https://github.com/pret/pokecrystal/blo … evolve.asm. Evolution type constants are defined here: https://github.com/pret/pokecrystal/blo … ts.asm#L72

To edit pics use gfx.py (https://github.com/pret/pokemon-reverse … ols/gfx.py) for converting your png files to 2bpp and to compress them (or from 2bpp.lz to png if you want to edit existing sprites). For example, run:

python extras/pokemontools/gfx.py png gfx/pics/abra/front.2bpp.lz

to convert the abra front pic inside gfx/pics/abra to png format

pal files can simply be edited with a hex editor.

I'm running into another problem. How do I open the program (gfx.py) step-by-step?


Caramba! I hate it when there’s a lot of hair on the floor! Here, I’ll go clean up!
Woo! Feels good when the floor is clean, doesn’t it? Let’s groove.

Offline

#7 2017-04-18 23:49:00

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 417/450
Website

Re: Editing, Adding, Evolving Pokemon, Other.

Run the command above in the cygwin terminal inside your pokecrystal repository. It's just an example that will convert the compressed abra pic to png. Use '2bpp' or 'lz' instead of 'png' to convert png images to 2bpp, and to compress 2bpp images respectively. I believe you have to specify the pic size though, as in front.6x6.png (for a 6x6 tile pic for example), otherwise they'll end up scrambled. I'm not the most adequate person to talk about a tool I didn't make and never had to use anyway though.

Offline

Board footer

Powered by FluxBB