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!
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Millennium Secrets: Emerald Curse - Archive
-
- 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
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 ;
Here's the BMS file: (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.
-
- ultra-n00b
- Posts: 6
- Joined: Sat Jan 15, 2011 4:20 pm
Re: Millennium Secrets: Emerald Curse - Archive
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
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
You do not have the required permissions to view the files attached to this post.
-
- 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
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.
-
- ultra-n00b
- Posts: 6
- Joined: Sat Jan 15, 2011 4:20 pm
Re: Millennium Secrets: Emerald Curse - Archive
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.
It is very complicated, tutorials in English and my English is very bad (google translate)
Thanks for responding
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
Thanks for responding
-
- 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
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 ;
Save it as a .txt file and then use it as a MexScript.
You do not have the required permissions to view the files attached to this post.