The PokéCommunity Forums Fan Games ROM Hacking
[ARCHIVE] Simple Questions (SEARCH BEFORE ASKING A QUESTION)

ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.

Closed Thread
 
Thread Tools
  #20401    
Old January 22nd, 2012 (8:03 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 QuilavaKing View Post
I'm helping a friend with a hack of Ruby, and really the only thing we've edited so far is Rusturf Tunnel. We just edited the map, and added a couple more levels to it. So, basically all that's changed is that there is 1 extra warp, and the map is slightly larger. (Edit: Oh, and we've replaced all of the Ruby tiles with Emerald tiles.)

When I enter it, this happens:


If I've talked to someone besides that hiker more recently, their message will play.
It looks infinitely, and there's no way to keep playing once it starts.

Why is it happening?
Looks like you have a level script in the map that's calling the message. Try removing all of the level scripts on that map.
__________________
あなた は しきしゃ です
わたし は ばか です

Relevant Advertising!

  #20402    
Old January 23rd, 2012 (2:19 PM). Edited January 23rd, 2012 by robosllim.
robosllim's Avatar
robosllim robosllim is offline
     
    Join Date: Jan 2012
    Gender: Male
    Posts: 13
    Quote:
    Originally Posted by The_Show View Post
    Try changing his AI to a higher number. If you want to tell a trainer how/when to use items, you gotta ASM
    Here's the way things are now. There's a particular trainer, Battle Girl Lauren, who is known to cause problems. So I moved her to my debug location using Advance Map. She has a Hitmonlee with AI Value 200. She has an Antidote, a Burn Heal, a Full Heal, and a Full Restore. I poison the Hitmonlee and, consistently, she uses a Super Repel one turn, followed by a ?????? the next turn. Each will say "Foe HITMONLEE's SUPER REPEL/?????? cured POISON!" without actually doing so.

    So next, I remove all of her items and set Hitmonlee's AI Value to 0. I confirm that these changes take effect through HxD. I also change her name to confirm I'm loading the right ROM in VBA. So now, when Battle Girl Laurrrrrr battles me, she still uses a Super Repel and a ?????? when her Hitmonlee gets poisoned. Same behavior as before, even though her data changed.

    Now, I've figured out all the bytes in the trainer Pokemon data section (AI, level, dex number, item, and attacks), but I've got some holes in the trainer data:

    Code:
    0-1   - ???
    2-3   - Music and Sprite
    4-15  - Name
    16-23 - Items
    24-27 - ???
    28    - Type (07 is story battle, I think)
    29-31 - ???
    32    - Pokemon count
    33-35 - ???
    36-39 - The address of the Pokemon data
    I'm wondering if any of the blanks could be causing issues. So, two questions: First, can anyone fill in my blanks? Second, is there anything else that may account for the weird item behavior? It definitely seems to be tied to particular trainers, rather than some corruption of the battle code... though I obviously am not certain.
      #20403    
    Old January 23rd, 2012 (11:52 PM).
    Jana Cutler's Avatar
    Jana Cutler Jana Cutler is offline
    James_Cutler
       
      Join Date: Apr 2011
      Location: Vancouver
      Gender: Male
      Posts: 15
      how can i change the pokemon icon in sapphire?? i saw a program called iconed but it cant import png files..
        #20404    
      Old January 24th, 2012 (6:40 AM). Edited January 24th, 2012 by redriders180.
      redriders180's Avatar
      redriders180 redriders180 is offline
      Mastermind of Pokemon Glazed
         
        Join Date: Jun 2010
        Location: Path of Victory, Tunod
        Gender: Male
        Nature: Quirky
        Posts: 540
        Send a message via AIM to redriders180
        Quote:
        Originally Posted by Jana Cutler View Post
        how can i change the pokemon icon in sapphire?? i saw a program called iconed but it cant import png files..
        Try using Wichu's Icon Editor (here) or you can also use Nameless Sprite Editor

        Edit: Sapphire doesn't work with Wichu's Icon Editor, but if you manage to procure a .ini file for your game, put it in the .ini folder that comes with the download and it should work
        __________________


        I think I'm done with ROM hacking. I'll still pop in and visit, though.


          #20405    
        Old January 24th, 2012 (8:02 AM).
        robosllim's Avatar
        robosllim robosllim is offline
           
          Join Date: Jan 2012
          Gender: Male
          Posts: 13
          Quote:
          Originally Posted by The_Show View Post
          Try changing his AI to a higher number. If you want to tell a trainer how/when to use items, you gotta ASM
          I might as well ask about this too... Does anyone know where the battle AI code might be? How can I find it? I can see some bytes flipping really quickly in VBA's memory viewer, which... might be the address of the code it's jumping to? Is there a guide that might help me find that code and see what's going on?

          Also, at what point should I make my own thread about this?
            #20406    
          Old January 24th, 2012 (8:57 AM).
          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 robosllim View Post
          I might as well ask about this too... Does anyone know where the battle AI code might be? How can I find it? I can see some bytes flipping really quickly in VBA's memory viewer, which... might be the address of the code it's jumping to? Is there a guide that might help me find that code and see what's going on?
          Have a quick eye, and catch the numbers that fly through when the battle starts.

          Then breakpoint the suspected code, and then let the research begin!

          There's really not a better way to do that. (Do you really want to step through that much code manually?)

          btw you should pm someone experienced (like JPAN) for stuff like this
          __________________
          did u no there r 21 letters in the alphabet
          o i forgot 5
          uraqt


            #20407    
          Old January 24th, 2012 (9:02 AM).
          robosllim's Avatar
          robosllim robosllim is offline
             
            Join Date: Jan 2012
            Gender: Male
            Posts: 13
            Quote:
            Originally Posted by droomph View Post
            Have a quick eye, and catch the numbers that fly through when the battle starts.

            Then breakpoint the suspected code, and then let the research begin!

            There's really not a better way to do that. (Do you really want to step through that much code manually?)

            btw you should pm someone experienced (like JPAN) for stuff like this
            My goal at this point is to compare the hack's code with a clean ROM's code. I don't necessarily need to see the code itself (though that would be nice), but I just need to know where the code is so I can compare.

            I think I will PM JPAN. Everyone loves a challenge, right?
              #20408    
            Old January 24th, 2012 (10:44 AM).
            redriders180's Avatar
            redriders180 redriders180 is offline
            Mastermind of Pokemon Glazed
               
              Join Date: Jun 2010
              Location: Path of Victory, Tunod
              Gender: Male
              Nature: Quirky
              Posts: 540
              Send a message via AIM to redriders180
              Quote:
              Originally Posted by robosllim View Post
              My goal at this point is to compare the hack's code with a clean ROM's code. I don't necessarily need to see the code itself (though that would be nice), but I just need to know where the code is so I can compare.

              I think I will PM JPAN. Everyone loves a challenge, right?
              I feel like I should mention this. One of the posts in the quick research and development threads (this post) states that the AI in A-Trainer really only sets the IVs of the Pokemon in question. Perhaps you should be pursuing a different method of doing this item stuff
              __________________


              I think I'm done with ROM hacking. I'll still pop in and visit, though.


                #20409    
              Old January 24th, 2012 (4:39 PM).
              Serpdrako Serpdrako is offline
                 
                Join Date: May 2009
                Gender:
                Posts: 2
                Is there any way I can import (I guess that's the word, I'm not very good at this) only the wild pokemon encounter data from one rom to another? I'm playing soul silver and was using ppre to do the hacks. I messed up somewhere while making backups along the way, and my wild encounter data got left in the dust a little ways back. Don't really feel like editing all of the trainers over again.

                Thanks in advance!!
                  #20410    
                Old January 24th, 2012 (4:55 PM).
                Rainbow's Avatar
                Rainbow Rainbow is offline
                スターダスト
                • Moderator
                • Platinum Tier
                • PokéCommunity Daily
                • Discord Moderoid
                • Developer
                 
                Join Date: May 2010
                Location: The Medium
                Gender: Female
                Nature: Quirky
                Posts: 4,658
                Quote:
                Originally Posted by Serpdrako View Post
                Is there any way I can import (I guess that's the word, I'm not very good at this) only the wild pokemon encounter data from one rom to another? I'm playing soul silver and was using ppre to do the hacks. I messed up somewhere while making backups along the way, and my wild encounter data got left in the dust a little ways back. Don't really feel like editing all of the trainers over again.

                Thanks in advance!!
                I'm no expert at 4th Gen hacking, but unless someone makes a tool, there's no way you can import / export the wild Pokemon data
                __________________
                  #20411    
                Old January 24th, 2012 (4:56 PM).
                Serpdrako Serpdrako is offline
                   
                  Join Date: May 2009
                  Gender:
                  Posts: 2
                  Thanks for the quick response, but is this not even possible with .narc files. I feel like that is what I'm looking for. Is there a specific .narc file for wild pokemon or trainer data?
                    #20412    
                  Old January 24th, 2012 (6:36 PM).
                  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 Serpdrako View Post
                  Thanks for the quick response, but is this not even possible with .narc files. I feel like that is what I'm looking for. Is there a specific .narc file for wild pokemon or trainer data?
                  According to a page on the ProjectPokémon wiki, the trainer data is located in \a\0\5\5 through \a\0\5\9, and maybe (just maybe) \a\1\0\2 is the wild pokemon data. Look through the page yourself, maybe you'll find other things.
                  __________________
                  did u no there r 21 letters in the alphabet
                  o i forgot 5
                  uraqt


                    #20413    
                  Old January 26th, 2012 (5:26 PM).
                  RSBeauAngel RSBeauAngel is offline
                     
                    Join Date: Oct 2011
                    Gender: Male
                    Posts: 6
                    I'm having trouble adding events to Fire Red...I'm very new to this and I'm just practicing making simple talking events, and I've gotten two to work fine. But now all the events I try to add wont work. Like when I walk up to the person and press A to talk to them, they just don't talk. I'm using the Script Generator on my scripting tool, and it made the other two speaking events work just fine. But other than those two, none that I try to add will work. I have no idea what I'm doing wrong :/
                      #20414    
                    Old January 26th, 2012 (6:05 PM).
                    DrFuji's Avatar
                    DrFuji DrFuji is online now
                    Heiki Hecchara‌‌
                    • Crystal Tier
                     
                    Join Date: Sep 2009
                    Location: Downia-upside
                    Age: 24
                    Gender: Male
                    Nature: Jolly
                    Posts: 1,326
                    Quote:
                    Originally Posted by RSBeauAngel View Post
                    I'm having trouble adding events to Fire Red...I'm very new to this and I'm just practicing making simple talking events, and I've gotten two to work fine. But now all the events I try to add wont work. Like when I walk up to the person and press A to talk to them, they just don't talk. I'm using the Script Generator on my scripting tool, and it made the other two speaking events work just fine. But other than those two, none that I try to add will work. I have no idea what I'm doing wrong :/
                    What script editor are you using? Could you post an example of a script that isn't working properly? The more information you provide, the more likely somebody will be able to help you out :)
                    __________________
                      #20415    
                    Old January 26th, 2012 (6:46 PM).
                    RSBeauAngel RSBeauAngel is offline
                       
                      Join Date: Oct 2011
                      Gender: Male
                      Posts: 6
                      I'm using PKSV, and here's one of the scripts:

                      Spoiler:
                      #org 0x8740000
                      '-----------------------------------
                      #raw 0xFF
                      lock
                      faceplayer
                      msgbox 0x874000D ' If you follow this p...
                      callstd MSG_LOCK ' Built-in lock command
                      release
                      end


                      #org 0x874000D
                      = If you follow this path, you'll get to\nFoamstone Town. It's a popular vacation spot!
                        #20416    
                      Old January 26th, 2012 (7:08 PM).
                      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 RSBeauAngel View Post
                      I'm using PKSV, and here's one of the scripts:

                      Spoiler:
                      #org 0x8740000
                      '-----------------------------------
                      #raw 0xFF
                      lock
                      faceplayer
                      msgbox 0x874000D ' If you follow this p...
                      callstd MSG_LOCK ' Built-in lock command
                      release
                      end


                      #org 0x874000D
                      = If you follow this path, you'll get to\nFoamstone Town. It's a popular vacation spot!
                      The only problem I see is the #raw 0xFF. Remove that and you should be fine.

                      Also, you should use MSG_FACEPLAYER instead of MSG_LOCK.
                      __________________
                      did u no there r 21 letters in the alphabet
                      o i forgot 5
                      uraqt


                        #20417    
                      Old January 27th, 2012 (12:14 PM).
                      Repede Repede is offline
                         
                        Join Date: Feb 2010
                        Gender: Male
                        Posts: 6
                        Okay, so I have searched to no avail...unless I don't know how to use the search function. I've also got no idea if this is the proper place for these questions. I will move it if necessary.
                        So first, hi!

                        Some friends and I are starting up a new Pokemon rom hack. This is, I should say, the first we've ever done. None of us know anything yet about using Pokescript, which is why I'm here, for the above tutorials.

                        Here's my issue: We were hoping to use Generation 4, particularly Heart Gold and Soul silver, for a couple reasons. One, we definitely want to have the Physical/Special attack split that the fourth gen introduced. Two, IF we use HG/SS, we'd have access to a second 'world' to toy with, though that one isn't particularly important.

                        Now, I've perused the tutorials, looked at some of the most popular/comprehensive, but it seems everything addresses the third generation of games. My question is this; is there a Pokescript tutorial for the fourth generation? And if not, is there a way to bring that Physical/Special split into the third? We aren't too concerned with visuals, so I'd be fine with either.

                        On the note of using a 3rd gen game, actually, would we be able to expand the pre-programmed Pokedex to include all current gen Pokemon, from gen 4 and 5?

                        Thanks for the help, sorry for all the questions. I look forward to a response!
                          #20418    
                        Old January 27th, 2012 (12:30 PM).
                        Speedster's Avatar
                        Speedster Speedster is offline
                        The Unknown
                           
                          Join Date: Dec 2011
                          Location: In the depths of space...
                          Gender: Male
                          Nature: Jolly
                          Posts: 134
                          Quote:
                          Originally Posted by Repede View Post
                          Okay, so I have searched to no avail...unless I don't know how to use the search function. I've also got no idea if this is the proper place for these questions. I will move it if necessary.
                          So first, hi!

                          Some friends and I are starting up a new Pokemon rom hack. This is, I should say, the first we've ever done. None of us know anything yet about using Pokescript, which is why I'm here, for the above tutorials.

                          Here's my issue: We were hoping to use Generation 4, particularly Heart Gold and Soul silver, for a couple reasons. One, we definitely want to have the Physical/Special attack split that the fourth gen introduced. Two, IF we use HG/SS, we'd have access to a second 'world' to toy with, though that one isn't particularly important.

                          Now, I've perused the tutorials, looked at some of the most popular/comprehensive, but it seems everything addresses the third generation of games. My question is this; is there a Pokescript tutorial for the fourth generation? And if not, is there a way to bring that Physical/Special split into the third? We aren't too concerned with visuals, so I'd be fine with either.

                          On the note of using a 3rd gen game, actually, would we be able to expand the pre-programmed Pokedex to include all current gen Pokemon, from gen 4 and 5?

                          Thanks for the help, sorry for all the questions. I look forward to a response!
                          Well good and bad news for you. For one when you mean a second 'world' I'm guessing you mean a second reason which you can easily do with a 3rd Generation game.

                          Anyways, the bad news is HG/SS is extremely hard to hack and there are no such tutorials.

                          Good news is that there is a Physical/Special Split that has just very recently been finished. Here is a Split for Ruby and as for a Split for FireRed and Emerald it is here.

                          Also for the 4th and 5th Generation Pokemon, you can refer to this thread. And for Ruby you will find it in this thread. As of now these projects are still in work so you'll have to wait but they are coming along.

                          Finally never worry about too many questions. Others or myself are always happy to help.
                          __________________

                          .:Aegis:.
                          ~coming soon~
                            #20419    
                          Old January 27th, 2012 (12:36 PM).
                          Repede Repede is offline
                             
                            Join Date: Feb 2010
                            Gender: Male
                            Posts: 6
                            Absolutely fantastic answers, thank you so much for the help. Our hack is still quite a ways off, it's still in the planning stages, so I'm willing to wait.

                            I guess I'll give up on Gen 4, then, and focus on Ruby/Sapphire. I was indeed referring to a second region, such as Kanto is to Heart Gold. I was originally told by a friend that you cannot "add" to rom hacks, simply "modify", so I wasn't sure that was possible. Glad to know it is!

                            Well, thank you so much for all your help! Now I've got a point to start learning! Watch for our hack in the Progression's area, once we get something actually concrete! Thanks again, Speedster!
                              #20420    
                            Old January 27th, 2012 (12:42 PM).
                            Speedster's Avatar
                            Speedster Speedster is offline
                            The Unknown
                               
                              Join Date: Dec 2011
                              Location: In the depths of space...
                              Gender: Male
                              Nature: Jolly
                              Posts: 134
                              Quote:
                              Originally Posted by Repede View Post
                              Absolutely fantastic answers, thank you so much for the help. Our hack is still quite a ways off, it's still in the planning stages, so I'm willing to wait.

                              I guess I'll give up on Gen 4, then, and focus on Ruby/Sapphire. I was indeed referring to a second region, such as Kanto is to Heart Gold. I was originally told by a friend that you cannot "add" to rom hacks, simply "modify", so I wasn't sure that was possible. Glad to know it is!

                              Well, thank you so much for all your help! Now I've got a point to start learning! Watch for our hack in the Progression's area, once we get something actually concrete! Thanks again, Speedster!
                              Your welcome. If you have any more questions feel free to ask the the thread Repede!
                              __________________

                              .:Aegis:.
                              ~coming soon~
                                #20421    
                              Old January 28th, 2012 (12:01 PM).
                              OMGWURMPLES!'s Avatar
                              OMGWURMPLES! OMGWURMPLES! is offline
                              För Sverige i tiden
                                 
                                Join Date: Mar 2010
                                Gender: Female
                                Nature: Adamant
                                Posts: 49
                                Okay, so I think I have a few problems:
                                First, where can I get a FireRed rom that actually has the offsets I need to use? I try to find the music table (is that what it's called?) according to a tutorial, but my hex editor can never find the offset... and when I manually go look for it, it's not there.
                                Also, I changed a few things in the title screen. Opens fine the first time in unLZ-GBA, but the second time I open it, all the things are screwed up, like, the pallete is weird, things aren't where they should be, etc. I've had to redo everything several times due to the roms just FREAKING out. I can never open it a second time and get it to be, well, NORMAL.
                                Is there any way to fix these two things?
                                  #20422    
                                Old January 28th, 2012 (12:10 PM).
                                Speedster's Avatar
                                Speedster Speedster is offline
                                The Unknown
                                   
                                  Join Date: Dec 2011
                                  Location: In the depths of space...
                                  Gender: Male
                                  Nature: Jolly
                                  Posts: 134
                                  Quote:
                                  Originally Posted by OMGWURMPLES! View Post
                                  Okay, so I think I have a few problems:
                                  First, where can I get a FireRed rom that actually has the offsets I need to use? I try to find the music table (is that what it's called?) according to a tutorial, but my hex editor can never find the offset... and when I manually go look for it, it's not there.
                                  Also, I changed a few things in the title screen. Opens fine the first time in unLZ-GBA, but the second time I open it, all the things are screwed up, like, the pallete is weird, things aren't where they should be, etc. I've had to redo everything several times due to the roms just FREAKING out. I can never open it a second time and get it to be, well, NORMAL.
                                  Is there any way to fix these two things?
                                  First, you can't discuss where to get ROMs here so all I can say is search google for "FireRed English ROM" because most tutorials are about English ROM.

                                  Next make sure you click "Write to ROM" when you are finished editing. Just to ensure that all your changes are saved and saved in the write place.
                                  __________________

                                  .:Aegis:.
                                  ~coming soon~
                                    #20423    
                                  Old January 28th, 2012 (12:45 PM).
                                  OMGWURMPLES!'s Avatar
                                  OMGWURMPLES! OMGWURMPLES! is offline
                                  För Sverige i tiden
                                     
                                    Join Date: Mar 2010
                                    Gender: Female
                                    Nature: Adamant
                                    Posts: 49
                                    Quote:
                                    Originally Posted by Speedster View Post
                                    First, you can't discuss where to get ROMs here so all I can say is search google for "FireRed English ROM" because most tutorials are about English ROM.

                                    Next make sure you click "Write to ROM" when you are finished editing. Just to ensure that all your changes are saved and saved in the write place.
                                    Yes, I have an english rom, but it seems to be missing several things when I open it up with a Hex editor.
                                    I got the other things to work.
                                    Now something else has come up (I'm such a noob D
                                    It won't write my tile map to the rom, even when I find free space and such. It never gives me the confirmation message or anything.
                                    Is there a way to fix that? fad;lkfj
                                      #20424    
                                    Old January 28th, 2012 (12:54 PM).
                                    Speedster's Avatar
                                    Speedster Speedster is offline
                                    The Unknown
                                       
                                      Join Date: Dec 2011
                                      Location: In the depths of space...
                                      Gender: Male
                                      Nature: Jolly
                                      Posts: 134
                                      Quote:
                                      Originally Posted by OMGWURMPLES! View Post
                                      Yes, I have an english rom, but it seems to be missing several things when I open it up with a Hex editor.
                                      I got the other things to work.
                                      Now something else has come up (I'm such a noob D
                                      It won't write my tile map to the rom, even when I find free space and such. It never gives me the confirmation message or anything.
                                      Is there a way to fix that? fad;lkfj
                                      Well try to get it from a different source. I had this when I originally started hacking. Just try one from a bunch of different sources.

                                      As for the tile map, are you still working with Unlz.gba?
                                      __________________

                                      .:Aegis:.
                                      ~coming soon~
                                        #20425    
                                      Old January 28th, 2012 (2:02 PM). Edited January 28th, 2012 by OMGWURMPLES!.
                                      OMGWURMPLES!'s Avatar
                                      OMGWURMPLES! OMGWURMPLES! is offline
                                      För Sverige i tiden
                                         
                                        Join Date: Mar 2010
                                        Gender: Female
                                        Nature: Adamant
                                        Posts: 49
                                        Quote:
                                        Originally Posted by Speedster View Post
                                        Well try to get it from a different source. I had this when I originally started hacking. Just try one from a bunch of different sources.

                                        As for the tile map, are you still working with Unlz.gba?
                                        Yes, I am.
                                        What do you mean, a bunch of different sources? I've tried about 10-15 different offsets (is that the right term? Ugh) and none of them work.


                                        Also, what's the maximum amount of new sprites you can put into a game?
                                        Closed Thread
                                        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 6:11 AM.