bms script for sdfdata file extension [south park fractured but whole]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
kornix3
Posts: 42
Joined: Wed Oct 18, 2017 3:47 am

bms script for sdfdata file extension [south park fractured but whole]

Post by kornix3 »

Hi aluigi! Do you have a bms script for extracting these files;

game: south park fractured but whole

all data files with sdfdata extension but there is only one different file i uploaded it too just in case.

https://www.mediafire.com/file/v6c1ppez ... 00.sdfdata

https://www.mediafire.com/file/7y64nmgn ... sdf.sdftoc (This extension sdftoc, i think it doesnt necessary


mirrors:
http://www40.zippyshare.com/v/enMNnVv2/file.html

http://www40.zippyshare.com/v/DmQKLecV/file.html
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: bms script for sdfdata file extension

Post by aluigi »

The format is not very simple due to the directory tree of sdf.sdftoc so it will take some time.

The good news is that in the meantime you can extract all the (compressed) files without any problem by using offzip on the sdfdata archives:
offzip.exe -a sdf-A-0000.sdfdata
kornix3
Posts: 42
Joined: Wed Oct 18, 2017 3:47 am

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by kornix3 »

so if language files are in the sdfdata file we dont need to extract sdftoc files right?

and what about reimport of sdfdata?

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

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by aluigi »

Well, offzip has a reimport option that works like quickbms, so delete all the files you have not touched leaving only those you edited in the folder.
Then use the same command used before with a -r after offzip.exe:
offzip.exe -r -a sdf-A-0000.sdfdata
kornix3
Posts: 42
Joined: Wed Oct 18, 2017 3:47 am

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by kornix3 »

https://i.imgur.com/p0H5JjM.png

i tried to extract another random sdfdata and it gave me these error.

i tried -a -z 15 or -a -z -15 it's still giving error


edit2: i tried -a -z -15 -Q it didnt give any error but now i have thousands of .dat files

btw what is -Q ?
Last edited by kornix3 on Thu Oct 19, 2017 12:56 am, edited 5 times in total.
kornix3
Posts: 42
Joined: Wed Oct 18, 2017 3:47 am

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by kornix3 »

Image
do you have any idea which one contains language files.. they all named like these.. and there is no other data type except from sdfdata and that sdftoc

here; Image


3000 sdfdata files. how we can figure out which one contains string files? any suggestion? thank you for your help!
kornix3
Posts: 42
Joined: Wed Oct 18, 2017 3:47 am

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by kornix3 »

UPDATE

I found a tool for extracting files. When we extract the sdftoc file the all sdfdata files extracting if it's in the same directory.

Here is the extracted files; (not final, extraction taking too much time.)

Image

how can i extrac-repact these LOCPACK files?

Image


And how we can repack this files to sdfdata and sdftoc again?

Thanks!

String files; https://www.mediafire.com/file/rp29qhmx ... trings.zip

And tool i used to extract sdftoc; https://www.mediafire.com/file/cin0257m ... _sdf_2.zip
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by aluigi »

Well done.
I have found the source code of rouge_sdf and I made a script but I need some other sdfdata files for my tests.
The script "may" allow to reimpot the files, for sure the non-compressed ones while I have some doubts for the compressed files (chunked).
kornix3
Posts: 42
Joined: Wed Oct 18, 2017 3:47 am

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by kornix3 »

Oh thats really nice! I can upload any file if you want just tell me

by the way the export and reimport process is gonna be so painful and full of errors because when you want to reach subtitle files you need to extract all game files and when you edit your subtitle files and want to reimport back you need to recompress all files and in that process i am sure something gonna be cause problem and game will crash at anytime.

we need the figure it out which sdfdata file contains "localization" folder and we need to focus just export-reimport it..

but all file names named as A-0001.sdfdata so i dont know how can i know which one contains subtitle folder..

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

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by aluigi »

Upload sdf-A-0001.sdfdata and another one of your choice.

Once the script is ready we can check if the reimport mode will work or not with this archive.
kornix3
Posts: 42
Joined: Wed Oct 18, 2017 3:47 am

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by kornix3 »

still waiting for help, thanks:)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by aluigi »

ok I have made the script:
http://aluigi.org/bms/ubisoft_sdf.bms

It's not fast as rouge_sdf and will not add the DDS header to the DDS raw files, but hopefully you can try modding some files.
kornix3
Posts: 42
Joined: Wed Oct 18, 2017 3:47 am

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by kornix3 »

thank you i'm trying it right now!
Last edited by kornix3 on Sat Oct 21, 2017 4:40 am, edited 2 times in total.
kornix3
Posts: 42
Joined: Wed Oct 18, 2017 3:47 am

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by kornix3 »

i edited my last post please check it out (posting this just in case, if you saw unedited version and wont look back again)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by aluigi »

I have updated the script to version 0.1.2 for that problem with compression.

I have no idea what is this LOCPACK you are talking about.

The format wants that you extract all the archives.
The new version of the script allows you to extract only the available archives so, for example, if you copy sdf.sdftoc and sdf-B-1048.sdfdata in a new folder you can use the script to extract the files from sdf-B-1048.sdfdata.
kornix3
Posts: 42
Joined: Wed Oct 18, 2017 3:47 am

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by kornix3 »

https://www.mediafire.com/file/rp29qhmx ... trings.zip

here i uploaded. these LOCPACK and LOCPACKBIN files, how we can modify them? and how we can import UTF-8 charset to support some non-english letters in game?
wlscks7
Posts: 18
Joined: Wed Oct 18, 2017 10:54 am

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by wlscks7 »

I think I found which sdfdata files have localization files.

Image
Image
Image

sdf-A-0200 has brazilian to german(no subtitles.locpackbin)
sdf-A-0201 has german(only subtitles.locpackbin) to russian(no subtitles.locpackbin)
sdf-A-0202 has russian(only subtitles.locpackbin) to spanish

I'm not sure this is 100% right but I think this is what we need.
blabla88
Posts: 19
Joined: Sat Oct 21, 2017 3:52 pm

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by blabla88 »

wlscks7 wrote:I think I found which sdfdata files have localization files.

Image
Image
Image

sdf-A-0200 has brazilian to german(no subtitles.locpackbin)
sdf-A-0201 has german(only subtitles.locpackbin) to russian(no subtitles.locpackbin)
sdf-A-0202 has russian(only subtitles.locpackbin) to spanish

I'm not sure this is 100% right but I think this is what we need.


Thank you for pointing me out here from XenTaX (hopefully it's not banable offense, to mention other sites)

Just short introduction. Im member of a team, that worked on localization first South Park game in to Czech language. We were planning to work on this one too (not confirmed yet, because no one actually finished the bloody game yet :D) but this usage of The Division archive style really halted all our plans.

In short, we have text, we can't edit, but we can't put it back.

Btw you can open edit and save those LOCKPACK files in standard notepad.

Image

Color of text is not confirmed, because the string is unusually long for color code. And i can't obviously test it, because like anyone else, i can't import it back.

Thanks for those data files, i will look in them in offzip.

Try offzip -a -c. That worked in Division.
Last edited by blabla88 on Sat Oct 21, 2017 4:18 pm, edited 1 time in total.
wlscks7
Posts: 18
Joined: Wed Oct 18, 2017 10:54 am

Re: bms script for sdfdata file extension [south park fractured but whole]

Post by wlscks7 »

Image

I already tried change "options" at menu to "옵션" (this is options in korean) and this is result.
I think this is font problem and I need change fonts in korean fonts.
But I don't know which fonts need to changed.
And now I'm trying to find which sdfdata has fonts files.