Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by AlphaTwentyThree »

Hi there!

I have looked into the embb files that are extracted by Luigi's "new_fear.bms" script from here: viewtopic.php?f=9&t=196#p727
I know that Luigi has already written a script for those bndl files but it produces an error with the embb files, so I wrote one myself from scratch. :)

*snip* use Luigi's code down below instead.
Last edited by AlphaTwentyThree on Sun Oct 05, 2014 6:51 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by aluigi »

Thanks, there was one field (the one before FILES) that was set to zero in the original sample that was provided and instead it's a sequence of additional offsets for names (useless).

I have updated my script for supporting this field and increasing the speed by avoiding to load the BNDL files in memory:
http://aluigi.org/papers/bms/others/sha ... mordor.bms

I think that your script can't work correctly if you don't read that field.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by aluigi »

ops mistake, I cannot avoid the loading of the file in memory because some embb are compressed.
I'm fixing the script again.

*edit* script 0.2.1
ili
Posts: 81
Joined: Wed Sep 17, 2014 2:28 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by ili »

any idea why ww2ogg not working on voice file
swizzlewizzle
Posts: 5
Joined: Sun Oct 05, 2014 1:03 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by swizzlewizzle »

Can't seem to get this script working.. signature of 4 bytes at offset 0x0000 doesn't match the one expected by the script.

Trying to dive into the embb and .bndlxml05 files to mod Shadow of mordor.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by aluigi »

You must use my script for Shadow of Mordor:
http://aluigi.org/papers/bms/others/sha ... mordor.bms
swizzlewizzle
Posts: 5
Joined: Sun Oct 05, 2014 1:03 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by swizzlewizzle »

**edit: sorry link is working.. just in a language I didn't understand ;)

Got it working. Do we need the bndlxml files? Also, is there any way to repack and replace? Also, looks like there are some objres files unpacked.. think they are configuration files of some kind. Any idea how to open them without all the gibberish?
swizzlewizzle
Posts: 5
Joined: Sun Oct 05, 2014 1:03 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by swizzlewizzle »

Any idea how I can solve a "not enough sotrage is available to process this command" problem? Trying to use this script on a 1 GB file
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by aluigi »

bndlxml* are just xml files, open them with a text editor.

Regarding the "replace", there is a way but it works only with the embb archives that are not compressed.

So the solutions are:
  • I can take the unpacking function of the script and putting it in another script so that you can uncompress the embb archives (so you can reimport their files)
  • modify or exporting the BNDL part of the script because at the moment it uses MEMORY_FILES (not valid for reimport) but it's a joke to remove all the references to MEMORY_FILE
So, yes, it's possible to reimport the files.
I have attached the "extracted" parts of the original script to this post.

The bndl.bms script will avoid the error you are experiencing (otherwise use quickbms_4gb_files.exe).
passburger
Posts: 1
Joined: Sun Oct 05, 2014 10:35 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by passburger »

EDIT:
Nevermind, using the unsplit bms-archive solved my problem!

Thanks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by aluigi »

Just a quick recap about what scripts to use.

If you want to extract ANY embb, emb, tex, tex0 and other archives, use the script 0.2.1 linked above.
It will automatically decompress the compressed archives in the memory so: one script to rule them all :)

If you want to mod the game you have to use the two scripts zipped as attachment above.
One of them (unpack.bms) uncompresses the compressed tex0 and embb archives, so one file in input and one (bigger) file as output.
This operation is necessary for being able to edit the files located in side these archives.

The other script (bndl.bms) extracts the files located inside the uncompressed emb/embb archives.
You need to use this script if you want to reimport the modified files back in the archive, read the section 3 of quickbms.txt for all the information.

I have not tried if the game accepts the reimported files and the uncompressed archives in place of the original compressed ones, so you must test this by yourself.

Hope it helps :)
Starnova
Posts: 16
Joined: Fri Aug 08, 2014 1:00 am

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by Starnova »

Hi Aluigi, is there any script for exporting/importing the audio pck?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by aluigi »

I don't know because I no longer have the archives.
How much big is audio.pck?
Maybe you can try uploading the beginning and end of the file if it's too big.
Starnova
Posts: 16
Joined: Fri Aug 08, 2014 1:00 am

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by Starnova »

aluigi wrote:I don't know because I no longer have the archives.
How much big is audio.pck?
Maybe you can try uploading the beginning and end of the file if it's too big.


Here, I found this link shared by some user. Select one of the files. Every single audio weights 400 - 500 mb and it contains a PCK file.
https://mega.co.nz/#F!e5kxTTQK!uWsQRqHnbNaFHPzayZuQ4w

I want to extract the files inside of it because I think it contains audio and subtitles files.
ili
Posts: 81
Joined: Wed Sep 17, 2014 2:28 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by ili »

scanwave.bms work i think's but audio format unreable if someone can help
Starnova
Posts: 16
Joined: Fri Aug 08, 2014 1:00 am

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by Starnova »

Is there a way to extract the subtitle in it?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by aluigi »

The format of the PCK archives is the same used in Borderlands 2 (header "AKPK"):
http://aluigi.org/papers/bms/others/bor ... s2_pck.bms
Starnova
Posts: 16
Joined: Fri Aug 08, 2014 1:00 am

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by Starnova »

aluigi wrote:The format of the PCK archives is the same used in Borderlands 2 (header "AKPK"):
http://aluigi.org/papers/bms/others/bor ... s2_pck.bms


Thanx for the time! :D

It only extracts WAV files, is there a way to extract the subtitles?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by aluigi »

I don't think that the AKPK archives contain the subtitles, in any other game they contained just the RIFF/RIFX wav files.
ili
Posts: 81
Joined: Wed Sep 17, 2014 2:28 pm

Re: Middle Earth: Shadow of Mordor (2014, PC) - *.embb

Post by ili »

got unknow chunk type result