2/13/2025: Localization News - Cosmic Fantasy 3-4!

Rather earth-shattering news in the PC Engine / TurboGrafx-16 community: Cosmic Fantasy 3 & 4 has been officially localized to English by Edia 30 years later for the Switch! Hard to believe! I know their script quality is poor given the 1&2 port but still good to see.
nintendo.com/us/store/products/cosmic-fantasy-collection2-switch/
Main Menu

Hacking a HuCARD game to play audio from the CD unit?

Started by _Paul, 04/23/2013, 01:47 PM

Previous topic - Next topic

0 Members and 5 Guests are viewing this topic.

_Paul

Would it be possible to hack a HuCARD game so that whenever chip music should begin, the game instead plays a specified track from the CD drive instead?
So, for example, you could have the OutRun arcade soundtrack in the CD drive and have the game play those tracks instead of the chip music?

I had the idea while watching this:
- although I adore the PCE music, this is also a fantastic arrangement and It would be amazing to be able to play the PCE to these tracks.

Arkhan Asylum

Well, you probably COULD do it.   It would probably be a pain in the ass to locate the required calls though.   It would also be different for each game I'd imagine since each game uses a different sound engine.   Some games would be similar (Bonk/Air Zonk/Hudson crap), I'd bet.



I know with Squirrel at least, you could set a game up to trigger CD calls instead of card calls and have it start launching CD music at you.  


EDIT: You'd also need to have the CD-ROM bios jammed into the hacked ROM somehow so that the things required to make the calls are there.    This makes things considerably more pain in the ass. 

This "max-level forum psycho" (:lol:) destroyed TWO PC Engine groups in rage: one by Aaron Lambert on Facebook "Because Chris 'Shadowland' Runyon!," then the other by Aaron Nanto "Because Le NightWolve!" Him and PCE Aarons don't have a good track record together... Both times he blamed the Aarons in a "Look-what-you-made-us-do?!" manner, never himself nor his deranged, destructive, toxic turbo troll gang!

_Paul

Damn, I guess my dreams of playing Power Drift to the SST live arrangement are unlikely to come true.

Arkhan Asylum

Quote from: guest on 04/23/2013, 02:27 PMDamn, I guess my dreams of playing Power Drift to the SST live arrangement are unlikely to come true.
Yeah, it'd be a bit more effort than its worth considering you can just put the CD in a stereo nearby and turn the volume up. 

:)
This "max-level forum psycho" (:lol:) destroyed TWO PC Engine groups in rage: one by Aaron Lambert on Facebook "Because Chris 'Shadowland' Runyon!," then the other by Aaron Nanto "Because Le NightWolve!" Him and PCE Aarons don't have a good track record together... Both times he blamed the Aarons in a "Look-what-you-made-us-do?!" manner, never himself nor his deranged, destructive, toxic turbo troll gang!

_Paul

Perhaps we should just replace CD tracks with Chiptunes instead. Fancy remaking the Gate of Thunder OST in MML? :D

Arkhan Asylum

Quote from: guest on 04/23/2013, 02:36 PMPerhaps we should just replace CD tracks with Chiptunes instead. Fancy remaking the Gate of Thunder OST in MML? :D
looool.

No.

Maybe like one song, or two.  but all of them? NOoooooope.

Atlantean would never get done.
This "max-level forum psycho" (:lol:) destroyed TWO PC Engine groups in rage: one by Aaron Lambert on Facebook "Because Chris 'Shadowland' Runyon!," then the other by Aaron Nanto "Because Le NightWolve!" Him and PCE Aarons don't have a good track record together... Both times he blamed the Aarons in a "Look-what-you-made-us-do?!" manner, never himself nor his deranged, destructive, toxic turbo troll gang!

_Paul

OK, how about you just whistle the tracks and put them on the CD instead.

BigusSchmuck

Wasn't there a game that this was going to happen? Pity I can't remember what it was, but I do remember reading about it waaaaaay back in the day...

Arkhan Asylum

Quote from: BigusSchmuck on 04/23/2013, 02:58 PMWasn't there a game that this was going to happen? Pity I can't remember what it was, but I do remember reading about it waaaaaay back in the day...
Insanity?

... i dunno
This "max-level forum psycho" (:lol:) destroyed TWO PC Engine groups in rage: one by Aaron Lambert on Facebook "Because Chris 'Shadowland' Runyon!," then the other by Aaron Nanto "Because Le NightWolve!" Him and PCE Aarons don't have a good track record together... Both times he blamed the Aarons in a "Look-what-you-made-us-do?!" manner, never himself nor his deranged, destructive, toxic turbo troll gang!

CrackTiger

Quote from: BigusSchmuck on 04/23/2013, 02:58 PMWasn't there a game that this was going to happen? Pity I can't remember what it was, but I do remember reading about it waaaaaay back in the day...
SFII'CE. The little known tricks thread has a code to make it work with the released version.

I haven't tried it, but if that trick is legit, then maybe hacking SFII' to find out how it controls the CD player might make it easier to hack HuCards to play CD music.
Justin the Not-So-Cheery Black/Hack/CrackTiger helped Joshua Jackass, Andrew/Arkhan Dildovich and the DildoPhiles destroy 2 PC Engine groups: one by Aaron Lambert on Facebook, then the other by Aaron Nanto!!! Him and PCE Aarons don't have a good track record together! Both times he blamed the Aarons and their staff in a "Look-what-you-made-us-do?!" manner, never himself nor his deranged/destructive/doxxing toxic turbo troll gang which he covers up for under the "community" euphemism!

Arkhan Asylum

Quote from: CrackTiger on 04/24/2013, 02:25 PM
Quote from: BigusSchmuck on 04/23/2013, 02:58 PMWasn't there a game that this was going to happen? Pity I can't remember what it was, but I do remember reading about it waaaaaay back in the day...
SFII'CE. The little known tricks thread has a code to make it work with the released version.

I haven't tried it, but if that trick is legit, then maybe hacking SFII' to find out how it controls the CD player might make it easier to hack HuCards to play CD music.
I'm not an expert on the whole thing but I'd bet SFII can manage something like that because of the ROM size.  Maybe there is enough spare space to fit the CD BIOS related stuff in.

Fucking around with something smaller might result in alot of headache while trying to jam what is required into the ROM.
This "max-level forum psycho" (:lol:) destroyed TWO PC Engine groups in rage: one by Aaron Lambert on Facebook "Because Chris 'Shadowland' Runyon!," then the other by Aaron Nanto "Because Le NightWolve!" Him and PCE Aarons don't have a good track record together... Both times he blamed the Aarons in a "Look-what-you-made-us-do?!" manner, never himself nor his deranged, destructive, toxic turbo troll gang!

SignOfZeta

Quote from: guest on 04/24/2013, 02:25 PM
Quote from: BigusSchmuck on 04/23/2013, 02:58 PMWasn't there a game that this was going to happen? Pity I can't remember what it was, but I do remember reading about it waaaaaay back in the day...
SFII'CE. The little known tricks thread has a code to make it work with the released version.

I haven't tried it, but if that trick is legit, then maybe hacking SFII' to find out how it controls the CD player might make it easier to hack HuCards to play CD music.
...what? I've never heard of this. It doesn't seem like a trick this big would remain "little known" for long.
IMG

ElSeven

i believe this is the post:

https://www.pcengine-fx.com/forums/index.php?topic=13610.msg277464#msg277464

this trick will mute the normal bgm on SF2 so that you can play CD music with the normal sfx.  it might not be what you are expecting though, as the cd music just plays over everything with no regard to different menus or stages.

i rediscovered this trick when digging though the turbo list archives one night.  maybe there is a second part to this trick to trigger certain cd tracks for different stages? idk.
currently playing:
PCE - Raiden
SNES - Chrono Trigger
DC - Fast Striker

PCE LP

TurboXray

Quote from: guest on 04/23/2013, 02:14 PMWell, you probably COULD do it.   It would probably be a pain in the ass to locate the required calls though.   It would also be different for each game I'd imagine since each game uses a different sound engine.   Some games would be similar (Bonk/Air Zonk/Hudson crap), I'd bet.



I know with Squirrel at least, you could set a game up to trigger CD calls instead of card calls and have it start launching CD music at you.   


EDIT: You'd also need to have the CD-ROM bios jammed into the hacked ROM somehow so that the things required to make the calls are there.    This makes things considerably more pain in the ass.
Charles Macdonald did some of his own CD routines that were outside the BIOS card. He wrote them himself. The byte string you feed the CD port is very scsi-ish and is already known (emulator authors have to emulate this, so it's known). There's also the Game Express card, in which they wrote all their own routines. That's only 32k, IIRC. Probably much less than that, if you just wanted to extract just the CDDA handle code/bios calls.
QuoteWould it be possible to hack a HuCARD game so that whenever chip music should begin, the game instead plays a specified track from the CD drive instead?
So, for example, you could have the OutRun arcade soundtrack in the CD drive and have the game play those tracks instead of the chip music?

I had the idea while watching this:
- although I adore the PCE music, this is also a fantastic arrangement and It would be amazing to be able to play the PCE to these tracks.
Trapping the music routine to spy and see what song is being requested, is probably the easier thing to do. I've done this with Megman, Castlevania, Air Zonk and a few others. Matter of fact, if there's an HES file of the rom, then you can very easily see where the song track numbers are setup and hack from there - because of how only the music play is ripped and only a limited amount of ram is used for it, then trace this in the original rom. You just need to hook a piece of code that gets called first, on track select/play or command, that spies the track request. If the track request is a song (usually from a specific range of values of that byte), then you jump to an alt set of code that executes CDDA routines. Of course, that's where it gets more complicated. And yeah, it's game dependent.

Arkhan Asylum

Quote from: TurboXray on 04/24/2013, 04:16 PMCharles Macdonald did some of his own CD routines that were outside the BIOS card. He wrote them himself. The byte string you feed the CD port is very scsi-ish and is already known (emulator authors have to emulate this, so it's known). There's also the Game Express card, in which they wrote all their own routines. That's only 32k, IIRC. Probably much less than that, if you just wanted to extract just the CDDA handle code/bios calls.
Yeah.  It's not alot of stuff, but you still need to jam the stuff in somewhere that doesn't muck things up.


Quotethen you jump to an alt set of code that executes CDDA routines. Of course, that's where it gets more complicated. And yeah, it's game dependent.
Yeah,  I don't think it'd all be worth it really.
This "max-level forum psycho" (:lol:) destroyed TWO PC Engine groups in rage: one by Aaron Lambert on Facebook "Because Chris 'Shadowland' Runyon!," then the other by Aaron Nanto "Because Le NightWolve!" Him and PCE Aarons don't have a good track record together... Both times he blamed the Aarons in a "Look-what-you-made-us-do?!" manner, never himself nor his deranged, destructive, toxic turbo troll gang!