• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Development: Christmas Present for PC! Your very own RTC for FR and LG

To bad you had to post a patch.
It's much more fun trying to assemble this on your own and now almost anyone can use it.:(
Anyway, merry Christmas and thanks for sharing.
 
At least me and a few others can be proud that we assembled it! :D
Although I assembled ZodiacDaGreat's because interdpth's is for LeafGreen...
 
Zodiac's won't work vanilla. I'm 99% sure my patch will work for FR, I don't have the game otherwise i'd have a ROM for it.

But I messed something up in code before i pasted it, so the code was bad.

Hopefully people will respect my wishes and not post an example script how to use it

Anywho, i'll be having a day and night system based off of MasterMind's code soon. ^_^

Future releases like this will be ASM only. And i'll make sure I don't fudge it up XD
 
Yes I got ZodiacDaGreats clock Working!:classic:
Now I've just to find out how I can display it ingame.(interdpths example script)
And somehow I think thats the most difficult part since all the rest was given here.
 
is this for a script like callsm? or do you just paste the code in the game with hex editor and it runs the RTC? for firered/leafgreen?
 
Zodiac's won't work vanilla. I'm 99% sure my patch will work for FR, I don't have the game otherwise i'd have a ROM for it.

But I messed something up in code before i pasted it, so the code was bad.

Hopefully people will respect my wishes and not post an example script how to use it

Anywho, i'll be having a day and night system based off of MasterMind's code soon. ^_^

Future releases like this will be ASM only. And i'll make sure I don't fudge it up XD
What do you mean, "won't work vanilla"? It works just fine when implemented. And if yours works fine in FR, I may just try it.
 
ok...i'm confuzzled, does this, or does it not work with firered?
would i have to do some fancy stuff with patches to get it to work in FR (as in the changelog)?
I gues i dont mind it being lg, it's just that i own a fr...i sold my lg :\
plus...my work on my sinnoh patch is all on fr too....so yea...
And ps, can't wait for d/n system ^-^
 
I have confirmed that this fully works in FR, so no worries. And I see that your patch, interdpth, has day of the week AND full 2009 vs 09 in the year, so sorry to Zodiac. :P
 
What do you mean, "won't work vanilla"? It works just fine when implemented. And if yours works fine in FR, I may just try it.

I meant with the org being 0.

Mine is fully setup XD

Oh, hey, go GF, yay it works for both. Diego, if you need to script a to see how to use it, let me know.
 
I meant with the org being 0.

Mine is fully setup XD

Oh, hey, go GF, yay it works for both. Diego, if you need to script a to see how to use it, let me know.
Nah, I think I'm doing fine with my writebytetooffset setup...
Btw, am I on the right track? :P
 
I never used writebytetooffset

check your pm's
 
at 0x3005537
is
u8 dayofweek;
u8 hours;
u8 minutes;

use that when you create your time setter function. code auto compensates(I didn't and don't plan on a date thing you can do that on your own)
How do I use these? When I change one, it randomly changes the actual clock.
 
0x300553C.minutes =0x300553C.minutes + 0x3005537.minutes;
if(0x300553C.minutes > 59)
{
0x300553C.minutes -= 60;
0x300553C.hours++;
}
0x300553C.hours =0x300553C.hours + 0x3005537.hours;
if(0x300553C.hours > 23)
{
0x300553C.hours -= 24;
0x300553C.dayofweek++;
}
0x300553C.dayofweek = (0x300553C.dayofweek + 0x3005537.dayofweek) % 7;

The RTC does that math every frame so use that as a basis for your setter.
 
0x300553C.minutes =0x300553C.minutes + 0x3005537.minutes;
if(0x300553C.minutes > 59)
{
0x300553C.minutes -= 60;
0x300553C.hours++;
}
0x300553C.hours =0x300553C.hours + 0x3005537.hours;
if(0x300553C.hours > 23)
{
0x300553C.hours -= 24;
0x300553C.dayofweek++;
}
0x300553C.dayofweek = (0x300553C.dayofweek + 0x3005537.dayofweek) % 7;

The RTC does that math every frame so use that as a basis for your setter.
On a GBA, this would make it to what you set it, right? But on the computer, wouldn't this offset your computer's time by that amount?
 
Yeah, that's pretty much it.
 
Yeah, that's pretty much it.
But since I want GBA compatibility and PC compatibility, what should I do? Add an option to select PC or GBA?

... ... ...

Actually, that sounds like a good idea. :P
 
No need just make a time set function yo.
 
No need just make a time set function yo.
... ... ...
Man, I am such a n00b. How would I do this, and how could I make it so it has the right time in and out of the computer? :/
 
... ... ...
Man, I am such a n00b. How would I do this, and how could I make it so it has the right time in and out of the computer? :/

If they're on an actual console.

They fix the time.

If not they don't need to touch it
 
Back
Top