Page 1 of 1
Millennium Secrets: Emerald Curse - Archive
Posted: Sat Mar 27, 2010 12:53 pm
by ubrax
I'll appreciate any help or guidance to unpack the "resource.dat"-archive from "Millennium Secrets - Emerald Curse".
The head.bin and tail.bin may be downloaded here:
http://www.motionpress.com/uploads/Mill ... _Curse.rar
Thanks in advance!
Re: Millennium Secrets: Emerald Curse - Archive
Posted: Sun Mar 28, 2010 8:40 pm
by Mr.Mouse
Code: Select all
IDString 0 "wazzzzaup!" ;
Get FN Long 0 ;
Get ASize Long 0 ;
SavePos S 0 ;
For T = 1 To FN ;
Get COMS Long 0 ;
Get UNCOMS Long 0 ;
Get D Long 0 ;
Get D Long 0 ;
Get FNS Long 0 ;
GetDString Name FNS 0 ;
SavePos S2 0 ;
Get FNS2 Long 0 ;
If FNS2 > 0 ;
GetDString Path FNS2 0 ;
EndIf;
Next T ;
SavePos SOFF 0 ;
GoTo S 0 ;
For T = 1 To FN ;
Get COMS Long 0 ;
Get UNCOMS Long 0 ;
Get D Long 0 ;
Get D Long 0 ;
Get FNS Long 0 ;
GetDString Name FNS 0 ;
SavePos S2 0 ;
Get FNS2 Long 0 ;
Set Path String "" ;
If FNS2 > 0 ;
Get B Byte 0 ;
Math FNS2 -= 1 ;
GetDString Path FNS2 0 ;
EndIf;
String Path += Name ;
Log Path SOFF COMS 0 0 ;
Math SOFF += COMS ;
Math SOFF += 4 ;
Next T ;
Use that script in MultiEx Commander to extract the stuff.
Here's the BMS file:
dat.7z
(unpack with 7zip)
Here's an example of a file in the resource.dat:
Re: Millennium Secrets: Emerald Curse - Archive
Posted: Sun Feb 06, 2011 6:18 pm
by felixthekat
Good morning!
I wanted to use this script, with another game, is IDString "wazzzzaup!" ; but I get the error you see in the screenshot.
Why is this happening?
Resource.dat Megaupload
Re: Millennium Secrets: Emerald Curse - Archive
Posted: Sun Feb 06, 2011 7:19 pm
by Mr.Mouse
Probably because one of the resources it wishes to extract is bigger than possible based on the location of the resource in the archive and the total size of the archive. That would suggest the script cannot be used as is, but must be adapted.
Re: Millennium Secrets: Emerald Curse - Archive
Posted: Sun Feb 06, 2011 8:08 pm
by felixthekat
Ho hu. I am very noob as for adapted the script.
Yesterday, I recently made my first script, very basic, to extract the files, the game "Columbus - Ghost of the Mystery Stone" with some tutorials I found, here in the forum.
Code: Select all
YYST idstring
HEADERSZ get long
get long FILES
SKIP get long
for i = 0 <FILES
get short nSize
NAME getdstring nSize
get long SIZE
OFFSET get long
log SIZE OFFSET NAME
next i
It is very complicated, tutorials in English and my English is very bad (google translate)
Thanks for responding
Re: Millennium Secrets: Emerald Curse - Archive
Posted: Sun Feb 06, 2011 10:41 pm
by Mr.Mouse
Code: Select all
IDString 0 "wazzzzaup!" ;
ComType ZLib1 ;
Get FN Long 0 ;
Get ASize Long 0 ;
SavePos S 0 ;
For T = 1 To FN ;
Get UNCOMS Long 0 ;
Get COMS Long 0 ;
Get D Long 0 ;
Get D Long 0 ;
Get FNS Long 0 ;
GetDString Name FNS 0 ;
SavePos S2 0 ;
Get FNS2 Long 0 ;
If FNS2 > 0 ;
GetDString Path FNS2 0 ;
EndIf;
Next T ;
SavePos SOFF 0 ;
GoTo S 0 ;
For T = 1 To FN ;
Get UNCOMS Long 0 ;
Get COMS Long 0 ;
Get D Long 0 ;
Get D Long 0 ;
Get FNS Long 0 ;
GetDString Name FNS 0 ;
SavePos S2 0 ;
Get FNS2 Long 0 ;
Set Path String "" ;
If FNS2 > 0 ;
Get B Byte 0 ;
Math FNS2 -= 1 ;
GetDString Path FNS2 0 ;
EndIf;
String Path += Name ;
CLog Path SOFF COMS 0 0 UNCOMS 0;
Math SOFF += COMS ;
Math SOFF += 4 ;
Next T ;
There you go, that should extract each compressed file and decompress it.
Save it as a .txt file and then use it as a MexScript.
menu00_menu_bk_02.jpg