Sonic and Sega Retro Message Board: So, hey, figured out how to replace sound effects in Heroes. - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Loading News Feed...
 
Page 1 of 1

So, hey, figured out how to replace sound effects in Heroes. e.g. Rings and stuff

#1 User is offline Herm the Germ 

Posted 20 June 2011 - 11:28 AM

  • FINAL ATTACKRIDE: D-D-D-DECADE!
  • Posts: 1251
  • Joined: 22-April 09
  • Gender:Male
  • Location:Dresden, Saxony, Germany
  • Project:Trying to figure out Sonic Heroes lighting data, anyone willing to help? D:
  • Wiki edits:5
The interest in this is probably not too high, but nevertheless, here's what I do have in terms of information on the subject. Before doin' anythin' with those, be sure to make some back-ups.

PAC Files, as has been figured, are:

a) A format re-used from the PSO games
and
b) basically a bunch of PCM wave files, little endian, 16 bit, 22,050 Hz, mono, chained one after another with a bunch of headers to tell the game which sound is which.
The Heroes PAC format is a tad bit different, but nevertheless, the written-for-PSO tool PAC Manager version 0.4 can handle these files relatively well. Previous versions and the following version 0.5 cannot handle the Heroes PACs for various reasons, mostly since those versions are almost exclusively geared towards the actual PSO .pacs, complete with reference-addresses built-in that won't do no good with Heroes' files.

PAC Manager will give you a file list, labelled Sound 01-XX, depending on file-count. The first 10 files (at least in Bank0.pac) are Header data not usually found in PSO PACs. PAC Manager 0.4 erroneously reads these as 52-byte-long sound files each. Skipping past those, we got the actual sounds.
Using BlazeHedgehog's guide on how to listen to the sounds in the pack is a good way of figuring out which sound number is which.
It's a good idea to extract the sound you want to replace first.

The file you want to insert should be no longer than the original sound, as PAC Manager cannot expand the PAC-files. Hence it's a good idea to have the original out for size-comparison's sake.
The file you want to import must be a 22050 Hz 16-bit Mono PCM Wave-file.

If all went well, your sound is now in the .pac file. Remember to save the modified .pac, though.

Finally, you must do one change to the archive. Open and compare the .pac header of the modified file with the back-up file in a hex-editor and you'll see that there's stuff missing. This is likely due to, as established, PAC Manager assuming the Heroes .pac-header being 10 sound files instead of the file's header. This can be fixed by simply copying and pasting the first 352 bytes from the back-up into the modified file. Saving that, the sounds should now work flawlessly in the game.

If I explained anything in a dumbass, not-understandable way, do hit me with a heavy object and correct me.

#2 User is offline Razor-ua 

Posted 20 June 2011 - 01:14 PM

  • Posts: 20
  • Joined: 28-November 09
  • Gender:Male
  • Location:Donetsk
Aww... I had figured that out long time ago...





#3 User is offline Herm the Germ 

Posted 20 June 2011 - 02:42 PM

  • FINAL ATTACKRIDE: D-D-D-DECADE!
  • Posts: 1251
  • Joined: 22-April 09
  • Gender:Male
  • Location:Dresden, Saxony, Germany
  • Project:Trying to figure out Sonic Heroes lighting data, anyone willing to help? D:
  • Wiki edits:5
Yeah, but your method showcases in and off itself the flaws with just editing the .pac files in an audio-editor -- note that the rainbow rings do not play any sounds, for example, because the accompanying sound effects have been pushed away from their original position. Without manually editing the header within the .pac file, the game is unable to find the sound again. With my method, while it's limited by the size of the original sound files, it does keep all the soundeffects past the point of editing intact.
This post has been edited by Herm the Germ: 20 June 2011 - 02:43 PM

#4 User is online MainMemory 

Posted 20 June 2011 - 03:01 PM

  • Every day's the same old thing... Same place, different day...
  • Posts: 2661
  • Joined: 14-August 09
  • Gender:Not Telling
  • Project:SonLVL
  • Wiki edits:1,339
Maybe you should put all this hacking information in SCHG:Sonic Heroes instead of in a bunch of random forum topics?
This post has been edited by MainMemory: 20 June 2011 - 03:04 PM

#5 User is offline Herm the Germ 

Posted 20 June 2011 - 05:15 PM

  • FINAL ATTACKRIDE: D-D-D-DECADE!
  • Posts: 1251
  • Joined: 22-April 09
  • Gender:Male
  • Location:Dresden, Saxony, Germany
  • Project:Trying to figure out Sonic Heroes lighting data, anyone willing to help? D:
  • Wiki edits:5
I was hoping someone who's better at explaining this stuff in a way befit for the Retro Wiki could do so. :c

I guess I'll see what I can do with my mental notes in the next couple o' days…

#6 User is offline total 

Posted 23 June 2011 - 07:28 AM

  • Posts: 50
  • Joined: 17-August 09
  • Gender:Not Telling
  • Wiki edits:1
http://forums.sonicretro.org/index.php?showtopic=23340

#7 User is offline Herm the Germ 

Posted 23 June 2011 - 07:57 AM

  • FINAL ATTACKRIDE: D-D-D-DECADE!
  • Posts: 1251
  • Joined: 22-April 09
  • Gender:Male
  • Location:Dresden, Saxony, Germany
  • Project:Trying to figure out Sonic Heroes lighting data, anyone willing to help? D:
  • Wiki edits:5
Yeah, well, that's great. Can't code worth shit, though, and no one ever made anythin' with your awesome findings. D:

#8 User is offline Lobotomy 

Posted 23 June 2011 - 11:01 PM

  • Every man who knows a thing knows he knows not a damn, damn thing at all.
  • Posts: 3582
  • Joined: 22-March 06
  • Gender:Male
  • Location:Traverse City
  • Project:Fixing Generations FOREVER, Project: In Silico, Unleashed PC Beautification.
  • Wiki edits:94
I hate to burst your bubble and be so blunt about this, but I did this in 2007, along with texture and music, and I'm sure I'm not the first.

...Unless of course you're doing this on the console version. If so, then disregard that, I suck cocks.
This post has been edited by Lobotomy: 23 June 2011 - 11:03 PM

#9 User is offline Shadow Hog 

Posted 24 June 2011 - 11:39 AM

  • He's the Nostalgia Anime, he animes so you don't have to
  • Posts: 2833
  • Joined: 05-November 06
  • Gender:Male
  • Location:Earth
  • Wiki edits:10
So can you use this to replace the voices in the game with the Japanese ones?

Or, now that I think about it, sweet, sweet silence.

#10 User is offline Herm the Germ 

Posted 24 June 2011 - 08:42 PM

  • FINAL ATTACKRIDE: D-D-D-DECADE!
  • Posts: 1251
  • Joined: 22-April 09
  • Gender:Male
  • Location:Dresden, Saxony, Germany
  • Project:Trying to figure out Sonic Heroes lighting data, anyone willing to help? D:
  • Wiki edits:5
The only voice clips stored in the same format as the sound effects are standard grunts, and incidently, in the PC version, they're the only voice clips available in both English and Japanese, at least file-vice (bank3e.pac and bank3j.pac). Swapping those should give Japanese grunts but not much else. xD;

Actual voice tracks are stored in dvdroot/bgm/SH_VOICE_E.afs. The PC version doesn't have the _J equivalent. Ripping that from the PS2 or XBox version and putting it into the game, replacing it with the _E file should give you Japanese voices, though.

Complete silence is likely only possible by putting mute clips into the AFS archive (AFS explorer and ADX files are yer friend for that one, I guess), as deleting the archive from the hard drive just makes the game resort to using the version of the file found on the game disc, and by deleting bank3e.pac. : B It might be possible if you just delete a chunk out of the AFS header to cause the characters to go entirely mute, but, I haven't tested that yet.

@Lobotomy: Oh, wow, really? D: Man, I never found any of that out.
Judging but how little Googling the subject yields in terms of successful edits to the game in sound and textures, I would be very surprised if there were more than 5 people besides you and me who figured any of this stuff out, though.
This post has been edited by Herm the Germ: 24 June 2011 - 08:44 PM

Page 1 of 1
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users