Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!

TrollandToad.com
Reply
 
Thread Tools
  #51    
Old September 19th, 2013 (9:47 AM). Edited September 21st, 2013 by Hound of Justice.
Hound of Justice Hound of Justice is offline
Banned
     
    Join Date: Aug 2012
    Location: Stealing Ash's Pikachu with Meowth
    Age: 24
    Gender: Male
    Nature: Naughty
    Posts: 1,082
    I hope you make this for emerald
    Reply With Quote

    Relevant Advertising!

      #52    
    Old November 24th, 2013 (1:40 PM). Edited November 24th, 2013 by AlphaDrache.
    AlphaDrache's Avatar
    AlphaDrache AlphaDrache is offline
       
      Join Date: Dec 2009
      Gender: Male
      Posts: 8
      Hey,

      I used the routine for my german emerald rom.
      I works. The wild Pokémon change during night but sometimes the game freezes when the player walks through the grass (day and night time).
      I have no idea why. I only changed the offsets in the routine to make it fit. I'm sure that they are correct because I found them by searching the bytes from the englisch version in the german version.
      Can anyone help me please?

      Furthermore I can say with the help of the disassembler of the VBA that the code loops endless between that part:

      .check:
      ldrb r3, [r1, #0x3]
      cmp r3, #0xFF
      beq .nodata
      cmp r3, #0x8
      bne .nextnormal
      ldr r0, [r1, #0x0]

      Maybe your code has a bug.
      I don't know if it works perfectly for other ones in emerald?
      Reply With Quote
        #53    
      Old January 21st, 2014 (2:37 AM).
      Akumu Nigiyaka's Avatar
      Akumu Nigiyaka Akumu Nigiyaka is offline
         
        Join Date: Jan 2014
        Location: Strasbourg, France
        Gender: Male
        Posts: 4
        Hi, I wanted to know if I can use it on a French ROM, or if i can't, did you know how I can make it ?


        ( Sorry if I do not write correctly English, I'm French, and I just learnd English on School =X )


        PS: It's really a good job, hope its work on French ROM
        Reply With Quote
          #54    
        Old January 22nd, 2014 (7:53 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
        Quote:
        Originally Posted by Akumu Nigiyaka View Post
        Hi, I wanted to know if I can use it on a French ROM, or if i can't, did you know how I can make it ?


        ( Sorry if I do not write correctly English, I'm French, and I just learnd English on School =X )


        PS: It's really a good job, hope its work on French ROM
        To do it, you'd need to find the offsets in the French version then change them in the routine.
        __________________
        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
          #55    
        Old January 22nd, 2014 (11:45 AM).
        ~Ɓαitøt~'s Avatar
        ~Ɓαitøt~ ~Ɓαitøt~ is offline
           
          Join Date: Aug 2013
          Location: France
          Gender: Male
          Nature: Timid
          Posts: 22
          Quote:
          Originally Posted by Akumu Nigiyaka View Post
          Hi, I wanted to know if I can use it on a French ROM, or if i can't, did you know how I can make it ?


          ( Sorry if I do not write correctly English, I'm French, and I just learnd English on School =X )
          You're everywhere decidedly !
          Otherwise, as I told you that I will look for French Version.
          Reply With Quote
            #56    
          Old January 31st, 2014 (8:15 PM).
          Shiny Quagsire's Avatar
          Shiny Quagsire Shiny Quagsire is offline
          I'm Still Alive, Elsewhere
             
            Join Date: May 2009
            Location: Hoenn Safari Zone
            Age: 19
            Gender: Male
            Nature: Jolly
            Posts: 700
            Quote:
            Originally Posted by ~Ɓαitøt~ View Post
            You're everywhere decidedly !
            Otherwise, as I told you that I will look for French Version.
            Just as a rule of thumb in the hacking scene we prefer to work with one version to make things easier offset-wise, so if you're going to be doing a lot of ASM additions, small patches to the ROM at specific offsets, and maybe even graphics hacking it's generally best to work with the standard ROM, or in this case BPRE v1.0. You'll find a lot more support there, especially once I roll out built-in Day/Night pokemon into MEH.
            __________________



            Reply With Quote
              #57    
            Old April 18th, 2014 (6:40 AM).
            pengoy's Avatar
            pengoy pengoy is offline
               
              Join Date: Sep 2013
              Location: no
              Gender: Other
              Nature: Lonely
              Posts: 32
              if i try to use this with prime-dialga's DNS, what offsets would be replaced in the ASM code given?
              Reply With Quote
                #58    
              Old April 18th, 2014 (6:10 PM).
              esperance's Avatar
              esperance esperance is offline
              • Platinum Tier
               
              Join Date: Mar 2010
              Location: Ohio
              Age: 20
              Gender: Male
              Nature: Relaxed
              Posts: 3,830
              Quote:
              Originally Posted by pengoy View Post
              if i try to use this with prime-dialga's DNS, what offsets would be replaced in the ASM code given?
              The only offsets that will change are the RAM offsets for the time, I believe.
              __________________
              What are you so afraid of?
              Reply With Quote
                #59    
              Old April 19th, 2014 (12:44 AM).
              pengoy's Avatar
              pengoy pengoy is offline
                 
                Join Date: Sep 2013
                Location: no
                Gender: Other
                Nature: Lonely
                Posts: 32
                Quote:
                Originally Posted by itari View Post
                The only offsets that will change are the RAM offsets for the time, I believe.
                thanks for answering me! :D

                you mean this: "...hour: .word 0x03005542..."

                using prime's DNS, thats the ram offset for the time... or am i into something else with this?
                Reply With Quote
                  #60    
                Old April 19th, 2014 (8:49 AM).
                hackiosa's Avatar
                hackiosa hackiosa is offline
                Molten Cheese
                   
                  Join Date: Mar 2009
                  Location: Germany
                  Gender: Male
                  Nature: Lonely
                  Posts: 29
                  http://board.romresources.net/board6-romhacking/board19-romhacking-tools/13652-beta-pok%C3%A9dan-enter-the-nightmare/

                  Hi here you can find a tool / asm routine that is able to do the job with prime-dialgas DNS
                  __________________
                  My tools:
                  NanoboyAdvance GBA emulator - http://www.pokecommunity.com/showthread.php?p=9356015
                  Reply With Quote
                    #61    
                  Old April 19th, 2014 (2:39 PM).
                  esperance's Avatar
                  esperance esperance is offline
                  • Platinum Tier
                   
                  Join Date: Mar 2010
                  Location: Ohio
                  Age: 20
                  Gender: Male
                  Nature: Relaxed
                  Posts: 3,830
                  Quote:
                  Originally Posted by pengoy View Post
                  thanks for answering me! :D

                  you mean this: "...hour: .word 0x03005542..."

                  using prime's DNS, thats the ram offset for the time... or am i into something else with this?
                  Yeah, that is what I meant. Just change that to the appropriate RAM offset and it should work.
                  __________________
                  What are you so afraid of?
                  Reply With Quote
                    #62    
                  Old April 19th, 2014 (10:35 PM).
                  pengoy's Avatar
                  pengoy pengoy is offline
                     
                    Join Date: Sep 2013
                    Location: no
                    Gender: Other
                    Nature: Lonely
                    Posts: 32
                    Quote:
                    Originally Posted by itari View Post
                    Yeah, that is what I meant. Just change that to the appropriate RAM offset and it should work.
                    that, i shall do!
                    thank you!
                    Reply With Quote
                      #63    
                    Old November 12th, 2014 (1:35 AM).
                    Lance32497's Avatar
                    Lance32497 Lance32497 is offline
                    LanceKoijer of Pokemon_Addicts
                       
                      Join Date: Aug 2014
                      Location: Criscanto town-Ginoa Region xD
                      Gender: Male
                      Nature: Adamant
                      Posts: 793
                      Quote:
                      Originally Posted by Shiny Quagsire View Post
                      Alrighty! I've finally finished DN Pokemon Data Editor! The download is in an attachment as a zip file. Keep in mind this is only in it's early versions, and may have a bug in it. If you find a bug, contact me by way of PM.
                      How to use it?
                      I always got an error in my ADVMAP when I use it

                      Here are the screenies:

                      Reply With Quote
                        #64    
                      Old November 13th, 2014 (2:17 PM).
                      Shiny Quagsire's Avatar
                      Shiny Quagsire Shiny Quagsire is offline
                      I'm Still Alive, Elsewhere
                         
                        Join Date: May 2009
                        Location: Hoenn Safari Zone
                        Age: 19
                        Gender: Male
                        Nature: Jolly
                        Posts: 700
                        Quote:
                        Originally Posted by Lance32497 View Post
                        How to use it?
                        I always got an error in my ADVMAP when I use it

                        Here are the screenies:

                        That's because it modifies how the data is actually read, making it incompatible with A-Map after you convert it to the new D/N format. Currently MEH has support for D/N pokemon editing although it's a tiny bit buggy so be aware of that.
                        __________________



                        Reply With Quote
                          #65    
                        Old November 14th, 2014 (12:34 AM).
                        Lance32497's Avatar
                        Lance32497 Lance32497 is offline
                        LanceKoijer of Pokemon_Addicts
                           
                          Join Date: Aug 2014
                          Location: Criscanto town-Ginoa Region xD
                          Gender: Male
                          Nature: Adamant
                          Posts: 793
                          Quote:
                          Originally Posted by Shiny Quagsire View Post
                          That's because it modifies how the data is actually read, making it incompatible with A-Map after you convert it to the new D/N format. Currently MEH has support for D/N pokemon editing although it's a tiny bit buggy so be aware of that.
                          Yah, a bit buggy
                          Tried it in 7 times but when I load the rom in v-boy, it results in whitescreen,
                          I also tried to fire a clean rom, and as I expect, it loads smoothly....

                          Any tutorials on how to use it in a safest way?
                          Reply With Quote
                            #66    
                          Old October 28th, 2016 (12:39 AM).
                          Froosty's Avatar
                          Froosty Froosty is offline
                          The_Learner
                             
                            Join Date: Sep 2014
                            Location: Somewhere in this world.
                            Age: 19
                            Gender: Male
                            Nature: Brave
                            Posts: 542
                            I want to one thing pls...
                            which map takes this data for day night shift... and hiw do i set all the maps with pokemon encounter to have day night shift.... do i write asm that much time pr simply edit map header or write a script which act on entering a map???
                            __________________
                            Want to talk with me regarding Rom-hacking ??? Want to get access to my works exclusive than anywhere else ???
                            Click here to get in the discord server here where rom-hacking is a everyday talk and task.

                            Want to showcase your hack on discord server ??? Click here to get the dask done.

                            My works:
                            TOOL: TL's Quick Enhancer
                            TUTORIAL: Fire red habitat editing
                            TUTORIAL: Fire red Transparent text-box


                            | |
                            Reply With Quote
                              #67    
                            Old September 2nd, 2017 (1:49 PM).
                            Nisarg's Avatar
                            Nisarg Nisarg is offline
                               
                              Join Date: Jan 2017
                              Gender: Male
                              Posts: 201
                              Quote:
                              I would ideally like to redevelop these routines to use the new system Prime has developed as it would be more efficient.
                              Yes please!!!
                              Now that would be a very very good deed!
                              (Ofc besides your other good deeds xD)...
                              __________________
                              Reply With Quote
                                #68    
                              Old September 10th, 2017 (8:37 AM).
                              Noodlewhiz's Avatar
                              Noodlewhiz Noodlewhiz is offline
                                 
                                Join Date: Apr 2017
                                Posts: 35
                                Has anyone been able to get this working for Fire Red? I know it says its been extensively tested, but I just can't seem to get it to work. Even though I've inserted all of the routines properly (I know this because the game doesn't crash), the game still only loads the daytime data.
                                Reply With Quote
                                  #69    
                                Old September 11th, 2017 (3:06 AM).
                                Nisarg's Avatar
                                Nisarg Nisarg is offline
                                   
                                  Join Date: Jan 2017
                                  Gender: Male
                                  Posts: 201
                                  Quote:
                                  Originally Posted by Noodlewhiz View Post
                                  Has anyone been able to get this working for Fire Red? I know it says its been extensively tested, but I just can't seem to get it to work. Even though I've inserted all of the routines properly (I know this because the game doesn't crash), the game still only loads the daytime data.
                                  Well, if you just want it to get to work,
                                  U can use MEH to enable this feature...
                                  But then you can not use any other map editor for wild pokemon tab.
                                  These routines by jambo are said to be done for old dns tool, but the ram used is same.. i checked.. dunno why there is a note to change corresponding offsets if it uses same ram adds...
                                  Via MEH, shinyquagsire only puts 2 routine (check in src folder of MEH)... and that missing routines are the one for different encounter rates..
                                  MEH can be downloaded from the site HackRomTools
                                  __________________
                                  Reply With Quote
                                    #70    
                                  Old 3 Weeks Ago (7:56 PM).
                                  Skeli Unbound's Avatar
                                  Skeli Unbound Skeli Unbound is online now
                                  Lord of the Rings
                                     
                                    Join Date: Apr 2014
                                    Location: Canada
                                    Age: 18
                                    Gender: Male
                                    Nature: Adamant
                                    Posts: 113
                                    Quote:
                                    Originally Posted by Noodlewhiz View Post
                                    Has anyone been able to get this working for Fire Red? I know it says its been extensively tested, but I just can't seem to get it to work. Even though I've inserted all of the routines properly (I know this because the game doesn't crash), the game still only loads the daytime data.
                                    I rewrote the Pokemon loading routine so it would work for day and night switching, as well as swarms.
                                    Spoiler:
                                    Code:
                                    .text
                                    .align 2
                                    .thumb
                                    .thumb_func
                                    .global daynightwildswitch
                                    
                                    main:
                                    	add r0, r7, #0x4
                                    	push {r0}
                                    	ldr r0, var_4fff
                                    	bl var_decrypt
                                    	ldrh r0, [r0]
                                    	cmp r0, #0x1
                                    	bge swarm
                                    	pop {r0}
                                    	push {r1}
                                    daynight: 
                                    	ldr r1, hour
                                    	ldrb r1, [r1, #0x0]
                                    	cmp r1, #0x14 /*8PM - Change it if you want*/
                                    	bge night
                                    	cmp r1, #0x11 /*5PM - Change it if you want*/
                                    	bge evening
                                    	cmp r1, #0xA /*10AM - Change it if you want*/
                                    	bge day
                                    	cmp r1, #0x4 /*4AM - Change it if you want*/
                                    	bge morning
                                    night: 
                                    	add r2, r0, #0x4
                                    	b check
                                    evening:
                                    	add r2, r0, #0x0
                                            @add r2, #0x8 @remove if you want evening based Pokemon
                                    	b check
                                    morning:
                                    	add r2, r0, #0x0
                                            @add r2, #0xC @remove if you want morning based Pokemon
                                    	b check
                                    day: 
                                    	add r2, r0, #0x0
                                    check: 
                                    	pop {r1}
                                    check2:
                                    	add r1, r2, #0x3
                                    	ldrb r1, [r2, #0x3]
                                    	cmp r1, #0xFF
                                    	beq nodata
                                    	cmp r1, #0x8
                                    	bne nextnormal
                                    	ldr r0, [r2, #0x0]
                                    nextnormal: 
                                    	add r0, r4, r0
                                    	ldrh r0, [r0, #0x2]
                                    back: 
                                    	ldr r1, lastpokemon
                                    	strh r0, [r1, #0x0]
                                    	add r1, r5, #0x0
                                    	ldr r3, Back
                                    	bx r3
                                    swarm: 
                                    	ldr r1, currentmap
                                    	ldrb r1, [r1] @r1=current map name
                                    	cmp r1, r0
                                    	pop {r0}
                                    	bne daynightone
                                    	ldr r0, var_4ffe
                                    	bl var_decrypt
                                    	ldrh r0, [r0]
                                    	b back
                                    var_decrypt: 
                                    	ldr r1, vardecrypt
                                    	bx r1
                                    daynightone: 
                                    	add r0, r7, #0x4
                                    	push {r1}
                                    	b daynight
                                    nodata: 
                                    	add r2, r0, #0x0
                                    	b check2
                                    
                                    .align
                                    Back: .word 0x08082b51
                                    lastpokemon: .word 0x0300555C
                                    hour: .word 0x03005542
                                    vardecrypt: .word 0x0806E455
                                    var_4fff: .word 0x00004FFF @Replace this with whatever variable you would like to use
                                    var_4ffe: .word 0x00004FFE  @Replace this with whatever variable you would like to use
                                    currentmap: .word 0x03005558


                                    To set a swarm, set var_4fff to your map name, and var_4ffe to your Pokemon species.
                                    __________________
                                    Pokemon Unbound

                                    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 8:14 PM.