Offtopic: Into Commodore 64 (6502) coding, pixeling or music?
Xentax is looking for new members for the C64 activities!
Just drop us a message at forum@xentax.com and join the Scene Team!

Forum rules: Click here

[PC] Mass Effect 3 DLC (sfar)

The Original Forum. Game archives, full of resources. How to open them? Get help here.
leroyjenkins
beginner
Posts: 34
Joined: Tue Feb 28, 2012 9:35 am
Location: Italy
Has thanked: 4 times
Been thanked: 7 times

Re: [PC] Mass Effect 3 DLC (sfar)

Post by leroyjenkins » Fri Mar 16, 2012 8:43 pm

filipmosner wrote:Rick Good job with sfar unpack! Any idea, how translate DLCs, how insert translated tlk file?
You don't need to insert translation, the DLC package already contains lot of langs like english, italian, german, french etc... you just need to select the audio/subtitle language ingame :)
Mass Effect 3 Default.sfar Explorer v1.1.0.4: http://www.mediafire.com/?o56z866a44dn3bv
Folder of all my Mass Effect 3 DLC programs: http://www.mediafire.com/?qyzdci68fx6cf
SVN Folder: http://amarok86-me3-tools.googlecode.com/svn/

User avatar
filipmosner
ultra-n00b
Posts: 5
Joined: Mon Dec 29, 2008 7:17 pm

Re: [PC] Mass Effect 3 DLC (sfar)

Post by filipmosner » Fri Mar 16, 2012 8:58 pm

Yes, but, i want another language which is not in in the game.

leroyjenkins
beginner
Posts: 34
Joined: Tue Feb 28, 2012 9:35 am
Location: Italy
Has thanked: 4 times
Been thanked: 7 times

Re: [PC] Mass Effect 3 DLC (sfar)

Post by leroyjenkins » Fri Mar 16, 2012 10:54 pm

I've tried putting all DLC CookedPCConsole files on BioWare\CookedPCConsole but it didn't work. If I only knew better the .sfar structure, i only know that's some sort of lzma archive
Mass Effect 3 Default.sfar Explorer v1.1.0.4: http://www.mediafire.com/?o56z866a44dn3bv
Folder of all my Mass Effect 3 DLC programs: http://www.mediafire.com/?qyzdci68fx6cf
SVN Folder: http://amarok86-me3-tools.googlecode.com/svn/

oveja
beginner
Posts: 23
Joined: Wed Feb 23, 2011 9:35 pm
Has thanked: 3 times

Re: [PC] Mass Effect 3 DLC (sfar)

Post by oveja » Sat Mar 24, 2012 6:45 am

any news?

otacon172
ultra-n00b
Posts: 1
Joined: Sat Mar 24, 2012 7:15 am

Re: [PC] Mass Effect 3 DLC (sfar)

Post by otacon172 » Sat Mar 24, 2012 7:28 am

Chinese people have succeeded in Repack sfar file.
http://img51.imageshack.us/img51/2595/2 ... 651592.jpg
http://img42.imageshack.us/img42/2948/2 ... 65104c.jpg
However I do not know how to Repack

Here is a Chinese patch.
《质量效应3》3DM轩辕汉化组汉化补丁v2.0
http://dl.3dmgame.com/201203/18213.html

mnn
advanced
Posts: 66
Joined: Sun Jul 31, 2011 11:00 am
Has thanked: 1 time
Been thanked: 6 times

Re: [PC] Mass Effect 3 DLC (sfar)

Post by mnn » Sat Mar 24, 2012 10:12 am

That "thing" from 3DM seems like an on-the-fly patcher. At least when I tried it, it didn't modify DLC's SFAR.

newtonseple
ultra-n00b
Posts: 1
Joined: Sun Mar 25, 2012 11:54 am

Re: [PC] Mass Effect 3 DLC (sfar)

Post by newtonseple » Sun Mar 25, 2012 12:14 pm

So, do we need to repack it to mod the DLC? I saw a directory structure like this in the Default.sfar archive:

__UNKNOWN
----B55019CBF9D3DA65D55B321C0019697C (file)
BIOGame
----DLC
--------DLC_HEN_PR
------------CookedPCConsole
----------------(Tons of game files, including the .bin file i wish to mod)
------------Movies
----------------(Files)
------------PCConsoleTOC.bin

I tried replacing the original DLC_HEN_PR folder with the one from the archive, but then the game complained about it being "corrupt". I also thought about merging the files with the original game files, but then they would not be in the TOC.

Bottom line, do we need a repacker to mod the DLC, or is there a way to make ME3 read the unpacked DLC?

leroyjenkins
beginner
Posts: 34
Joined: Tue Feb 28, 2012 9:35 am
Location: Italy
Has thanked: 4 times
Been thanked: 7 times

Re: [PC] Mass Effect 3 DLC (sfar)

Post by leroyjenkins » Wed Mar 28, 2012 11:18 am

i'm trying to understand what's doing the UnpackSFXArchive and i'm stuck in the Hash value: what kind of hashing function is that? it's like a MD5 but when I try to hash a file by myself i get a different value.
i.e.

Code: Select all

the file BioH_Liara_03_Explore.pcc has:
     hash inside the sfar:       5C05233F1C158647D276114DFBDF8C99
     hash coded with md5sum.exe: 2F262611252CA78B31C475388BC88462
Mass Effect 3 Default.sfar Explorer v1.1.0.4: http://www.mediafire.com/?o56z866a44dn3bv
Folder of all my Mass Effect 3 DLC programs: http://www.mediafire.com/?qyzdci68fx6cf
SVN Folder: http://amarok86-me3-tools.googlecode.com/svn/

mnn
advanced
Posts: 66
Joined: Sun Jul 31, 2011 11:00 am
Has thanked: 1 time
Been thanked: 6 times

Re: [PC] Mass Effect 3 DLC (sfar)

Post by mnn » Wed Mar 28, 2012 11:44 am

Because the whole path is MD5 hashed, not only filename:

/BIOGame/DLC/DLC_HEN_PR/CookedPCConsole/BioH_Liara_03_Explore.pcc

leroyjenkins
beginner
Posts: 34
Joined: Tue Feb 28, 2012 9:35 am
Location: Italy
Has thanked: 4 times
Been thanked: 7 times

Re: [PC] Mass Effect 3 DLC (sfar)

Post by leroyjenkins » Wed Mar 28, 2012 12:34 pm

mnn wrote:Because the whole path is MD5 hashed, not only filename:

/BIOGame/DLC/DLC_HEN_PR/CookedPCConsole/BioH_Liara_03_Explore.pcc
so it's not the file itself, it's just the filename?

I've just tested the string "/BIOGame/DLC/DLC_HEN_PR/CookedPCConsole/BioH_Liara_03_Explore.pcc" on this site http://www.adamek.biz/md5-generator.php and the result is: fe5412ac7cf7420e439c28c0b557d49c

It's still different from 5C05233F1C158647D276114DFBDF8C99
Mass Effect 3 Default.sfar Explorer v1.1.0.4: http://www.mediafire.com/?o56z866a44dn3bv
Folder of all my Mass Effect 3 DLC programs: http://www.mediafire.com/?qyzdci68fx6cf
SVN Folder: http://amarok86-me3-tools.googlecode.com/svn/

com123
ultra-n00b
Posts: 4
Joined: Tue Sep 06, 2011 5:39 pm

Re: [PC] Mass Effect 3 DLC (sfar)

Post by com123 » Wed Mar 28, 2012 8:04 pm

leroyjenkins wrote:
mnn wrote:Because the whole path is MD5 hashed, not only filename:

/BIOGame/DLC/DLC_HEN_PR/CookedPCConsole/BioH_Liara_03_Explore.pcc
so it's not the file itself, it's just the filename?

I've just tested the string "/BIOGame/DLC/DLC_HEN_PR/CookedPCConsole/BioH_Liara_03_Explore.pcc" on this site http://www.adamek.biz/md5-generator.php and the result is: fe5412ac7cf7420e439c28c0b557d49c

It's still different from 5C05233F1C158647D276114DFBDF8C99
MD5_SHA-1
http://download.cnet.com/MD5-SHA-1-Chec ... 11445.html

leroyjenkins
beginner
Posts: 34
Joined: Tue Feb 28, 2012 9:35 am
Location: Italy
Has thanked: 4 times
Been thanked: 7 times

Re: [PC] Mass Effect 3 DLC (sfar)

Post by leroyjenkins » Wed Mar 28, 2012 10:59 pm

com123 wrote:
leroyjenkins wrote:
mnn wrote:Because the whole path is MD5 hashed, not only filename:

/BIOGame/DLC/DLC_HEN_PR/CookedPCConsole/BioH_Liara_03_Explore.pcc
so it's not the file itself, it's just the filename?

I've just tested the string "/BIOGame/DLC/DLC_HEN_PR/CookedPCConsole/BioH_Liara_03_Explore.pcc" on this site http://www.adamek.biz/md5-generator.php and the result is: fe5412ac7cf7420e439c28c0b557d49c

It's still different from 5C05233F1C158647D276114DFBDF8C99
MD5_SHA-1
http://download.cnet.com/MD5-SHA-1-Chec ... 11445.html
With the program the result it's 43CCD770944381A3F991DBBD2B5E0519 !!!
Maybe it's not only the file content or filepath, maybe they added a salt variable with the input....
Mass Effect 3 Default.sfar Explorer v1.1.0.4: http://www.mediafire.com/?o56z866a44dn3bv
Folder of all my Mass Effect 3 DLC programs: http://www.mediafire.com/?qyzdci68fx6cf
SVN Folder: http://amarok86-me3-tools.googlecode.com/svn/

mnn
advanced
Posts: 66
Joined: Sun Jul 31, 2011 11:00 am
Has thanked: 1 time
Been thanked: 6 times

Re: [PC] Mass Effect 3 DLC (sfar)

Post by mnn » Thu Mar 29, 2012 6:21 am

Filename hash of /BIOGame/DLC/DLC_HEN_PR/CookedPCConsole/BioH_Liara_03_Explore.pcc is 3F23055C4786151C4D1176D2998CDFFB. Apparently the path is normalized first - lower case, only ASCII characters + other stuff:

Code: Select all

var s = (ushort)c;

switch (s)
{
    case 0x008C: return (char)0x9C;
    case 0x009F: return (char)0xFF;

    case 0x00D0:
    case 0x00DF:
    case 0x00F0:
    case 0x00F7: return c;
}

if ((c >= 'A' && c <= 'Z') ||
    (c >= 'A' && c <= '?'))
{
    return char.ToLowerInvariant(c);
}

return c;

leroyjenkins
beginner
Posts: 34
Joined: Tue Feb 28, 2012 9:35 am
Location: Italy
Has thanked: 4 times
Been thanked: 7 times

Re: [PC] Mass Effect 3 DLC (sfar)

Post by leroyjenkins » Thu Mar 29, 2012 10:53 am

Yeah, it worked! I made a simple test using FileNameHash class:

Code: Select all

var temp1 = "/BIOGame/DLC/DLC_HEN_PR/CookedPCConsole/BioH_Liara_03_Explore.pcc";
FileNameHash temp2 = FileNameHash.Compute(temp1);
Console.WriteLine("Filename: {0}\n  Funnyhash: {1}\n",temp1,temp2.ToString());
and the result is correct!!! Thanks mnn :keke:
Mass Effect 3 Default.sfar Explorer v1.1.0.4: http://www.mediafire.com/?o56z866a44dn3bv
Folder of all my Mass Effect 3 DLC programs: http://www.mediafire.com/?qyzdci68fx6cf
SVN Folder: http://amarok86-me3-tools.googlecode.com/svn/

leroyjenkins
beginner
Posts: 34
Joined: Tue Feb 28, 2012 9:35 am
Location: Italy
Has thanked: 4 times
Been thanked: 7 times

Re: [PC] Mass Effect 3 DLC (sfar)

Post by leroyjenkins » Thu Mar 29, 2012 6:00 pm

Guys I have another question regarding the UnpackSFXArchive: when it's time to decompress with lzma the program passes some kind of properties to the LZMA.Decompress function, it pass exactly this 5 bytes: 5D 00 00 01 00. Now my question is, what's the meaning of this bytes? I've searched on google but I've found nothing about it. Also I've tried to use the LZMA.Compress with default settings and it gaves me similar bytes: 5D 00 10 00 00.
Mass Effect 3 Default.sfar Explorer v1.1.0.4: http://www.mediafire.com/?o56z866a44dn3bv
Folder of all my Mass Effect 3 DLC programs: http://www.mediafire.com/?qyzdci68fx6cf
SVN Folder: http://amarok86-me3-tools.googlecode.com/svn/

Post Reply