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
  #24076    
Old March 4th, 2013 (1:56 AM).
Jambo51's Avatar
Jambo51 Jambo51 is offline
Glory To Arstotzka
     
    Join Date: Jun 2009
    Gender: Male
    Nature: Quiet
    Posts: 732
    Quote:
    Originally Posted by karatekid552 View Post
    Most likely, it is a part of the routine that is carried out when you tell your pokemon to attack. It probobly runs though and sees your highest badge, then branches off, checks if the pokemon's and your IDs match, then, if not, compares the levels and sees if the pokemon is higher, if so, it goes on to calculate the chance of the pokemon not obeying. If any one of the checks passes, the routine return to the starting point and runs as normal. I have not a clue as to where said routine is located though:/. I just stared learning ASM and still have trouble finding things like that. I wish I could help more.
    Having looked at the code which takes care of this, I can tell you you're nearly 100% right. The code is pretty simple, it checks the flags which are tied to the badges, and branches if they're set. It then compares the Pokémon's level against a hard coded value, which would be easy to change with a simple hex edit. It then performs a random if the Pokémon's OTID doesn't match yours. If I remember right, it's a weighted random. That is, the higher over the level cap, the more likely it is to disobey. However, what would be better would be rewriting if to support more flags and level caps. Reading from tables is always a good way to support such extendability.
    __________________
    Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!

    Relevant Advertising!

      #24077    
    Old March 4th, 2013 (2:21 AM). Edited March 4th, 2013 by karatekid552.
    karatekid552's Avatar
    karatekid552 karatekid552 is offline
    What happens if I push it?....
       
      Join Date: Nov 2012
      Location: Do you really want to know? Really?
      Gender: Male
      Nature: Bold
      Posts: 1,766
      Quote:
      Originally Posted by destinedjagold View Post


      I've encountered the same problem during my hacking time with Life of Guardians, and yes, I believe there is a limit of how many NPCs are to be displayed on the screen. :\
      This I know is a definable. The game can only have so many OAMs displayed at once.

      Quote:
      Originally Posted by Jambo51 View Post
      Having looked at the code which takes care of this, I can tell you you're nearly 100% right. The code is pretty simple, it checks the flags which are tied to the badges, and branches if they're set. It then compares the Pokémon's level against a hard coded value, which would be easy to change with a simple hex edit. It then performs a random if the Pokémon's OTID doesn't match yours. If I remember right, it's a weighted random. That is, the higher over the level cap, the more likely it is to disobey. However, what would be better would be rewriting if to support more flags and level caps. Reading from tables is always a good way to support such extendability.
      Awesome, my guessing skills are getting better. I was actually banking on the hope that you or Darth would come along and see this and give me some help.:p Now to find it....

      Quote:
      Originally Posted by miksy91 View Post
      These kind of routines are often found with debugging. If you've got "nothing" to begin with, you might want to first look for the asm routine used for giving you a badge. For this, you also use debugger by tracking down the routine used by that "givebadge X" command.

      If I was to do that myself, I would start looking what is executed when you talk to a person event which does nothing more than give you a certain badge and execute "return to gameplay" then.

      Once you've found the asm routine used to give you a badge, you'll also find where in ram 1 is written and next, you start debugging the obeying routine using this ram address as a breakpoint. The program will stop executing code when this ram address is looked for during the code which, like you said, happens next to the code of comparing the ID of the pokemon attacking to the ID of the player.

      You modify the routine there and... job finished.
      I know how to debug and modify routines. It's more of a where do I start? kind of thing.:p So, thanks for giving me that clue, I'll see if I can find it!
      __________________

      Paired with Simba
        #24078    
      Old March 4th, 2013 (2:05 PM).
      Flame999's Avatar
      Flame999 Flame999 is offline
         
        Join Date: Nov 2008
        Location: Lavaridge Town
        Gender: Male
        Nature: Calm
        Posts: 103
        How would I go about gender based rivals as I plan to put two gender based rival Green/Red & Kris/Ethan and I have no idea how to do that so if you could point the way that would be great
          #24079    
        Old March 4th, 2013 (2:51 PM).
        awipe1's Avatar
        awipe1 awipe1 is offline
           
          Join Date: Aug 2012
          Gender: Male
          Posts: 215
          I have a stupid question that i'm pretty sure I know the answer to already, but is there away to add more memory to your ROM? I have a very bad feeling that I will run out of varibales and offsets eventually if I make my game. I just don't want to be in half way through my game then realise that I can't make anymroe because I have ran out of variables and memory.
          __________________
          Check out my Pokemon Rom! Click the Image Below!
            #24080    
          Old March 4th, 2013 (5:24 PM). Edited March 4th, 2013 by karatekid552.
          karatekid552's Avatar
          karatekid552 karatekid552 is offline
          What happens if I push it?....
             
            Join Date: Nov 2012
            Location: Do you really want to know? Really?
            Gender: Male
            Nature: Bold
            Posts: 1,766
            Quote:
            Originally Posted by Flame999 View Post
            How would I go about gender based rivals as I plan to put two gender based rival Green/Red & Kris/Ethan and I have no idea how to do that so if you could point the way that would be great
            A command called "checkgender" will help you. Just set it up so that based upon which gender, it runs different scripts, activates different battles, and, in turn, creates gender based rivals. Full documentation for it can be found in diegoisawesome's XSE tutorial.

            Quote:
            Originally Posted by awipe1 View Post
            I have a stupid question that i'm pretty sure I know the answer to already, but is there away to add more memory to your ROM? I have a very bad feeling that I will run out of varibales and offsets eventually if I make my game. I just don't want to be in half way through my game then realise that I can't make anymroe because I have ran out of variables and memory.
            No way that I know of to add more variables and memory in the RAM, but you can increase the rom size from 16mb to 32mb using a function in XSE version 1.1.1, it is in one of the top menus.
            __________________

            Paired with Simba
              #24081    
            Old March 4th, 2013 (6:07 PM).
            FBI's Avatar
            FBI FBI is offline
            Free supporter
            • Silver Tier
             
            Join Date: Jan 2013
            Location: Unknown Island
            Gender: Male
            Posts: 1,769
            Quote:
            Originally Posted by awipe1 View Post
            I have a stupid question that i'm pretty sure I know the answer to already, but is there away to add more memory to your ROM? I have a very bad feeling that I will run out of varibales and offsets eventually if I make my game. I just don't want to be in half way through my game then realise that I can't make anymroe because I have ran out of variables and memory.
            If you run out of variables you can always allocate some free space for custom variables and use writebytetooffset.

            Also, you can expand your ROM if you want (there's actually tools to do it), but from what I've heard, it's a risky process.
            __________________
            ...
              #24082    
            Old March 4th, 2013 (8:22 PM).
            Mr. Whiscash's Avatar
            Mr. Whiscash Mr. Whiscash is offline
            Unegged Hatch
               
              Join Date: Sep 2008
              Gender: Male
              Nature: Sassy
              Posts: 89
              Is there an easy way to edit the evolution method of a Pokemon in Platinum? Because it turns out the tool I'm using has the evolution method window just for show.
              __________________
                #24083    
              Old March 5th, 2013 (4:27 AM). Edited March 5th, 2013 by ChaosBringer41.
              ChaosBringer41 ChaosBringer41 is offline
                 
                Join Date: Nov 2010
                Gender: Male
                Posts: 37
                Sorry if this is in the wrong part of the forum, but here goes:
                How can I insert resized DS Pokemon sprites into, say, Fire Red?
                - I want three of the starter choices from the DS games as the starter choices in one of my hacks - a 'this is how I want to play' type hack, not a total rewrite like Shiny Gold -

                I tried using the Search function, but for some reason, it didn't show any results for inserting sprites, nevermind where to look for them.

                Turtwig, Piplup, Emboar and their evolutions, if anyone is wondering - I want ones that ultimately have two Types.
                __________________
                I don't always know what I'm doing. Life is more interesting that way.
                  #24084    
                Old March 5th, 2013 (6:22 AM).
                ep!c ep!c is offline
                Banned
                   
                  Join Date: Mar 2013
                  Gender: Male
                  Posts: 124
                  All LZ77 compressed graphics can be inserted with the UNLZ oder NLZ GBA.
                  The Pokémon must be located in the UNLZ somewhere around 1200-1400..
                    #24085    
                  Old March 5th, 2013 (7:19 AM).
                  Aryan143's Avatar
                  Aryan143 Aryan143 is offline
                  The Fennekin Fan!
                     
                    Join Date: Jul 2012
                    Location: Delhi, India
                    Age: 17
                    Gender: Male
                    Nature: Modest
                    Posts: 756
                    Hey I have a problem. I just installed a new window yesterday and I updated my .NET framework but I am having a problem to run these programs:

                    NSE( both classic and 2.X)
                    YAPE
                    All the editors in the Wichu Sprite Editor series

                    It shows an error report. Can someone help me? They were working fine on the previous Windows
                    __________________
                    Check out my gaming company:

                      #24086    
                    Old March 5th, 2013 (8:05 AM).
                    LocksmithArmy's Avatar
                    LocksmithArmy LocksmithArmy is offline
                    Mew!
                       
                      Join Date: Feb 2013
                      Age: 28
                      Gender: Male
                      Posts: 415
                      what is the error report... specifically,... screenshot it or write down all the words...
                      __________________
                        #24087    
                      Old March 5th, 2013 (12:36 PM).
                      karatekid552's Avatar
                      karatekid552 karatekid552 is offline
                      What happens if I push it?....
                         
                        Join Date: Nov 2012
                        Location: Do you really want to know? Really?
                        Gender: Male
                        Nature: Bold
                        Posts: 1,766
                        Quote:
                        Originally Posted by ep!c View Post
                        All LZ77 compressed graphics can be inserted with the UNLZ oder NLZ GBA.
                        The Pokémon must be located in the UNLZ somewhere around 1200-1400..
                        That is probably the hardest way to do it besides hex editing them in yourself:p.

                        I know you have been gone for a while, so I'll let you know that Wichu released a set of Pokemon sprite editors called the Advance Series. These work amazing for sprites of just pokemon, and the sprites are not required to be indexed:D. For other sprites, NSE Classic and NSE 2.X can handle just about any compressed or uncompressed image, provided you know the location of their image and palette.
                        __________________

                        Paired with Simba
                          #24088    
                        Old March 5th, 2013 (6:43 PM).
                        Aryan143's Avatar
                        Aryan143 Aryan143 is offline
                        The Fennekin Fan!
                           
                          Join Date: Jul 2012
                          Location: Delhi, India
                          Age: 17
                          Gender: Male
                          Nature: Modest
                          Posts: 756
                          Here is the error image I am getting:



                          This is same on all these programs
                          __________________
                          Check out my gaming company:

                            #24089    
                          Old March 5th, 2013 (7:06 PM).
                          tajaros's Avatar
                          tajaros tajaros is offline
                          Hi I'm dawg
                             
                            Join Date: Apr 2012
                            Location: Philippines
                            Age: 18
                            Gender: Male
                            Nature: Timid
                            Posts: 857
                            Quote:
                            Originally Posted by Aryan143 View Post
                            Here is the error image I am getting:



                            This is same on all these programs
                            What OS are you running?

                            Also if the new .NET Framework doesn't work for you try the older versions.
                            __________________
                              #24090    
                            Old March 5th, 2013 (7:19 PM).
                            Aryan143's Avatar
                            Aryan143 Aryan143 is offline
                            The Fennekin Fan!
                               
                              Join Date: Jul 2012
                              Location: Delhi, India
                              Age: 17
                              Gender: Male
                              Nature: Modest
                              Posts: 756
                              Quote:
                              Originally Posted by tajaros View Post
                              What OS are you running?

                              Also if the new .NET Framework doesn't work for you try the older versions.
                              I am using Windows XP SP3 and I have tried the older .NET Frameworks plus it worked on the old Windows
                              __________________
                              Check out my gaming company:

                                #24091    
                              Old March 5th, 2013 (7:25 PM).
                              tajaros's Avatar
                              tajaros tajaros is offline
                              Hi I'm dawg
                                 
                                Join Date: Apr 2012
                                Location: Philippines
                                Age: 18
                                Gender: Male
                                Nature: Timid
                                Posts: 857
                                Quote:
                                Originally Posted by Aryan143 View Post
                                I am using Windows XP SP3 and I have tried the older .NET Frameworks plus it worked on the old Windows
                                Try redownloading the programs, it should work properly I think. I had this problem before and the only thing that fixed it is by downloading an older version of .NET Framework.
                                __________________
                                  #24092    
                                Old March 5th, 2013 (7:34 PM). Edited March 5th, 2013 by Aryan143.
                                Aryan143's Avatar
                                Aryan143 Aryan143 is offline
                                The Fennekin Fan!
                                   
                                  Join Date: Jul 2012
                                  Location: Delhi, India
                                  Age: 17
                                  Gender: Male
                                  Nature: Modest
                                  Posts: 756
                                  Quote:
                                  Originally Posted by tajaros View Post
                                  Try redownloading the programs, it should work properly I think. I had this problem before and the only thing that fixed it is by downloading an older version of .NET Framework.
                                  Ok thanks, I will try it.

                                  EDIT: I tried the old framework and bang, it worked again. Thanks a lot tajaros!
                                  __________________
                                  Check out my gaming company:

                                    #24093    
                                  Old March 5th, 2013 (9:12 PM).
                                  Noossab Blue's Avatar
                                  Noossab Blue Noossab Blue is offline
                                     
                                    Join Date: Dec 2012
                                    Location: USA
                                    Gender: Female
                                    Nature: Quirky
                                    Posts: 240
                                    So...I want to edit the text of Oak's tutorial battle in A-text, but when I did my game glitched out and crashed. I tried it again with special text marked but it didn't help...

                                    I did repoint a few of the strings...is that the problem? Or is it something else?

                                    Quote:
                                    Originally Posted by Jambo51 View Post
                                    Having looked at the code which takes care of this, I can tell you you're nearly 100% right. The code is pretty simple, it checks the flags which are tied to the badges, and branches if they're set. It then compares the Pokémon's level against a hard coded value, which would be easy to change with a simple hex edit. It then performs a random if the Pokémon's OTID doesn't match yours. If I remember right, it's a weighted random. That is, the higher over the level cap, the more likely it is to disobey. However, what would be better would be rewriting if to support more flags and level caps. Reading from tables is always a good way to support such extendability.
                                    So...basically I need to be able to ASM Hack to do it?
                                    __________________
                                    IGN: Anna/Noossab Blue
                                    3DS FC: 3196 3609 8450

                                    Thanks to SilverGrey for the awesome banner! Click to see!
                                    Current as of 1/31/14: I updated again!

                                      #24094    
                                    Old March 5th, 2013 (10:48 PM).
                                    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,509
                                    Quote:
                                    Originally Posted by Noossab Blue View Post
                                    So...I want to edit the text of Oak's tutorial battle in A-text, but when I did my game glitched out and crashed. I tried it again with special text marked but it didn't help...

                                    I did repoint a few of the strings...is that the problem? Or is it something else?
                                    A-Text causes many problems if you repoint stuff.
                                    If you want to edit the text with the use of that tool, then you need to stay within the available character limit.

                                    If you really need to put a longer text, then you need to manually repoint his dialogue through hex editing.
                                    __________________


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

                                      #24095    
                                    Old March 6th, 2013 (2:12 AM).
                                    karatekid552's Avatar
                                    karatekid552 karatekid552 is offline
                                    What happens if I push it?....
                                       
                                      Join Date: Nov 2012
                                      Location: Do you really want to know? Really?
                                      Gender: Male
                                      Nature: Bold
                                      Posts: 1,766
                                      Quote:
                                      Originally Posted by Noossab Blue View Post
                                      So...basically I need to be able to ASM Hack to do it?
                                      You need to have ASM skills to find it. From there it is just simple byte changes with a hex editor. I plan on giving this more of a look when I find the time.
                                      __________________

                                      Paired with Simba
                                        #24096    
                                      Old March 6th, 2013 (4:51 AM).
                                      ep!c ep!c is offline
                                      Banned
                                         
                                        Join Date: Mar 2013
                                        Gender: Male
                                        Posts: 124
                                        To find the routine requires NOT ASM skills.
                                        To interprate the routine requires it neither too maybe, because its maybe one single number for the level..
                                          #24097    
                                        Old March 6th, 2013 (9:32 AM).
                                        Noossab Blue's Avatar
                                        Noossab Blue Noossab Blue is offline
                                           
                                          Join Date: Dec 2012
                                          Location: USA
                                          Gender: Female
                                          Nature: Quirky
                                          Posts: 240
                                          Quote:
                                          Originally Posted by destinedjagold View Post


                                          A-Text causes many problems if you repoint stuff.
                                          If you want to edit the text with the use of that tool, then you need to stay within the available character limit.

                                          If you really need to put a longer text, then you need to manually repoint his dialogue through hex editing.
                                          Ok, thanks for that info. I'll just shorten what I had to say.

                                          Quote:
                                          Originally Posted by karatekid552 View Post
                                          You need to have ASM skills to find it. From there it is just simple byte changes with a hex editor. I plan on giving this more of a look when I find the time.
                                          I greatly appreciate it sir.
                                          __________________
                                          IGN: Anna/Noossab Blue
                                          3DS FC: 3196 3609 8450

                                          Thanks to SilverGrey for the awesome banner! Click to see!
                                          Current as of 1/31/14: I updated again!

                                            #24098    
                                          Old March 6th, 2013 (6:03 PM).
                                          kearnseyboy6's Avatar
                                          kearnseyboy6 kearnseyboy6 is offline
                                          Aussie's Toughest Mudder
                                             
                                            Join Date: Dec 2008
                                            Posts: 300
                                            Hi guys, I am wondering if there is anyway to ADD new map banks. I know there are over 100 of them but is there a way to add new ones without having to modify them. Eg: If I change PALLET TOWN the town name changes all the map names. Does this make sense? Or can I add new map headers?
                                              #24099    
                                            Old March 6th, 2013 (7:12 PM).
                                            Noossab Blue's Avatar
                                            Noossab Blue Noossab Blue is offline
                                               
                                              Join Date: Dec 2012
                                              Location: USA
                                              Gender: Female
                                              Nature: Quirky
                                              Posts: 240
                                              Ok, so I edited the Oak Tutorial in A-text without repointing...and it still glitches out and restarts the game...
                                              __________________
                                              IGN: Anna/Noossab Blue
                                              3DS FC: 3196 3609 8450

                                              Thanks to SilverGrey for the awesome banner! Click to see!
                                              Current as of 1/31/14: I updated again!

                                                #24100    
                                              Old March 7th, 2013 (1:36 AM).
                                              Satoshi Ookami's Avatar
                                              Satoshi Ookami Satoshi Ookami is offline
                                              Memento Mori
                                              • Gold Tier
                                               
                                              Join Date: Jul 2008
                                              Location: Abyss of Time, Great Seal
                                              Age: 24
                                              Gender: Male
                                              Nature: Calm
                                              Posts: 14,479
                                              Quote:
                                              Originally Posted by Noossab Blue View Post
                                              Ok, so I edited the Oak Tutorial in A-text without repointing...and it still glitches out and restarts the game...
                                              That might not be the fault of A-Text but something else in ROM...
                                              Can you try a new one and do the same procedure to see if your editing is the cause?
                                              __________________
                                              ROM hacking FAQ - Read before asking how to play a hack.

                                              Anime List | PSN Trophy List
                                              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 1:37 AM.