lfnetwork.com mark read register faq members calendar

Thread: Monkey Island 2 - Special Edition
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 07-06-2010, 06:52 PM   #1
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
Monkey Island 2 - Special Edition

We'll be needing a new thread for MI2:SE.

Obviously the files are still encrypted on steam right now, and I probably wont be around when the game is first unlocked. So for those who are, this might help. Obviously its only based on assumptions from looking at the encrypted preloaded files:


The Pak file:
It looks a lot smaller than expected - my guess is that its compressed in a similar manner to the xbox version of MI1SE. If thats the case then running XBDecompress on it might do the trick.
Try and have a poke around using Monkey Island Explorer it might work, if the format is the same.

The audio:
The audio is still in standard wavebanks/soundbanks so its likely that jott's modified UnXwb tool will work just fine. Assuming that everything's in the same format (xwma) then this automated solution might work.


[Edit] See later posts
See this post to extract the music
See this post to browse and extract the .pak


Last edited by bgbennyboy; 07-07-2010 at 07:55 PM.
bgbennyboy is offline   you may: quote & reply,
Old 07-06-2010, 07:03 PM   #2
TheJoe
Rookie
 
TheJoe's Avatar
 
Join Date: Oct 2008
Posts: 141
Monkey Explorer tells me it's not a valid bundle, xbdecompress says it wasn't compressed normally.
TheJoe is offline   you may: quote & reply,
Old 07-06-2010, 07:04 PM   #3
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
Steam hasn't unlocked the game yet so the files are all still encrypted by steam.

bgbennyboy is offline   you may: quote & reply,
Old 07-06-2010, 07:11 PM   #4
TheJoe
Rookie
 
TheJoe's Avatar
 
Join Date: Oct 2008
Posts: 141
Oh - I thought they only encrypted the main .exe. Well then. My comment is moot.
TheJoe is offline   you may: quote & reply,
Old 07-06-2010, 08:12 PM   #5
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
I've had a look a the pak file in the iphone version. The format seems the same except in the file records: the dword for offset in namedir is wrong. It doesnt point to a valid filename in the namedir.

bgbennyboy is offline   you may: quote & reply,
Old 07-06-2010, 09:11 PM   #6
Monkey Mania
 
Monkey Mania's Avatar
 
Join Date: Dec 2001
Location: Right behind you
Posts: 771
Dr Fred: Let's get cracking!
Monkey Mania is offline   you may: quote & reply,
Old 07-07-2010, 01:14 PM   #7
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
UnXWB recognises the music (in musicnew at least) as ADP format - which I think is some ADPCM variant.

The pak file format isnt quite the same, as I said previously, the offset in namedir entries are wrong

bgbennyboy is offline   you may: quote & reply,
Old 07-07-2010, 01:30 PM   #8
TheJoe
Rookie
 
TheJoe's Avatar
 
Join Date: Oct 2008
Posts: 141
I was able to open the pak in Monkey Explorer, but the preview shows everything corrupted.
Quote:
DDS Decode failed! _coffin-skin/costumes_a03.dxt
DDS Decode failed! e_maphelphowto_bundle_pk_a02.dxt
Hope that's helpful in some way.
TheJoe is offline   you may: quote & reply,
Old 07-07-2010, 01:52 PM   #9
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
Music - I've tried various tools to decode it, even the AdpcmEncode.exe that comes with the directx sdk but no luck so far
[Edit] See later posts


Last edited by bgbennyboy; 07-07-2010 at 03:57 PM.
bgbennyboy is offline   you may: quote & reply,
Old 07-07-2010, 02:46 PM   #10
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
Sorted it! They really are just generic MS ADPCM!
Unpack the files with UnXwb - play them back with something like VLC

bgbennyboy is offline   you may: quote & reply,
Old 07-07-2010, 02:58 PM   #11
Monkey Mania
 
Monkey Mania's Avatar
 
Join Date: Dec 2001
Location: Right behind you
Posts: 771
Any luck on the pak file?
Monkey Mania is offline   you may: quote & reply,
Old 07-07-2010, 04:00 PM   #12
MusiclyInspired
Junior Member
 
MusiclyInspired's Avatar
 
Join Date: Jan 2007
Location: Winnipeg, Manitoba, Canada
Posts: 304
Current Game: Wallace & Grommit
Well, it seems like opening the PAK file with Monkey Island Explorer views the files properly but the graphics are all garbled. Also, a friend of mine tried extracting the music files and opened them in audacity. While you can see the waveform, audacity will not play them, apparently.


"Booyah! Look out, LeChuck! Here comes Guybrush Threepwood's glowing sword of hot monkey vengeance!"
-Guybrush Threepwood, Tales of Monkey Island
MusiclyInspired is offline   you may: quote & reply,
Old 07-07-2010, 04:08 PM   #13
MusiclyInspired
Junior Member
 
MusiclyInspired's Avatar
 
Join Date: Jan 2007
Location: Winnipeg, Manitoba, Canada
Posts: 304
Current Game: Wallace & Grommit
Hmmm, it seems that all the musical transitions are controlled by the MI2_MUSIC_IMPLEMENTATION.csv file located in the AUDIO folder. I wonder if you can mess with it...

Also, I can't seem to find the original game files in the PAK...


"Booyah! Look out, LeChuck! Here comes Guybrush Threepwood's glowing sword of hot monkey vengeance!"
-Guybrush Threepwood, Tales of Monkey Island
MusiclyInspired is offline   you may: quote & reply,
Old 07-07-2010, 04:10 PM   #14
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
I've put together a package to automate the decoding of the MI2 music.
Instructions are in the readme but the process is basically this:
  • Drag and drop an .xwb file onto the file named DECODEAUDIO
  • It'll take a few minutes to complete, the new files will be in the "Decoded" folder.
  • I've only tested it with MusicNew.xwb as my brain is fried, but I assume it'll work for some of the others.
  • See the readme for more information.
Download it here.

[Edit] Updated the download with a new version that is a lot quicker (thanks to Meelkee)


[Edit 2] Use the latest version of Monkey Island Explorer instead.


Last edited by bgbennyboy; 07-20-2010 at 06:43 PM.
bgbennyboy is offline   you may: quote & reply,
Old 07-07-2010, 04:20 PM   #15
Tecman
Lurker
 
Join Date: Jul 2010
Posts: 1
Awesome, thanks.

Was just writing on how to do it "manually" with Audacity, FFmpeg and LAME and using multiple export, but this is much more user friendly. Although that does output .mp3s instead of .wavs like here, so people will still have to use some converting software, but no biggie.
Tecman is offline   you may: quote & reply,
Old 07-07-2010, 04:23 PM   #16
MusiclyInspired
Junior Member
 
MusiclyInspired's Avatar
 
Join Date: Jan 2007
Location: Winnipeg, Manitoba, Canada
Posts: 304
Current Game: Wallace & Grommit
What? It creates MP3s? Are the source files MP3s or is the encoding done after the extraction? I'd rather have WAVs so I can convert to the superior OGG format or whatever else I want without quality degradation.


"Booyah! Look out, LeChuck! Here comes Guybrush Threepwood's glowing sword of hot monkey vengeance!"
-Guybrush Threepwood, Tales of Monkey Island
MusiclyInspired is offline   you may: quote & reply,
Old 07-07-2010, 04:25 PM   #17
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
Read the readme...and my post. It creates wav's ¬¬

bgbennyboy is offline   you may: quote & reply,
Old 07-07-2010, 04:26 PM   #18
MusiclyInspired
Junior Member
 
MusiclyInspired's Avatar
 
Join Date: Jan 2007
Location: Winnipeg, Manitoba, Canada
Posts: 304
Current Game: Wallace & Grommit
Ah, I misunderstood Tecman's post...


"Booyah! Look out, LeChuck! Here comes Guybrush Threepwood's glowing sword of hot monkey vengeance!"
-Guybrush Threepwood, Tales of Monkey Island
MusiclyInspired is offline   you may: quote & reply,
Old 07-07-2010, 05:08 PM   #19
Serge
SCUMMLord
 
Join Date: Mar 2002
Location: Denmark
Posts: 196
Just in case you haven't already done it, bg (I can't tell from the thread), the filename table offsets in .PAK should simply be ignored completely - the entries of the filename table are actually stored in the same order as the entires of the file offsets/size table, so for the first file, start from the beginning of the name table and just read the name up until the null terminator. For the next file, read from there until the next, etc.

Still no idea where the hell those name table offsets come from, but since monkey1.pak had the file table in the same order as the actual file content (while monkey2.pak doesn't), there's probably a bug there, and they never actually use the filename table offsets in either game.
Serge is offline   you may: quote & reply,
Old 07-07-2010, 05:30 PM   #20
Serge
SCUMMLord
 
Join Date: Mar 2002
Location: Denmark
Posts: 196
... and the image data in the .dxt files is gzipped.
Serge is offline   you may: quote & reply,
Old 07-07-2010, 06:26 PM   #21
Monkey Mania
 
Monkey Mania's Avatar
 
Join Date: Dec 2001
Location: Right behind you
Posts: 771
Any way to re-inject audio data?
Monkey Mania is offline   you may: quote & reply,
Old 07-07-2010, 07:52 PM   #22
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
Quote:
Originally Posted by Serge View Post
Just in case you haven't already done it, bg (I can't tell from the thread), the filename table offsets in .PAK should simply be ignored completely - the entries of the filename table are actually stored in the same order as the entires of the file offsets/size table, so for the first file, start from the beginning of the name table and just read the name up until the null terminator. For the next file, read from there until the next, etc.

Still no idea where the hell those name table offsets come from, but since monkey1.pak had the file table in the same order as the actual file content (while monkey2.pak doesn't), there's probably a bug there, and they never actually use the filename table offsets in either game.
Thanks for that Serge, I've only really looked at the audio stuff this evening


Thanks to Serge I've updated Monkey Island Explorer to support MI2-SE. Its not fully optimised or anything yet - but it'll work for browsing the pak and extracting images and files.

It'll also work with the Xbox (if you use the XBDecompress tool) and iPhone versions should you feel the need to delve into them.

Get it here.


Last edited by bgbennyboy; 07-07-2010 at 07:58 PM.
bgbennyboy is offline   you may: quote & reply,
Old 07-07-2010, 08:25 PM   #23
TheJoe
Rookie
 
TheJoe's Avatar
 
Join Date: Oct 2008
Posts: 141
Beautiful. Works nicely. MI2:SE works without the pakfile being there, too, so you can extract it and be done with it like the original.

Interestingly enough, despite there being obvious changes to it, the original classic files are, like MISE, binary identical to the original CD version of MI2. I've checked the game in ScummVM and the credit sequence is still there, so it looks like it's being automatically skipped.

A .wav in the music file is SE_CreditsSequence.wav. This makes me believe that the titles are in there somewhere, and are just being skipped straight away.

edit:
Done some more poking around. Found the list of names for the dancing monkey scene and three xml costume reference files known as:

160_monkey-stop-skin.costume.xml
161_monkey-dance-skin.costume.xml
162_opening-credit-guybrush.costume.xml

What do we think about that?

Also:

Last edited by TheJoe; 07-07-2010 at 09:01 PM.
TheJoe is offline   you may: quote & reply,
Old 07-08-2010, 03:29 AM   #24
OzzieMonkey
Rookie
 
Join Date: Mar 2010
Posts: 74
Quote:
Originally Posted by TheJoe View Post
Beautiful. Works nicely. MI2:SE works without the pakfile being there, too, so you can extract it and be done with it like the original.

Interestingly enough, despite there being obvious changes to it, the original classic files are, like MISE, binary identical to the original CD version of MI2. I've checked the game in ScummVM and the credit sequence is still there, so it looks like it's being automatically skipped.

A .wav in the music file is SE_CreditsSequence.wav. This makes me believe that the titles are in there somewhere, and are just being skipped straight away.

edit:
Done some more poking around. Found the list of names for the dancing monkey scene and three xml costume reference files known as:

160_monkey-stop-skin.costume.xml
161_monkey-dance-skin.costume.xml
162_opening-credit-guybrush.costume.xml

What do we think about that?

Also:
So essentially you're saying that the full opening sequence is available, but it's just being blocked? Ok, then how do we go about fixing that?
OzzieMonkey is offline   you may: quote & reply,
Old 07-08-2010, 03:34 AM   #25
Monkey Mania
 
Monkey Mania's Avatar
 
Join Date: Dec 2001
Location: Right behind you
Posts: 771
It seems the graphics use a different kind of compression. Any ideas?
Monkey Mania is offline   you may: quote & reply,
Old 07-08-2010, 06:50 AM   #26
Kenko
Rookie
 
Join Date: Jun 2009
Location: Sweden
Posts: 49
Quote:
Originally Posted by TheJoe View Post
What do we think about that?
Is there a voice-file too?
Kenko is offline   you may: quote & reply,
Old 07-08-2010, 06:57 AM   #27
Serge
SCUMMLord
 
Join Date: Mar 2002
Location: Denmark
Posts: 196
Quote:
Originally Posted by Monkey Mania View Post
It seems the graphics use a different kind of compression. Any ideas?
Quote:
Originally Posted by Serge
... and the image data in the .dxt files is gzipped.
I.e., "DXT5" [width] [height] [gzipped (and DXT5 compressed) data]
Serge is offline   you may: quote & reply,
Old 07-08-2010, 07:37 AM   #28
elTee
beatnik
 
elTee's Avatar
 
Status: Super Moderator
Join Date: Dec 2001
Location: Cheltenham, England
Posts: 2,911
The International House of Mojo Staff LFN Staff Member 
I wonder, would it be possible to rename the two music files and swap them around - would this enable the SE music in classic mode, or cause epic failure? I can't try it out til later - but the classic version music is balls.


LucasTones - LT - elTee
The International House of Mojo - writing long-winded gibberish increasingly infrequently
elTee is offline   you may: quote & reply,
Old 07-08-2010, 08:13 AM   #29
Kenko
Rookie
 
Join Date: Jun 2009
Location: Sweden
Posts: 49
I found the backgrounds for the opening credits, rooms\images\103_open-cred\, but they are not in SE graphics.

And song exists and is called "mx154_SE_OpeningCredits_nl"

I was also going to look for the speech, but they are all named "000000XX", so it won't be easy to find, if they recorded it.

EDIT: Are they named like that because the decoder doesn't work properly with Speech.xwb, or are they supposed to be like that?

Last edited by Kenko; 07-08-2010 at 09:13 AM.
Kenko is offline   you may: quote & reply,
Old 07-08-2010, 08:21 AM   #30
s-island
Music man
 
s-island's Avatar
 
Status: Administrator
Join Date: Sep 2003
Posts: 1,080
The International House of Mojo Staff 
Quote:
I wonder, would it be possible to rename the two music files and swap them around - would this enable the SE music in classic mode, or cause epic failure? I can't try it out til later - but the classic version music is balls.
Or one cold record the MT-32 tracks properly, if it's possible to write a new .xwb file.
s-island is offline   you may: quote & reply,
Old 07-08-2010, 08:24 AM   #31
OzzieMonkey
Rookie
 
Join Date: Mar 2010
Posts: 74
Quote:
Originally Posted by elTee View Post
I wonder, would it be possible to rename the two music files and swap them around - would this enable the SE music in classic mode, or cause epic failure? I can't try it out til later - but the classic version music is balls.
That would be really awesome if we could do that. If someone figures it out, please tell us!
OzzieMonkey is offline   you may: quote & reply,
Old 07-08-2010, 09:19 AM   #32
elTee
beatnik
 
elTee's Avatar
 
Status: Super Moderator
Join Date: Dec 2001
Location: Cheltenham, England
Posts: 2,911
The International House of Mojo Staff LFN Staff Member 
Quote:
Originally Posted by s-island View Post
Or one cold record the MT-32 tracks properly, if it's possible to write a new .xwb file.
Yeah, if we can write a new .wxb that would be the ultimate. I wouldn't want to manufacture all those tracks though


LucasTones - LT - elTee
The International House of Mojo - writing long-winded gibberish increasingly infrequently
elTee is offline   you may: quote & reply,
Old 07-08-2010, 09:52 AM   #33
s-island
Music man
 
s-island's Avatar
 
Status: Administrator
Join Date: Sep 2003
Posts: 1,080
The International House of Mojo Staff 
Hah, maybe SurplusGamer will get his MP3 soundtrack. ;
s-island is offline   you may: quote & reply,
Old 07-08-2010, 10:11 AM   #34
TheJoe
Rookie
 
TheJoe's Avatar
 
Join Date: Oct 2008
Posts: 141
Quote:
Originally Posted by s-island View Post
Or one cold record the MT-32 tracks properly, if it's possible to write a new .xwb file.
I can't get MT-32 tracks, but I can record the music with Shan's soundfont which is very close to it. I would need a lot of time though since I only know how to do it in Linux which I don't have installed right now.


Also, yes. I believe the credit sequence is being locked away. I did even more poking and found interface files for the map pieces that surround the credits. They are, however, unfinished, copied straight from the original game. This leads me to believe that they gave up halfway through adding them.

Last edited by TheJoe; 07-08-2010 at 10:19 AM.
TheJoe is offline   you may: quote & reply,
Old 07-08-2010, 10:33 AM   #35
LogicDeLuxe
Rookie
 
Join Date: Oct 2004
Posts: 215
I wonder, what would happen, if we hack the scripts in monkey2.001 to force the game into easy mode?
Quote:
Originally Posted by Kenko View Post
And song exists
Obviously enough. It is playing in the main menu.
LogicDeLuxe is offline   you may: quote & reply,
Old 07-08-2010, 11:04 AM   #36
Laserschwert
 
Laserschwert's Avatar
 
Join Date: Mar 2002
Location: Cologne, Germany
Posts: 1,076
Notable contributor 
Quote:
Originally Posted by LogicDeLuxe View Post
Obviously enough. It is playing in the main menu.
But the file playing in the main menu is named "MUS_menu". The file named "OpeningCredits" is identical, but not used in the game

Laserschwert is offline   you may: quote & reply,
Old 07-08-2010, 11:18 AM   #37
Jenni
Rookie
 
Jenni's Avatar
 
Join Date: Jul 2008
Location: New York, United States
Posts: 201
Current Game: Monkey Island 4 (ResidualVM)
Quote:
Originally Posted by elTee View Post
I wonder, would it be possible to rename the two music files and swap them around - would this enable the SE music in classic mode, or cause epic failure? I can't try it out til later - but the classic version music is balls.
I just tried that, and it doesn't work unfortunately. The classic version just goes silent, except for speech.

Jenni is offline   you may: quote & reply,
Old 07-08-2010, 11:29 AM   #38
Kenko
Rookie
 
Join Date: Jun 2009
Location: Sweden
Posts: 49
Quote:
Originally Posted by TheJoe View Post
I did even more poking and found interface files for the map pieces that surround the credits. They are, however, unfinished, copied straight from the original game. This leads me to believe that they gave up halfway through adding them.
I found those too, but I didn't see the credit text.

I hope there is a way to "unlock" the opening credits.
Kenko is offline   you may: quote & reply,
Old 07-08-2010, 11:41 AM   #39
TheJoe
Rookie
 
TheJoe's Avatar
 
Join Date: Oct 2008
Posts: 141
Quote:
Originally Posted by Kenko View Post
I found those too, but I didn't see the credit text.

I hope there is a way to "unlock" the opening credits.
I believe the credits are in art\ui\credits\title.credits.xml.

Edit:
Looking at the unencrypted sections of the file, it looks like those are actually the MISE credits. Poo.

Also, in the 'remonkeyed' credits, Tim Schafer's name is misspelled with an extra 'F'. I tried removing it, but that obviously failed because of the encryption or whatever. Anyway to mess around with these XMLs?
TheJoe is offline   you may: quote & reply,
Old 07-08-2010, 11:53 AM   #40
Kenko
Rookie
 
Join Date: Jun 2009
Location: Sweden
Posts: 49
Quote:
Originally Posted by TheJoe View Post
Edit:
Looking at the unencrypted sections of the file, it looks like those are actually the MISE credits. Poo.
I wonder why they are there.

Also I finally finished decoding all the 7157 speech-files. Too bad they don't have proper names
Kenko is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Mixnmojo.com > Community Discussion Forums > SCUMM > Monkey Island 2 - Special Edition

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:59 PM.


LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.