ROM Hack Boktai "Solar sensor is broken" patch

kuwanger

Well-Known Member
OP
Member
Joined
Jul 26, 2006
Messages
1,510
Trophies
0
XP
1,783
Country
United States
For most Boktai fans who want to play year round, going the rom hack way is basically the only sensible approach. One problem is, most flash carts don't support RTC, so almost all the sensor patches also include a RTC patch to allow you to change the time. The only problem is, they only go far enough to fix *some* of the RTC checks so if you do have a RTC, you have problem. The end result is that for RTC flash carts Boktai, in seeing two seemingly reported times, is convinced something is wrong. The only odd thing is it thinks it's the solar sensor that's the problem.

In any case, the actual patch to resolve this is pretty simple. It nops out a few of the existing RTC reads, effectively disabling the RTC. It also disables the error check that causes the "Solar sensor is broken" to pop up. Hopefully this will be of use to some people. Note: This is for the USA version of Boktai. It is based on the Eurasia sensor patch. Here is my alteration of that patch in hexalter format:


Code:
hexalter Boktai.gba 0x124aa=0x01 0x124ae=0x0e,0xe0 0x12c8c=0xc0,0x46 0x1c4a02=0x01,0x48,0x00,0x47 0x1c4a07=0x00,0x00,0xe0,0xee,0x08 0x1c5054=0xc0,0x46,0xc0,0x46 0x1c5110=0x08,0x23 0x1c529c=0x02,0x48,0x00,0x88,0x02,0xa1,0x08,0x5c,0x70,0x47,0x00,0x00,0x2c,0x1c,0x00,0x03,0x00,0x06,0x0f,0x1b,0x2b,0x42,0x61,0x8b,0xff,0xff,0xff,0xff 0x1d860a=0x00,0x04,0x0a 0x1d860e=0x40,0x0b,0xe0,0x21,0x09,0x05,0x41,0x18,0x07,0x31,0x00,0x23,0x08,0x78,0x10,0x70,0x01,0x33,0x01,0x32,0x01,0x39,0x07,0x2b,0xf8,0xd9,0x00,0x20,0x70,0xbc,0x02,0xbc,0x08,0x47 0x1d86b8=0x70 0x1d86ba=0x00,0x04,0x0a 0x1d86be=0x40,0x0b,0xe0,0x21,0x09,0x05,0x41,0x18,0x07,0x31,0x00,0x23,0x10,0x78,0x08,0x70,0x01,0x33,0x01,0x32,0x01,0x39,0x07,0x2b,0xf8,0xd9,0x00,0x20,0x70,0xbc,0x02,0xbc,0x08,0x47 0x1d907e=0xc0,0x46 0xeee000=0xb4 0xeee002=0x9f,0xe5,0x0f,0xe0,0xa0,0xe1,0x10,0xff,0x2f,0xe1,0xac 0xeee00e=0x9f,0xe5,0x0f,0xe0,0xa0,0xe1,0x10,0xff,0x2f,0xe1,0xa4,0x10,0x9f,0xe5,0xb0 0xeee01e=0xd1,0xe1,0xb2,0x10,0xd1,0xe1,0x0d,0x2d 0xeee027=0xe2,0x0d,0x0d,0x52,0xe3,0x08 0xeee02f=0x0a,0x02,0x0c,0x10,0xe3,0x03 0xeee037=0x0a,0x20 0xeee03a=0x11,0xe3,0x0d 0xeee03f=0x1a,0x10 0xeee042=0x11,0xe3,0x13 0xeee047=0x1a 0xeee04a=0xa0,0xe3,0x04,0x10,0x9d,0xe4,0x11,0xff,0x2f,0xe1,0x14,0xe0,0x4f,0xe2,0x10,0x40,0x2d,0xe9,0x18,0xd0,0x4d,0xe2,0x64,0x10,0x9f,0xe5 0xeee065=0x20,0xa0,0xe3,0x01,0x30,0xa0,0xe1,0x01,0x40,0xa0,0xe1,0x58 0xeee072=0x9f,0xe5,0x10,0xff,0x2f,0xe1,0x48,0x20,0x9f,0xe5,0xb0,0x30,0xd2,0xe1,0x01,0x30,0x53,0xe2 0xeee085=0x30,0xa0,0xb3,0xb0,0x30,0xc2,0xe1 0xeee08e=0xa0,0xe3,0x04,0x10,0x9d,0xe4,0x11,0xff,0x2f,0xe1,0x28,0x20,0x9f,0xe5,0xb0,0x30,0xd2,0xe1,0x01,0x30,0x83,0xe2,0x08 0xeee0a6=0x53,0xe3,0x08,0x30,0xa0,0xc3,0xb0,0x30,0xc2,0xe1 0xeee0b2=0xa0,0xe3,0x04,0x10,0x9d,0xe4,0x11,0xff,0x2f,0xe1,0x89,0x4a,0x1c,0x08,0x65,0x54,0x1c,0x08,0x50,0x44 0xeee0c7=0x03,0x2c,0x1c 0xeee0cb=0x03 0xeee0cd=0x47 0xeee0cf=0x03,0x35,0x10,0x1d,0x08

PS - Many thanks to Eurasia for the bulk of this ROM hack/code; I hope they don't mind me using it. Without it, it'd have been a lot more difficult to make the necessary changes. If there are any problems with this patch, please let me know.

Edit: Fixed up the patch again, which works on my Gamebox Advance and hopefully works on various carts.
 
  • Like
Reactions: Jabodie

Prof. 9

Well-Known Member
Member
Joined
Jun 17, 2008
Messages
324
Trophies
1
Location
The Netherlands
Website
twitter.com
XP
853
Country
Netherlands
PS - Many thanks for the bulk of this ROM hack/code, which isn't mine.
Then whose is it?

I had made a patch to remove the error check a while ago (http://gbatemp.net/topic/215549-vbagx-boktai-1-how/page__view__findpost__p__3357439) but this seems much more thorough, nice work. So if I got this right, this disables time advancement completely and only lets you change the time via the time change cheat added in the solar sensor patch?

Also, for which region is this?
 

kuwanger

Well-Known Member
OP
Member
Joined
Jul 26, 2006
Messages
1,510
Trophies
0
XP
1,783
Country
United States
The bulk of the code comes from the EURASIA patch but with the intro removed. The patch is for the USA region. Oddly enough, btw, just the patch seems to not be enough to work on my Gamebox Advance, so I plan on looking on what all the patches I have in my working version and possible release an update. :/
 

jimmyemunoz

Well-Known Member
Member
Joined
Feb 23, 2009
Messages
1,958
Trophies
0
Location
Louisiana
XP
487
Country
United States
How do you use this? I downloaded both versions of hexalter and it closes as soon as I run it.
Its a command line application that you run from Command prompt. It's a primitive computing known as DOS. I'm sure you've heard of it. Copy the command code in the fist post. :)

For the heck of it I decided to use it and I can tell you it doesn't work well. It will freeze the game about 5 seconds in. Stay away! :( It's unfortunate!
 

kuwanger

Well-Known Member
OP
Member
Joined
Jul 26, 2006
Messages
1,510
Trophies
0
XP
1,783
Country
United States
That's odd. Out of curiosity, what region Boktai are you using? The patch is only for US, so that might be why it's not working properly for you. Also, are you using any other patching on top of this patch? I'd like to fix any problems you're having, if I can.
 

thaddius

Charmander is not pleased.
Member
Joined
May 5, 2008
Messages
1,345
Trophies
1
Age
111
Website
Visit site
XP
1,279
Country
Canada
There's a 'Patch Kit' on FileTrip here. I am not sure if it's the version Kuwanger made. It seems to have been uploaded after the thread was made/last commented on.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    realtimesave @ realtimesave: @K3Nv2 I'm still not really convinced that sylverrez is a girl lol