Mafia 2 .sdat file

How to translate the files of a game
codec
Posts: 46
Joined: Tue Feb 10, 2015 8:28 am

Mafia 2 .sdat file

Post by codec »

Hi guys.I need unpack and repack program or script code that .sdat file.
GAME: MAFİA 2here is the file

Code: Select all

http://rgho.st/7dHVCdPWT
Last edited by codec on Thu Aug 18, 2016 4:47 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: .sdat file

Post by aluigi »

Name of the game?
codec
Posts: 46
Joined: Tue Feb 10, 2015 8:28 am

Re: .sdat file

Post by codec »

aluigi wrote:Name of the game?

MAFİA 2
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Mafia 2 .sdat file

Post by Ekey »

Encrypted SONY (PS3) EDAT package. For decrypt you need edattool + valid rapfile.

PS: You can't pack and encrypt extracted files back into EDAT.
codec
Posts: 46
Joined: Tue Feb 10, 2015 8:28 am

Re: Mafia 2 .sdat file

Post by codec »

Ekey wrote:Encrypted SONY (PS3) EDAT package. For decrypt you need edattool + valid rapfile.

PS: You can't pack and encrypt extracted files back into EDAT.

thanks but I haven't edat tool.
before I was try that .sdat file.
How?
first I was remove .sdat last word.as I used .sds file.Beacuse Aluigi wrote script code for mafia .sds file
Later I extracted all files with Quick bms.
I translated text file.I was repack.last time again I put .sdat name last word.
I tried on the ps3.But not worked.All character words changed
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Mafia 2 .sdat file

Post by Ekey »

codec
Posts: 46
Joined: Tue Feb 10, 2015 8:28 am

Re: Mafia 2 .sdat file

Post by codec »

Ekey wrote:http://www.ps3hax.net/2013/03/released-ps3-related-tools-by-qoobz/

Thanks Ekey.But How I can use that program on the .sdat file?
can you download gave my my link extract and than give me?
You believe me I dont know that program
Also sdat and edat file same file?
happydance
Posts: 81
Joined: Sun Jul 10, 2016 11:07 am

Re: Mafia 2 .sdat file

Post by happydance »

Sdat and edat are not the same, usually edat are encrypted with a licsense key like a .rap file unless its resigned to be a free licsense

Is this sdat came from a ps3 game?
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Mafia 2 .sdat file

Post by Ekey »

codec wrote:Thanks Ekey.But How I can use that program on the .sdat file?
can you download gave my my link extract and than give me?
You believe me I dont know that program
Also sdat and edat file same file?

here
codec
Posts: 46
Joined: Tue Feb 10, 2015 8:28 am

Re: Mafia 2 .sdat file

Post by codec »

Ekey wrote:
codec wrote:Thanks Ekey.But How I can use that program on the .sdat file?
can you download gave my my link extract and than give me?
You believe me I dont know that program
Also sdat and edat file same file?

here

Thanks ekey.I extracted all files with Quickbms.But I didnt reimport.It fave error.can you try reimport and than changed again .sdat file?I will try on the ps3
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Mafia 2 .sdat file

Post by Ekey »

codec wrote:But I didnt reimport.It fave error.

Show log of QuickBMS while reimporting. I guess script not supported for it because files is chunked.

codec wrote:can you try reimport and than changed again .sdat file?I will try on the ps3

Nope
codec
Posts: 46
Joined: Tue Feb 10, 2015 8:28 am

Re: Mafia 2 .sdat file

Post by codec »

Ekey wrote:
codec wrote:But I didnt reimport.It fave error.

Show log of QuickBMS while reimporting. I guess script not supported for it because files is chunked.

codec wrote:can you try reimport and than changed again .sdat file?I will try on the ps3

Nope

thanks ekey for look
happydance
Posts: 81
Joined: Sun Jul 10, 2016 11:07 am

Re: Mafia 2 .sdat file

Post by happydance »

I use this personally for decrypting and encrypting SDAT/EDAT on some translation hacks I done on the PS3

https://drive.google.com/open?id=0Byva3 ... 2lfX2ZfQTQ

just type on CMD

Code: Select all

make_npdata

to see all the commands

or just

decrypt

Code: Select all

make_npdata -d text_credits.sds.sdat text_credits.sds 0


encrypt

Code: Select all

make_npdata -e text_credits.sds text_credits.sds.sdat 0 1 3 1 16


Change the compression and block size as you see fit since it sometimes affect the loading speed on big files. The you can try it on your jailbroken/ODE ps3 or un-jailbroken if the said fle is included on the game install and both original file and modded file have the same size.
codec
Posts: 46
Joined: Tue Feb 10, 2015 8:28 am

Re: Mafia 2 .sdat file

Post by codec »

happydance wrote:I use this personally for decrypting and encrypting SDAT/EDAT on some translation hacks I done on the PS3

https://drive.google.com/open?id=0Byva3 ... 2lfX2ZfQTQ

just type on CMD

Code: Select all

make_npdata

to see all the commands

or just

decrypt

Code: Select all

make_npdata -d text_credits.sds.sdat text_credits.sds 0


encrypt

Code: Select all

make_npdata -e text_credits.sds text_credits.sds.sdat 0 1 3 1 16


Change the compression and block size as you see fit since it sometimes affect the loading speed on big files. The you can try it on your jailbroken/ODE ps3 or un-jailbroken if the said fle is included on the game install and both original file and modded file have the same size.

can you reimport tables folder in the sdat file?
happydance
Posts: 81
Joined: Sun Jul 10, 2016 11:07 am

Re: Mafia 2 .sdat file

Post by happydance »

Sdat is just a encrypted file, it could be anything like compressed archive or just a big file or just a simple common filw we know.

For example in a ps3 game called clannad and has a scr.psarc.sdat. when you decrypted it to scr.psarc, you can just extract it with psarc tools to edit the script and compress it back to psarc and encrypt back to sdat.

As long as you have a tool to mod the decrypted file you can encrypt it back and will work.


I think your .sds file is compressed, so you need to uncompress it before you can import textdatabase.dat if its really inside that sds, but i think its zlib. You can try offzip to extract the files
codec
Posts: 46
Joined: Tue Feb 10, 2015 8:28 am

Re: Mafia 2 .sdat file

Post by codec »

happydance wrote:Sdat is just a encrypted file, it could be anything like compressed archive or just a big file or just a simple common filw we know.

For example in a ps3 game called clannad and has a scr.psarc.sdat. when you decrypted it to scr.psarc, you can just extract it with psarc tools to edit the script and compress it back to psarc and encrypt back to sdat.

As long as you have a tool to mod the decrypted file you can encrypt it back and will work.


I think your .sds file is compressed, so you need to uncompress it before you can import textdatabase.dat if its really inside that sds, but i think its zlib. You can try offzip to extract the files

Mafia 2 game originally sds file but ps3 original file sdat file.So diffrent file.Ekey gave me encrypt sds file from sdat file.Aluigi wrote sds file for ps3.It can be extract all files with Quickbms.but that script dont support repack.maybe chuck size diffrent algorthym.
I haven't tool program for sdat file.I didnt find ever.maybe someone can help me.
same problem there is another ps3 games.for example Dark Souls PS3 game
happydance
Posts: 81
Joined: Sun Jul 10, 2016 11:07 am

Re: Mafia 2 .sdat file

Post by happydance »

quickbms script don't support repack, they only extract/inject so the file you're trying to inject must be the exact same size as the original. In your case the original size of TextDatabase.dat is 134,149 bytes and the one your trying to import is 135,697 bytes.

the sds script is too complicated for a noob like me to understand, and if it's me i'll just edit out or shorthen the modded TextDatabase.dat to match the size of the original so I could import it or try to find a repacker of the SDS file instead of using a bms script in thise case
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Mafia 2 .sdat file

Post by Ekey »

If you interested in modding game, you can look source's from Rick tools and modify it for PS3 platform.

http://svn.gib.me/public/illusion/trunk/