Re: Weird 24 hour bug.. on real game!

Discuss anything about the wonderful GBC Telefang games here!
Post Reply
ian_hawdon(imported)
Posts: 2
Joined: Sun Dec 23, 2007 2:41 am

Re: Weird 24 hour bug.. on real game!

Post by ian_hawdon(imported) »

So, yeah, I was stumbling through the Japanese version of Telefang quite nicely, till the clock started showing 24:11... when I went outside, everywhere was solid white!

Is this a Visualboy Advance bug, or a Telefang bug?

Image

once again, this is NOT Diamond! It is a ROM of the real Telefang Power!
Blaziken257
Posts: 984
Joined: Fri Dec 22, 2006 11:52 am

Re: Weird 24 hour bug.. on real game!

Post by Blaziken257 »

It's VisualBoyAdvance. The emulator doesn't emulate the clock properly. When it's 12AM-12:59AM, it makes the hour value 24 instead of 00 like it should. On the cartridge, it should be 00. Since there wasn't a proper color palette when the hour value is 24, it's just all white. Maybe I should create a patch so that it works properly on emulators.

VisualBoyAdvance screws up in Pokémon as well: When it's 12AM-12:59AM in Pokémon, it thinks it's PM instead and it ends up being daytime for an hour when it should be nighttime.

Oh and welcome to the forums!
ian_hawdon(imported)
Posts: 2
Joined: Sun Dec 23, 2007 2:41 am

Re: Weird 24 hour bug.. on real game!

Post by ian_hawdon(imported) »

Yeah, thanks, i sussed it might be a VisualBoy problem as it went to 01:00 later on :-)

I guess that's one thing the Diamond bootleg is good for as it doesn't seem to use a realtime clock (the time speeds up, when the emulator is maxed out)
Milnivri(imported)
Posts: 351
Joined: Wed Dec 27, 2006 10:14 pm

Re: Weird 24 hour bug.. on real game!

Post by Milnivri(imported) »

Hi there, welcome to Tulunk Village! Have some curry (this is so overused)

Welcome!

Anyway I faced the same problem as you, and i thought it was a save state problem. Lol.
Blaziken257
Posts: 984
Joined: Fri Dec 22, 2006 11:52 am

Re: Weird 24 hour bug.. on real game!

Post by Blaziken257 »

I made a patch that sorta fixes the problem. Well, it's good enough so that you can see where you are going, anyway. Here is where the color palette for 24:xx is located in the ROM:

Image

Which, as you know, causes problems in the game at midnight with VisualBoyAdvance:

Image

So I edited the color palette like so:

Image

Unfortunately, I couldn't get it to work the way I wanted it to. When editing that line of hex, it affects all but the last line of colors in the background color palettes (see the palette viewer to see what I mean). (The last line is for text boxes, which still has the yellow/green/blue/pink.) So this limits me to four different colors, which is kinda boring. And I chose gray as the color (I could have chosen sepia or something like that if I wanted to, but no matter what I choose I'm limited to four colors). All the other hours let you edit palettes one line at a time (notice how colorful they are). But hey, at least it looks like one of the last levels in Kirby's Adventure.

Image

So until I find a way so that I can edit parts of the palette rather than all at once, this will have to do. Better than nothing, I guess.

Oh, and by the way, there's a way to work around this problem without a patch as well: Just play it in Game Boy mode.

Image

So... there you have it. Oh, and the patch is in the bottom of the post. Oh, and somebody do me a favor and bug the people who are responsible for making VisualBoyAdvance to make the clock work properly (like I said before, it affects Pokémon as well). And while you're at it, have them fix the not-so-good sound emulation -- the "muffling" noise is too loud, and the bass can hardly be heard at all.

EDIT: Er, I just noticed that this patch causes the screen to look all weird when the title screen loads, and when you press Start and make the D-shoot screen load (though this thankfully doesn't happen in the game). Damn. It seems that these two loading screens run off the same palette.
User avatar
andwhyisit
Site Admin
Posts: 1199
Joined: Fri Dec 14, 2007 9:24 pm

Re: Weird 24 hour bug.. on real game!

Post by andwhyisit »

I'd like to request that this topic be moved to the hacking section
Post Reply