The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Research & Development
Sign Up Rules/FAQ Live Battle 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!
Research & Development programs in this forum are subject to moderator approval before they are displayed.

Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #1    
Old April 28th, 2010 (02:43 PM).
Muffin™'s Avatar
Muffin™
Knows your age
 
Join Date: Dec 2009
Location: sucking balls
Age: 4
Gender: Male
Nature: Calm
Send a message via AIM to Muffin™
Alright. So we know that move animations in the generations are part of the game to make the Pokemon's move unique.



Now, I was thinking: Could me edit these animations? It could be complicated, but could be done, or, it could be impossible. Any ideas you have that could make this happen?

I was thinking that we could get a spriter to make the move(?) and insert it somehow... by ASM hacking or HEX editing? I don't know yet, but maybe we could come up with an idea to edit the move animation.
__________________
>>>/v/
Reply With Quote
  #2    
Old April 29th, 2010 (01:09 PM).
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
first of all, anything is possible (within reason of course...) for the games.
out of reason involves:
writing to a file
controlling anything outside of the gba memory
and there are some rips of d/p effects on tsr i think...
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #3    
Old April 29th, 2010 (01:34 PM).
altariaking's Avatar
altariaking
Needs NO VMs...
 
Join Date: Dec 2009
Location: Scotland, Lesmahagow
Age: 40
Gender: Male
Nature: Naive
Send a message via Windows Live Messenger to altariaking
can't this be done whith unlz gba?
__________________
http://www.pokecommunity.com/member.php?u=253113
Reply With Quote
  #4    
Old April 29th, 2010 (02:25 PM).
giradialkia's Avatar
giradialkia
Community Supporter
 
Join Date: Apr 2009
Location: Ireland
Age: 21
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to giradialkia
Quote:
Originally Posted by altariaking View Post
can't this be done whith unlz gba?
Well...
Various sprites and backgrounds for the moves can be edited, but I'd imagine people would also like to be able to edit how the move animations actually... Move, y'know? For example, the current GBA FlameThrower animation is like a streaming line of the same fire-sprite, whereas in Gen 4 it's like a proper billowing fire. Sure, it'd be near impossible to imitate that kind of quality in the 3rd Gen games, but to edit the pattern made by the move sprites would be cool.
__________________

This one's called 'Red', and it's actually kinda Pokémon themed, so have a listen! Check out the links below for more stuff, if you like this!



This is the Doctor
This is my Soundcloud
This is my bandcamp

My Pokémon Y character is the same as my username. If you see me as a Passerby let me know! I tend to get a lot of Passerby requests and I often wonder if it's people from this site.
Reply With Quote
  #5    
Old April 30th, 2010 (06:42 PM).
Dabutcha's Avatar
Dabutcha
Creator of the Alphanigma Saga
 
Join Date: Jan 2010
Location: Twilight sucks
Gender: Male
I'm sure that somewhere in Unlz you will find the attack animations. Look around all the pictures you may have called "useless".
__________________


What people say when a new game comes out: Why dont we widen our range by hacking the new game?

What they mean: Lets abandon knowledge and tools on things we know, purge previous gen hacking, and start a new field that we probably wont master.

For this reason, New pokemon games make me die inside just a little.

95% of all Pokemon hacks are of the 3rd Generation, majority of them being FireRed, if you believe that the 2nd generation should be hacked more often, copy and paste this into your signature.

Charlie R/G/E/D
Reply With Quote
  #6    
Old April 30th, 2010 (11:58 PM).
Satoshi Ookami's Avatar
Satoshi Ookami
Memento Mori
Community Supporter
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 22
Gender: Male
Nature: Calm
Of course it's possible through UnlZ
Flora Sky has it
Sky made animations for Shadow Force, Roar of Time and some other moves =)
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
Reply With Quote
  #7    
Old May 1st, 2010 (07:38 AM).
NatureKeeper
No longer active here.
 
Join Date: Jun 2008
Location: Somewhere.
Age: 17
Gender: Male
Nature: Hasty
Send a message via Windows Live Messenger to NatureKeeper Send a message via Skype™ to NatureKeeper
Quote:
Originally Posted by Ash493 View Post
Of course it's possible through UnlZ
Flora Sky has it
Sky made animations for Shadow Force, Roar of Time and some other moves =)
The graphics are edited. However, the move's animation itself cannot be edited. With normal means, at least. For example, I want to change bullet seed to Dark Pulse, with an animation very similar to that of DPPtHGSS. Graphics only cannot do the desired job.
Reply With Quote
  #8    
Old May 1st, 2010 (11:58 AM).
560cool.'s Avatar
560cool.
Probably back.
 
Join Date: Aug 2009
Location: Eastern Europe
Age: 16
Gender: Male
Nature: Relaxed
I've done it accidentaly while messing with unlzGBA.
I found the Surf animation, the Confuse Ray one ... it is quite simple, but key word is "messing" while you need something serious ... x_x
__________________
Well, okay. I'm here just to chat with people. Don't really care about signatures and stuff.



Reply With Quote
  #9    
Old May 1st, 2010 (01:00 PM).
AlexAhnon's Avatar
AlexAhnon
Do you believe in yourself?
Community Supporter
 
Join Date: Feb 2008
Location: You know where.
Send a message via Skype™ to AlexAhnon
Quote:
Originally Posted by 560cool. View Post
I've done it accidentaly while messing with unlzGBA.
I found the Surf animation, the Confuse Ray one ... it is quite simple, but key word is "messing" while you need something serious ... x_x
That's the Graphics, not the animations.

Yeah, it would be quite a thing to be able to edit the animations of attacks, however, I don't think it's possible through Hex editing... Or it may be, but for me it sounds a bit complex to edit it with a Hex editor.

Another suggestion that can be taken in mind, why not make a list, listing all the graphics for the different attacks? And I'm not sure, but it's possible that some attacks share the same images.

However, I have no experience with finding this kind of stuff, so I'll leave it to those who know.
__________________
Reply With Quote
  #10    
Old May 4th, 2010 (07:46 PM).
kittopian's Avatar
kittopian
Source engine coder
 
Join Date: Mar 2010
Location: Lost in a poorly sorted filesystem
Nature: Docile
In the attack data table, there might be a pointer to graphics and maybe a byte or two on the actual animations...
If so it might be possible to repoint and extend the table to program in fully functional moves with animations and other aspects, without overwriting.

If anyone experianced in the field, can they can find the time... Look in to it!
__________________
<Insert content here>
Reply With Quote
  #11    
Old January 26th, 2012 (05:46 AM).
whacky
Beginning Trainer
 
Join Date: Jan 2012
Gender: Male
From what I've seen in UNLZ-GBA, the animations are just frames that are in the same picture aligned in increasing order vertically!
Reply With Quote
  #12    
Old January 26th, 2012 (07:22 AM).
Jambo51's Avatar
Jambo51
Glory To Arstotzka
 
Join Date: Jun 2009
Gender: Male
Nature: Quiet
I know the location of the move animation table in FR. It's at 0x1C68F4.
Each pointer in the table (and the table is 355 entries long - 1 for each move!) points to a script of sorts. Sadly, we know very little about these scripts, apart from tha fact that 00 loads graphics, 02 executes animations and 05 seems to be a waitstate sort of command -That is, it waits for the already executed animations to finish before continuing.

That is the sum of our knowledge on the move animations. Hope that helps.
__________________
Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
Reply With Quote
  #13    
Old January 26th, 2012 (10:26 AM).
droomph's Avatar
droomph
mmm gurl that 90s
Community Supporter
 
Join Date: Sep 2011
Location: bar'jách
Age: 17
Gender: Male
Nature: Impish
Quote:
Originally Posted by Jambo51 View Post
I know the location of the move animation table in FR. It's at 0x1C68F4.
Each pointer in the table (and the table is 355 entries long - 1 for each move!) points to a script of sorts. Sadly, we know very little about these scripts, apart from tha fact that 00 loads graphics, 02 executes animations and 05 seems to be a waitstate sort of command -That is, it waits for the already executed animations to finish before continuing.

That is the sum of our knowledge on the move animations. Hope that helps.
What is the "end" command?
__________________
did u no there r 21 letters in the alphabet
o i forgot 5
uraqt


Reply With Quote
  #14    
Old January 26th, 2012 (10:39 AM).
Tropical Sunlight's Avatar
Tropical Sunlight
The Faltine
 
Join Date: Mar 2008
Location: Slovenia
Age: 18
Gender: Male
Send a message via Windows Live Messenger to Tropical Sunlight
Chaos Rush has had a lot of luck with this, even manually replacing a move's background
Reply With Quote
  #15    
Old February 16th, 2012 (09:06 PM).
droomph's Avatar
droomph
mmm gurl that 90s
Community Supporter
 
Join Date: Sep 2011
Location: bar'jách
Age: 17
Gender: Male
Nature: Impish
I would also like to mention that when I replaced the pointer to 0x8000000, the game restarted, which means that it has something to do with ARM.
__________________
did u no there r 21 letters in the alphabet
o i forgot 5
uraqt


Reply With Quote
  #16    
Old February 27th, 2012 (01:39 AM).
Xenesis's Avatar
Xenesis
Syogun Changer
 
Join Date: May 2006
Location: Australia
Nature: Sassy
Send a message via AIM to Xenesis Send a message via Windows Live Messenger to Xenesis
Quote:
Originally Posted by droomph View Post
I would also like to mention that when I replaced the pointer to 0x8000000, the game restarted, which means that it has something to do with ARM.
Actually, it doesn't mean that in the slightest.

0x800000 is the entry point for the ROM - it's where it starts in RAM. (Eg, when you turn on your GBA, it starts running the code at 0x8000000 in ARM mode).

What's happening is that these pointers are obviously to custom assembly code for each attack in some fashion - when you change the pointer to 0x08000000 you're telling the game whenever it runs to this pointer to 'run from the start of the rom, and run in ARM mode'. Hence, why it resets. If you changed it to 0x08000001 it would probably crash, because it goes to the ROM entry point, except in THUMB mode.

Apologies if this seems overly pedantic, but it's just for the benefit for anyone else that's reading the topic.
Reply With Quote
  #17    
Old April 10th, 2012 (09:20 PM).
D3StR0Y4mike
Dragon Tamer
 
Join Date: Feb 2012
Gender: Male
Nature: Quirky
The FireRed hack Pokemon Vega has lots of custom animations...
use it for research
Reply With Quote
  #18    
Old May 7th, 2012 (11:00 PM). Edited May 7th, 2012 by Chaos Rush.
Chaos Rush's Avatar
Chaos Rush
im sexy and i know it
 
Join Date: May 2007
Location: Taylor Swift
Gender: Male
Nature: Adamant
Quote:
Originally Posted by Jambo51 View Post
I know the location of the move animation table in FR. It's at 0x1C68F4.
Each pointer in the table (and the table is 355 entries long - 1 for each move!) points to a script of sorts. Sadly, we know very little about these scripts, apart from tha fact that 00 loads graphics, 02 executes animations and 05 seems to be a waitstate sort of command -That is, it waits for the already executed animations to finish before continuing.

That is the sum of our knowledge on the move animations. Hope that helps.
I just thought of something, why try to edit the scripts with hex? Aren't they in ASM?

Now, I haven't tried this (can't right now, procrastinating on studying for school atm), but can't we easily view the animation routines with VBA-SDL-H? I'm assuming that would make things a crapload easier to make custom animations. If I recall correctly, VBA-SDL-H has a function where you can decompile thumb routines if you know the offset.

I'm assuming this is what Pokemon Vega did to create nearly flawless animations, and this is what I'm planning on doing in the near future (if it works)

EDIT: Just remembered, regular VBA has a function to view thumb routines, while VBA-SDL-H lets you view last executed thumb routine

EDIT: nevermind, just read JPAN's post in the battle script thread... so apparently it is a scripting language?
__________________
Reply With Quote
  #19    
Old May 8th, 2012 (07:19 AM).
DoesntKnowHowToPlay's Avatar
DoesntKnowHowToPlay
some loser
 
Join Date: Jan 2012
It is a scripting language, from what I've seen. Commands can be an arbitrary number of bytes, depending on which one. Now that I think about it we probably don't even need to know the method offsets- VBA-SDL-H has a function to break on reading a byte, which should let us find the animation code pretty easily.

Anyway, some of the ones I've been able to figure out:

00 XX XX: Loads sprite data. These are usually at the very beginning of the script, although there doesn't seem to be any obvious problem with having them in the middle.

04 XX: Delays script execution for XX units of time (frames? not really sure).

05: Halts script execution until currently running animations finish.

08: Ends the script. There *are* jumps in this scripting language, though since they point to a location and are followed by the address this means any block of script always ends in 08.

19 XX XX: Plays a sound. Might be able to play music if given the right parameters, I haven't mess with this one much.
Reply With Quote
  #20    
Old May 8th, 2012 (08:26 AM).
droomph's Avatar
droomph
mmm gurl that 90s
Community Supporter
 
Join Date: Sep 2011
Location: bar'jách
Age: 17
Gender: Male
Nature: Impish
Hey, colcolstyles has a post in the battle animation thread about where you can find animation script asm, and much like how you can decompile an OW script command's ASM that could probably help you too.

Also iirc 0C XX XX is a transparency command.
__________________
did u no there r 21 letters in the alphabet
o i forgot 5
uraqt


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
Minimum Characters Per Post: 25



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


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 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 - 2014 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.