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

Reply
 
Thread Tools
  #26    
Old July 1st, 2013 (4:16 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
The Var hack doesn't work. All my scripts only show textboxes, nothing else. It's this one, because I did one at a time.
__________________
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

Relevant Advertising!

  #27    
Old July 2nd, 2013 (4:06 AM).
Jambo51's Avatar
Jambo51 Jambo51 is offline
Glory To Arstotzka
     
    Join Date: Jun 2009
    Gender: Male
    Nature: Quiet
    Posts: 732
    Then you have messed something up. Both PJBottomz and I have tested the var routine that is here, and it works exactly as intended. There is also the simple fact that it is virtually identical to the system in Liquid Crystal where it works perfectly too.
    __________________
    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
      #28    
    Old July 2nd, 2013 (7:32 AM).
    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
    Ok, I think it's me. I have done it 4 times now and made sure the offset ended with C. Then went to the offset and branched with the + 1. I'll just leave it. I came for the flag hack anyway.
    __________________
    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
      #29    
    Old July 2nd, 2013 (8:39 AM). Edited July 2nd, 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,221
      Actually Jambo, I hate to be the devil's advocate, but I tested the hack again and it screwed up movement commands and the hidesprite/showsprite commands. I'll compare the hex code in LC and the one that gets created when assembling the version itt and see if they match. Maybe that'll shed some light on the issue. I can't find the var hack code anywhere in the current LC beta. Are you positive they actually inserted it?
      __________________
      Projects





      Reply With Quote
        #30    
      Old July 2nd, 2013 (2:34 PM).
      Jambo51's Avatar
      Jambo51 Jambo51 is offline
      Glory To Arstotzka
         
        Join Date: Jun 2009
        Gender: Male
        Nature: Quiet
        Posts: 732
        Yes, I know it's in LC because I inserted it.

        It's not identical, but it's almost identical (the only differences being the length of the memory used (and by extension, the number of vars)).
        __________________
        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
          #31    
        Old July 2nd, 2013 (4:21 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,221
          Huh. Well then... something happened during the transition from LC to this topic that causes the code to screw up. Maybe changing the length of the memory used or the number of vars did something wrong, or maybe it's overwriting the code at a wrong offset. When I looked at LC's hex, there were no changes to the code at the offset 0x6E45C. Maybe it's supposed to go somewhere else?
          __________________
          Projects





          Reply With Quote
            #32    
          Old July 3rd, 2013 (7:17 AM).
          Jambo51's Avatar
          Jambo51 Jambo51 is offline
          Glory To Arstotzka
             
            Join Date: Jun 2009
            Gender: Male
            Nature: Quiet
            Posts: 732
            I just checked it, and there's no differences that could cause problems, except perhaps an oddity where vars lower than 0x4000 would get processed as normal vars. I added extra code to deal with such variables, but those shouldn't cause issues ANYWAY.

            Otherwise, all vars are being dealt with exactly as the should, on a logical level, and I checked. LC does have those changes at exactly 0x6E45C, so whichever version you were checking on is, evidently, very outdated.
            __________________
            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
              #33    
            Old July 4th, 2013 (9:13 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,221
              It was the most recent one on the hack topic, beta 2.2.
              __________________
              Projects





              Reply With Quote
                #34    
              Old July 4th, 2013 (10:01 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
                It was the most recent one on the hack topic, beta 2.2.
                HAHA! Wow, that's VERY outdated. LC is currently on version 3.3.00378 (as of the time of this post).
                You can get it here.
                __________________
                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
                  #35    
                Old July 5th, 2013 (8:24 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,221
                  Ah, okay, this one has changes. Here's my findings and the comparisons between the hack in a regular FR and in LC. Differences, Pointers.

                  At 0x6E45C:

                  Code:
                  Liquid Crystal
                  
                  02 48 00 47 04 D8 00 20 58 E0 00 00 79 AD 7B 08
                  Code:
                  FireRed
                  
                  00 48 00 47 01 00 80 08
                  Clearly, there are noticeable differences. I'm guessing the length of the code in LC has to do with the number of variables? Either way, it still works. When I replace the data at 0x6E45C, I usually notice that the code never hits the 08 in the original game's hex. Meaning, the original code is the exact length of LC's code and the one in the post never gets to the ending 08 byte - it's only halfway there.

                  At the Pointers:

                  Code:
                  Liquid Crystal 0x7BAD78
                  
                  40 20 00 02 84 42 12 DB 50 20 00 02 84 42 10 DB 25 04 00 2D 0D DB 0A 48 84 42 08 D8 50 20 00 02 24 1A 64 00 07 48 00 19 70 BC 02 BC 08 47 00 20 FA E7 20 04 00 28 01 DB 03 48 00 47 03 48 00 47 62 55 00 00 00 D4 03 02 73 E4 06 08 0D E5 06 08
                  Code:
                  FireRed 0x800000
                  
                  41 22 12 02 94 42 15 DB 22 04 00 2A 14 DB 50 22 12 02 94 42 0C DB 52 22 12 02 94 42 08 DA 07 48 50 22 12 02 A4 1A 61 00 40 18 70 BC 02 BC 08 47 00 20 FA E7 02 48 00 47 02 48 00 47 00 D2 03 02 73 E4 06 08 0D E5 06 08
                  Here, the differences are less noticeable. One thing I did see was that the code after the DB bytes tended to get out of line after ~the third DB. I'll contribute the length of the entire code and possibly the misalignment to less variables again, but it seems like there's stuff in LC's code that wasn't in the one we're getting.
                  __________________
                  Projects





                  Reply With Quote
                    #36    
                  Old July 5th, 2013 (8:35 AM). 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
                    This version has MORE code, as opposed to less. I simply dealt with the upper limit in a different manner in this version by comparison to LC's. It's functionally identical.

                    Furthermore, the 2 branches are functionally identical, the only difference being where the pointer gets loaded from.

                    I know you're trying to help me find the errors, and I appreciate that, however, comparing hex code won't help you find errors. Most of the differences are down to minor changes with regards to registers and how I dealt with the upper limit.

                    I DID however, give you the wrong memory address for it to read from, which probably didn't help (Latest version of the var code only). I've updated the error in the var code.
                    __________________
                    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
                      #37    
                    Old July 5th, 2013 (9:14 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,221
                      Now it won't assemble.



                      The "newline" thing usually isn't a problem, it'll just insert a newline (which doesn't affect anything). I don't know why it says "text" is a bad command though. It was my understanding that that starts off every ASM code.
                      __________________
                      Projects





                      Reply With Quote
                        #38    
                      Old July 5th, 2013 (10:52 AM).
                      Jambo51's Avatar
                      Jambo51 Jambo51 is offline
                      Glory To Arstotzka
                         
                        Join Date: Jun 2009
                        Gender: Male
                        Nature: Quiet
                        Posts: 732
                        You must've missed the . before the word text at the very start.
                        __________________
                        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
                          #39    
                        Old July 5th, 2013 (2:36 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,221
                          Well, the random freezing glitch came back. @_@
                          __________________
                          Projects





                          Reply With Quote
                            #40    
                          Old July 5th, 2013 (4:00 PM).
                          DarkPsychic's Avatar
                          DarkPsychic DarkPsychic is offline
                             
                            Join Date: Jul 2012
                            Location: CO
                            Gender: Male
                            Nature: Timid
                            Posts: 132
                            Bolt the Flag and Var hack worked fine for me...
                            Reply With Quote
                              #41    
                            Old July 6th, 2013 (7:32 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,221
                              Quote:
                              Originally Posted by DarkPsychic View Post
                              Bolt the Flag and Var hack worked fine for me...
                              That doesn't mean it works for everyone.
                              __________________
                              Projects





                              Reply With Quote
                                #42    
                              Old July 9th, 2013 (3:43 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
                                That doesn't mean it works for everyone.
                                True, but when it works for myself, Linkandzelda and him/her, it does imply that the code is sound, and you are simply messing something up. That said, I have no idea how you could mess it up, especially given that you posted precisely HOW to actually insert the ASM.

                                Are you sure you're using BPRE 1.0? That's the only thing I can think of which could cause the errors you're getting.
                                __________________
                                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
                                  #43    
                                Old July 9th, 2013 (10:22 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,221
                                  Yep, I'm positive. I know that the sign that it's 1.1 is that "Presents" appears on the opening screen right below the Game Freak logo/symbol, and my game doesn't do that.
                                  __________________
                                  Projects





                                  Reply With Quote
                                    #44    
                                  Old July 10th, 2013 (1:09 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 PJBottomz View Post
                                    Yep, I'm positive. I know that the sign that it's 1.1 is that "Presents" appears on the opening screen right below the Game Freak logo/symbol, and my game doesn't do that.
                                    There are 2 dead giveaways that you're using FR 1.0. The first is indeed the lack of a presents thing on the Game Freak screen. The second is that Pokédex entries with a space in the species descriptor ("Tiny Bird Pokémon" for Pidgey for example) stop with the space, instead of ending when they should (So it would read "Tiny Pokémon" for Pidgey).

                                    I honestly have no idea why this won't work for you, but I can assure you, I tested the code and it works exactly as intended.

                                    You have used the patch for (or otherwise installed) JPAN's save block extension, right?
                                    __________________
                                    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
                                      #45    
                                    Old July 10th, 2013 (3:05 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
                                    I just tried the Var hack again and The game runs, just you can't move.
                                    __________________
                                    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
                                      #46    
                                    Old July 11th, 2013 (6:53 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,221
                                      Yes, I used the JPAN memory block save patch thing.
                                      __________________
                                      Projects





                                      Reply With Quote
                                        #47    
                                      Old July 24th, 2013 (1:05 AM). Edited July 26th, 2013 by MrDollSteak.
                                      MrDollSteak's Avatar
                                      MrDollSteak MrDollSteak is offline
                                      Formerly known as 11bayerf1
                                         
                                        Join Date: Dec 2008
                                        Location: Hong Kong
                                        Age: 22
                                        Gender: Male
                                        Posts: 811
                                        Quote:
                                        Originally Posted by Jambo51 View Post
                                        True, but when it works for myself, Linkandzelda and him/her, it does imply that the code is sound, and you are simply messing something up. That said, I have no idea how you could mess it up, especially given that you posted precisely HOW to actually insert the ASM.

                                        Are you sure you're using BPRE 1.0? That's the only thing I can think of which could cause the errors you're getting.
                                        Count me in aswell. I initially had problems with the very original Var hack, but the most recent one works 100%. I added it to both a blank rom first, and then my actual hack, which has quite a few routines and things in and it still worked fine.

                                        That being said I haven't tried setting any of the vars yet. But the game runs and I can move fine. I'll update this message once I start setting the vars.

                                        EDIT: I've used vars 5000, 5001 and 5002 setting them to different values up to 0x8 and have experienced NO problems.

                                        EDIT2: One thing I have noticed though. Is that with the Flag Hack, a few of the flags aren't working. In the sense that I give them to NPCs, and after the flags are set the NPCs are still visible. So far I've been using flags from 900-915 and the flags that don't correctly turn off NPCs are
                                        901, 903, 904, 906, 907, 90F, 910. These are the ones I know of. Has anyone else been experiencing problems with setting these newer flags?

                                        EDIT3: With further inspection it seems that the range actually seems to be 900-907
                                        __________________
                                        Reply With Quote
                                          #48    
                                        Old July 24th, 2013 (9:14 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 11bayerf1 View Post
                                          EDIT2: One thing I have noticed though. Is that with the Flag Hack, a few of the flags aren't working. In the sense that I give them to NPCs, and after the flags are set the NPCs are still visible. So far I've been using flags from 900-915 and the flags that don't correctly turn off NPCs are
                                          901, 903, 904, 906, 907, 90F, 910. These are the ones I know of. Has anyone else been experiencing problems with setting these newer flags?
                                          Interessant. I can't think of any good reason for this to be the case. Perhaps the flag decrypter isn't used when checking NPC flags? Seems exceedingly unlikely, but possible nonetheless. I shall investigate and see what I can discover.
                                          __________________
                                          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
                                            #49    
                                          Old July 24th, 2013 (5:55 PM).
                                          MrDollSteak's Avatar
                                          MrDollSteak MrDollSteak is offline
                                          Formerly known as 11bayerf1
                                             
                                            Join Date: Dec 2008
                                            Location: Hong Kong
                                            Age: 22
                                            Gender: Male
                                            Posts: 811
                                            Quote:
                                            Originally Posted by Jambo51 View Post
                                            Interessant. I can't think of any good reason for this to be the case. Perhaps the flag decrypter isn't used when checking NPC flags? Seems exceedingly unlikely, but possible nonetheless. I shall investigate and see what I can discover.

                                            Thanks! To be honest I would blame my scripting first, but I redid scripts which used both hidesprite and setting the relevant flag in the person ID. It would then re-appear after walking away. I'v eeven tried setting it several times in seperate scripts. I also checked the memory viewer at 203C000 and everything was still 00's. If a flag is set should it look any different in the memory viewer? I don't think it's an issue with the patch or the code itself because most of the vars and flags work, and from what I can tell haven't damaged things that were in that range.
                                            __________________
                                            Reply With Quote
                                              #50    
                                            Old September 7th, 2013 (10:40 AM).
                                            Tavok's Avatar
                                            Tavok Tavok is offline
                                               
                                              Join Date: Aug 2013
                                              Gender: Male
                                              Posts: 8
                                              Is there any way to make this work in Pokemon Ruby? Or does this work? I am editing that, and I could really use the extra flags :/ Thanks in advance
                                              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 11:00 AM.