The PokéCommunity Forums Fan Games ROM Hacking 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 September 8th, 2017 by Nisarg.
Nisarg's Avatar
Nisarg Nisarg is offline
     
    Join Date: Jan 2017
    Gender: Male
    Posts: 205
    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 ppl 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 which I also m learning currently from SQ. (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:
    Guise I finally managed to apply this blending system to battles!
    Keep an eye for turning this post's name red in my signature, cuz that's when I'll update the patch ^^
    Attached Files
    File Type: ips SQ's DNS - Nisarg.ips‎ (4.0 KB, 89 views) (Save to Dropbox)
    __________________
    Reply With Quote

    Relevant Advertising!

      #2    
    Old July 3rd, 2017 (11:54 AM).
    Megax Rocker's Avatar
    Megax Rocker Megax Rocker is online now
       
      Join Date: Jan 2016
      Posts: 123
      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: 205
        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: 123
          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: 23
            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.
            __________________
            The creator of a work in progress:
            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: 205
              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 3 Weeks Ago (6:04 AM).
              YoY-X's Avatar
              YoY-X YoY-X is offline
              Team EM for Life!
                 
                Join Date: Dec 2017
                Gender: Male
                Nature: Relaxed
                Posts: 22
                Can you do a patch for dizzys battle engine upgrade?
                if been having trouble.
                Reply With Quote
                  #8    
                Old 3 Weeks Ago (1:14 AM).
                Delta231's Avatar
                Delta231 Delta231 is offline
                A noob
                   
                  Join Date: May 2016
                  Location: India
                  Gender: Male
                  Nature: Bold
                  Posts: 376
                  Quote:
                  Originally Posted by YoY-X View Post
                  Can you do a patch for dizzys battle engine upgrade?
                  if been having trouble.
                  Hack FR
                  __________________
                  Fire Red will rise again.

                  A supporter of


                  Reply With Quote
                    #9    
                  Old 3 Weeks Ago (3:14 PM).
                  YoY-X's Avatar
                  YoY-X YoY-X is offline
                  Team EM for Life!
                     
                    Join Date: Dec 2017
                    Gender: Male
                    Nature: Relaxed
                    Posts: 22
                    no.
                    Reply With Quote
                      #10    
                    Old 1 Week Ago (2:24 AM).
                    Delta231's Avatar
                    Delta231 Delta231 is offline
                    A noob
                       
                      Join Date: May 2016
                      Location: India
                      Gender: Male
                      Nature: Bold
                      Posts: 376
                      Is this compatible with Navenatox's Dynamic OW Palette Patch? I hope it is. :)
                      __________________
                      Fire Red will rise again.

                      A supporter of


                      Reply With Quote
                        #11    
                      Old 1 Week Ago (3:18 PM).
                      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: 23
                        Quote:
                        Originally Posted by Delta231 View Post
                        Is this compatible with Navenatox's Dynamic OW Palette Patch? I hope it is. :)
                        It is, but you'll need to follow the directions Navenatox sent me in DM's. There are conflicting issues with the patch and Navenatox's system that causes random flashes and NPC's and backgrounds turning black sometimes.
                        You'll have to forego the DNS patch and insert it manually using the Github source code.

                        1. Compile this ASM Code, insert it into free space and note the offset
                        Spoiler:

                        .thumb

                        update_npc:
                        push {r4-r6,lr}
                        mov r4, #0
                        ldr r5, =0x203ff00
                        ldr r6, =0x203fd00

                        loop:
                        ldrb r0, [r5]
                        cmp r0, #0
                        beq next
                        bl update

                        next:
                        add r4, #1
                        add r5, #4
                        cmp r4, #16
                        blo loop

                        end:
                        pop {r4-r6,pc}


                        update:
                        lsl r2, r4, #5
                        ldr r1, =0x20373f8
                        add r0, r6, r2
                        add r1, r2
                        mov r2, #16
                        swi #0xb
                        mov r0, r4
                        ldr r1, =0x8083598+1
                        bx r1


                        2. Open rtc.asm from SQ's DNS source and edit line 436 to be:

                        updateNPCPal: ......... .word 0x08XXXXXX+1

                        with XXXXXX being the offset of where you just inserted the asm This is not a 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

                        3. Then open the folder 'npcfilter' and then open 'npcmod.c' and and insert these two lines after the line saying "offset = 0x020373F8 + (derp * 0x20);" at the beginning of the function filter:

                        void (*cpuset)(int,int,int) = (void(*)(int,int,int))0x81e3b64+1;
                        cpuset(offset, 0x203fd00 + derp * 0x20, 16);

                        This should remove the black backgrounds and NPCs glitch

                        4. In the very same file (npcfilter\npcmod.c), add this to the very end of the function filter

                        if (*(char*)(0x20385F4 + 6) == 1 && *(char*)(0x20385F4 + 10)) cpuset(0x20385F4 + 4, 0x20375f8, 0x200 | 1 << 24);

                        This should remove the flashing problem.


                        These are the steps Navenatox gave to me, but I have yet to test them out myself because I'm not experienced with Github source compiling in C, if it doesn't work you'll have to DM him, but I thought it might help.
                        __________________
                        The creator of a work in progress:
                        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

                        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 2:20 AM.