THPS 1 PS1 STR file question

General/other thps modding discussion
Xbox_Legacy80
Posts: 2
Joined: Wed Jan 01, 2020 9:26 pm
Contact:

THPS 1 PS1 STR file question

Postby Xbox_Legacy80 » Wed Jan 01, 2020 9:30 pm

Hi all,

I am working on a project with THPS 1 where i would like to disable the music videos that play on the levels but still have the actual music playing.

I am playing games on a HDD and want to cut down on size as well. Every time i try to replace one of the music video STR files with a blank one it does work in game but it takes ALL the music and sound away for ALL of the STR files.?!?! :thinking: Why does changing one disable all str videos and sound?

Can someone help me with this. This is for THPS 1 psx. I still want the music, just not the fmv videos playing on the levels. ;)
Demo
Posts: 489
Joined: Mon Aug 15, 2011 2:20 pm
Contact:

Re: THPS 1 PS1 STR file question

Postby Demo » Tue Jan 07, 2020 10:20 pm

ps1 iso has to be rebuilt correctly. when you save the iso, whatever application you're using is not supposed to write ps1 str/xa data in the correct form. also thps1 music is actually stored in str file, so you'll have to make some sort of 1x1 pixel replacement video with the music if you want that. you can rebuild ps1 isos with tools like mkpsxiso, but that is a bit tricky and you should learn about cdda sectors, 2352 vs 2336 bytes, etc.
https://en.wikipedia.org/wiki/CD-ROM#CD ... _extension
Xbox_Legacy80
Posts: 2
Joined: Wed Jan 01, 2020 9:26 pm
Contact:

Re: THPS 1 PS1 STR file question

Postby Xbox_Legacy80 » Mon Jan 13, 2020 5:49 am

Hey Demo,

Thanks for the response! I was basically following this guide here and using mode2cdmaker:

https://web.archive.org/web/20090201021 ... es/psxrip/

I replaced all the music video str files with the a blank one.

I can try using the other program you listed and seeing if that works. I am not sure however how i could disable the videos and just let the music play. Is there an easier way to accomplish this?
Demo
Posts: 489
Joined: Mon Aug 15, 2011 2:20 pm
Contact:

Re: THPS 1 PS1 STR file question

Postby Demo » Wed Jan 15, 2020 12:58 am

well it's a game ripping guide. you can rip thps games by completely deleting STR/XA files and it'll work.
both video and music are stored in the same file. if you replace it with blank str, you remove both video and music. and if you don't rebuild it correctly, you wipe every music track as well, as game can't read music from str files anymore.

i was able to rebuild thps1 iso with music following these steps:
1. unpack iso contents using jpsxdec - https://github.com/m35/jpsxdec
2. put it in some folder
3. create xml project for this folder using mkisoxml - https://github.com/Lameguy64/mkpsxiso
4. open that xml
5. edit all .str entries from type="data" to type="str"
6. copy convert2336 (link below) to folder and run once
7. build iso using edited xml using mkpsxiso - https://github.com/Lameguy64/mkpsxiso

explanation:
most editors extract str/xa as 2048 bytes per sector, which is incorrect for this media.
jpsxdec extracts str/xa files as raw 2352 bytes per sector.
but mkpsxiso expects 2336 bytes per sector, means you can't rebuild it correctly.
2352-2336=16, which is the size of xa sector header.
convert2336 is the tool i wrote that looks for str and xa files in subfolder, loops through 2352 sectors and looks for sync pattern. if pattern found throughout the whole file, it removes the headers of each sector, converting a 2352 file to a 2336. i don't know how correct is that in terms of the format or checksums, but it works. maybe you can find other tool to do that. also note that mkpsxiso may produce incorrect checksums, and it's required to use some checksum recalculation tool if you plan to use it on real hardware.

convert2336 - https://yadi.sk/d/qbesaIVr1-DKJg

how you're gonna edit the files is up to you.

Return to “Other THPS games modding”

Who is online

Users browsing this forum: No registered users and 1 guest