Bangai-Oh VGA Patch

Place for discussing homebrew games, development, new releases and emulation.
User avatar
pcwzrd13
Seen Any Sailors?
Posts: 7283
Dreamcast Games you play Online: All of them! I'm able to connect with dial-up or broadband.
Location: USA
Contact:

Re: Bangai-Oh VGA Patch

Post by pcwzrd13 »

The ECW Hardcore Revolution patch seems to have an issue. The screen will flash black every once and a while. Not a huge deal but figured I'd mention it.
PSO Characters:
Teal'c - lvl 119 HUcast - GC# 11666
Alto - lvl 39 FOnewm - GC# 12964

YouTube Channel : Dreamcast Live

User avatar
CrashMidnick
blackout!
Posts: 141
Location: FRANCE

Re: Bangai-Oh VGA Patch

Post by CrashMidnick »

@TapamN :

About KOF98, are you sure about those values ? :

8c19b9be 182016AE change 2d 94 to 00 e4

Is it ? :

8c19b9be 182016AE change 09 00 to 00 e4

or is it ? :

8c19b9be 182016AA change 2d 94 to 00 e4

User avatar
ateam
Metallic
Posts: 816

Re: Bangai-Oh VGA Patch

Post by ateam »

TapamN wrote: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
At 0x182016AE in track43.bin, we see 0x09 0x00 (a nop instruction, and not 0x2d 0x94). However, just 4 bytes before that at 0x182016AA we do see 0x2d 0x94. I haven't loaded the executable in Ghidra to see what these instructions do, but I assume that's the change you meant? Seems to be working just fine with my assumed change.

In any event, here's a .DCP for those interested...

The King of Fighters - Dream Match 1999 (VGA Patch - TapamN).dcp
https://drive.google.com/u/0/uc?id=1BVe ... t=download
Find me on...

DreamcastForever.com
GitHub
Reddit
SegaXtreme
Twitter
YouTube
• Discord: derek.ateam

User avatar
CrashMidnick
blackout!
Posts: 141
Location: FRANCE

Re: Bangai-Oh VGA Patch

Post by CrashMidnick »

KOF98/99 Dream Match track #43 modified/VGA patched with "8c19b9be 182016AA change 2d 94 to 00 e4" :

https://www.mediafire.com/file/p6vymg6v ... 3.bin/file

User avatar
pitito
fire
Posts: 72

Re: Bangai-Oh VGA Patch

Post by pitito »

Thanks to the patch for Air Force Delta US provided by @TapamN, I was able to locate the values for DEADLY SKIES (PAL version of the game)
File 0.000 (It is the game binary)
offset
0xFF16 change 2AE4 to 01E4
0x170BE2 change 8002 to 4001
0x1A726A change 01C9 to 01E0

TapamN
drunken sailor
Posts: 160

Re: Bangai-Oh VGA Patch

Post by TapamN »

ateam wrote:I gave this a try with DCDigital HW2 with MagiClock feature disabled (which fixes Hydro Thunder). I get a black screen in VGA mode, with the music playing, but cutting in and out every other second.
I'm not sure then. That's the main issue that stood out in my look. I might try again at some point, but I'll probably work on KoF 99 or Psychic Force next.
pcwzrd13 wrote:The ECW Hardcore Revolution patch seems to have an issue. The screen will flash black every once and a while. Not a huge deal but figured I'd mention it.
Where and how long are the flashes? Is it everywhere, gameplay only, menu only? Is it just that ECW game, or does the other one have the same issue?
CrashMidnick wrote: 8c19b9be 182016AE change 09 00 to 00 e4
or is it ? :
8c19b9be 182016AA change 2d 94 to 00 e4
Both should work, but I intended for it to be first one. I used the second way at first, then decided to do it the first way and didn't correctly update my notes. The second way sets the video encoder to output VGA when a VGA cable is detected, while the first always outputs VGA no matter what (which is more consistent with the other changes I made).

User avatar
pcwzrd13
Seen Any Sailors?
Posts: 7283
Dreamcast Games you play Online: All of them! I'm able to connect with dial-up or broadband.
Location: USA
Contact:

Re: Bangai-Oh VGA Patch

Post by pcwzrd13 »

TapamN wrote:
pcwzrd13 wrote:The ECW Hardcore Revolution patch seems to have an issue. The screen will flash black every once and a while. Not a huge deal but figured I'd mention it.
Where and how long are the flashes? Is it everywhere, gameplay only, menu only? Is it just that ECW game, or does the other one have the same issue?
You can see it in the video I made here: https://twitter.com/pcwzrd13/status/1652384991454679040

Haven't tried the other ECW game. Just this one.
PSO Characters:
Teal'c - lvl 119 HUcast - GC# 11666
Alto - lvl 39 FOnewm - GC# 12964

YouTube Channel : Dreamcast Live

User avatar
K.Kertsman
rebel
Posts: 19

Re: Bangai-Oh VGA Patch

Post by K.Kertsman »

converted some code for:

Airforce Delta (demo) (USA) (19990611)

track 30:

@48AA996 28 e4 --> 01 E4
@4A07702 80 02 --> 40 01
@4A45EFA 01 c9 --> 01 E0

(somehow the plane in 3rd person view is near off-screen, vertical view / resolution is doubled, known issue)
Image

Image


additionally is possible to add vga force changing text string 0799800 --> 0799A10 in the track 01 / 03
Last edited by K.Kertsman on Wed May 03, 2023 6:41 pm, edited 7 times in total.

User avatar
MoeFoh
1300
Posts: 1358

Re: Bangai-Oh VGA Patch

Post by MoeFoh »

VGA patched track03 and track43 of the US TOSEC King of Fighters 1999 - Dream Match. Working on GDEMU. Thanks to CrashMidnick for track 43.

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

User avatar
ateam
Metallic
Posts: 816

Re: Bangai-Oh VGA Patch

Post by ateam »

I took a quick look at the retail NTSC-J version of "Nanatsu no Hikan - Senritsu no Bishō" (aka "Seven Mansions: Ghastly Smile") this morning and tried passing 0x1 into the r4 parameter for the call to njInitsystem.

Image

From the Katana SDK docs, we can see the parameter definitions for this function call.

Image

So after making this change, I mimicked one of the other instruction patches TapamN did for "Airforce Delta", which is to hardcode the value of register r0 to 0x1 here. To be perfectly honest, I do not yet know what this instruction does, but I do see that its function gets called by the Kamui VGA init. function, and I do know I needed to use it in order to get this far, haha.

Image

I then took a look at the stored resolution being read in by Kamui's display-mode setting function, and found those values to be 640x480 (0x280 and 0x1e0). At address 0x8c147802, I had to change 0x280 to 0x140 in order to keep correct vertical scaling.

Image

Unfortunately, these three quick changes above resulted in many parts of the visible field "zoomed in" too far. FMVs and some menus appeared okay, though.

https://youtu.be/m1ifTAOVG1g

Anyway, that's as far as I got in my high-level analysis of a potential VGA patch for "Seven Mansions: Ghastly Smile". I'm sure it's do-able, but I just don't have the time to dig deeper (for now). It goes without saying that should a VGA patch be developed for this game, my friends who did the English translation patch will incorporate it into an update for all to enjoy.
Last edited by ateam on Sun Apr 30, 2023 6:26 pm, edited 1 time in total.
Find me on...

DreamcastForever.com
GitHub
Reddit
SegaXtreme
Twitter
YouTube
• Discord: derek.ateam

  • Similar Topics
    Replies
    Views
    Last post