Author Topic: Changing music files in a game  (Read 1970 times)

deubeul

  • Sr. Member
  • ****
  • Posts: 444
Re: Changing music files in a game
« Reply #15 on: February 16, 2017, 09:35:50 PM »
IMO the voice is the only good thing in this game  :D

ParanoiaDragon

  • Hero Member
  • *****
  • Posts: 4619
Re: Changing music files in a game
« Reply #16 on: February 17, 2017, 01:24:53 PM »
IMO the voice is the only good thing in this game  :D

Heh, you're probably right!  Although, a lot of the tunes have grown on me lately.  It's amazing how much of a turd that game is.

Magister

  • Full Member
  • ***
  • Posts: 143
Re: Changing music files in a game
« Reply #17 on: February 18, 2017, 07:55:59 AM »
Well, I download Audacity and Tocfixer.  Did the whole 44100 and changing the WAV file to 16 bit.  Ran the Tocfixer and it shows 19 errors which it mostly all the files but says it changed the CUE file.  Music still screws up in the game though.  Not sure why it is showing an error for all the other music files considering I only changed one file.
This Space For Rent.

vacantplanets

  • Jr. Member
  • **
  • Posts: 84
Re: Changing music files in a game
« Reply #18 on: February 18, 2017, 11:19:19 AM »
Well, I download Audacity and Tocfixer.  Did the whole 44100 and changing the WAV file to 16 bit.  Ran the Tocfixer and it shows 19 errors which it mostly all the files but says it changed the CUE file.  Music still screws up in the game though.  Not sure why it is showing an error for all the other music files considering I only changed one file.

Okay. I don't know what to say. I'll try to figure it out and I'll upload it for you if I can. I have the perfect arrangement version. What track do you want to use as a replacement? The original menu music? Which track number is it?

Btw, it's going to show errors for all the files that aren't the original ones from the game. I just use that program to quickly generate a cue sheet. I never had to worry about the other stuff.
« Last Edit: February 18, 2017, 11:28:03 AM by vacantplanets »
I'd rather be playing guitar or listening to a PC Engine CD soundtrack.

Currently playing PC Engine, Saturn, and SNES MSU1.

Magister

  • Full Member
  • ***
  • Posts: 143
Re: Changing music files in a game
« Reply #19 on: February 18, 2017, 12:36:41 PM »
Well, I download Audacity and Tocfixer.  Did the whole 44100 and changing the WAV file to 16 bit.  Ran the Tocfixer and it shows 19 errors which it mostly all the files but says it changed the CUE file.  Music still screws up in the game though.  Not sure why it is showing an error for all the other music files considering I only changed one file.

Okay. I don't know what to say. I'll try to figure it out and I'll upload it for you if I can. I have the perfect arrangement version. What track do you want to use as a replacement? The original menu music? Which track number is it?

Btw, it's going to show errors for all the files that aren't the original ones from the game. I just use that program to quickly generate a cue sheet. I never had to worry about the other stuff.

When you use TocFixer, does it fix and replace the old file or does it create a new CUE file in a new folder?  I'm assuming it replaces the old file.
This Space For Rent.

vacantplanets

  • Jr. Member
  • **
  • Posts: 84
Re: Changing music files in a game
« Reply #20 on: February 18, 2017, 02:22:33 PM »
Well since you have to select the folder your game files are in, it uses that one; it doesn't put the cue in a different folder. To be safe just remove the cue file from that folder and have it generate a new one.
I'd rather be playing guitar or listening to a PC Engine CD soundtrack.

Currently playing PC Engine, Saturn, and SNES MSU1.

Magister

  • Full Member
  • ***
  • Posts: 143
Re: Changing music files in a game
« Reply #21 on: February 19, 2017, 02:03:53 AM »
Well since you have to select the folder your game files are in, it uses that one; it doesn't put the cue in a different folder. To be safe just remove the cue file from that folder and have it generate a new one.

Removed the CUE file before making a new one.  Checked the other WAV files and compared them to the one I'm using as a replacement and it matches channels, 44100 KHz and 16-Bit of the other WAV files.  Still messes up the music in the game.
This Space For Rent.

spenoza

  • Hero Member
  • *****
  • Posts: 2751
Re: Changing music files in a game
« Reply #22 on: February 19, 2017, 02:09:30 AM »
Do the track times in the Cue file match the actual music track lengths.
<a href="http://www.pcedaisakusen.net/2/34/103/show-collection.htm" class="bbc_link" target="_blank">My meager PC Engine Collection so far.</a><br><a href="https://www.pcenginefx.com/forums/" class="bbc_link" target="_blank">PC Engine Software Bible</a><br><a href="http://www.racketboy.com/forum/" c

Magister

  • Full Member
  • ***
  • Posts: 143
Re: Changing music files in a game
« Reply #23 on: February 19, 2017, 05:23:17 AM »
Do the track times in the Cue file match the actual music track lengths.


Not sure where to find the track times in the CUE file.  I try opening the file but it doesn't show anything.
This Space For Rent.

vacantplanets

  • Jr. Member
  • **
  • Posts: 84
Re: Changing music files in a game
« Reply #24 on: February 19, 2017, 06:20:16 AM »
Do the track times in the Cue file match the actual music track lengths.


Not sure where to find the track times in the CUE file.  I try opening the file but it doesn't show anything.

You have to open the cue file with Notepad.

Like I said though,  I'll try to figure it out and I'll upload it for you if I can. I have the perfect arrangement version. What track do you want to use as a replacement? The original menu music? Which track number is it?
I'd rather be playing guitar or listening to a PC Engine CD soundtrack.

Currently playing PC Engine, Saturn, and SNES MSU1.

Magister

  • Full Member
  • ***
  • Posts: 143
Re: Changing music files in a game
« Reply #25 on: February 19, 2017, 06:43:38 AM »
Do the track times in the Cue file match the actual music track lengths.


Not sure where to find the track times in the CUE file.  I try opening the file but it doesn't show anything.

Interesting.  So I opened it with Notepad.  But there are no times for the tracks.  All the tracks have 0's for times.  Maybe it's just this game file itself.  Anyways, I'm just trying to figure out how to change the music files.  I'm not going to have you go through all the trouble for just one track.  If I can figure this out, I would like to change almost every track which is the goal.

You have to open the cue file with Notepad.

Like I said though,  I'll try to figure it out and I'll upload it for you if I can. I have the perfect arrangement version. What track do you want to use as a replacement? The original menu music? Which track number is it?
This Space For Rent.

vacantplanets

  • Jr. Member
  • **
  • Posts: 84
Re: Changing music files in a game
« Reply #26 on: February 19, 2017, 07:07:38 AM »
That's fine about the zeros. That's what it's supposed to be when it's all extracted like that in a ISO/WAV/CUE format. If it was in a BIN/CUE format, the CUE sheet would look different.

Okay, so I suppose you could try changing the track's length to match the one that was working. If you have to do that, then it wouldn't be a bad idea to add a 15 second fade out like Paranoia Dragon said. I would just use Audacity to edit the track. It's just the menu music anyway, not a big deal, haha.

Btw, what are you using to test it? Ootake or some other emulator? You're not burning CD-Rs right?
« Last Edit: February 19, 2017, 07:50:35 AM by vacantplanets »
I'd rather be playing guitar or listening to a PC Engine CD soundtrack.

Currently playing PC Engine, Saturn, and SNES MSU1.

Magister

  • Full Member
  • ***
  • Posts: 143
Re: Changing music files in a game
« Reply #27 on: February 19, 2017, 07:54:56 AM »
That's fine about the zeros. That's what it's supposed to be when it's all extracted like that in a ISO/WAV/CUE format. If it was in a BIN/CUE format, the CUE sheet would look different.

Okay, so I suppose you could try changing the track's length to match the one that was working. If you have to do that, then it wouldn't be a bad idea to add a 15 second fade out like Paranoia Dragon said. I would just use Audacity to edit the track. It's just the menu music anyway, not a big deal, haha.

Btw, what are you using to test it? Ootake or some other emulator? You're not burning CD-Rs right?

I'm going to try and DL the original game file and try changing some of the music and see what happens.  If I get the same results, I'll try matching track times.  What I don't understand is why all the music tracks aren't listed for the game.  Like the pre-boss room music is awful but it's not a music file.
This Space For Rent.

vacantplanets

  • Jr. Member
  • **
  • Posts: 84
Re: Changing music files in a game
« Reply #28 on: February 19, 2017, 08:39:18 AM »
That's fine about the zeros. That's what it's supposed to be when it's all extracted like that in a ISO/WAV/CUE format. If it was in a BIN/CUE format, the CUE sheet would look different.

Okay, so I suppose you could try changing the track's length to match the one that was working. If you have to do that, then it wouldn't be a bad idea to add a 15 second fade out like Paranoia Dragon said. I would just use Audacity to edit the track. It's just the menu music anyway, not a big deal, haha.

Btw, what are you using to test it? Ootake or some other emulator? You're not burning CD-Rs right?

I'm going to try and DL the original game file and try changing some of the music and see what happens.  If I get the same results, I'll try matching track times.  What I don't understand is why all the music tracks aren't listed for the game.  Like the pre-boss room music is awful but it's not a music file.

Sounds good.

The pre-boss room music isn't redbook or from a WAV file; it's a chiptune, PSG. Yeah, I don't like it either. It's an odd choice because it definitely stands out from the other tracks.
« Last Edit: February 19, 2017, 08:42:33 AM by vacantplanets »
I'd rather be playing guitar or listening to a PC Engine CD soundtrack.

Currently playing PC Engine, Saturn, and SNES MSU1.

Magister

  • Full Member
  • ***
  • Posts: 143
Re: Changing music files in a game
« Reply #29 on: February 19, 2017, 11:15:38 AM »
So after all the headache, PDragon was right.  The track has to be the same length as the original.  Now, I did this with the original game file and not the Perfect Arrangement game file.  So I'm not sure if that had anything to do with it.  I do want to look an see if the PA music files stayed the same length or if he extended them when he added the other music.   
This Space For Rent.