The PokéCommunity Forums Fan Games ROM Hacking Help Tools, Tutorials & Resources
Resource [PATCH] [FR] SQ's DNS!!!

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

Reply
 
Thread Tools
  #1    
Old June 29th, 2017 (9:00 PM). Edited June 22nd, 2018 by Nisarg.
Nisarg's Avatar
Nisarg Nisarg is offline
     
    Join Date: Jan 2017
    Gender: Male
    Posts: 207
    Ok guys, we all must have tried different DNS systems from around the net,
    But the best one that I found was by the one and only, Shinyquagsire!
    A lot of people may not know how to compile C files, Or Basics of HxD.
    so I simply made a patch for it.
    The original source can be obtained from:
    https://github.com/shinyquagsire23/Wizard-DN

    NOTE: I have not inserted the battlebg.asm as it has different method of insertion and is very tedious. I may update this thread with a new patch if I get time to hand make all the new pallettes for each and every bg for every time of dns. (So, deal with it).

    Space Used:
    Spoiler:
    RTC.asm
    B01000-B013F7
    mapfilter C
    B02500-B02B8B
    npcfilter C
    B01500-B01A47


    BTW, in the original repo, there's a minor offset correction in MAPFILTER.asm,
    where it says
    "@Insert over 08083598"
    It actually means :
    "@Insert over 080598CC"

    EDIT:
    Keep an eye for turning this post's name red in my signature, cause that's when I'll update the patch ^.^

    EDIT:
    As patches are not always flexible from space used point of view, I am really wanting to make a nice tutorial for the installation of the same. So might do that in future ;)

    EDIT:
    This dns system is not compatible with Naventox's pallette hack as reported by multiple people. Apparently there's a fix repo on Github. But for convenience I'll put the fix in update as well :D
    Attached Files
    File Type: ips SQ's DNS - Nisarg.ips‎ (4.0 KB, 161 views) (Save to Dropbox)
    __________________
    Reply With Quote
      #2    
    Old July 3rd, 2017 (11:54 AM).
    Megax Rocker's Avatar
    Megax Rocker Megax Rocker is online now
       
      Join Date: Jan 2016
      Posts: 128
      Are you planning on releasing a patch for the battleBG once you learn how to insert it?
      Reply With Quote
        #3    
      Old July 4th, 2017 (7:09 AM).
      Nisarg's Avatar
      Nisarg Nisarg is offline
         
        Join Date: Jan 2017
        Gender: Male
        Posts: 207
        Quote:
        Originally Posted by Megax Rocker View Post
        Are you planning on releasing a patch for the battleBG once you learn how to insert it?
        As i said in the tut, deal with it.
        Cuz im also learning how to insert it, but yea sure ill update the patch :)
        There's gotta be someone to help!!
        Btw a small note for everyone, Shinyquagsire deserves all the credit, cuz i realized that my questions were so stupid and irritating...
        So sq, a mega huge thanks to u!
        ;)
        __________________
        Reply With Quote
          #4    
        Old November 21st, 2017 (6:53 AM).
        Megax Rocker's Avatar
        Megax Rocker Megax Rocker is online now
           
          Join Date: Jan 2016
          Posts: 128
          I'm looking forward to the update.
          Reply With Quote
            #5    
          Old December 28th, 2017 (11:05 AM).
          PSI Master's Avatar
          PSI Master PSI Master is offline
          Let your memes be dreams
             
            Join Date: Feb 2013
            Location: A deep underground lab somewhere...
            Gender: Male
            Nature: Serious
            Posts: 68
            Is there a way to undo the patch?
            There seems to be an issue with using this and Navenatox's Dynamic OW Palettes engine causing a lot of palette glitches here and there. Simply going into a hex editor and erasing the locations you put and any pointers I could find just made the ROM crash upon loading (thank goodness for backups). Even removing the DOP didn't really solve the issue either, and I have made quite a bit of progress to just restart again.
            __________________
            Check Out My Projects:

            & My Ultimate Fire Red Base
            https://www.pokecommunity.com/showthread.php?t=409672

            Discord to join my Wish/Rombase server for updates, questions, and info:
            https://discord.gg/N46NeqS
            Reply With Quote
              #6    
            Old January 13th, 2018 (3:11 AM).
            Nisarg's Avatar
            Nisarg Nisarg is offline
               
              Join Date: Jan 2017
              Gender: Male
              Posts: 207
              Quote:
              Originally Posted by PSI Master View Post
              Is there a way to undo the patch?
              There seems to be an issue with using this and Navenatox's Dynamic OW Palettes engine causing a lot of palette glitches here and there. Simply going into a hex editor and erasing the locations you put and any pointers I could find just made the ROM crash upon loading (thank goodness for backups). Even removing the DOP didn't really solve the issue either, and I have made quite a bit of progress to just restart again.
              Yup, use ips check make a log file then observe the address ranges mentioned in it and just grab a backup rom and restore the old bytes there and you're good to go!
              __________________
              Reply With Quote
                #7    
              Old January 26th, 2018 (6:04 AM).
              YoY-X's Avatar
              YoY-X YoY-X is offline
              Cheesy as Rice™
                 
                Join Date: Dec 2017
                Location: USA
                Gender: Male
                Nature: Relaxed
                Posts: 116
                Can you do a patch for dizzys battle engine upgrade?
                if been having trouble.
                Reply With Quote
                  #8    
                Old January 27th, 2018 (1:14 AM).
                Delta231's Avatar
                Delta231 Delta231 is offline
                A noob
                   
                  Join Date: May 2016
                  Location: India
                  Gender: Male
                  Nature: Bold
                  Posts: 579
                  Quote:
                  Originally Posted by YoY-X View Post
                  Can you do a patch for dizzys battle engine upgrade?
                  if been having trouble.
                  Hack FR
                  __________________
                  HGSS OWs in FR Style
                  Fire Red NSE Bookmarks


                  A supporter of


                  Reply With Quote
                    #9    
                  Old January 28th, 2018 (3:14 PM).
                  YoY-X's Avatar
                  YoY-X YoY-X is offline
                  Cheesy as Rice™
                     
                    Join Date: Dec 2017
                    Location: USA
                    Gender: Male
                    Nature: Relaxed
                    Posts: 116
                    no.
                    Reply With Quote
                      #10    
                    Old February 5th, 2018 (2:24 AM).
                    Delta231's Avatar
                    Delta231 Delta231 is offline
                    A noob
                       
                      Join Date: May 2016
                      Location: India
                      Gender: Male
                      Nature: Bold
                      Posts: 579
                      Is this compatible with Navenatox's Dynamic OW Palette Patch? I hope it is. :)
                      __________________
                      HGSS OWs in FR Style
                      Fire Red NSE Bookmarks


                      A supporter of


                      Reply With Quote
                        #11    
                      Old March 17th, 2018 (2:08 AM).
                      MorbidAngel666 MorbidAngel666 is offline
                         
                        Join Date: Aug 2016
                        Gender: Male
                        Posts: 11
                        Hey, man, nice work out there! I have a question. Does this DNS lights up the windows at night? Because I saw this in the CrystalDust hack and never in other hack. (If I writed something wrong, sorry, my English is not thaaat good xD)
                        Reply With Quote
                          #12    
                        Old May 15th, 2018 (12:08 AM).
                        vxo's Avatar
                        vxo vxo is offline
                           
                          Join Date: Nov 2017
                          Location: california
                          Gender: Male
                          Nature: Hardy
                          Posts: 48
                          I'm having a few issues with this DNS Patch. I think it's an interference with the Dynamic Palettes patch, as I've done some testing and it seems to work fine w/o it.

                          Here are some screenshots to show what I'm talking about:

                          This one seems to make it so tiles from the main tileset are reset to their default palettes


                          After moving a bit more, the main tiles will fix but all sprites in view will have their palettes "corrupted".


                          After going into a battle or building, the palettes are all fixed.

                          This is as much information I can give, as I don't have much experience dealing with anything complicated.
                          __________________
                          My Projects

                          Reply With Quote
                            #13    
                          Old May 15th, 2018 (3:29 AM).
                          Delta231's Avatar
                          Delta231 Delta231 is offline
                          A noob
                             
                            Join Date: May 2016
                            Location: India
                            Gender: Male
                            Nature: Bold
                            Posts: 579
                            Quote:
                            Originally Posted by vxo View Post
                            I'm having a few issues with this DNS Patch. I think it's an interference with the Dynamic Palettes patch, as I've done some testing and it seems to work fine w/o it.

                            Here are some screenshots to show what I'm talking about:

                            This one seems to make it so tiles from the main tileset are reset to their default palettes


                            After moving a bit more, the main tiles will fix but all sprites in view will have their palettes "corrupted".


                            After going into a battle or building, the palettes are all fixed.

                            This is as much information I can give, as I don't have much experience dealing with anything complicated.

                            Click here
                            __________________
                            HGSS OWs in FR Style
                            Fire Red NSE Bookmarks


                            A supporter of


                            Reply With Quote
                              #14    
                            Old May 16th, 2018 (6:46 PM).
                            vxo's Avatar
                            vxo vxo is offline
                               
                              Join Date: Nov 2017
                              Location: california
                              Gender: Male
                              Nature: Hardy
                              Posts: 48
                              Quote:
                              Originally Posted by Delta231 View Post
                              Would I have to remove SQ's DNS inorder for this to work? If so, how would I go about it?
                              __________________
                              My Projects

                              Reply With Quote
                                #15    
                              Old May 17th, 2018 (2:20 AM).
                              Delta231's Avatar
                              Delta231 Delta231 is offline
                              A noob
                                 
                                Join Date: May 2016
                                Location: India
                                Gender: Male
                                Nature: Bold
                                Posts: 579
                                Quote:
                                Originally Posted by vxo View Post
                                Would I have to remove SQ's DNS inorder for this to work? If so, how would I go about it?
                                Yes, you have to remove it. Check the readme.
                                __________________
                                HGSS OWs in FR Style
                                Fire Red NSE Bookmarks


                                A supporter of


                                Reply With Quote
                                  #16    
                                Old May 17th, 2018 (3:01 AM).
                                Neon Skylar's Avatar
                                Neon Skylar Neon Skylar is offline
                                   
                                  Join Date: May 2014
                                  Location: Venezuela n_n
                                  Gender: Male
                                  Posts: 58
                                  Quote:
                                  Originally Posted by Delta231 View Post

                                  In a simpler way, how do I apply the Wizard DN? I do not understand the instructions very well
                                  Reply With Quote
                                    #17    
                                  Old May 17th, 2018 (3:29 AM).
                                  Delta231's Avatar
                                  Delta231 Delta231 is offline
                                  A noob
                                     
                                    Join Date: May 2016
                                    Location: India
                                    Gender: Male
                                    Nature: Bold
                                    Posts: 579
                                    Quote:
                                    Originally Posted by Neon Skylar View Post
                                    In a simpler way, how do I apply the Wizard DN? I do not understand the instructions very well

                                    1.Apply the Pallete Patch or compile it from the repo.
                                    2.Insert Navenatox_Pallete_Patch_Fix.asm. 3.Insert RTC.asm

                                    In Line 436 updateNPCPal: ......... .word 0x08XXXXXX+1 with XXXXXX being the offset of where you just inserted the Navenatox_Pallete_Patch_Fix.asm. This is not a reverse pointer, do not reverse or add anything to the offset, just change the number after 0x08 exactly where you inserted it and keep the +1 after it.

                                    4.Compile npcmod.c instead of npcmod.asm

                                    5.Put all the other asm files.
                                    __________________
                                    HGSS OWs in FR Style
                                    Fire Red NSE Bookmarks


                                    A supporter of


                                    Reply With Quote
                                      #18    
                                    Old May 17th, 2018 (3:44 AM).
                                    Neon Skylar's Avatar
                                    Neon Skylar Neon Skylar is offline
                                       
                                      Join Date: May 2014
                                      Location: Venezuela n_n
                                      Gender: Male
                                      Posts: 58
                                      Quote:
                                      Originally Posted by Delta231 View Post
                                      1.Apply the Pallete Patch or compile it from the repo.
                                      2.Insert Navenatox_Pallete_Patch_Fix.asm. 3.Insert RTC.asm

                                      In Line 436 updateNPCPal: ......... .word 0x08XXXXXX+1 with XXXXXX being the offset of where you just inserted the Navenatox_Pallete_Patch_Fix.asm. This is not a reverse pointer, do not reverse or add anything to the offset, just change the number after 0x08 exactly where you inserted it and keep the +1 after it.

                                      4.Compile npcmod.c instead of npcmod.asm

                                      5.Put all the other asm files.
                                      In which offset goes the RTC.asm? with steps 4 and 5 can you be a little more detailed? I'm learning this compile but I'm going little by little.
                                      Reply With Quote
                                        #19    
                                      Old May 17th, 2018 (3:49 AM).
                                      Delta231's Avatar
                                      Delta231 Delta231 is offline
                                      A noob
                                         
                                        Join Date: May 2016
                                        Location: India
                                        Gender: Male
                                        Nature: Bold
                                        Posts: 579
                                        Quote:
                                        Originally Posted by Neon Skylar View Post
                                        In which offset goes the RTC.asm? with steps 4 and 5 can you be a little more detailed? I'm learning this compile but I'm going little by little.
                                        The offset in RTC is where you have inserted your Navenatox_Pallete_Patch_Fix.asm.If I have put it in 9045F0, I will write 0x089054F1.

                                        In Step 4 you just compile npcmod.c

                                        in Step you insert all the asm routines.
                                        __________________
                                        HGSS OWs in FR Style
                                        Fire Red NSE Bookmarks


                                        A supporter of


                                        Reply With Quote
                                          #20    
                                        Old May 17th, 2018 (4:28 AM).
                                        Neon Skylar's Avatar
                                        Neon Skylar Neon Skylar is offline
                                           
                                          Join Date: May 2014
                                          Location: Venezuela n_n
                                          Gender: Male
                                          Posts: 58
                                          Quote:
                                          Originally Posted by Delta231 View Post
                                          The offset in RTC is where you have inserted your Navenatox_Pallete_Patch_Fix.asm.If I have put it in 9045F0, I will write 0x089054F1.

                                          In Step 4 you just compile npcmod.c

                                          in Step you insert all the asm routines.
                                          1.- I take the Dynamic Overworld Palettes patch and apply it to a clean rom

                                          2.- Then I go to the thumb folder and compile Navenatox_Pallete_Patch: Fix.asm and convert it to .bin

                                          3.- I open the clean rom and I go to an offset ... 71A240 for example and I put the previous bin and save

                                          4.-I go to a text editor (Sublime text) to open the file RTC.asm and on line 436 I put in 0x08XXXXXX + 1 my offset that would be 0x0871A241

                                          Once placed the 0x0871A241 I have to compile with thumb and specifically in what offset goes (where I want or there is a specific address) and how compile npcmod.c? I put the rom in the root folder and give it make or what? in that part where I'm blocked

                                          I understand things better when the process is step by step .. I am a little noob in this, sorry for so much discomfort
                                          Reply With Quote
                                            #21    
                                          Old May 17th, 2018 (5:46 AM). Edited May 17th, 2018 by Delta231.
                                          Delta231's Avatar
                                          Delta231 Delta231 is offline
                                          A noob
                                             
                                            Join Date: May 2016
                                            Location: India
                                            Gender: Male
                                            Nature: Bold
                                            Posts: 579
                                            Quote:
                                            Originally Posted by Neon Skylar View Post
                                            1.- I take the Dynamic Overworld Palettes patch and apply it to a clean rom

                                            2.- Then I go to the thumb folder and compile Navenatox_Pallete_Patch: Fix.asm and convert it to .bin

                                            3.- I open the clean rom and I go to an offset ... 71A240 for example and I put the previous bin and save

                                            4.-I go to a text editor (Sublime text) to open the file RTC.asm and on line 436 I put in 0x08XXXXXX + 1 my offset that would be 0x0871A241

                                            Once placed the 0x0871A241 I have to compile with thumb and specifically in what offset goes (where I want or there is a specific address) and how compile npcmod.c? I put the rom in the root folder and give it make or what? in that part where I'm blocked

                                            I understand things better when the process is step by step .. I am a little noob in this, sorry for so much discomfort
                                            For RTC asm:

                                            Put 00B5 0148 0047 0000 [Reverse Address+1] 0000 10BC at 0x4B0.

                                            To compile npcmod.c :

                                            There is a script to compile that. I will edit this post when I will find it. If you are using Windows..

                                            I don't really want to make a patch for this as people will learn these stuff themselves. :smile:
                                            __________________
                                            HGSS OWs in FR Style
                                            Fire Red NSE Bookmarks


                                            A supporter of


                                            Reply With Quote
                                              #22    
                                            Old May 17th, 2018 (7:35 AM).
                                            Neon Skylar's Avatar
                                            Neon Skylar Neon Skylar is offline
                                               
                                              Join Date: May 2014
                                              Location: Venezuela n_n
                                              Gender: Male
                                              Posts: 58
                                              Quote:
                                              Originally Posted by Delta231 View Post
                                              For RTC asm:

                                              Put 00B5 0148 0047 0000 [Reverse Address+1] 0000 10BC at 0x4B0.

                                              To compile npcmod.c :

                                              There is a script to compile that. I will edit this post when I will find it. If you are using Windows..

                                              I don't really want to make a patch for this as people will learn these stuff themselves. :smile:

                                              I totally agree with you, we all have to learn but we need a detailed guide on how to do it ..
                                              Reply With Quote
                                                #23    
                                              Old May 17th, 2018 (1:35 PM).
                                              MrDollSteak's Avatar
                                              MrDollSteak MrDollSteak is offline
                                              Formerly known as 11bayerf1
                                                 
                                                Join Date: Dec 2008
                                                Location: Hong Kong
                                                Age: 23
                                                Gender: Male
                                                Posts: 842
                                                Quote:
                                                Originally Posted by Delta231 View Post
                                                For RTC asm:

                                                Put 00B5 0148 0047 0000 [Reverse Address+1] 0000 10BC at 0x4B0.

                                                To compile npcmod.c :

                                                There is a script to compile that. I will edit this post when I will find it. If you are using Windows..

                                                I don't really want to make a patch for this as people will learn these stuff themselves. :smile:
                                                Perhaps you could make a patch to compare with Fire Red so people can compare what you've done with what they're trying to do? It sounds like people are having trouble understanding your instructions because they're quite unclear.

                                                I also don't think saying 'do random stuff' is very helpful. If people are having difficulties, comparing to a completed patch could be very helpful. Especially if you put it in an area that overwrites peoples work so they know they have to repoint it.
                                                __________________
                                                Reply With Quote
                                                  #24    
                                                Old May 17th, 2018 (4:29 PM).
                                                vxo's Avatar
                                                vxo vxo is offline
                                                   
                                                  Join Date: Nov 2017
                                                  Location: california
                                                  Gender: Male
                                                  Nature: Hardy
                                                  Posts: 48
                                                  Quote:
                                                  Originally Posted by Delta231 View Post
                                                  Yes, you have to remove it. Check the readme.
                                                  Your Readme.md doesn't specify how to remove the "broken" patch.
                                                  __________________
                                                  My Projects

                                                  Reply With Quote
                                                    #25    
                                                  Old May 17th, 2018 (7:18 PM). Edited June 10th, 2018 by Delta231.
                                                  Delta231's Avatar
                                                  Delta231 Delta231 is offline
                                                  A noob
                                                     
                                                    Join Date: May 2016
                                                    Location: India
                                                    Gender: Male
                                                    Nature: Bold
                                                    Posts: 579
                                                    Quote:
                                                    Originally Posted by vxo View Post
                                                    Your Readme.md doesn't specify how to remove the "broken" patch.
                                                    Oh Sorry my mistake, I will add that ASAP.


                                                    EDIT

                                                    I am gonna tell you how to do this.

                                                    Requirements:

                                                    A Hex Editor (I prefer HxD)
                                                    A Clean FR Rom
                                                    A Patched FR Rom


                                                    Steps:

                                                    1) Open your clean and patched rom in HxD

                                                    2) Let's first go to 0x4B0 in both the roms. You will see the hook there in the patched i.e 00 B5 01 48 00 47 00 00 01 10 B0 08 00 00 10 BC . Overwrite those bytes with the bytes in your clean rom

                                                    Now let's reverse the address 01 10 B0 that would be B01000. Go to that address in your patched rom and from B01000 to B013F7 copy write FF.

                                                    3) Now go to B0250 and overwrite it with a table of FF bytes

                                                    4)Now go to B01500 and overwrite it with a table of FF bytes


                                                    And It seems the patch is incomplete..



                                                    Use this patch
                                                    Attached Files
                                                    File Type: ips Remove DNS.ips‎ (81 Bytes, 4 views) (Save to Dropbox)
                                                    __________________
                                                    HGSS OWs in FR Style
                                                    Fire Red NSE Bookmarks


                                                    A supporter of


                                                    Reply With Quote
                                                    Reply

                                                    Quick Reply

                                                    Join the conversation!

                                                    Create an account to post a reply in this thread, participate in other discussions, and more!

                                                    Create a PokéCommunity Account
                                                    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 4:49 AM.