Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Millennium Secrets: Emerald Curse - Archive

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
ubrax
advanced
Posts: 46
Joined: Sun Mar 15, 2009 2:16 pm
Has thanked: 20 times

Millennium Secrets: Emerald Curse - Archive

Post 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!
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Re: Millennium Secrets: Emerald Curse - Archive

Post 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:
You do not have the required permissions to view the files attached to this post.
felixthekat
ultra-n00b
Posts: 6
Joined: Sat Jan 15, 2011 4:20 pm

Re: Millennium Secrets: Emerald Curse - Archive

Post 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

Image
You do not have the required permissions to view the files attached to this post.
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Re: Millennium Secrets: Emerald Curse - Archive

Post 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.
felixthekat
ultra-n00b
Posts: 6
Joined: Sat Jan 15, 2011 4:20 pm

Re: Millennium Secrets: Emerald Curse - Archive

Post 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
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Re: Millennium Secrets: Emerald Curse - Archive

Post 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
You do not have the required permissions to view the files attached to this post.
Post Reply