View Full Version : Luigi's mansion
jorge_bastos
August 29th, 2009, 20:28
Hi there
i've searched the entire forum and couldn't find the answer.
How can I extract bmd files from Luigi's mansion?
I have this tool yay0 and sucessfully extracted a rarc file from a szp file. then I should take the rarc file and drag into rarcdump, but when I do this it just gives me an empty folder.
Any help?
sorry for my poor english
Anton
August 29th, 2009, 21:10
Maybe this RARC is not actually a RARC archive, if you recieve an empty folder.
Check it's header in any Hex-editor.
If it is rarc - you'll see "RARC" at the beginning of the file. If no - then it's not.
Also check, if your SZP is actually a Yay0 of Yaz0 archive (see it's header, too)...
Maybe it is a U8 archive or something else...
jorge_bastos
August 29th, 2009, 21:36
the szp file is a Yay0
the rarc file is ..0.|@
Anton
August 30th, 2009, 08:37
the rarc file is ..0.|@
so this is not a rarc...
jorge_bastos
August 30th, 2009, 17:16
that means its not possible to extract?
Anton
August 30th, 2009, 17:56
I guess so...
Maybe you'll need to find another tools.
I can't help, sorry (
jorge_bastos
August 30th, 2009, 18:04
if thakis were online ... ;)
Anton
August 30th, 2009, 19:03
Did you tried the tool "DarchD"? (Here (http://www.shedevr.org.ru/zelda64rus/tools/darchD.zip)).
(http://emutalk.net/showthread.php?t=49024&page=2 - you posted there about a trojan - but there is no any viruses).
jorge_bastos
August 30th, 2009, 21:14
now that I run vista the antivrus dont say anything, weird
however it seems that nothing happens when I drag the rarc file into it
Anton
August 31st, 2009, 07:42
you need to add a command line parameters, not drag...
see the included instructions in html file
darchD -x directory arcname
also you can try this tools:
http://code.google.com/p/puyotools/
Supported Formats of compression:
* Cnx
* Cxlz
* Lz00
* Lz01
* Lz11 (Lz77 format 11)
* Lz77/Lzss
* Prs
Maybe this helps...
jorge_bastos
August 31st, 2009, 13:53
that doesn't work :(
Anton
August 31st, 2009, 16:48
Well... Then... I don't know any other tools, sorry.
jorge_bastos
August 31st, 2009, 18:44
thank you anyway. just wondering if someone was able to extract those files
Anton
August 31st, 2009, 19:34
Ask Thakis.
Who knows... maybe he'll help.
jorge_bastos
August 31st, 2009, 21:22
yeah I did it, but he's always offline
jorge_bastos
September 3rd, 2009, 22:13
so I talked with thakis. he said he isn't running windows anymore and he can't make me the executable file of his latest rarcdump. but he gave me the source http://amnoid.de/tmp/rarcdump.cpp .
can someone make a exe of this for me?
sorry I know my english could be much better
edit: he also said this tool is able to extract files from LM
jorge_bastos
September 4th, 2009, 16:49
ok I successfully compiled the rarcfile and i'm able to decompress the rarc file.
it outputs now some small bmd model files and some bin files. what do I need for extracting those?
edit: they're also mdl files, model files?
Anton
September 4th, 2009, 19:40
bmd viewer 2
could you please share this new compiled rarcdump?
jorge_bastos
September 4th, 2009, 20:37
of course http://rapidshare.com/files/275647964/rarcdump.exe
Anton
September 5th, 2009, 09:33
thanx
but I tried some szp from luigi's mansion (model/bat.szp for example).
no success.
szp -> yay0: got rarc file with this header:
10 03 40 03 (..@.)
rarc file -> your new rarcdump: got empty folder...
jorge_bastos
September 5th, 2009, 15:21
ok maybe you should replace your yay0dec.exe with this one http://rapidshare.com/files/275967490/yay0dec.exe.
give it a try this should work
Anton
September 5th, 2009, 15:28
doesn't work
when I drag szp on it, I see this:
http://pic.ipicture.ru/uploads/090905/THUWOlUD4W.jpg
(I renamed the tool to "Yay0dec(new).exe")
jorge_bastos
September 5th, 2009, 16:22
I give you a folder with both tools and a szp file http://rapidshare.com/files/275988759/try_this.rar
just for testing work on this folder
it works for me.
Anton
September 5th, 2009, 19:56
same thing.
doesn't work...
BTW,
the original Yay0 is 68 kb, your is 32 kb
the original rarcdump is 76 kb, your is 80 kb.
whats your specs? (computer configuration).
jorge_bastos
September 6th, 2009, 23:15
running xp pro 32 bit since yesterday with service pack 3
Anton
September 7th, 2009, 08:47
same. but sp 2
jorge_bastos
September 7th, 2009, 15:01
hmm that's weird. it just should work well
Lunaboy
September 28th, 2009, 15:50
Because it looks like one of your programs (the Yay0 decoder or Thakis' extractor) doesn’t support the files, I've created an extractor for you.
The extractor is a console-program and can extract all files found in ARC archives (including the SZP archives from Luigi’s Mansion). If the archive is compressed or the files inside the archive are compressed individually, they will automatically be decompressed during the extraction. The extractor supports both Yaz0 and Yay0 compressed files. Because the extractor supports decompression, you can feed the archives in compressed form (as found on the disk image) directly to the extractor. Start the extractor without parameters to get more info about the usage.
Good luck :)
Because I get an 'Unable to move/copy file' error while uploading the attachment, I'm using RapidShare:
http://rapidshare.de/files/48427647/ArcExtract.zip.html
Anton
September 28th, 2009, 20:31
Lunaboy - thanx again for your help & tools!
But - there will be MUCH better to have not only EXTRACTORS.
The reverse process is more than needed, too!
The main goal of extracting something - is to editing it and put back in game, IMHO...
I still need a good friendly tool for correct packing RARC files...
jth
September 30th, 2009, 05:59
I have written a (R)ARC packer for Four Swords Adventures as a part of my level editor for the game(EFSAdvent (http://www.jaytheham.com/efsa/efsadvent_guide.htm)).
While it is capable of repacking the files that Lunaboys program extracts there is still the problem of returning those rarc files to the .szp files and possibly also compressing with Yay0 again(the game may work without the files being compressed).
From a quick look at the .szp files there seems to be a lot of data that is not part of the rarc and thus is left behind when the rarc files are extracted, or is this part of the yay0 compression?
Anton
September 30th, 2009, 08:18
Hey, your editor is nice work!
I'll explain why I need rarc packer.
In ZeldaTP, there is a file LogoPalUK.arc (in Root/Res/Layout folder).
It contains this at the beginning of the game:
http://zelda64rus.ucoz.ru/_fr/0/3672364.jpg
There are two *.bti files - first one (warning.bti) is the main text ("warning -...." etc..."), the second one (warning_pstart.bti) is "press any button...".
I successfully changed the first picture (made a title screen for a russian translation of ZeldaTP that I'm working on now):
http://zelda64rus.ucoz.ru/_fr/0/1715962.jpg
But I can't change the second one ("press any button to continue").
This two bti files are in rarc file which contains some other bti files.
My changed "warning.bti" file became the same size that original one and I inserted it to rarc in hex-editor.
But the second one (warning_pstart.bti) becomes much bigger, so I can't insert it in hex-editor - I need to repack rarc, containing all this files, then yaz0-it and then finally put back into ISO.
I used BTI tools by Lunaboy (can be found in this thread: http://emutalk.net/showthread.php?t=49228&page=2)
So all I need for now - is to CORRECTLY extract rarc, replace BTIs, CORRECTLY pack the rarc back and Yaz0 it. That's, basically, it...
jth
September 30th, 2009, 23:40
Well here's a current build of my packer RARC Packer (http://www.jaytheham.com/efsa/RARC%20Packer.exe).
To pack files just drag and drop the "root" folder onto the exe. In the case of LogoPalUK.arc the root folder is the one named "archive". It only goes two folders deep currently, but that's been sufficient for everything I've had to work with, let me know if you need more.
Also the format is not 100% reversed so it's possible that TP will check some aspect of the rarc that isn't built properly and won't work, but hopefully not.
You may find you don't need to compress the new files with yaz0, in FSA files can be compressed or not and the game reads them either way.
Anton
October 1st, 2009, 08:08
Thanx for the tool, jth!
I'll try it ASAP.
That's right, in LogoPalUK there is a root folder - "archive", and it contains another folder - "dat" with 7 *.bti files inside. You say two folders deep? So it should work then :)
Well, I think I'll better Yaz0 compress all needed stuff, same like original files are... Yaz0 archiver works just fine for me, it's not necessary to leave files deYaz0-ed, I guess.
it's possible that TP will check some aspect of the rarc that isn't built properly
There are no compression ratio in Zelda RARCs. Any.
Just Rarc header, then some data, then file list, then some data (may be empty (00-s), then the header of the first file, it's data, then the header of the second file, it's data, etc...
jth
October 1st, 2009, 08:24
By two folders deep I mean two inside the root folder, so it should handle it even if there was another folder inside "dat", for example.
I didn't mean there was any compression, only that there are a few parts of the rarc format that my packer assumes are always the same, though they might not be, which could cause problems. I doubt it will though, all the important things are working.
Anton
October 1st, 2009, 10:59
It works! Finally :)
Thanks a lot for the tool. Seems to be a correct packing.
Now my title screen is completely in russian :)
http://pic.ipicture.ru/uploads/091001/j6fRN5rgGf.jpg
Lunaboy
October 3rd, 2009, 01:41
Okay...
I'd spent many hours on writing an ARC packer and now it’s ready to be released, I see this. :(
Mine is a little different from Jth’s packer:
1. It supports an unlimited directory-depth
2. It stores all filenames in lowercase text
3. It can optionally save to a user-given filename
All ARC archives I’ve seen until now are only using lowercase filenames and I don’t know if the game-engine is case-sensitive. Because of that my ARC packer converts all filenames and directory names to lowercase before saving them to the archive.
Since you’ve already got an ARC packer, I guess mine is not needed anymore.
In case anyone is interested in my packer, I’ve posted it here.
Because I get an 'Unable to move/copy file' error while uploading the attachment, I'm using RapidShare:
http://rapidshare.de/files/48457336/ArcPack.zip.html
@Jth:
I’ve tested your packer on my ArcPack test-directory and it’s working as it should be. You’ve also got the checksum generation of the filenames implemented. I know how difficult it is to write the packer. Great job!
jth
October 3rd, 2009, 01:59
Thanks Lunaboy, it sure was a pain to write! Any chance you could post your source, or just the part that allows it to do unlimited folder depth? I'm pretty new to coding and I wasn't really sure how to implement that in my packer so I just had the folder packing code nested again inside itself ^^;
Anton
October 3rd, 2009, 11:49
Thanks guys, both of you, for the great tools!
thakis
October 3rd, 2009, 18:54
jth/Lunaboy: Any chance of posting the source somewhere?
jth
October 3rd, 2009, 22:45
I've put mine here: http://jaytheham.com/efsa/downloads/RARC%20Packer.cs
Lunaboy
October 5th, 2009, 02:55
The archive-creation process of my packer can be divided into 6 steps:
1. Scan directory recursively to get info
2. Create headers and save them to archive
3. Allocate memory for nametable, DirInfo-array and FileInfo-array
4. Scan directory again to fill Info-arrays and nametable, and copy filedata to archive
5. Write Info-arrays (DirInfo and FileInfo) to archive
6. Free memory and quit
The packer scans the directory twice, first time to gather information and a second time to add the files to the archive and to make a map of the filesystem. To get unlimited directory-depth it calls the scan-function recursively. First it changes to a specified directory, next it scans through all items inside the directory and before returning, it changes back to the parent directory. When the scan-function hits a directory, it simply calls itself again. Each time the function is called, it will jump one directory deeper and each time it returns, it jumps out of the directory to its parent.
An example of how it works is shown below.
void DoScan(char *DirName){
SetCurrentDirectory(DirName);
for(Nr = 0 to NrItemsInDir){
if(Item[Nr].IsDir){
DoScan(Item[Nr].Name);
}else{
GetInfo(Item[Nr]);
}
}
SetCurrentDirectory("..");
}
--------------------------------------
Example directory-structure
--------------------------------------
TestDir
|__Arrow.bti
|__Bow.bti
|__Ilia
| |__Yelia.bdl
| |__Anims
| | |__Walk.bck
| | |__Stand.bck
| |__Yelia.bti
|__Medly
|__Md.bdl
|__Md.bck
--------------------------------------
Function calling
--------------------------------------
DoScan("TestDir"){
SetCurrentDirectory("TestDir");
GetInfo("TestDir\Arrow.bti");
GetInfo("TestDir\Bow.bti");
DoScan("TestDir\Ilia"){
SetCurrentDirectory("Ilia");
GetInfo("TestDir\Ilia\Yelia.bdl");
DoScan("TestDir\Ilia\Anims"){
SetCurrentDirectory("Anims");
GetInfo("TestDir\Ilia\Anims\Walk.bck");
GetInfo("TestDir\Ilia\Anims\Stand.bck");
SetCurrentDirectory("..");
}
GetInfo("TestDir\Ilia\Yelia.bti")
SetCurrentDirectory("..");
}
DoScan("TestDir\Medly"){
SetCurrentDirectory("Medly");
GetInfo("TestDir\Medly\Md.bdl");
GetInfo("TestDir\Medly\Md.bck");
SetCurrentDirectory("..");
}
SetCurrentDirectory("..");
}
I’ve posted the main.cpp file below.
This file alone will not compile, because it needs my cFile class (I don’t want to release the class yet).
You can use the code as a reference to see how the packer is working.
Because I get an 'Unable to move/copy file' error while uploading the attachment, I'm using RapidShare:
http://rapidshare.de/files/48468383/ArcPack_Src.zip.html
jorge_bastos
October 11th, 2009, 22:04
someone figured out how to open mdl files?
jimbo390
August 26th, 2010, 02:41
sorry for bumping this old thread but does someone still have the arcpacker because all the rapidshare links are dead?
SebCroc
May 12th, 2011, 07:26
I am EXTREMELY REALLY REALLY SORRY for bumping this thread, but this is very urgant... I need that new compiled rarcdump for the .szp files of Luigi's Mansion. I NEED it. Please, can someone, who still has it PLEASE put it up for me? Or if not, compile the source code into an .exe? I beg... Please, I REALLY need it.:cry: Could someone PLEASE reply?
SebCroc
May 13th, 2011, 12:23
Please? Could someone compile this into an .exe for me? :down: With a download link? Just anyone, whoever knows how to and can. I don't care who does it for me, but I NEED IT! THIS IS MY ONLY HOPE!!! PLEASE? JUST ANYONE?!?!
http://amnoid.de/tmp/rarcdump.cpp
ExtremeDude2
May 13th, 2011, 14:23
How much is it worth to you:D jk
SebCroc
May 14th, 2011, 03:08
How much is it worth to you:D jk
VERY much... Can you? :teehee:
ExtremeDude2
May 15th, 2011, 01:12
VERY much... Can you? :teehee:
No I was just kidding :D
SebCroc
May 15th, 2011, 03:46
Ok, then if no one wants to, then can someone tell me how to do it? I used that Microsoft Visual c++ 2010, and when I try to compile it into an .exe, it says it needs the 'openfile.h' and shows an error. I looked at the code, and it says that at some point it needs it. What do I do then? where can I get this 'openfile.h'? Do I really need it? Where can I get it? PLEASE HELP ME!!! :ph34r:
Anton
May 15th, 2011, 10:50
SebCroc, here's the tools + sources:
http://www.megaupload.com/?d=RV5WPESD
one is by thakis, second (with "new" in file name) is compiled by jorge_bastos
enjoy
also you can check my site (it's in russian) for other game cube/Wii tools that I've found:
http://www.shedevr.org.ru/zelda64rus/downloads.html#romhacking_gc
SebCroc
May 15th, 2011, 13:39
ATON YOU ARE A LEGEND!!! :king: I don't know how much I can thank you... I just do. You're AWSOME!!! :D XD
SebCroc
May 17th, 2011, 02:29
Also Aton, do you have the .szp yay0 decompresser by Lunaboy? That would be useful too...
Anton
May 17th, 2011, 10:42
http://amnoid.de/gc/index.html
it's by thakis.
Sakurai
January 23rd, 2012, 08:29
Hi
I extracted some files from szp of Luigi's Mansion and edited them.
Next, I want to replace them with files before edit.
But I can't repack them into szp file.
Is there any tool for correct packing szp files?
Can someone tell me how to do it?
Please exuse my poor english.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.