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.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.
Nah, I think I'm doing fine with my writebytetooffset setup...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.
How do I use these? When I change one, it randomly changes the actual clock.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)
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?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.
But since I want GBA compatibility and PC compatibility, what should I do? Add an option to select PC or GBA?Yeah, that's pretty much it.
... ... ...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? :/