Romhacking.net

Romhacking => Newcomer's Board => Topic started by: guiguikinks on April 29, 2016, 05:41:24 pm

Title: How can i extract correctly .XA file PSX? (DONE)
Post by: guiguikinks on April 29, 2016, 05:41:24 pm
I would like to know how to extract correctly any .XA from Megaman Legends 2, because when i use known psx extraction programs, doesn't works (The program says there are nothing  in .XA)

PS: Sorry for my bad English... I'm Brazillian...

Link one of the .XA sounds for example : http://www.4shared.com/file/KkA-Gvt4ba/COM_18.html
Title: Re: How can i extract correctly .XA file PSX?
Post by: House on April 29, 2016, 06:03:52 pm
I would like to know how to extract correctly any .XA from Megaman Legends 2, because when i use known psx extraction programs, doesn't works (The program says there are nothing  in .XA)

PS: Sorry for my bad English... I'm Brazillian...

Link one of the .XA sounds for example : http://www.4shared.com/file/KkA-Gvt4ba/COM_18.html

Try PSMplay I think it should be added to the utilities here on romhacking.net http://www.zophar.net/utilities/psxutil.html
Title: Re: How can i extract correctly .XA file PSX?
Post by: guiguikinks on April 29, 2016, 06:33:13 pm
doesn't works :/
Title: Re: How can i extract correctly .XA file PSX?
Post by: House on April 29, 2016, 07:58:30 pm
doesn't works :/
Hacking doc http://www.tales-cless.org/docs/thepsxdoc2.txt
Have you tried all XA tools on Zophar.net? More tools http://consolecopyworld.com/psx/psx_utils.shtml
http://consolecopyworld.com/psx/psx_utils_prg.shtml#Playstation%20XA%20Copier
http://www.theisozone.com/downloads/playstation/tools/ps1-psx-hack-tools-v20/
http://theisozone.com/downloads/playstation/tools/ps1-psx-hack-tools-v20/
http://www.emulator-zone.com/doc.php/psx/psxplugins-tools.html
http://www.ps3hax.net/showthread.php?t=65176
http://www.ps2savetools.com/wpfb-file/psxrcv11-zip/
http://xianaix.net/filez.htm
http://www.feldoncentral.com/psxvideo/
http://forum.xentax.com/blog/?tag=ps1
http://hitmen.c02.at/html/psx_tools.html
http://psx-scene.com/forums/downloads.php?s=&do=cat&id=22
http://forum.xentax.com/viewtopic.php?f=33&t=10136
http://www.romhacking.net/utilities/894/
http://www.romhacking.net/?page=utilities&category=&platform=17&game=&author=&os=&level=&perpage=50&title=&desc=&utilsearch=Go
http://www.romhacking.net/utilities/1140/
https://github.com/cebix/psximager
https://github.com/The1andONLYdave/PSone-Memory-Manager
https://github.com/ShendoXT/memcardrex
http://psx-scene.com/forums/f10/i-can%60t-play-convert-psx-xa-files-154814/
http://ngemu.com/threads/how-to-play-xa-files.120349/
http://www.tales-cless.org/util/psxutils.7z
Title: Re: How can i extract correctly .XA file PSX?
Post by: DarkSamus993 on April 29, 2016, 07:59:45 pm
First off, it looks like you did not correctly rip COM_18.XA from the MML2 disc (which would be why PSMplay couldn't convert/play it). XA and STR files are stored as mode2.

There are several utilities floating around that you could use, but here's my current method:
First I use XtrActor.NET (http://www.mediafire.com/download/lx1aet1lc6fa5kx/XtrActor.NET.zip) (it's in Italian) for ripping XA and STR files off of the disc.
Instructions:
1) Where you see "Opzioni" set the ratio button on "Estrazione".
2) Specify an ISO to extract from in the text field where it says "Iso (2352 byte/settore)".
3) Where it says "STR con audio XA" place the name of your output file.
4) "Peso STR in byte" is the actual size referred in the ISO, while "LBA del file STR" is just the LBA you can obtain from any ISO inspecting tool (such as ISOBuster).
5) Once all those fields are filled, press "Estrai".
6) Wait a few moments and the tool will create your STR+XA file extracted as proper 2336 byte/sector data.
Then, with the XA and STR files now on my hard drive, I use jPSXdec (http://www.romhacking.net/utilities/658/) to convert them to a usable format.

If it's the NTSC audio you're after, I can save you some time as I happen to have the XA files (http://www.mediafire.com/download/0m8m632b1ius1lm/MML2_XA+Audio.zip) extracted already, and you can just use a utility to convert them to your desired output.
Title: Re: How can i extract correctly .XA file PSX?
Post by: guiguikinks on April 29, 2016, 09:08:35 pm
Thanks dude! You're awesome!

April 29, 2016, 10:05:26 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
So, how can i convert .WAV to .XA? unfortunately JPSXDEC don't allow convert .WAV to .XA... And when i use WAV2XA.EXE doesn't work the final result...
Title: Re: How can i extract correctly .XA file PSX?
Post by: DarkSamus993 on April 29, 2016, 10:50:16 pm
XA Audio Converter (http://www.romhacking.net/utilities/894/) should be able to handle converting WAV to XA.
Title: Re: How can i extract correctly .XA file PSX?
Post by: guiguikinks on April 29, 2016, 10:55:32 pm
doesn't work... when I open a .xa file, a strange message appears (you can't read it ) and nothing else happens...
Title: Re: How can i extract correctly .XA file PSX?
Post by: DarkSamus993 on April 29, 2016, 10:58:42 pm
That's strange, it works fine for me. What OS are you using?
Title: Re: How can i extract correctly .XA file PSX?
Post by: guiguikinks on April 29, 2016, 11:16:29 pm
I have more 1 problem... After convert .wav to xa, when i try replace in ISO with CDMAGE B5, the program says: "IMPORTED FILE MUST BE RIFF CDXA TYPE"... I try use TOC CHANGER, however doesn't works too...
Title: Re: How can i extract correctly .XA file PSX?
Post by: DarkSamus993 on April 30, 2016, 11:58:14 am
I actually haven't had the need to reinsert XA files before, but to the best of my understanding:
According to this PSX hacking doc (http://www.tales-cless.org/docs/thepsxdoc2.txt), CDMage beta can be used for file reinsertion only if:
Quote
If you have no intention of making files larger, adding files, or modifying any files with XA format streamed audio, this is the definite method for you.
Since XA files need to be reinserted as mode2 data, that is probably why CDMage fails. The tool I linked earlier (XtrActor.NET) should be capable of converting the data back to mode2 and reinserting it.

Instructions:
1) Where you see "Opzioni" set the ratio button on "Inserimento".
2) Specify an ISO to insert to in the text field where it says "Iso (2352 byte/settore)".
3) Where it says "STR con audio XA" place the name of your input file.
4) "Peso STR in byte" is the actual size referred in the ISO, while "LBA del file STR" is just the LBA you can obtain from any ISO inspecting tool (such as ISOBuster).
5) Once all those fields are filled, press "Inserisci".
6) Wait a few moments and the tool will insert your STR/XA file as proper 2336 byte/sector data.

As for any size changes that occurred during your editing, TOC Changer (http://www.romhacking.net/utilities/466/) might be able to help you out.
Title: Re: How can i extract correctly .XA file PSX?
Post by: guiguikinks on April 30, 2016, 05:04:01 pm
I'm sorry to bother you, but doesn't works too. When i used "XtrActor.NET" and, after follow your instructions, the program says: "La grandez del file STR deve essere un multiplo di 2336" (The file STR must be multiple of 2336). I tried use TOC CHANGER for correct size, but the program says: "New Size is too big"(even max size allowed is more than modified size). I wish translate and dub this game for my language...
Title: Re: How can i extract correctly .XA file PSX?
Post by: DarkSamus993 on April 30, 2016, 07:55:14 pm
As I said, I haven't actually done file reinsertion before, so perhaps someone more versed in this process could give their thoughts on the matter. In the meantime, if you post the modified XA file/WAV you want to reinsert, I might be able to figure something out.
Title: Re: How can i extract correctly .XA file PSX?
Post by: Gemini on April 30, 2016, 09:19:45 pm
If you had a correct XA file there would be no error message about it being not multiple of 2336 bytes/sector (which is mandatory). You got your XA file incorrectly converted or not padded as it should be, simple as that.
Title: Re: How can i extract correctly .XA file PSX?
Post by: guiguikinks on May 05, 2016, 11:19:16 am
thanks! Finally i can extract and import audio files on ISO!  :thumbsup: