Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dav3yb

Pages: [1] 2
1
EverDrive GBA / Re: REQUEST: Isolated RTC Function for GBA X5
« on: July 26, 2021, 01:53 AM »
It would certainly be nice if each game could keep it's own RTC, but once you kind of understand how the Pokemon games interact w/ the Everdrive, it's not too bad overall. 

I made a thread a while back exploring it and posting my findings: http://krikzz.com/forum/index.php?topic=10360

Basically, for Ruby and/or Sapphire, after you start the game, you just need to set the in-game clock to 00:0X, where X is total in-game minutes have passed since starting (if you go strait to the clock from the opening, it's usually ~2 minutes).  After saving, you can go back out and into a game like Boktai, that allows manual time/date setting, and set it to current, which will update the RTC file for Ruby/Sapphire.

For Emerald it's a bit different, as you can just set the correct time/date in Boktai, then start the game in Emerald, and set the clock to the current time, as Emerald doesn't seem to reset the date when a new file is made, and the game just reads what the clock reads to determine it's timestamps. 

I'm not sure other than Boktai/Pokemon games that use the RTC on GBA, but following the above directions will ensure your in-game time corresponds to real time.

2
EverDrive GBA / Re: New to GBA X5, Question about Pokemon RTC
« on: November 28, 2020, 03:38 AM »
Hi there,

I have a GBA X5 (Not the Mini one) coming in the post but i have a quick question regarding RTC with Pokemon Ruby, Sapphire and Emerald.

I have been reading about having to use Boktai to set the RTC and something about a berry bug with the Pokemon games.

Can i just use an RTC patched version of the rom for the Pokemon games? ( I think its called GBATA RTC Patch)

Would that bypass that berry bug?

And would i be able to say play the RTC patched Pokemon games without them affecting each other clocks?

Thanks for the help in advance.

As nuu mentioned, it depends on what the patch does.  If it allows you to set the time on each boot, that should work just fine for you, as I had to do that with Pokemon Crystal on my older Gameboy Everdrive. 

But the thread he linked was one I started in an attempt to figure out exactly how the games worked with their respective Real-time Clocks.  I went back and double checked a couple things to confirm, and added a quote to the OP of the thread so that the information will be pretty clear and upfront, and so people won't have to dig through to figure out exactly what needs doing.  Here's the quote though, if you'd like to give just using the default ROMs a chance:

Quote from: dav3yb
I'm adding this here to give a bit of clarification on what I discovered in my testing:

Pokemon Ruby and Sapphire: When starting a new game on any of these games, even the later revisions which claim to fix the berry glitch, they will start a NEW clock file, and off-set it by the time you input in game.  If you want the clock to be accurate to IRL time, set the clock to only 1 or 2 minutes past midnight in game (or however many minutes it shows on your in-game playtime stats, if you wandered a bit).  Once you've set the clock, save the game, then you can go into Boktai and you can adjust the date and time (which will be set to 1/1/2000, and ~00:02 am roughly) to the correct IRL time.  This will cause Ruby/Sapphire to update to the current time.

Pokemon Emerald:  Emerald act's a bit different, in that it will only adjust the TIME of the RTC file, and will not adjust the date when a new save file is created.  It will simply pull the date that is already present.  Best practice for Emerald is to use Boktai to set the correct Date and Time, then, when you're in Emerald, simply set the time to the current IRL time, and the Date/Time will match IRL. 

I hope this makes a few things a bit more clear for anyone searching for the information. 

Also, if I'm not mistaken, the Berry glitch in Ruby/Sapphire is mostly tied to the DATE.  Apparently the later revisions of the games that were released shipped with an update the fixed the glitch, but from what I read, it seems to occur when the date rolls over from 2000, to 2001, and does not seem to correct itself until it hits 2002 (or some variation of this).  If you follow my guide to new games, once the RTC is updated to the current date and time, the berry glitch should no longer happen.  Emerald I don't think actually has the berry glitch, but the main issue with Physical Cartridges and berries, is that the battery dies, and the way the game calculates elapsed time to when they should grow.  Since the battery is dead, the clock is constantly stuck on an earlier date and time.  Even after replacing the battery, the clock will only resume from it's original starting point, so you would need some other way to update the clock on the Physical Cartridge.  I did this with a 10$ DS flashcart and a homebrew app that allows adjusting of game clocks.  That's also in the linked thread though. 

3
I just mentioned in another thread, but I wouldn't mind at least a menu option to manually dump the save file.  Same w/ a RTC option so you wouldn't have to load into Boktai to check/set it.

never will happen

Why's that?  The cartridge is already capable of running a routine to dump the save ram to a file, so why would an option to manually run that never happen? 

4
I just mentioned in another thread, but I wouldn't mind at least a menu option to manually dump the save file.  Same w/ a RTC option so you wouldn't have to load into Boktai to check/set it. 

5
EverDrive GBA / Re: OMG MY BATTERY WENT DRY!!!!
« on: November 10, 2020, 04:23 AM »
It would be nice if there was a menu option for manually dumping the save file.  Or like the EDGBx7, adjust the RTC right from the menu. 

Anyone know of a particular reason those options aren't a thing?

6
Give this a try:

Put pokemon emerald rom onto the everdrive, start a new game, and save.  Then, load up a different game on the everdrive.  Then overwrite the emerald save with your own, making sure the text matches and extension is correct. 

Then load emerald again and see if the save is there. 

7
EverDrive GBA / Re: EDGBA X5 Battery/RTC Questions
« on: October 21, 2020, 05:21 AM »
Yeah, from my messings around with it, changing time in Boktai will change the time in emerald as well.
This is given. Any game that uses the RTC would be affected by RTC changes, or there would be no point of it having an RTC.


I'm also not completely sure exactly how they changed Berries in emerald, if at all.  I know yesterday while messing with it, I planed some, and waited a few hours for them to sprout.  Then going back into boktai and correcting the time (it was set forward a few hours) made the berries no longer be sprouted.  There's certainly still some kind of counting going on for it, and I think that's why my physical copy of emerald won't grow any berries, it probably has a day count somewhere in the save file as well, and since all that was reset when the battery dried out, even replacing it won't help since some value doesn't match.

So knowing all this now, probably whenever the battery needs replacing on the everdrive, just going to set the correct time in boktai should set everything back to normal, assuming you took the steps to set everything correctly as needed (R/S starting w/ the offset and correcting the time later).
Yes maybe your Emerald cart has problems because the RTC reset to its default value when you changed the battery, and the game went "back in time". It's not a problem on the Everdrive where you can easily change the RTC setting using Boktai.

It seems to be the same problem described here:
https://github.com/megaboyexe/GBA_RTCRead
Quote
Basically, the game stores a timestamp from when you last saved the game, and only performs its clock-based tasks if the current time is higher. Whether this is intentional is anyone's guess.

Because the RTC's value is reset to 2000-01-01 00:00:00 when the battery dies, it will always be lower than the save file timestamp when you replace the battery.
In other words, your berries won't grow and the day counter is frozen until the RTC catches up to the timestamp in the save file. It's a separate glitch from the "berry glitch", and unlike that one, it seems to affect Emerald as well as confirmed by you.
It's also described on the berry glitch page on Bulbapedia.
https://bulbapedia.bulbagarden.net/wiki/Berry_glitch#Replaced_battery


You can change the RTC on your Emerald cart starting the above tool on your Everdrive, and hotswap it with the Emerald cart, then set it to a date that is later than the timestamp in the save file.

Awesome.  I got my DS flashcart in today, and loaded up the homebrew app.  Got my emerald updated to the correct date/time, so we'll see if I can grow some berries.  The only thing in the app I was slightly confused by was a "wkd:" field, which numbered... 0 to 6.  I'm guessing this is which weekday you're on, but not really knowing where the count is intended to start, I treated Sunday as 0, and set it to day 2.  Just have to wait now to see if things will grow. 

Quite a journey this whole thing was, that's for sure.  Thanks for all the help.  Glad I could also contribute some information to all of this. 

8
EverDrive GBA / Re: EDGBA X5 Battery/RTC Questions
« on: October 18, 2020, 03:59 PM »
So Emerald is special while Ruby and Sapphire works as described above. Thanks for confirming this.

I have no idea how Emerald works, but I guess it's possible it just uses the actual time value recorded in the RTC, just like Boktai. But if that was the case, it shouldn't mess up Boktai. If you change the RTC in Boktai, Emerald should change accordingly as well.
Is it possible to change the time again in Emerald after the first time in the intro, like you can in Boktai?

The berry glitch happens because of a bug that prevents the game from counting days correctly the second year (when the RTC says year 2001). When the date is 2002-01-02, the game should count days correctly again and berries and other time events should work like normal again.
Emerald was made after this bug was discovered and naturally doesn't have it. The Ruby and Sapphire are "patched" when linking to Emerald, FireRed, LeafGreen, the Gamecube Pokemon games or when using certain e-cards. The patch simply forwards the RTC date by 366 days if the glitch hasn't happened or sets it to 2002-01-02 if it has. If you start a new game the patch will of course be needed to be applied again since the RTC is reset to 2000-01-01. Setting the RTC date to 2002-01-02 or later in Boktai should be an easy way to fix it in an Everdrive.

Yeah, from my messings around with it, changing time in Boktai will change the time in emerald as well.  As far as I know, outside of maybe a patched ROM that allows you to change the clock again, it's set the first time and you can't change it again.  I know for my older Gameboy ED I had to patch Crystal to allow the clock to be set each time it was loaded or most things wouldn't work at all.

I'm also not completely sure exactly how they changed Berries in emerald, if at all.  I know yesterday while messing with it, I planed some, and waited a few hours for them to sprout.  Then going back into boktai and correcting the time (it was set forward a few hours) made the berries no longer be sprouted.  There's certainly still some kind of counting going on for it, and I think that's why my physical copy of emerald won't grow any berries, it probably has a day count somewhere in the save file as well, and since all that was reset when the battery dried out, even replacing it won't help since some value doesn't match. 

So knowing all this now, probably whenever the battery needs replacing on the everdrive, just going to set the correct time in boktai should set everything back to normal, assuming you took the steps to set everything correctly as needed (R/S starting w/ the offset and correcting the time later). 

Doesn't the Gameboy ED X7 have a menu option for changing the RTC btw?  Any idea if doing that would be possible for the EDGBA?

9
EverDrive GBA / Re: EDGBA X5 Battery/RTC Questions
« on: October 18, 2020, 02:44 AM »
Update!

Yeah, Ruby and Sapphire seem to create a new RTC file (so to speak), but I guess Emerald doesn't.  After stating a new game on Sapphire, Boktai read 1/1/2000, time 00:02 AM. 

I set the time correctly in Boktai, and that did alter the time to be incorrect on Sapphire, but I guess since I originally set it first in Boktai, THEN made the Emerald save, it just used the time it was reading, instead of resetting the RTC.  I'm guessing this might partially be how the Berry glitch was fixed?  Idk, but it's certainly interesting. 

So when starting new games on Ruby or Sapphire, it's good to set the clock to 2 or 3 minutes past midnight, then correcting the clock in Boktai.  Good to know. 

10
EverDrive GBA / Re: EDGBA X5 Battery/RTC Questions
« on: October 18, 2020, 02:33 AM »
Date and time is still current? I thought starting a new game in Emerald would reset it to 2001-01-01, 00:00.

Anyway if what I've been saying is correct you should already be fine now when you have started a game in Emerald and set time a little past midnight in it. The time offset in Emerald's save file should be close to zero now. You can change the RTC to anything you want, using Boktai, and the time in Emerald should still match the new time.

Hmm... yeah, just went back to check Boktai, and in the options, it's set to nearly the exact time as current.  Thinking that it might be best for a fresh Everdrive, going into boktai to set date and time first, then starting any pokemon game will work just fine.  Maybe starting a game in Ruby or Sapphire would alter the time in Boktai, but since they're all using the same shared clock, and since it's powered, I would assume it wouldn't really change anything.  Could be wrong, but I think i'll give it a shot. 

11
EverDrive GBA / Re: EDGBA X5 Battery/RTC Questions
« on: October 17, 2020, 11:51 PM »
It is convoluted, I had trouble understanding it the first time I heard it.
Anyway, no you don't have to wait for real time to be anything in particular. If I understand it correctly you should just set the time to 00:05 or something in Emerald, regardless what the real time is. 00:05 is in case the intro up to the point that you set the wall clock in emerald took you about 5 minutes for you to go through. If you think it took 10 minutes, set it to 00:10 and so on (if you mess up, just reset and start a new game again). Then continue the game until you can save. After saving you can start Boktai and set the RTC to real time or whatever you want and it should be correct in Emerald as well.

The point is that if Emerald's time offset is 0, time in Emerald will be whatever the RTC is set to. Making it exactly 0 is probably hard to do, unless you hack the save file, but a few minutes off might not be a big deal.

Ok, after playing around a bit, i think i made myself even more confused.  I deleted the save file for Boktai, and when I went back in and adjusted it to the correct date/time, the time jumped in emerald, that makes sense to me.

I started a new game in emerald, set the clock to a couple minutes past midnight, but then going back into boktai, the date and time are current.  So that would lead me to think I could just set the date/time in boktai, then start a new game in Pokemon and it'll be normal? 

12
EverDrive GBA / Re: EDGBA X5 Battery/RTC Questions
« on: October 17, 2020, 11:07 PM »
Specifically, Pokemon resets the date and time to 2001-01-01, 00:00 at the start of a new game, then it never touches the RTC again. Other than resetting it, the RTC can never be changed in Pokemon, and the game just saves an offset used to calculate game time from the RTC's time. This means that it will mess up the RTC for any other game when you do this. And it also means that Pokemon's time will always be off if the RTC is then changed by another game.
The solution is to set the wall clock in Pokemon at the start of the game to a few minutes after midnight (depending on how long the intro takes for you) to make the time offset as close to 0 as possible. Then the RTC can be set in Bokutai to real time, without the time being too much off in Pokemon. You need to do this every time you start a new game in any of the Pokemon games.

You don't have to set the date to present day real time in Bokutai, but you should at least set it to a date after 2002-01-02. Doing this stops the berry glitch from happening.


Bokutai is only used because it's a game that allows you to set the RTC time manually. There may be other games that can do it too, but just remember that Pokemon can't.


If you have already started a game in Pokemon and don't want to start over again, I suppose the only solution is to figure out where the time offset is stored in the save file and changing it to 0 manually, and recalculate the checksum.

What i did so far (on the everdrive) was start a new pokemon emerald game, then go into boktai and set the date to current, but i didn't touch the time at all, since I wanted the time in emerald to at least stay accurate.  From all the other reading I did I kind of gathered that setting the time in a new game would then update the time in other games, but mainly by offsetting it?  So by not actually adjusting the time in boktai, it kept my accurate time in Emerald.  Seems like the best way to sync up the times all around would be to just wait for the default time in Boktai on any given day that you set it? 

It just feels a bit convoluted to me at the moment. 

13
EverDrive GBA / EDGBA X5 Battery/RTC Questions (New info in OP)
« on: October 17, 2020, 09:07 PM »
So I just recently picked up an Everdrive X5 off ebay, and I've been learning a lot about some of the nuances of the RTC.  It's an older model (Rev. B), as I wanted to avoid any of the current manufacturing issues that are being ironed out.

I started a game of Pokémon Emerald, and I used Boktai to set the date of the RTC.  From the reading I've been doing, it's probably a good idea to use Boktai any time I start a new game on anything that uses the RTC, since Boktai allows you to set the date along w/ the time. Would this be accurate to say?

Also, how does swapping the ED's battery or it dying effect the RTC for games like Pokémon Emerald.  I have a cartridge for emerald, and I recently replaced it's battery (as it's been dead for a while), but I'm guessing due to some discrepancies with the save file and RTC, Berries no longer grow for me on the official cart.  I'd like to avoid this on the ED if possible, so should I just use Boktai to set the date/time any time the battery is swapped?

Also, the easiest question, what type of battery does the EDGBA use?

Thanks for any info anyone can provide. 

Quote from: dav3yb
I'm adding this here to give a bit of clarification on what I discovered in my testing:

Pokemon Ruby and Sapphire: When starting a new game on any of these games, even the later revisions which claim to fix the berry glitch, they will start a NEW clock file, and off-set it by the time you input in game.  If you want the clock to be accurate to IRL time, set the clock to only 1 or 2 minutes past midnight in game (or however many minutes it shows on your in-game playtime stats, if you wandered a bit).  Once you've set the clock, save the game, then you can go into Boktai and you can adjust the date and time (which will be set to 1/1/2000, and ~00:02 am roughly) to the correct IRL time.  This will cause Ruby/Sapphire to update to the current time.

Pokemon Emerald:  Emerald act's a bit different, in that it will only adjust the TIME of the RTC file, and will not adjust the date when a new save file is created.  It will simply pull the date that is already present.  Best practice for Emerald is to use Boktai to set the correct Date and Time, then, when you're in Emerald, simply set the time to the current IRL time, and the Date/Time will match IRL. 

I hope this makes a few things a bit more clear for anyone searching for the information. 

14
EverDrive GB / Re: Swap A & B Buttons round?
« on: November 29, 2014, 12:19 AM »
I was coming by just to ask this.  B = Back, or cancel, A = Accept, or select. 

so will an OS update be done through some custom rom file or something?

15
EverDrive N8 / Re: Error with samsung SD cards? (Error 63 and 65)
« on: October 27, 2014, 05:35 AM »
I had similar problems with a Samsung MB-SS8GB/EU and the Super Everdrive. Cheap ebay cards work better.

The strange thing to me is that the same SD card works perfectly fine in the Everdrive 64.

Actually it is not strange at all. If card works with one everdrive, it not means that it will work with another. Different everdrives uses different SD card controllers, furthermore, ED64 uses SDIO protocol, but N8 uses SPI protocol.

hmmmm.... is there any way to tell what SD cards might/might not work?  also, since were on the subject, what does the Gameboy ED use?  I'll be getting one soon and if i need to hunt a new SD card i'd like to know.

thanks for all the work though!  ED's are great, we had a blast with my ED64 at a friends place last night. 

Pages: [1] 2