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!

Reply
 
Thread Tools
  #26    
Old January 1st, 2011 (2:35 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 NintendoBoyDX View Post
    Sorry to resurrect an old topic, but I needed to ask, is there a way to get the time of the RTC clock? If so it would be pretty easily to script the entire GSC berry system(no planting/watering or moving icons involved, just pick a tree OW sprite, and give it a script to check the time, and if so use the giveitem command to give the person a berry once per day.
    In a script, simply put the following command:

    copybyte 0x020370D0 0x03005542

    That'll copy the hour byte of the RTC to the Lastresult variable for you to use.
    Although JPAN's system would be better IMO, so you should at least consider it.
    __________________
    Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
    Reply With Quote

    Relevant Advertising!

      #27    
    Old January 1st, 2011 (11:34 AM). Edited January 1st, 2011 by NintendoBoyDX.
    NintendoBoyDX NintendoBoyDX is offline
       
      Join Date: Jul 2010
      Gender: Male
      Posts: 94
      Thanks, is there also a way to copy the contents of the day/month/year as well? I'm assuming that hours uses 0x9 for 9am and 0x15 for 9pm? Also is there a way to check if the lastresult
      contents are greater or less than instead of equal or not equal to?
      Reply With Quote
        #28    
      Old January 1st, 2011 (2:43 PM). Edited January 2nd, 2011 by Jambo51.
      Jambo51's Avatar
      Jambo51 Jambo51 is offline
      Glory To Arstotzka
         
        Join Date: Jun 2009
        Gender: Male
        Nature: Quiet
        Posts: 732
        Quote:
        Originally Posted by NintendoBoyDX View Post
        Thanks, is there also a way to copy the contents of the day/month/year as well? I'm assuming that hours uses 0x9 for 9am and 0x15 for 9pm? Also is there a way to check if the lastresult
        contents are greater or less than instead of equal or not equal to?
        Yes, 0x9 is 9AM and 0x15 is 9PM.
        Day of Month: 0x03005540
        Day of Week: 0x03005541
        Month: 0x0300553F

        There is no way to call the year in the same fashion as it is a half word, rather than a byte. You would have to write a small asm routine to write it to a variable or something. For reference, add or subtract 2 to the lastresult ram pointer to change it to a preceding or following variable.

        I forget the exact numbers which in a script indicate greater than or less than, but, if you're using XSE, you can simply do this instead, and XSE replaces it upon compile:

        compare LASTRESULT 0x9
        if B_>= call/goto @wherever

        Upon compile to the rom, XSE replaces it with the relevant value, so it's not a problem. Isn't HackMew's tool wonderful? XD
        __________________
        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
          #29    
        Old January 1st, 2011 (7:13 PM). Edited January 2nd, 2011 by NintendoBoyDX.
        NintendoBoyDX NintendoBoyDX is offline
           
          Join Date: Jul 2010
          Gender: Male
          Posts: 94
          Thanks, so there are multiple places to store values near LASTRESULT?
          Reply With Quote
            #30    
          Old January 2nd, 2011 (3:46 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 NintendoBoyDX View Post
            Thanks, so there are multiple places to store values near LASTRESULT?
            All of the 0x80XX family of variables are static, unlike the DMA protected majority (they move around the ram constantly), so anything from 0x8000 to 0x8013 will work with that formula. However, DO NOT USE 0x800F as it is the LASTTALKED variable, and is important for various other background routines. Other than that, you should be safe.

            LASTRESULT = 0x800D in case you didn't know.
            __________________
            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 January 2nd, 2011 (12:47 PM). Edited January 4th, 2011 by NintendoBoyDX.
            NintendoBoyDX NintendoBoyDX is offline
               
              Join Date: Jul 2010
              Gender: Male
              Posts: 94
              Got to be careful on that though jpan uses some of the variables for his hacked engine. Quick question about 0x80xx variables, are 0x8014 through 0x80ff static? If so why wouldn't they work in the same way as 0x8000 through 0x8013?
              Reply With Quote
                #32    
              Old January 22nd, 2012 (8:53 AM).
              xephos's Avatar
              xephos xephos is offline
              xephos Inc.
                 
                Join Date: Jan 2012
                Location: U.S.A
                Gender: Male
                Nature: Quiet
                Posts: 14
                Is there a video on how to do this, because it just flew over my head
                Reply With Quote
                  #33    
                Old January 22nd, 2012 (9:25 AM).
                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
                  Nope. There isn't a patch either. I can honestly say that it took me weeks to get this to fully work, including custom ASM. I even hacked the berry bag so I could choose a berry from there. I'll have to upload a video sometime. Maybe a tutorial for that part.
                  __________________



                  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 7:40 PM.