September 30th, 2009, 08:18
I like beer
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:
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):
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...
Last edited by Anton; September 30th, 2009 at 14:39.
September 30th, 2009, 23:40
Well here's a current build of my packer RARC Packer.
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.
October 1st, 2009, 08:08
I like beer
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.
There are no compression ratio in Zelda RARCs. Any.
Originally Posted by jth
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...
Last edited by Anton; October 1st, 2009 at 08:16.
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.
October 1st, 2009, 10:59
I like beer
October 3rd, 2009, 01:41
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:
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!
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 ^^;
October 3rd, 2009, 11:49
I like beer
Thanks guys, both of you, for the great tools!
October 3rd, 2009, 18:54
jth/Lunaboy: Any chance of posting the source somewhere?
October 3rd, 2009, 22:45