The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Emulation & ROM Hacking > Research & Development
Register New Account FAQ/Rules Chat Blogs Mark Forums Read

Notices

Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!
New threads in this forum are to be approved by a moderator before they are displayed. The thread revival limit does not apply here.



Reply
Thread Tools
  #1  
Unread November 9th, 2010, 03:28 PM
shiny quagsire's Avatar
shiny quagsire
I'm pixular!
 
Join Date: May 2009
Location: In a House, duh!
Age: 15
Gender: Male
Nature: Jolly
OK, so me and xGGxToiZ have decided to release our knowledge to the general public. This knowledge is the knowledge of trainer animations!

xGGxToiZ noticed the pointer I found to a blank animation while looking at the trainer's back animations (No, this is not the front animations!). Here's the origanal post:
Spoiler:

Quote:
Originally Posted by shiny quagsire View Post
I found some more animation data. It's huge though,
Code:
01 00 14 00
02 00 06 00 
03 00 06 00 
04 00 18 00 
00 00 01 00 
FF FF 00 00

01 00 14 00 
02 00 06 00 
03 00 06 00 
04 00 18 00 
00 00 01 00 
FF FF 00 00 

01 00 18 00 
02 00 09 00 
03 00 18 00 
00 00 09 00 
FF FF 00 00 

01 00 18 00 
02 00 09 00 
03 00 18 00 
00 00 09 00 
FF FF 00 00 

00 00 18 00 
01 00 09 00 
02 00 18 00 
00 00 09 00 
03 00 32 00 
FF FF 00 00
 
00 00 18 00 
01 00 09 00 
02 00 18 00 
00 00 09 00 
03 00 32 00 
FF FF 00 00
it's at offset 239EBB.There are 6 different trainers: the boy, the girl, trainer dude, old man, brendan, and may. plus, they're all the same!I played with the values, and it's correct. These are the animations for the trainer backsprites! Funny, there are pointers to 2347E8, which contains this:
Code:
00 00 00 00 FF FF 00 00
I fiddled with the first value, the frame, and changed it to 05, and check out the result!

Oh, and I was a boy at the time.


It was quite odd, because it also led to the trainer's sprite, and several other things we don't know.

So how do we do this? Simple! Let me quote xGGxTioZ:
Quote:
Originally Posted by xGGxTioZ
Okay, each trainer sprite has their own pointer to E8 47 23 08. So I searched for that and voila!
Code:
Table starts at: 0x238E8C
Select: 250h Bytes. (148d * 4d)
This means, each trainer can have their own number of frames! Exciting, huh? And if we can expand it, who knows what are the possibilities!
So, like he said, each trainer gets it's own animation pointer. So go to the table, and multiply your trainer's sprite's number (Starting from 0) by 4, and add it to the table offset. Now repoint the following pointer to free space, and write out your animation data. Here's how it works:

Animation data is a sequence of 4 bytes, giving data on various information, and ends in FF FF 00 00.

The first byte is the frame number from 0 Up to as many frames as you want!
The second byte is unknown, but I'll look into the ASM coding to figure it out.
The third byte is the duration. 0x10 is about a half second.
The fourth byte is unknown

After you've typed up as many of these sequences you want, end it in FF FF 00 00. Here's one I used for Pokemon Chrome:

Code:
00 00 00 00
02 00 FE 00
02 00 30 00
01 00 0F 00
00 00 30 00
FF FF 00 00
I'm not sure why I used the 0's, but it works. This is a good example of going in any order. I went from my 3rd frame, to my second, to my first. The duration of 30 at the end delays when the pokemon are sent out.
__________________




Last edited by shiny quagsire; November 10th, 2010 at 11:06 PM.
Reply With Quote
  #2  
Unread November 10th, 2010, 02:43 PM
diegoisawesome's Avatar
diegoisawesome
Working on Shining Opal, kinda
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 16
Gender: Male
Nature: Quirky
Quote:
Originally Posted by shiny quagsire View Post
OK, so me and xGGxToiZ have decided to release our knowledge to the general public. This knowledge is the knowledge of trainer animations!
I'm not entirely sure about this... This seems to be for trainer backsprites, but all throughout the thread, you mention "trainer sprites"...
Is this for trainer front- or back-sprites?
EDIT: I see. In this thread, there's info on the frames for back sprites AND for front sprites.
Awesome!
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds

Last edited by diegoisawesome; November 10th, 2010 at 02:49 PM.
Reply With Quote
  #3  
Unread November 10th, 2010, 02:50 PM
shiny quagsire's Avatar
shiny quagsire
I'm pixular!
 
Join Date: May 2009
Location: In a House, duh!
Age: 15
Gender: Male
Nature: Jolly
It's fro the front sprites. Each sprite has their own pointer in the table at 238E8C
__________________



Reply With Quote
  #4  
Unread November 10th, 2010, 02:54 PM
diegoisawesome's Avatar
diegoisawesome
Working on Shining Opal, kinda
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 16
Gender: Male
Nature: Quirky
Quote:
Originally Posted by shiny quagsire View Post
It's fro the front sprites. Each sprite has their own pointer in the table at 238E8C
Yeah, I saw. But there's also info for the back sprites, which is cool, too.
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
Reply With Quote
  #5  
Unread November 10th, 2010, 02:56 PM
shiny quagsire's Avatar
shiny quagsire
I'm pixular!
 
Join Date: May 2009
Location: In a House, duh!
Age: 15
Gender: Male
Nature: Jolly
Quote:
Originally Posted by diegoisawesome View Post
Yeah, I saw. But there's also info for the back sprites, which is cool, too.
Yeah, that was how he found it. It was just actually a post from the pokemon animation thread.
__________________



Reply With Quote
  #6  
Unread November 10th, 2010, 03:02 PM
diegoisawesome's Avatar
diegoisawesome
Working on Shining Opal, kinda
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 16
Gender: Male
Nature: Quirky
Quote:
Originally Posted by shiny quagsire View Post
Yeah, that was how he found it. It was just actually a post from the pokemon animation thread.
Ahh, I see.
Both are still interesting discoveries, though.
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
Reply With Quote
  #7  
Unread November 10th, 2010, 03:49 PM
altariaking's Avatar
altariaking
Needs NO VMs...
 
Join Date: Dec 2009
Location: Scotland, Lesmahagow
Age: 38
Gender: Male
Nature: Naive
Send a message via Windows Live Messenger to altariaking
Yay! I already had the offset for Ruby but it's good to see you've released it to everyone now
__________________
http://www.pokecommunity.com/member.php?u=253113
Reply With Quote
  #8  
Unread November 10th, 2010, 05:44 PM
knizz's Avatar
knizz
 
Join Date: Aug 2007
Great find! (Why didn't you tell me about this earlier?!)

So... which animation is front and which is back?
__________________
Firered IDA 6.1 DB Feb 8: https://www.dropbox.com/s/hvvmxxoo1dkmdzc/firered.idb
What I do: http://www.pokecommunity.com/search....&starteronly=1
VBA-M with lua scripting support / Dysfunctional Systems Episode 1 Opening
When you don’t create things, you become defined by your tastes rather than ability.

Last edited by knizz; November 10th, 2010 at 06:05 PM.
Reply With Quote
  #9  
Unread November 10th, 2010, 11:05 PM
shiny quagsire's Avatar
shiny quagsire
I'm pixular!
 
Join Date: May 2009
Location: In a House, duh!
Age: 15
Gender: Male
Nature: Jolly
Quote:
Originally Posted by knizz View Post
Great find! (Why didn't you tell me about this earlier?!)

So... which animation is front and which is back?
I couldn't tell you because I promised xGGxTioZ to keep it a secret. In fact, he posted this video in the pokemon animations thread. (Which he actually made, but he never told anyone that)

Spoiler:


The back animations are at 239EBB, and the front onse are in a table of pointers to each trainer's animation at 238E8C
__________________



Reply With Quote
  #10  
Unread September 24th, 2012, 11:20 PM
alypkm
Unhatched Egg
 
Join Date: Sep 2009
Gender: Male
please How can I animate the pokemon too in fire red ? and where do I put this code ?
Reply With Quote
  #11  
Unread September 25th, 2012, 01:27 AM
shiny quagsire's Avatar
shiny quagsire
I'm pixular!
 
Join Date: May 2009
Location: In a House, duh!
Age: 15
Gender: Male
Nature: Jolly
Quote:
Originally Posted by alypkm View Post
please How can I animate the pokemon too in fire red ? and where do I put this code ?
If you scrolled down in R&D you'd find it.
__________________



Reply With Quote
  #12  
Unread September 29th, 2012, 07:38 PM
alypkm
Unhatched Egg
 
Join Date: Sep 2009
Gender: Male
Quote:
Originally Posted by shiny quagsire View Post
If you scrolled down in R&D .
I'm using the HEX editor in NSE..I searched the Sprite table and entered this code then the game freeze once I start a wild battle even after I added 2 sprites for the pokemon.

how do I repoint it to another offset ?
Reply With Quote
  #13  
Unread January 11th, 2013, 01:50 AM
SneakyEpicface11's Avatar
SneakyEpicface11
PkMnMaster Ben
 
Join Date: Dec 2012
Location: Johto
Gender: Male
Nature: Calm
Send a message via Skype™ to SneakyEpicface11
Hmm.... seems complicated... that is why I do not do rom hacking xD.
__________________
Work it harder! Make it better! Do it faster!

"Go Rattata!" - Youngster Joey
Reply With Quote
  #14  
Unread April 12th, 2013, 11:14 PM
robin22gongon's Avatar
robin22gongon
Eevee
 
Join Date: Sep 2012
Location: Want to know? VM me.
Age: 15
Gender: Male
Nature: Quirky
Send a message via Windows Live Messenger to robin22gongon
What's the Final Code? I'm using FR and I need 3 frames each for some trainers. I can apply this to whoever I just want animated right?
__________________
LET'S PARTY!
Reply With Quote
  #15  
Unread April 13th, 2013, 06:24 AM
shiny quagsire's Avatar
shiny quagsire
I'm pixular!
 
Join Date: May 2009
Location: In a House, duh!
Age: 15
Gender: Male
Nature: Jolly
Quote:
Originally Posted by robin22gongon View Post
What's the Final Code? I'm using FR and I need 3 frames each for some trainers. I can apply this to whoever I just want animated right?
Um, code? I guess the closest thing we have to code is ASM, but ff you mean hex it's at the bottom of the post.
__________________



Reply With Quote
  #16  
Unread May 1st, 2013, 06:37 AM
hackstar's Avatar
hackstar
is in trouble!
 
Join Date: Jan 2013
Location: Dhaka
Gender: Male
Nature: Bashful
Is animated trainer sprite is working?
Reply With Quote
Reply
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. The time now is 11:54 AM.


Style by Perdition Haze, artwork by Sa-Dui.
Like our Facebook Page Follow us on TwitterMessage Board Statistics | © 2002 - 2013 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2013 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 posts belong to the user.