No CDDA music on Tetris: The Grand Master conversion

Feel free to go ahead and ask for Help and Support or check out what's already been answered from other customers
Forum rules
This section is for asking about help in regards to your PSIO Cartridge. Do not post any questions here relating to your order. Instead, please open a support ticket in our Service Desk. Thanks.
Post Reply
stranno
Just Joined
Just Joined
Posts: 1
Joined: January 27th, 2021, 3:28 am

No CDDA music on Tetris: The Grand Master conversion

Post by stranno » January 27th, 2021, 3:33 am

Tetris TGM was converted from ZN-2 arcade board to Playstation a while ago. To overcome the music through Capcom's QSound chip, all the tracks were converted to CDDA music on the latest version of the patch (available on romhacking).

While all CDDA games I've tried on PSIO work fine, this one not. I can't hear any music, while emulators play it fine, using the same image.

mkpsxiso structure, if it helps.
<?xml version="1.0" encoding="UTF-8"?>
<iso_project image_name="TGM_PSX_CDDA.bin" cue_sheet="TGM_PSX_CDDA.cue" no_xa="0">
<track type="data">
<identifiers
system ="PLAYSTATION"
application ="PLAYSTATION"
volume ="TGM_PSX"
volume_set ="TGM_PSX"
publisher ="115"
data_preparer ="MKPSXISO"
copyright ="115"
/>

<license file="LICENSEA.DAT"/>
<directory_tree srcdir=".">
<file name="SYSTEM.CNF" type="data" />
<file name="MAIN.EXE" type="data" />
<file name="PLYD00.HEX" type="data" />
<file name="PLYD01.HEX" type="data" />
<file name="PLYD02.HEX" type="data" />
<file name="PLYD03.HEX" type="data" />
<file name="PLYDXX.HEX" type="data" />
<file name="PLYDXXX.HEX" type="data" />
<file name="MAP00.DAT" type="data" />
<file name="MAP01.DAT" type="data" />
<file name="MAP02.DAT" type="data" />
<file name="MAPXX.DAT" type="data" />
<dir name="TIM" srcdir="./TIM">
<file name="PLYDEMO.TIM" type="data" />
<file name="SOUSA.TIM" type="data" />
<file name="MOJI12X.TIM" type="data" />
<file name="BLOK.TIM" type="data" />
<file name="SNOW.TIM" type="data" />
<file name="SPIRAL.TIM" type="data" />
<file name="COL.TIM" type="data" />
<file name="STAFF.TIM" type="data" />
<file name="T_FONT1.TIM" type="data" />
<file name="T_FONT2.TIM" type="data" />
<file name="T_FONT3.TIM" type="data" />
<file name="LOGOS.TIM" type="data" />
<file name="Q.TIM" type="data" />
<file name="T_ROGO5.TIM" type="data" />
<file name="T_ROGO6.TIM" type="data" />
<file name="T_ROGO8.TIM" type="data" />
<file name="FBI.TIM" type="data" />
<file name="TBG00.TIM" type="data" />
<file name="TBG01.TIM" type="data" />
<file name="TBG02.TIM" type="data" />
<file name="TBG03.TIM" type="data" />
<file name="TBG04.TIM" type="data" />
<file name="TBG05.TIM" type="data" />
<file name="TBG06.TIM" type="data" />
<file name="TBG07.TIM" type="data" />
<file name="TBG08.TIM" type="data" />
<file name="TBG09.TIM" type="data" />
</dir>
</directory_tree>
</track>
<track type="audio" source="track02.wav"/>
<track type="audio" source="track03.wav"/>
<track type="audio" source="track04.wav"/>
<track type="audio" source="track05.wav"/>
<track type="audio" source="track06.wav"/>
<track type="audio" source="track07.wav"/>
<track type="audio" source="track08.wav"/>
<track type="audio" source="track09.wav"/>
<track type="audio" source="track10.wav"/>
</iso_project>
Fastboot on Midboot turned ON.

User avatar
Matt
Cybdyn Systems - Admin
Cybdyn Systems - Admin
Posts: 4310
Joined: December 31st, 2012, 5:37 pm
I am a: Systems Designer
PlayStation Model: H2700/5502
Location: Australia
Has thanked: 16 times
Been thanked: 43 times
Contact:

Re: No CDDA music on Tetris: The Grand Master conversion

Post by Matt » January 28th, 2021, 2:29 am

Where is your CU2 sheet?

User avatar
Syntax
Lives in the Cybdyn Systems Server
Lives in the Cybdyn Systems Server
Posts: 222
Joined: May 12th, 2019, 7:17 pm
I am a: ModMan
PlayStation Model: 5000x
Location: Sydney
Has thanked: 2 times
Been thanked: 2 times

Re: No CDDA music on Tetris: The Grand Master conversion

Post by Syntax » January 30th, 2021, 3:22 am

So you compiled vgm2wav and then downloaded extracted and converted the tracks and ensured everything matched?

Code: Select all

================================================================================
=== Tetris: The Grand Master ZN-2 to PSX conversion CD-DA music instructions ===
================================================================================

The music will need to be converted from VGM to WAV by using a tool such as VGMPlay's vgm2wav.  A convert_tgm_music.sh script has been included which will do this for you, provided you have vgm2wav available.

In order to keep compatibility with running the game on an unmodified PlayStation console via a boot disc such as an Action Replay or GameShark, the music playback code does NOT rely on the disc TOC for the track information and instead the track positions are hard-coded.  It is therefore important that you adhere to the lengths and constraints mentioned below.


Requirements:
- vgmplay-0.40.9 (in particular vgm2wav), available from: https://github.com/vgmrips/vgmplay/releases/tag/0.40.9
- Tetris The Grand Master music in VGM/VGZ format, available from: https://vgmrips.net/packs/pack/tetris-the-grand-master-zn-2
- mkpsxiso (v1.23), available from: https://github.com/Lameguy64/mkpsxiso


Instructions:
- Download the vgmplay-0.40.9 release and compile vgm2wav
- Extract the ZIP file that contains the VGM music (*.vgz)
- run the convert_tgm_music.sh script to create the WAV music tracks (track*.wav)
- compare the sizes of the created WAV files with the reference below:
    track02.wav:   1051804 bytes
    track03.wav: 237940428 bytes
    track04.wav: 197871808 bytes
    track05.wav:  22981080 bytes
    track06.wav:    535284 bytes
    track07.wav:   7449120 bytes
    track08.wav:    545532 bytes
    track09.wav: 222798688 bytes
    track10.wav:   2258756 bytes

- follow the remaining steps described in the main readme to create the PSX-EXE and create the disc image using "mkpsxiso TGM_PSX_CDDA.xml"

The output of mkpsxiso should say:

ISO image generated successfully.
Total image size: 699099072 bytes (297236 sectors)

and the TGM_PSX_CDDA.cue file should look like this:

FILE "TGM_PSX_CDDA.bin" BINARY
  TRACK 01 MODE2/2352
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    PREGAP 00:02:00
    INDEX 01 00:16:04
  TRACK 03 AUDIO
    INDEX 00 00:22:02
    INDEX 01 00:24:02
  TRACK 04 AUDIO
    INDEX 00 22:52:68
    INDEX 01 22:54:68
  TRACK 05 AUDIO
    INDEX 00 41:36:48
    INDEX 01 41:38:48
  TRACK 06 AUDIO
    INDEX 00 43:48:69
    INDEX 01 43:50:69
  TRACK 07 AUDIO
    INDEX 00 43:53:72
    INDEX 01 43:55:72
  TRACK 08 AUDIO
    INDEX 00 44:38:15
    INDEX 01 44:40:15
  TRACK 09 AUDIO
    INDEX 00 44:43:22
    INDEX 01 44:45:22
  TRACK 10 AUDIO
    INDEX 00 65:48:25
    INDEX 01 65:50:25
PSIO Switchboard Install and Console Mod Service (Australia/Worldwide)
viewtopic.php?f=72&t=3143

Redump USA / EURO / JP & ASIA cue/cu2 collection for PSIO
https://drive.google.com/open?id=1TSvP5 ... -qK4wR_-gT

Stupid Dufus
Just Joined
Just Joined
Posts: 6
Joined: December 6th, 2018, 2:27 am
Has thanked: 2 times

Re: No CDDA music on Tetris: The Grand Master conversion

Post by Stupid Dufus » April 18th, 2021, 9:56 pm

Sorry to necro an old thread, but I'm having the same issue. I have the .bin and .cue, but when I try to run it through the PSIO Systems Console (version 2.8) to get a CU2, I get the following error:
Unsupported CUE format.

Single image converting isn't possible. Please make sure you are converting a CUE sheet from multiple images.

Too many indexes for track 01
psio error.JPG
(131.05 KiB) Not downloaded yet
Is there a way to convert the CUE to CU2 format?

A screenshot of the error along with the CUE sheet are attached.
Attachments
TGM_PSX_CDDA.cue
(652 Bytes) Downloaded 6 times

User avatar
Matt
Cybdyn Systems - Admin
Cybdyn Systems - Admin
Posts: 4310
Joined: December 31st, 2012, 5:37 pm
I am a: Systems Designer
PlayStation Model: H2700/5502
Location: Australia
Has thanked: 16 times
Been thanked: 43 times
Contact:

Re: No CDDA music on Tetris: The Grand Master conversion

Post by Matt » April 18th, 2021, 10:26 pm

This isn't a multi-bin image so it won't work with the Systems Console, but you can make a CU3 sheet from ReDump and then convert that to a CU2. Information on how to do this is in the 'Systems Manual' :)

EDIT: I just realised this is a hacked game. It doesn't exist on ReDump. You'll have to manually convert the CUE times to CU2 format manually. You can use CUE2CU2 (https://github.com/NRGDEAD/Cue2cu2) but I tried it and it fails on this function

Code: Select all

def convert_bytes_to_sectors(filesize):
	if filesize % 2352 == 0:
		return int(int(filesize)/2352)
	else:
		error("The filesize of the binary file or --size parameter indicates that this is not a valid image in MODE2/2352")
So this Tetris game hasn't even been made correctly because the disc image isn't a multiple of 2352 bytes.

User avatar
NRGDEAD
/// CYBDYN SYSTEMS ELITE ///
/// CYBDYN SYSTEMS ELITE ///
Posts: 1084
Joined: September 22nd, 2017, 3:10 am
I am a: Noob
PlayStation Model: SCPH-1002
Has thanked: 2 times
Been thanked: 7 times

Re: No CDDA music on Tetris: The Grand Master conversion

Post by NRGDEAD » April 18th, 2021, 11:48 pm

I obtained the file size in bytes for this image from archive.org, and was able to convert it.

Code: Select all

~/cue2cu2/cue2cu2.py --size 699099072 TGM_PSX_CDDA.cue
However:
Cue2cu2 wrote:Warning while processing TGM_PSX_CDDA.cue: The PREGAP command is used for track 2, which requires the software to insert data into the image or disc. This is not supported by Cue2cu2. The pregap will be ignored and a zero length pregap will be noted in the CU2 sheet in order to continue, but the resulting bin/CU2 set might not work as expected or not at all. If possible, please try a Redump compatible version of this image.
See also this from the thread on Cue2cu2:
NRGDEAD wrote: March 16th, 2020, 2:13 pm Cue2cu2 now experimentally "supports" cue sheets that are using the PREGAP command. Not fully, because that would require inserting data to the binary file, which Cue2cu2 can't do. In order to continue and hopefully be somewhat compatible, the pregap position will be the same as the track position. In other words: the pregap will have a length of 00:00:00.
The program will also spit out a warning with a short explanation when encountering the PREGAP command.
This is kind of a last resort; please go for Redump images whenever possible.
And this from a thread on another hacked game that uses the PREGAP command:
NRGDEAD wrote: April 12th, 2020, 6:18 pm The PREGAP command in a cue sheet replaces INDEX 00. The difference is, while INDEX 00 points to the position in the binary file where the pregap starts, the PREGAP command instead asks the software handling the image to insert silence/zeroes before INDEX 01 instead.
Cue2cu2 uses a zero length pregap as a workaround here as stated above. It should work in theory. If audio issues arise, it should only affect track 2. That is, if my assumption on the timecodes of the remaining tracks is correct, and they already include the offset from the PREGAP command in the cue sheet. If not, every track might be shifted.
I just did a very quick test and it seems to be working. Still, no warranties. Please let me know if you encounter trouble with the Red Book audio of this image.
TL;DR: Give it a try and hope for the best. ;-)
Attachments
TGM_PSX_CDDA.cu2
(432 Bytes) Downloaded 9 times
Cue2cu2: A Python script for creating CU2 sheets via the command line on Linux/Mac/Windows.
GitHub / Forum

PSIO wallpaper template in Photoshop format.

Stupid Dufus
Just Joined
Just Joined
Posts: 6
Joined: December 6th, 2018, 2:27 am
Has thanked: 2 times

Re: No CDDA music on Tetris: The Grand Master conversion

Post by Stupid Dufus » April 18th, 2021, 11:53 pm

Hi Matt, thank you for the super quick response.

I had no idea about that python program. I ran it without any arguments ("./cue2cu2.py ./TGM_PSX_CDDA.cue") and it did give an error:
Cue2cu2: Warning while processing ./TGM_PSX_CDDA.cue: The PREGAP command is used for track 2, which requires the software to insert data into the image or disc. This is not supported by Cue2cu2. The pregap will be ignored and a zero length pregap will be noted in the CU2 sheet in order to continue, but the resulting bin/CU2 set might not work as expected or not at all. If possible, please try a Redump compatible version of this image.
Decided to throw the resulting file onto the SD Card and try it anyway... and it seems to work fine so far. First track during gameplay loops fine, and music for name entry seems correct.

Granted, I'm not great at the game and can't always get past level 500 to the next in-game track, but so far so good.

The cu2 for future reference is attached. But if that's not allowed, please let me know and I'll remove it asap.
Attachments
TGM_PSX_CDDA.cu2
(432 Bytes) Downloaded 6 times

Stupid Dufus
Just Joined
Just Joined
Posts: 6
Joined: December 6th, 2018, 2:27 am
Has thanked: 2 times

Re: No CDDA music on Tetris: The Grand Master conversion

Post by Stupid Dufus » April 18th, 2021, 11:57 pm

Seems we got the same file. =) Thank you both for looking into this!

User avatar
Matt
Cybdyn Systems - Admin
Cybdyn Systems - Admin
Posts: 4310
Joined: December 31st, 2012, 5:37 pm
I am a: Systems Designer
PlayStation Model: H2700/5502
Location: Australia
Has thanked: 16 times
Been thanked: 43 times
Contact:

Re: No CDDA music on Tetris: The Grand Master conversion

Post by Matt » April 19th, 2021, 1:08 am

Ah, I see @NRGDEAD. What I'll have to try and do is get the conversion routine added to the 'Systems Console' program because this isn't the first time someone has wanted to convert a standard CUE sheet. What would be cool is if the C# code for the 'Systems Console' could scan the ReDump database, find the CU3 data and export it for users. That would make generating CU2 sheets much easier and quicker since they wouldn't require a full MULTI-BIN array of disc images :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 6 guests