Bangai-Oh VGA Patch

Place for discussing homebrew games, development, new releases and emulation.
aldair
Metallic
Posts: 827
Dreamcast Games you play Online: Quake 3 Arena

Re: Bangai-Oh VGA Patch

Post by aldair »

iron_chief wrote:
MoeFoh wrote:VGA patched track03 and track15 of the US TOSEC Soul Fighter dump. Working on GDEMU.

https://www.mediafire.com/file/ybg5r5ko ... mN.7z/file
I just did a before and after, and can report that it looks way more crisp with the patch. GDemu on OSSC.

Wait, now it looks about the same. Might be my OSSC settings.
Running on OSSC at 970p with SD Card Dreamshell with cdda.
Image

Image
With switch in RGB only works VGA.

TapamN
drunken sailor
Posts: 160

Re: Bangai-Oh VGA Patch

Post by TapamN »

All of these patches (except the last) modify the game to ONLY run on VGA.

King of Fighters 98 US ("The King of Fighters 99 Dream Match"):

I used the TOSEC GDI dump (from archive.org), but the MD5 for track 43 that I patched doesn't match what redump lists as correct. I also checked the download from cdromance, and it's the same. I'm too lazy to dump my own disc. I got an MD5 of 8707c9ed721b58646b846fb15c5bac69 on track 43 before patching.

This patch could probably be simplified, but I'm not going to bother.

Code: Select all

RAM addr	Track43 addr	
8c1c1d82	1822D4B2	change 01 88 to 08 00
8c1fe4aa	18272B8A	change 01 c8 to 08 00
8c201642	18276442	change 01 c8 to 08 00
8c2019ca	182768FA	change 06 01 to 0c 02
8c2019a4	182768D4	change 01 88 to 18 00
8c2019a8	182768D8	change 12 e6 to 28 e6
8c2019ce	182768FE	change 02 01 to 08 02
8c201a28	18276958	change 01 88 to 18 00
8c201aa8	182769D8	change 4a 1e to 5a 1e
8c201ad2	18276A02	change 4c 1e to 5c 1e
8c201a0c	1827693C	change 20 c8 to 08 00
8c201a60	18276990	change 04 01 to 08 02
8c1c1dfa	1822D52A	change 01 88 to 08 00
8c1c1dfe	1822D52E	change 00 88 to 18 00
8c1c1c88	1822D3B8	change 0b 43 to 09 00
8c1c1c8a	1822D3BA	change e9 26 to 00 e0
8c19bbe4	182018D4	change 01 88 to 08 00
8c19bc36	18201926	change 09 00 to 00 e4
8c19b9be	182016AE	change 2d 94 to 00 e4
8c200f30	18275C00	change 59 21 to 01 e1
8c200ef8	18275BC8	change 00 41 to 02 E1
8c201594	18276394	change 32 60 to 28 e0
8c20159c	1827639C	change 31 51 to 28 e1
8c20168c	1827648C	change 1b d2 to 1b d5
8c201690	18276490	change 22 65 to 09 00
8c2016fc	182764FC	change 20 5d a9 8c to a8 00 00 00
I went and checked some other games that looked easy to patch (already 640x480):

Langrisser Millenium JP:

Code: Select all

RAM addr	Track3 addr
8c068fe4	466E76C4	change 38 e4 to 01 e4
ECW Anarchy Rulz US (This game runs with 2x supersampling?! Patch also disables vertical blur):

Code: Select all

RAM addr	Track5 addr
8c0ca0e6	2A8727C6	change 38 e4 to 01 e4
8c0d4540	2A87E3E0	change 34 e4 to 01 e4
8c0d47d6	2A87E676	change 34 e4 to 01 e4
8c17bf76	2A93EBE6	change 18 42 to ff e3
8c17bf7a	2A93EBEA	change 2b 23 to 18 43
ECW Hardcore Revolution US (This game runs with 2x supersampling?! Patch also disables vertical blur):

Code: Select all

RAM addr	Track5 addr
8c0ad81e	1B16C4CE	change 38 e4 to 01 e4
8c0b76a4	1B1779E4	change 34 e4 to 01 e4
8c0b793a	1B177DAA	change 34 e4 to 01 e4
8c12cab6	1B1FE506	change 18 42 to ff e3
8c12caba	1B1FE50A	change 2b 23 to 18 43
I think I found something that might fix for Hydro Thunder 1.020's spotty compatibility. It's not enabling interlacing, but it frequently slows the pixel clock from VGA speed to NTSC/PAL speed for a moment several times per second (maybe once per frame? not sure) while it changes the display size register. I'm not sure why it's changing it. Unpatched Hydro Thunder runs fine on everything I can test with, so I don't know if this actually fixes it, but it doesn't seem to break anything after patching, and in an emulator I can see that it stops toggling the clock speed. If you have problems with Hydro Thunder, check and see if this helps. This is only for the later 1.020 version, not 1.002. The game should still be NTSC compatible with this patch, unlike the others.

Code: Select all

RAM addr	Track37 addr
8c0963a4	22674F54	change 0b 43 to 09 00

Codebreaker:
0f0963a4
00000009

TapamN
drunken sailor
Posts: 160

Re: Bangai-Oh VGA Patch

Post by TapamN »

Airforce Delta US VGA Only Patch

Code: Select all

RAM addr   Track30 addr   
8c01ff0e	048A1A5E   change 28 e4 to 01 e4
8c1499a2	049F78B2	change 80 02 to 40 01
8c18002a	04A360AA	change 01 c9 to 01 e0

Codebreaker:
0f01ff0e
0000e401
0f1499a2
00000140
0f18002a
0000e001

User avatar
MoeFoh
1300
Posts: 1313

Re: Bangai-Oh VGA Patch

Post by MoeFoh »

Pattern III GD-ROM Layout - redump will store 75 bytes of pre-gap data in the last data track, resulting in different hash totals than the TOSEC GDI version. I think?

This utility should get back the original bin. I think?

https://github.com/AwfulBear/RedumpCUE2GDI
Last edited by MoeFoh on Sat Apr 29, 2023 6:50 am, edited 2 times in total.

User avatar
fafadou
Leonard Nimoy
Posts: 1833

Re: Bangai-Oh VGA Patch

Post by fafadou »

Your work is going beyond m'y imagination :)

User avatar
MoeFoh
1300
Posts: 1313

Re: Bangai-Oh VGA Patch

Post by MoeFoh »

Patched track 37 of Hydro Thunder v1.020 'Hot New' 100% Working VGA (USA).

https://www.mediafire.com/file/upt4bk93 ... mN.7z/file

If you have one of those inexpensive VGA to HDMI cables or box, please test and let us know.

I have a Hyperkin cable I'd like to test later today.

Edit: Incredible, now working with my Hyperkin cable, where it didn't work before the patch. Still working with my Portta IN3CVRH upscaler.

User avatar
CrashMidnick
blackout!
Posts: 141
Location: FRANCE

Re: Bangai-Oh VGA Patch

Post by CrashMidnick »

@MoeFoh : what software do you use to modify tracks ?

User avatar
MoeFoh
1300
Posts: 1313

Re: Bangai-Oh VGA Patch

Post by MoeFoh »

CrashMidnick wrote:@MoeFoh : what software do you use to modify tracks ?
HxD:

https://download.cnet.com/HxD-Hex-Edito ... 91068.html

User avatar
CrashMidnick
blackout!
Posts: 141
Location: FRANCE

Re: Bangai-Oh VGA Patch

Post by CrashMidnick »

MoeFoh wrote:
CrashMidnick wrote:@MoeFoh : what software do you use to modify tracks ?
HxD:

https://download.cnet.com/HxD-Hex-Edito ... 91068.html
Thanks. This is what I have but cannot find the values given by TapamN. Are there any settings to set up to find Ram Address ?

TapamN
drunken sailor
Posts: 160

Re: Bangai-Oh VGA Patch

Post by TapamN »

CrashMidnick wrote:Thanks. This is what I have but cannot find the values given by TapamN. Are there any settings to set up to find Ram Address ?
Don't use the RAM address when hex editing the tracks, use the second column. RAM address is mostly informational. If you want to put the 1ST_READ into Ghidra and look at what the patch does, then you use the RAM address. You can also use RAM address to make Codebreaker codes. For each line of "8c______ change from blah to 12 34", the code is "0f______ 00003412" (last two pairs of digits are swapped).

  • Similar Topics
    Replies
    Views
    Last post