The PokéCommunity Forums Fan Games ROM Hacking Research & Development
Development Animated Sprites in Ruby and FireRed

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!

Reply
 
Thread Tools
  #51    
Old December 4th, 2011 (1:02 PM). Edited December 7th, 2011 by droomph.
droomph's Avatar
droomph droomph is offline
weeb
  • Crystal Tier
 
Join Date: Sep 2011
Location: nowhere spectacular
Age: 20
Gender: Male
Nature: Impish
Posts: 4,291
Quote:
Originally Posted by Chaos Rush View Post
Um what? I have no idea what you're talking about. I simply found the table by going to where the sprite stuff was in Emerald in a hex editor, then I scrolled up and I'm like, "oh look, it's a table. Let's mess with it". Then I made Bulbasaur upside-down.
Ah. I couldn't ever concentrate that long :\

So by "sprite stuff" you mean the region generally around 0x300000 to 0x400000, right? I'll be looking.

:DThat's what I was looking for.

MINDBLOW: Why would you need a pointer to a pointer to the actual data? Seriously?

EDIT: also, is there any way to trace the graphics on GBA? We can search it up that way?
__________________
did u no there r 21 letters in the alphabet
o i forgot 5
uraqt


Reply With Quote

Relevant Advertising!

  #52    
Old March 22nd, 2012 (11:35 PM).
sufiz's Avatar
sufiz sufiz is offline
     
    Join Date: Apr 2008
    Location: Malaysia
    Gender:
    Nature: Docile
    Posts: 8
    how to find the offset on Hex Workshop? help anyone?
    Reply With Quote
      #53    
    Old May 15th, 2012 (4:30 AM).
    Haru~'s Avatar
    Haru~ Haru~ is offline
    Can't resist the chubbiness :3
       
      Join Date: Mar 2012
      Gender: Female
      Nature: Modest
      Posts: 16
      Quote:
      Originally Posted by SSJ4 Furanki View Post
      I altered the ff ff to fe ff, and it seems to work it won't stop playing the animation and it looks like it's non glitchy.

      I'll get a video of it up. I'll add a second frame!

      EDIT: Not quite, the battle won't totally load, but I'll keep playing with it.
      It seems that I've found a "loop" command for those animation codes.
      Use: FD FF XX XX ; where XX XX is the number of times the animation will loop (In little endian, of course).
      Though it seems to have a limit, the value can only reach ~FDFD times. (From my testing, FFFF crashes the game.)

      Note: It repeats the code from the beginning up to the last code before the loop and when the limit is reached, it will proceed to the next code, if any.
      Oh, when you do the code like this:
      Code:
      00 00 09 00 01 00 09 00 FD FF 01 00 FD FF 01 00 FF FF 00 00
      'From frame 1 to frame 2 and the animation repeats over and over to no end...
      It seems to loop infinitely with no adverse effects at all.
      That means, B/W-style pokemon is indeed possible.

      I've tested all this with trainer animations and it works perfectly.
      I ought to share it here because I'm quite sure that this can also apply
      to pokemon animations. But then I could be wrong...

      I might post a video sometime.
      Reply With Quote
        #54    
      Old May 15th, 2012 (9:55 AM).
      Tetra's Avatar
      Tetra Tetra is offline
      Fumes Of Fury
      • Crystal Tier
       
      Join Date: Sep 2009
      Gender: Male
      Nature: Lax
      Posts: 1,088
      Pawniard has a very simple animation. I have ripped it, and put it into 10 different pictures that are all 64x64. If we do ever have sprites working like they are in B/W, i'll carry on. I wonder how much free space it would take if you would do that for every single Pokémon... you'd have to expand the ROMs to 32MB. But you never know.
      Reply With Quote
        #55    
      Old May 15th, 2012 (2:45 PM).
      Shiny Quagsire's Avatar
      Shiny Quagsire Shiny Quagsire is offline
      I'm Still Alive, Elsewhere
         
        Join Date: May 2009
        Location: Hoenn Safari Zone
        Age: 19
        Gender: Male
        Nature: Jolly
        Posts: 700
        Quote:
        Originally Posted by Haru~ View Post
        It seems that I've found a "loop" command for those animation codes.
        Use: FD FF XX XX ; where XX XX is the number of times the animation will loop (In little endian, of course).
        Though it seems to have a limit, the value can only reach ~FDFD times. (From my testing, FFFF crashes the game.)

        Note: It repeats the code from the beginning up to the last code before the loop and when the limit is reached, it will proceed to the next code, if any.
        Oh, when you do the code like this:
        Code:
        00 00 09 00 01 00 09 00 FD FF 01 00 FD FF 01 00 FF FF 00 00
        'From frame 1 to frame 2 and the animation repeats over and over to no end...
        It seems to loop infinitely with no adverse effects at all.
        That means, B/W-style pokemon is indeed possible.

        I've tested all this with trainer animations and it works perfectly.
        I ought to share it here because I'm quite sure that this can also apply
        to pokemon animations. But then I could be wrong...

        I might post a video sometime.
        Awesome.

        Both animation systems are exactly identical, so it should work both ways. However, it may present a few issues with Pokemon animations. I'd test it, but I can't get my Windows multiboot to work so I can't work on hacks at the moment.
        __________________



        Reply With Quote
          #56    
        Old May 15th, 2012 (4:09 PM).
        Darthatron's Avatar
        Darthatron Darthatron is offline
        巨大なトロール。
        • Silver Tier
         
        Join Date: Jan 2006
        Location: Melbourne, Australia
        Age: 25
        Gender: Male
        Nature: Modest
        Posts: 1,152
        Quote:
        Originally Posted by atif View Post
        Pawniard has a very simple animation. I have ripped it, and put it into 10 different pictures that are all 64x64. If we do ever have sprites working like they are in B/W, i'll carry on. I wonder how much free space it would take if you would do that for every single Pokémon... you'd have to expand the ROMs to 32MB. But you never know.
        Uncompressed, 10 sprites for every Gen 3 Pokemon would take up about 7.7mb. So We can guess about... 5mb, I guess. So yeah, you would HAVE to expand.
        __________________
        あなた は しきしゃ です
        わたし は ばか です
        Reply With Quote
          #57    
        Old May 16th, 2012 (2:32 PM).
        ShadowTails's Avatar
        ShadowTails ShadowTails is offline
        I'm working on a better Avatar
           
          Join Date: Aug 2005
          Age: 25
          Gender:
          Nature: Relaxed
          Posts: 638
          Would it be possible to remove animations from Emerald using this knowledge? I'm just curious because I was never a fan of the two frame animation in Emerald and it's the game I want to hack.
          __________________
          "This is the best signature on this website."- You, reading this.
          Reply With Quote
            #58    
          Old May 16th, 2012 (2:42 PM).
          Hideos Hideos is offline
             
            Join Date: May 2012
            Posts: 19
            Quote:
            Originally Posted by ShadowTails View Post
            Would it be possible to remove animations from Emerald using this knowledge? I'm just curious because I was never a fan of the two frame animation in Emerald and it's the game I want to hack.
            It is possible, just requires some research and effort. You could also replace the second frame with the first one, definitely not the best solution but no one would notice anyway.
            __________________

            Reply With Quote
              #59    
            Old May 16th, 2012 (3:04 PM).
            ShadowTails's Avatar
            ShadowTails ShadowTails is offline
            I'm working on a better Avatar
               
              Join Date: Aug 2005
              Age: 25
              Gender:
              Nature: Relaxed
              Posts: 638
              Well, I found the stuff that controls the animations and which frames play, so I suppose I could just make it so the second frame never plays, but the sprites would still bounce around all over the place. 305F68 is ? the place holder, and then after each FFFF is the end of the animation as has already been stated in the thread. Bulbasaur is at 305F76 and so on and so forth with the FFFF's. I suppose I could repoint this stuff and make the animations non existent that way? somehow? I mean I dunno, if I just did that it wouldn't change the actual animation part of the animations, but I suppose this is a fix, as it doesn't ever call upon the second frame if I edit them this way.
              __________________
              "This is the best signature on this website."- You, reading this.
              Reply With Quote
                #60    
              Old May 19th, 2012 (12:16 AM). Edited May 22nd, 2012 by Haru~.
              Haru~'s Avatar
              Haru~ Haru~ is offline
              Can't resist the chubbiness :3
                 
                Join Date: Mar 2012
                Gender: Female
                Nature: Modest
                Posts: 16
                Quote:
                Originally Posted by atif View Post
                Pawniard has a very simple animation. I have ripped it, and put it into 10 different pictures that are all 64x64. If we do ever have sprites working like they are in B/W, i'll carry on. I wonder how much free space it would take if you would do that for every single Pokémon... you'd have to expand the ROMs to 32MB. But you never know.
                I recommend you stick with 8 sprites each (64x512; anything larger than that may cause the game to crash upon loading the sprite). Each 64x512 image when compressed takes about 0x1954(?) bytes. Wait, I was wrong with the size. It's different for each pokemon **facepalms** but it should take more or less that amount.
                Reply With Quote
                  #61    
                Old May 19th, 2012 (3:01 AM).
                Tetra's Avatar
                Tetra Tetra is offline
                Fumes Of Fury
                • Crystal Tier
                 
                Join Date: Sep 2009
                Gender: Male
                Nature: Lax
                Posts: 1,088
                Okay, that should work. Victini has 7 sprites, but i'll see if I can expand it to 8.
                Reply With Quote
                  #62    
                Old May 19th, 2012 (5:35 PM).
                ShadowTails's Avatar
                ShadowTails ShadowTails is offline
                I'm working on a better Avatar
                   
                  Join Date: Aug 2005
                  Age: 25
                  Gender:
                  Nature: Relaxed
                  Posts: 638
                  I understand, I addressed that later in my post that they'd still stretch and bounce.
                  __________________
                  "This is the best signature on this website."- You, reading this.
                  Reply With Quote
                    #63    
                  Old May 29th, 2012 (6:38 AM).
                  destinedjagold's Avatar
                  destinedjagold destinedjagold is offline
                  Oh Hai Thar~
                  • Silver Tier
                   
                  Join Date: May 2007
                  Location: Philippines
                  Age: 26
                  Gender: Male
                  Nature: Careful
                  Posts: 8,507
                  Quote:
                  Originally Posted by Haru~ View Post
                  It seems that I've found a "loop" command for those animation codes.
                  Use: FD FF XX XX ; where XX XX is the number of times the animation will loop (In little endian, of course).
                  Though it seems to have a limit, the value can only reach ~FDFD times. (From my testing, FFFF crashes the game.)

                  Note: It repeats the code from the beginning up to the last code before the loop and when the limit is reached, it will proceed to the next code, if any.
                  Oh, when you do the code like this:
                  Code:
                  00 00 09 00 01 00 09 00 FD FF 01 00 FD FF 01 00 FF FF 00 00
                  'From frame 1 to frame 2 and the animation repeats over and over to no end...
                  It seems to loop infinitely with no adverse effects at all.
                  That means, B/W-style pokemon is indeed possible.

                  I've tested all this with trainer animations and it works perfectly.
                  I ought to share it here because I'm quite sure that this can also apply
                  to pokemon animations. But then I could be wrong...

                  I might post a video sometime.
                  For curiosity's sake, I tried the code, and followed the instructions on the first post.
                  I used a Ruby ROM (obviously).
                  It did have animations, but the battle won't load.
                  I mean, during a wild battle, my trainer won't send out his PKMN to battle the animated enemy PKMN. =/
                  My guess is that it'll also be the same on trainer battles.
                  __________________


                  FC: 0061-1111-6462
                  TSV: 1364(X), 0790(OR)

                  Reply With Quote
                    #64    
                  Old May 30th, 2012 (6:38 AM).
                  Shiny Quagsire's Avatar
                  Shiny Quagsire Shiny Quagsire is offline
                  I'm Still Alive, Elsewhere
                     
                    Join Date: May 2009
                    Location: Hoenn Safari Zone
                    Age: 19
                    Gender: Male
                    Nature: Jolly
                    Posts: 700
                    I thought that might happen. I don't know why, but it seems to wait for the animation to end before sending out another pokemon, and it might take some ASM hacking to fix that.
                    __________________



                    Reply With Quote
                      #65    
                    Old June 2nd, 2012 (11:18 PM).
                    Darkest Shade of Light's Avatar
                    Darkest Shade of Light Darkest Shade of Light is offline
                    Pokémon Midnight Sun
                       
                      Join Date: Oct 2009
                      Location: In the empty void they call my soul
                      Age: 20
                      Gender: Male
                      Nature: Adamant
                      Posts: 300
                      There's a guy on YouTube that did this like two or three years ago. I'll see if I can find it. But anyways, yeah, it's the same concept. He had animations for Pokémon and the trainer's backsprite in Ruby.
                      __________________
                      Reply With Quote
                        #66    
                      Old June 3rd, 2012 (5:36 PM).
                      Shiny Quagsire's Avatar
                      Shiny Quagsire Shiny Quagsire is offline
                      I'm Still Alive, Elsewhere
                         
                        Join Date: May 2009
                        Location: Hoenn Safari Zone
                        Age: 19
                        Gender: Male
                        Nature: Jolly
                        Posts: 700
                        Quote:
                        Originally Posted by Darkest Shade of Light View Post
                        There's a guy on YouTube that did this like two or three years ago. I'll see if I can find it. But anyways, yeah, it's the same concept. He had animations for Pokémon and the trainer's backsprite in Ruby.
                        You mean crazybuizel? That's actually who made this whole discovery, and he explained it in the comments of one of his videos, and we later found the tables in Fire Red as well.

                        I actually made a hack of this to support different animations for each Pokemon (Similar to trainer animations, as they have a table for each sprite), however, I lost it from Windows deciding to erase one of my hard drives on installation. I'll probably recreate it if enough people want it.
                        __________________



                        Reply With Quote
                          #67    
                        Old June 5th, 2012 (4:58 AM). Edited June 5th, 2012 by Tetra.
                        Tetra's Avatar
                        Tetra Tetra is offline
                        Fumes Of Fury
                        • Crystal Tier
                         
                        Join Date: Sep 2009
                        Gender: Male
                        Nature: Lax
                        Posts: 1,088
                        Here are some examples of what I mean. They are not indexed, but there is a way to inserted non-indexed images in Advanced Sprite Editor made by Wichu.

                        Attachments are below.
                        Attached Files
                        File Type: rar Bulbasaur.rar‎ (15.3 KB, 35 views) (Save to Dropbox)
                        File Type: rar Pawniard.rar‎ (20.4 KB, 3 views) (Save to Dropbox)
                        File Type: rar Victini.rar‎ (14.9 KB, 5 views) (Save to Dropbox)
                        Reply With Quote
                          #68    
                        Old June 7th, 2012 (1:44 PM).
                        Darkest Shade of Light's Avatar
                        Darkest Shade of Light Darkest Shade of Light is offline
                        Pokémon Midnight Sun
                           
                          Join Date: Oct 2009
                          Location: In the empty void they call my soul
                          Age: 20
                          Gender: Male
                          Nature: Adamant
                          Posts: 300
                          Quote:
                          Originally Posted by shiny quagsire View Post
                          You mean crazybuizel? That's actually who made this whole discovery, and he explained it in the comments of one of his videos, and we later found the tables in Fire Red as well.

                          I actually made a hack of this to support different animations for each Pokemon (Similar to trainer animations, as they have a table for each sprite), however, I lost it from Windows deciding to erase one of my hard drives on installation. I'll probably recreate it if enough people want it.
                          Yep. That'd be it Was looking for so long, and couldn't find it D:
                          __________________
                          Reply With Quote
                            #69    
                          Old June 7th, 2012 (11:03 PM).
                          Haru~'s Avatar
                          Haru~ Haru~ is offline
                          Can't resist the chubbiness :3
                             
                            Join Date: Mar 2012
                            Gender: Female
                            Nature: Modest
                            Posts: 16
                            Quote:
                            Originally Posted by destinedjagold View Post


                            For curiosity's sake, I tried the code, and followed the instructions on the first post.
                            I used a Ruby ROM (obviously).
                            It did have animations, but the battle won't load.
                            I mean, during a wild battle, my trainer won't send out his PKMN to battle the animated enemy PKMN. =/
                            My guess is that it'll also be the same on trainer battles.
                            That's a drag...
                            I knew it was too good to be true.

                            But shiny quagsire is right, it'll require ASM.

                            But if done on trainer animations, does it work for you?
                            Reply With Quote
                              #70    
                            Old September 25th, 2012 (5:25 AM).
                            alypkm alypkm is offline
                               
                              Join Date: Sep 2009
                              Gender: Male
                              Posts: 8
                              I need some help. how do I re point the offset ? I'm using NSE HEX editor, I dont even know where to put the code ! I'm new in rom Hacking.

                              I open the HEX editor , select Sprite Table and then went to 2349B and I dont know what to do next :/
                              Reply With Quote
                                #71    
                              Old October 11th, 2012 (5:21 PM).
                              BlackWhiteRobin's Avatar
                              BlackWhiteRobin BlackWhiteRobin is offline
                                 
                                Join Date: Sep 2012
                                Age: 19
                                Gender: Male
                                Nature: Quirky
                                Posts: 529
                                Can someone make a video about this? Please?
                                Reply With Quote
                                  #72    
                                Old October 12th, 2012 (8:19 AM).
                                Shiny Quagsire's Avatar
                                Shiny Quagsire Shiny Quagsire is offline
                                I'm Still Alive, Elsewhere
                                   
                                  Join Date: May 2009
                                  Location: Hoenn Safari Zone
                                  Age: 19
                                  Gender: Male
                                  Nature: Jolly
                                  Posts: 700
                                  Quote:
                                  Originally Posted by robin22gongon View Post
                                  Can someone make a video about this? Please?
                                  Chances are that even if we did make a video, you still wouldn't understand. Start with the basics, like scripting, and work your way up to understanding hex editing.
                                  __________________



                                  Reply With Quote
                                    #73    
                                  Old October 13th, 2012 (7:19 PM). Edited October 14th, 2012 by BlackWhiteRobin.
                                  BlackWhiteRobin's Avatar
                                  BlackWhiteRobin BlackWhiteRobin is offline
                                     
                                    Join Date: Sep 2012
                                    Age: 19
                                    Gender: Male
                                    Nature: Quirky
                                    Posts: 529
                                    How about a step by step tutorial about this with pictures? I understand some of those but I'm stuck at repointing the offsets and using AltariaKing's code

                                    Another question, if I successfully do it, can I use Wichu's Sprite Editor to add Sprites into the frames or do I have to use another program like unlz etc?



                                    EDIT: Finally did it! At least I think so. But the problem is the sprite only blinks no matter how many times I edit the sprite in unlz? I think I need help.
                                    Reply With Quote
                                      #74    
                                    Old October 17th, 2012 (5:28 PM).
                                    thjenvuongxh thjenvuongxh is offline
                                       
                                      Join Date: Mar 2012
                                      Gender: Male
                                      Posts: 23
                                      You find a ASM routine at 0x3F860
                                      I want very much to have a wild battle with animations
                                      but my understanding with ASM is very bad

                                      please help!
                                      Reply With Quote
                                        #75    
                                      Old November 4th, 2012 (9:49 PM).
                                      BlackWhiteRobin's Avatar
                                      BlackWhiteRobin BlackWhiteRobin is offline
                                         
                                        Join Date: Sep 2012
                                        Age: 19
                                        Gender: Male
                                        Nature: Quirky
                                        Posts: 529
                                        Is this a dead thread? Please help me!
                                        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 GMT -8. The time now is 9:09 AM.