The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Other Trainers Sprites Expansion (https://www.pokecommunity.com/showthread.php?t=363447)

Wesley FG February 18th, 2016 8:21 PM

Trainers Sprites Expansion
 
i need help for extend trainers sprite table work.

it is posible because each rom have diferenr number of trainers sprites
Ruby: 83
Firered: 148
Emerald: 93

I test to expand trainers sprites in Pokémon Firered. The limit for trainers sprites is 255 or FF, because the Trainer Sprite ID use only 1 byte for store your number. (FF - 1 = FE)

well have 3 tables for trainers sprites

*the first in one table is at x 23932c
and is formed with "08 01 00 00" ( 4 bytes per trainer)
148*4 = 592 (250 hex) bytes all table

i not understand very well this table
but have 4 trainers with diferent byte "08 02 00 00"

*the second is a table at x 23957c
it is a trainer sprite table, and have 8 bytes per trainer
148*8 = 1184 (4a0 hex) bytes all table

*the third is a table at x 239a1c
it is a trainer pallete table, and have 8 bytes per trainer
148*8 = 1184 (4a0 hex) bytes all table

Wesley FG March 16th, 2016 8:28 PM

well i solved this problem, can close it,
for people will do it, the problem is for extend more other two table

one table for trainer animation located at x 238E8C (4 bytes for trainer is 4x148)
and other table located at x 2390dc (4 bytes for trainer is 4x148) this table is a table of pointer, to a pointer to the animation table;

remeber: the limit is 255 trainers sprites or FE (becuse zero is one value too)
for use your new trainers use a tool called UNAMEDTRAINEREDITOR from Jambo and edit your ini information.

AtecainCorp. January 17th, 2017 2:11 AM

I make my own researches about TRAINER SPRITES Expadnding on Pokemon Ruby. And it was been easier than Pokemon Fire Red things. I only repleace 08 01 00 00 section in 0x1EC3F0 to new empty space. And adding for text 12 extra sprites.... After turn on game... It do not freezed when I using new sprite... So.... Pokemon Ruby Slovement is easy to do.

mbcn10ww May 26th, 2017 6:25 AM

Quote:

Originally Posted by Wesley FG (Post 9167420)
well i solved this problem, can close it,
for people will do it, the problem is for extend more other two table

one table for trainer animation located at x 238E8C (4 bytes for trainer is 4x148)
and other table located at x 2390dc (4 bytes for trainer is 4x148) this table is a table of pointer, to a pointer to the animation table;

remeber: the limit is 255 trainers sprites or FE (becuse zero is one value too)
for use your new trainers use a tool called UNAMEDTRAINEREDITOR from Jambo and edit your ini information.

I will start some research on adding more than 255 trainer sprites, because the game already uses 148, then it leaves only 107 free (not enough for me), since the tables' structures have a half word for the trainer image index, then I think it would be possible to modify its routine to check 2 bytes index instead of 1 byte. What do you think?

mbcn10ww June 3rd, 2017 12:38 PM

You can only expand the trainer's sprites up to 255 sprites. (But it will be 0xFE because the 0x0 is counted too.) I tested and it already have support for 2 bytes indexes. I tested only up to 512 (0x200), but I will try higher indexes to know if the max number is 0xFFFF or if there is a limiter.

desvol September 28th, 2017 7:43 PM

Quote:

Originally Posted by AtecainCorp. (Post 9550121)
I make my own researches about TRAINER SPRITES Expadnding on Pokemon Ruby. And it was been easier than Pokemon Fire Red things. I only repleace 08 01 00 00 section in 0x1EC3F0 to new empty space. And adding for text 12 extra sprites.... After turn on game... It do not freezed when I using new sprite... So.... Pokemon Ruby Slovement is easy to do.

Dear Atecain, do you have facebook or something I can contact you?

I currently during make a Emerald 802 , and I want to expand Trainer sprite, Emerald only have 93 trainer sprite, I wish to add more, do you know any tool or tutorial can share me?


All times are GMT -8. The time now is 8:40 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.