Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.

Reply
 
Thread Tools
  #1    
Old May 31st, 2013 (12:43 PM). Edited July 5th, 2013 by Jambo51.
Jambo51's Avatar
Jambo51 Jambo51 is offline
Glory To Arstotzka
     
    Join Date: Jun 2009
    Gender: Male
    Nature: Quiet
    Posts: 732
    Hi there, and as you may have come to notice, the number of truly safe variables and flags available in the vanilla Fire Red game is extremely limiting.

    If you don't know this, then read this great thread by karatekid552 which explains why flags and variables after/before a certain number are unsafe to use.

    So, is there any good way to solve this problem? Well, yes, we can repoint a block of the variables and flags to use free memory!

    It should be noted that, after including this repoint in your hack, any PLAYERS will be forced to restart their save games! There is no way around this.

    PREREQUISITES
    Spoiler:
    A Fire Red ROM
    This Patch OR An already installed JPAN Memory extension
    A Brain


    So, to the main part of this post.

    Making Flags 0x900-0x18FF safe to use:
    Spoiler:
    Flag Routine:
    Code:
    .text
    .align 2
    .thumb
    .thumb_func
    .global flaggethack
    main:
    	mov r0, #0x9
    	lsl r0, r0, #0x8
    	cmp r4, r0
    	blt normal
    	mov r0, #0x19
    	lsl r0, r0, #0x8
    	cmp r4, r0
    	bge noget
    	mov r0, #0x9
    	lsl r0, r0, #0x8
    	sub r4, r4, r0
    	add r6, r4, #0x0
    	str r4, [sp, #0x0]
    	ldr r0, memoryblock
    	lsr r1, r6, #0x3
    	add r0, r0, r1
    exit:	pop {r4-r6}
    	pop {r1}
    	bx r1
    normal:	ldr r0, normalmemoryblock
    	ldr r0, [r0, #0x0]
    there:	lsr r1, r6, #0x3
    	mov r3, #0xEE
    	lsl r3, r3, #0x4
    	add r1, r1, r3
    	add r0, r0, r1
    	b exit
    noget:	add r0, r4, #0x0
    	b there
    .align
    memoryblock:	.word 0x0203C000
    normalmemoryblock:	.word 0x03005008
    Assemble this routine and insert it into your ROM in an aligned location. That is, the address ends with a 0, 4, 8 or a C. Then navigate to 0x6E5D6 and change the code there to:

    Code:
    01 48 00 47 00 00 XX XX XX 08
    Where the XX's stand for the location of your routine + 1 in little endian format (aka reverse hex).

    And that's that. Once this routine is inserted, you can use any of the flags between 0x900 and 0x18FF (inclusive) safely without any problems!
    NOTE: This routine CUTS OFF ACCESS to flags outside the usable range of 0x0 - 0x18FF. That is to say, they simply stop working. I designed it like this to try to ensure that bad memory accessed would be less likely to happen.


    And secondly, the variables!

    Making Vars 0x5000-0x51FF safe to use:
    Spoiler:
    Variable Routine:
    Code:
    .text
    .align 2
    .thumb
    .thumb_func
    .global varflaghackone
    
    main:
    	mov r2, #0x40
    	lsl r2, r2, #0x8
    	cmp r4, r2
    	blt exit
            mov r2, #0x41
    	lsl r2, r2, #0x8
    	cmp r4, r2
    	blt normal
    	mov r2, #0x50
    	lsl r2, r2, #0x8
    	cmp r4, r2
    	blt exit
            lsl r2, r4, #0x10
            cmp r2, #0x0
            blt alt
    	mov r2, #0x52
    	lsl r2, r2, #0x8
    	cmp r4, r2
    	bge exit
    	ldr r0, memoryblock
    	mov r2, #0x50
    	lsl r2, r2, #0x8
    	sub r4, r4, r2
    	lsl r4, r4, #0x1
    	add r0, r0, r4
    exit2:	pop {r4-r6}
    	pop {r1}
    	bx r1
    exit:	mov r0, #0x0
    	b exit2
    normal:	ldr r0, return
    	bx r0
    alt:	ldr r0, return2
    	bx r0
    .align
    memoryblock:	.word 0x0203C200
    return:	.word 0x0806E473
    return2:	.word 0x0806E50D
    Assemble this routine and insert it into your ROM in an aligned location. That is, the address ends with a 0, 4, 8 or a C. Then navigate to 0x6E45C and change the code there to:

    Code:
    00 48 00 47 XX XX XX 08
    Where the XX's stand for the location of your routine + 1 in little endian format (aka reverse hex).

    And that's that. Once this routine is inserted, you can use any of the variables between 0x5000 and 0x51FF (inclusive) safely without any problems!
    NOTE: This routine CUTS OFF ACCESS to variables outside the usable ranges. That is to say, they simply stop working. I designed it like this to try to ensure that bad memory accessed would be less likely to happen.

    The usable ranges are:
    0x4000 - 0x40FF
    0x5000 - 0x51FF
    0x8000 - 0x8016


    It should be noted that these routines are not mutually exclusive. You can have both or you can have one or the other. You do NOT need both for only the flag hack, or both for the var hack. Obviously, if you want both the flags and vars hack, you need both.

    Since people seem to not understand how to assemble and insert ASM (understandable, it is awkward compared to scripting et al), I'm gonna quote this very useful mini-guide from further down this page.

    Quote:
    Originally Posted by PJBottomz View Post
    Spoiler:
    Step 1: Click here. Extract those files to your desktop.

    Step 2: MAKE SURE you apply the patch in the first post to your ROM (this should be a clean, unmodified ROM) before doing this.

    Step 3: Open Notepad and paste down whichever ASM code you're using (aka if you're expanding flags, using the flag-expanding ASM code)

    Step 4: Click File -> Save As. On the Box labelled "File Name" type "[whatevernameyouwant].asm". Under "Save as type", change to All Files. Navigate to the Desktop and save it there.

    Step 5: Open Command Prompt. Type "cd Desktop". You're now on your desktop. Type the following into Command Prompt:

    Code:
    thumb [whatevernameyouchose].asm [samename].bin
    You should see "Assembled Successfully" right below it in the Command Prompt. You can close it now.

    Step 6: Open the .bin file in a hex editor and copy ALL the data.

    Step 7: Open Free Space Finder and find an offset that ends in a 0, 4, 8, or C (as stated above).

    Step 8: Open a new sheet in Notepad. Write down your offset, and then write it in little endian + 1. Ex: If my offset was 0x800000, the correct format for this would be 01 00 80.

    Step 9: Open your ROM in a hex editor and go to the offset that you chose. Click Edit -> Paste write.

    Step 10: Open your ROM in the hex editor and go to the offset 0x6E5D6. Change it to:

    Code:
    01 48 00 47 00 00 XX XX XX 08
    Where the XX's = the endian version of your offset that you were supposed to write down earlier. Hit save, and you're done.
    Anyway, that's everything for this tutorial!
    __________________
    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

    Relevant Advertising!

      #2    
    Old May 31st, 2013 (4:39 PM). Edited January 29th, 2014 by GoGoJJTech.
    GoGoJJTech's Avatar
    GoGoJJTech GoGoJJTech is offline
    (☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)
    • Gold Tier
     
    Join Date: Nov 2012
    Location: Earth
    Age: 18
    Gender: Female
    Nature: Jolly
    Posts: 2,477
    Wow, you're an ASM King! Anyway, congrats, I may use this but using many variables is quite useless since a single variable can hold a value of 0-65,535 so using like three variables in a hack is possible. However, flags are limited so I may use that.
    __________________
    I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
    The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons
    Romhack.me Profile - Pokecommunity Profile - Youtube Channel

    Support me at my site!
    Pokémon Platinum Red and Blue
    Reply With Quote
      #3    
    Old May 31st, 2013 (5:40 PM).
    Jambo51's Avatar
    Jambo51 Jambo51 is offline
    Glory To Arstotzka
       
      Join Date: Jun 2009
      Gender: Male
      Nature: Quiet
      Posts: 732
      That's why I put significantly less extra variables into it than extra flags XD. However, don't underestimate the potential uses of combining the safe var hack and JPAN's hacked engine, for example, since that uses a significant number of variables to operate.
      __________________
      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
        #4    
      Old May 31st, 2013 (5:46 PM).
      GoGoJJTech's Avatar
      GoGoJJTech GoGoJJTech is offline
      (☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)
      • Gold Tier
       
      Join Date: Nov 2012
      Location: Earth
      Age: 18
      Gender: Female
      Nature: Jolly
      Posts: 2,477
      That is true. I may actually consider it now.
      __________________
      I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
      The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons
      Romhack.me Profile - Pokecommunity Profile - Youtube Channel

      Support me at my site!
      Pokémon Platinum Red and Blue
      Reply With Quote
        #5    
      Old May 31st, 2013 (8:52 PM).
      BlackWhiteRobin's Avatar
      BlackWhiteRobin BlackWhiteRobin is offline
         
        Join Date: Sep 2012
        Age: 19
        Gender: Male
        Nature: Quirky
        Posts: 534
        Whoa. O_o Just a few days ago talking about it. Posts a thread showing how to do it the next day.
        __________________

        Reply With Quote
          #6    
        Old June 1st, 2013 (6:46 AM). Edited June 1st, 2013 by Dragonflye.
        Dragonflye's Avatar
        Dragonflye Dragonflye is offline
        Author of Pokémon Sovereign of the Skies
           
          Join Date: Dec 2009
          Age: 21
          Gender: Male
          Posts: 80
          Can I use this code in Emerlad? I would be really happy, and how would also like to use in emerald with no problems vars and flags.

          Edit: Sorry its a nice work.
          __________________



          Reply With Quote
            #7    
          Old June 1st, 2013 (3:01 PM).
          Renegade's Avatar
          Renegade Renegade is offline
          Time for real life...
             
            Join Date: Nov 2011
            Location: United States
            Gender: Male
            Nature: Careful
            Posts: 998
            Is it possible for me to test if it works? (Really I KNOW it will work, I just want to know if I screwed anything up )
            __________________
            Reply With Quote
              #8    
            Old June 1st, 2013 (7:24 PM).
            MrDollSteak's Avatar
            MrDollSteak MrDollSteak is offline
            Formerly known as 11bayerf1
               
              Join Date: Dec 2008
              Location: Hong Kong
              Age: 22
              Gender: Male
              Posts: 809
              Fabulous work Jambo! Another fantastic addition to the Romhacking Community.

              You're on a roll!
              __________________
              Reply With Quote
                #9    
              Old June 2nd, 2013 (1:07 PM).
              miksy91's Avatar
              miksy91 miksy91 is offline
              Dark Energy is back in action! ;)
                 
                Join Date: Oct 2008
                Location: A small country in the North
                Gender: Male
                Nature: Relaxed
                Posts: 1,435
                Nice work! Though you should also add proper documentation of what ram areas the codings use. That way, it would be clear where the users could store all kinds of other data as well and not just bit values/sets describing flags and vars.
                __________________
                My Rom Hack



                Fixing bugs in a ROM hack
                CP of encountered pokemon in GO

                Learn how to hack GB/C games:

                Check my GameBoy/Color hacking videos in Youtube
                -The video set uses Pokemon Silver (U) rom for demonstrations
                Reply With Quote
                  #10    
                Old June 2nd, 2013 (4:40 PM).
                Jambo51's Avatar
                Jambo51 Jambo51 is offline
                Glory To Arstotzka
                   
                  Join Date: Jun 2009
                  Gender: Male
                  Nature: Quiet
                  Posts: 732
                  Quote:
                  Originally Posted by miksy91 View Post
                  Nice work! Though you should also add proper documentation of what ram areas the codings use. That way, it would be clear where the users could store all kinds of other data as well and not just bit values/sets describing flags and vars.
                  It's pretty clear if you understand the ASM, but that's obviously a bit of a rarity. It repoints the flags into 0x0203C000 - 0x0203C1FF (0x200 bytes in total, giving 8 * 0x200 = 0x1000 flags).

                  And the vars are repointed into 0x0203C200 - 0x0203C5FF (0x400 bytes in total, giving 0x400 / 2 = 0x200 vars).

                  This memory is not normally saved, hence the requirement for JPAN's save block hack (which I link to a patch version of in the first post).

                  If you use both of these routines, you are left with 0x0203C600 - 0x0203CEC4 in the save block, meaning you can place other useful things in it, for example, you could store roaming Pokémon data in it (hint hint, wink wink ).
                  __________________
                  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
                    #11    
                  Old June 3rd, 2013 (7:07 AM). Edited June 3rd, 2013 by Trev.
                  Trev's Avatar
                  Trev Trev is offline
                  starting my comeback tour
                     
                    Join Date: May 2012
                    Location: anywhere as long as I have dogs
                    Age: 20
                    Gender: Male
                    Nature: Sassy
                    Posts: 1,192
                    Okay, two questions.

                    1.) When I try to download the patch, I get a message saying "You do not have permission to view this download." Do I have to make an account for that site to get it? Yep, that's what I had to do.

                    2.) Since I have no understanding of ASM, how exactly do I assemble this and insert it into my ROM? Is it just done in any script editor or do I need some other program?
                    __________________
                    Projects





                    Reply With Quote
                      #12    
                    Old June 3rd, 2013 (10:30 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 PJBottomz View Post
                      Okay, two questions.

                      1.) When I try to download the patch, I get a message saying "You do not have permission to view this download." Do I have to make an account for that site to get it? Yep, that's what I had to do.
                      It's also available somewhere on PC, but I don't know where.

                      Quote:
                      Originally Posted by PJBottomz View Post
                      2.) Since I have no understanding of ASM, how exactly do I assemble this and insert it into my ROM? Is it just done in any script editor or do I need some other program?
                      http://www.pokecommunity.com/showthread.php?t=117917#ASM1
                      This part of the post sums up how to assemble and insert ASM pretty well. Obviously, you're not needing to do any of the script parts of that post, just the ASM assembly.
                      __________________
                      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 June 3rd, 2013 (11:25 AM).
                      Trev's Avatar
                      Trev Trev is offline
                      starting my comeback tour
                         
                        Join Date: May 2012
                        Location: anywhere as long as I have dogs
                        Age: 20
                        Gender: Male
                        Nature: Sassy
                        Posts: 1,192
                        Okay, so what program is the best for ASM? Because I have absolutely no clue...
                        __________________
                        Projects





                        Reply With Quote
                          #14    
                        Old June 3rd, 2013 (3:01 PM).
                        BlackWhiteRobin's Avatar
                        BlackWhiteRobin BlackWhiteRobin is offline
                           
                          Join Date: Sep 2012
                          Age: 19
                          Gender: Male
                          Nature: Quirky
                          Posts: 534
                          Quote:
                          Originally Posted by PJBottomz View Post
                          Okay, so what program is the best for ASM? Because I have absolutely no clue...
                          Go here bro. Also you can ask those kind of questions in the Simple Questions Thread. I hope you excel!
                          __________________

                          Reply With Quote
                            #15    
                          Old June 6th, 2013 (6:37 PM). Edited June 6th, 2013 by DarkPsychic.
                          DarkPsychic's Avatar
                          DarkPsychic DarkPsychic is offline
                             
                            Join Date: Jul 2012
                            Location: CO
                            Gender: Male
                            Nature: Timid
                            Posts: 130
                            Very much appreciated Jambo51 you are a Hall of Famer in my book... I'm going to try this right now and see what happens. I have never done ASM before but I will take it step by step and use some common sense, even though it seems fairly complex.
                            When this is installed correctly how could I test it and know? ( sorry for the noob question >_< )
                            And would it be ok to use XSE's rom expander?


                            Well I seem to be stuck =( I can't for the life of me find a ASM to hex assembler as I am not good with command promt. and do not wanna mess up my system. Is there any software that can take asm and turn it into Hex?
                            Reply With Quote
                              #16    
                            Old June 7th, 2013 (5:12 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 DarkPsychic View Post
                              Well I seem to be stuck =( I can't for the life of me find a ASM to hex assembler as I am not good with command promt. and do not wanna mess up my system. Is there any software that can take asm and turn it into Hex?
                              You can find a set of files here which assemble ASM files into raw hex code. You're after the THUMB.bat file (and all the files it calls). You may want to read how to assemble the ASM in that short tutorial as well.
                              __________________
                              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
                                #17    
                              Old June 7th, 2013 (10:17 AM).
                              DarkPsychic's Avatar
                              DarkPsychic DarkPsychic is offline
                                 
                                Join Date: Jul 2012
                                Location: CO
                                Gender: Male
                                Nature: Timid
                                Posts: 130
                                Quote:
                                Originally Posted by Jambo51 View Post
                                You can find a set of files here which assemble ASM files into raw hex code. You're after the THUMB.bat file (and all the files it calls). You may want to read how to assemble the ASM in that short tutorial as well.
                                Ok well I have sat here and read Hackmews ASM tut about 4 times now and still I can't seem to understand how to assemble ASM to HEX... His tut seems to speak to people who already know the basics of programming and as for me I am a complete noob to programming... I can't find any video tutorials on GBA ASM hacking nor can I seem to find any IDE or Software that simply converts ASM to HEX. So I am starting to feel at a lose here, like I will never understand how this works (to the point I'm ripping my hair out)... There is no way that you could make a patch for this so us that see ASM as a whole other world of hacking =( ( I will be buying some books for sure)
                                Reply With Quote
                                  #18    
                                Old June 7th, 2013 (11:18 AM). Edited June 7th, 2013 by Trev.
                                Trev's Avatar
                                Trev Trev is offline
                                starting my comeback tour
                                   
                                  Join Date: May 2012
                                  Location: anywhere as long as I have dogs
                                  Age: 20
                                  Gender: Male
                                  Nature: Sassy
                                  Posts: 1,192
                                  Quote:
                                  Originally Posted by DarkPsychic View Post
                                  Ok well I have sat here and read Hackmews ASM tut about 4 times now and still I can't seem to understand how to assemble ASM to HEX... His tut seems to speak to people who already know the basics of programming and as for me I am a complete noob to programming... I can't find any video tutorials on GBA ASM hacking nor can I seem to find any IDE or Software that simply converts ASM to HEX. So I am starting to feel at a lose here, like I will never understand how this works (to the point I'm ripping my hair out)... There is no way that you could make a patch for this so us that see ASM as a whole other world of hacking =( ( I will be buying some books for sure)
                                  Don't waste your money on books, those will just make everything more confusing. It's not as hard as you're making it out to be. Here's how I did it, which made it work fine.

                                  Spoiler:
                                  Step 1: Click here. Extract those files to your desktop.

                                  Step 2: MAKE SURE you apply the patch in the first post to your ROM (this should be a clean, unmodified ROM) before doing this.

                                  Step 3: Open Notepad and paste down whichever ASM code you're using (aka if you're expanding flags, using the flag-expanding ASM code)

                                  Step 4: Click File -> Save As. On the Box labelled "File Name" type "[whatevernameyouwant].asm". Under "Save as type", change to All Files. Navigate to the Desktop and save it there.

                                  Step 5: Open Command Prompt. Type "cd Desktop". You're now on your desktop. Type the following into Command Prompt:

                                  Code:
                                  thumb [whatevernameyouchose].asm [samename].bin
                                  You should see "Assembled Successfully" right below it in the Command Prompt. You can close it now.

                                  Step 6: Open the .bin file in a hex editor and copy ALL the data.

                                  Step 7: Open Free Space Finder and find an offset that ends in a 0, 4, 8, or C (as stated above).

                                  Step 8: Open a new sheet in Notepad. Write down your offset, and then write it in little endian + 1. Ex: If my offset was 0x800000, the correct format for this would be 01 00 80.

                                  Step 9: Open your ROM in a hex editor and go to the offset that you chose. Click Edit -> Paste write.

                                  Step 10: Open your ROM in the hex editor and go to the offset 0x6E5D6. Change it to:

                                  Code:
                                  01 48 00 47 00 00 XX XX XX 08
                                  Where the XX's = the endian version of your offset that you were supposed to write down earlier. Hit save, and you're done.
                                  __________________
                                  Projects





                                  Reply With Quote
                                    #19    
                                  Old June 7th, 2013 (3:32 PM).
                                  DarkPsychic's Avatar
                                  DarkPsychic DarkPsychic is offline
                                     
                                    Join Date: Jul 2012
                                    Location: CO
                                    Gender: Male
                                    Nature: Timid
                                    Posts: 130
                                    Quote:
                                    Originally Posted by PJBottomz View Post
                                    Don't waste your money on books, those will just make everything more confusing. It's not as hard as your'e making it out to be. Here's how I did it, which made it work fine.

                                    Spoiler:
                                    Step 1: Click here. Extract those files to your desktop.

                                    Step 2: MAKE SURE you apply the patch in the first post to your ROM (this should be a clean, unmodified ROM) before doing this.

                                    Step 3: Open Notepad and paste down whichever ASM code you're using (aka if you're expanding flags, using the flag-expanding ASM code)

                                    Step 4: Click File -> Save As. On the Box labelled "File Name" type "[whatevernameyouwant].asm". Under "Save as type", change to All Files. Navigate to the Desktop and save it there.

                                    Step 5: Open Command Prompt. Type "cd Desktop". You're now on your desktop. Type the following into Command Prompt:

                                    Code:
                                    thumb [whatevernameyouchose].asm [samename].bin
                                    You should see "Assembled Successfully" right below it in the Command Prompt. You can close it now.

                                    Step 6: Open the .bin file in a hex editor and copy ALL the data.

                                    Step 7: Open Free Space Finder and find an offset that ends in a 0, 4, 8, or C (as stated above).

                                    Step 8: Open a new sheet in Notepad. Write down your offset, and then write it in little endian + 1. Ex: If my offset was 0x800000, the correct format for this would be 01 00 80.

                                    Step 9: Open your ROM in a hex editor and go to the offset that you chose. Click Edit -> Paste write.

                                    Step 10: Open your ROM in the hex editor and go to the offset 0x6E5D6. Change it to:

                                    Code:
                                    01 48 00 47 00 00 XX XX XX 08
                                    Where the XX's = the endian version of your offset that you were supposed to write down earlier. Hit save, and you're done.


                                    It would be helpful to have a tutorial on how to do this, Jambo, since most people don't have the knowledge of how to do this stuff.

                                    Well thank you very much for this. I am understanding now... I have both flag.bin and var.bin now and have already added the flag one to my rom as you made it easy by tossing in the 01 00 80 but my final question is when you revers hex and add one does that mean 800044 becomes 45 00 80 and so on???

                                    PS. Again I thank bolt of you for answering my questions so fast as that is rare on here.. Thanks to you, Jambo51 and karatekid I am at more of an understanding to this ASM. And you where more than right, I was making it harder than it was for sure
                                    Reply With Quote
                                      #20    
                                    Old June 7th, 2013 (3:39 PM).
                                    Trev's Avatar
                                    Trev Trev is offline
                                    starting my comeback tour
                                       
                                      Join Date: May 2012
                                      Location: anywhere as long as I have dogs
                                      Age: 20
                                      Gender: Male
                                      Nature: Sassy
                                      Posts: 1,192
                                      Quote:
                                      Originally Posted by DarkPsychic View Post
                                      when you revers hex and add one does that mean 800044 becomes 45 00 80 and so on???
                                      Yes, that is correct. 800048 would be 49 00 80, 80004C would be 4D 00 80, etc.
                                      __________________
                                      Projects





                                      Reply With Quote
                                        #21    
                                      Old June 7th, 2013 (4:01 PM).
                                      DarkPsychic's Avatar
                                      DarkPsychic DarkPsychic is offline
                                         
                                        Join Date: Jul 2012
                                        Location: CO
                                        Gender: Male
                                        Nature: Timid
                                        Posts: 130
                                        Quote:
                                        Originally Posted by PJBottomz View Post
                                        Yes, that is correct. 800048 would be 49 00 80, 80004C would be 4D 00 80, etc.
                                        Thank you thank you thank you..... Very much appreciated....
                                        Reply With Quote
                                          #22    
                                        Old June 26th, 2013 (5:52 PM).
                                        Trev's Avatar
                                        Trev Trev is offline
                                        starting my comeback tour
                                           
                                          Join Date: May 2012
                                          Location: anywhere as long as I have dogs
                                          Age: 20
                                          Gender: Male
                                          Nature: Sassy
                                          Posts: 1,192
                                          After very serious testing, I've come across the knowledge that the Variable hack is broken. After applying it, numerous game-crashing glitches occured. The first is what I call the qAF glitch, in which a textbox comes up that delivers endless streams of the word qAF that never stops. Other times my character will simply freeze on a random spot (usually one of the blocks next to a warp). On one occasion, the game wouldn't go past the bootscreen and looped back to it every single time it was supposed to go into the opening animation. On another, the game froze on a black screen when it tried to load the name-entering screen. Every single one of these requires a restart, and the worst part is, the first two are random and will appear at different intervals of time. I have no clue if it's the save patch, the ASM code, or my own incompitence causing this, but every time I applied the variable code, it broke the game. Are you positive that it's safe to use those variables even with the code? I feel like they're way too important to overwrite or that they contain something super important in them. Hopefully this little bug report can fix the code (although honestly, there's enough variables since one can hold enormous values and work for numerous scripts, but it'd still be nice)

                                          /end wall
                                          __________________
                                          Projects





                                          Reply With Quote
                                            #23    
                                          Old June 27th, 2013 (4:13 AM). Edited June 27th, 2013 by Jambo51.
                                          Jambo51's Avatar
                                          Jambo51 Jambo51 is offline
                                          Glory To Arstotzka
                                             
                                            Join Date: Jun 2009
                                            Gender: Male
                                            Nature: Quiet
                                            Posts: 732
                                            It's the same code that's in LC. Unchanged. It works in LC perfectly, so I have to assume you've screwed something up.

                                            It turns out I accidentally uploaded completely the wrong routine for the var hack. My sincerest apologies!
                                            __________________
                                            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
                                              #24    
                                            Old June 27th, 2013 (7:25 AM). Edited June 28th, 2013 by Trev.
                                            Trev's Avatar
                                            Trev Trev is offline
                                            starting my comeback tour
                                               
                                              Join Date: May 2012
                                              Location: anywhere as long as I have dogs
                                              Age: 20
                                              Gender: Male
                                              Nature: Sassy
                                              Posts: 1,192
                                              I've re-tested and can confirm that this works with no glitches whatsoever.

                                              After more testing, I've found that the current code (as of 6/28/2013) disables movement commands and hidesprite/showsprite.
                                              __________________
                                              Projects





                                              Reply With Quote
                                                #25    
                                              Old June 28th, 2013 (10:32 AM).
                                              shinyabsol1's Avatar
                                              shinyabsol1 shinyabsol1 is offline
                                              Pokemon DarkJasper!?
                                                 
                                                Join Date: Aug 2010
                                                Gender: Male
                                                Nature: Calm
                                                Posts: 330
                                                Question: Does the Save Block patch work when applied to a hack that is already in progress? I tested it and it doesn't seem to cause any problems, but you never know.

                                                Regardless, I'm still having problems getting the Variable hack to work even on a clean FR rom. I've tried in numerous times and the results are always the same:

                                                1). The givepokemon command ceases to work. Well, it works but it will always give me a ??? Pokemon.
                                                2). It messes up the unaltered scripts in Palette town. Warping to the town out of your house for the first time activates one of the level scripts and displays some text that Oak says at one time or another.

                                                I'm 99% sure that I followed all the instructions correctly (and the Flag hack gives me no such problems, BTW), so what could be going wrong here?
                                                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:32 AM.