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
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 »

Font is probably in that code, before text. I guess its in same style as bbcode (Color, font and adjustment of text-bold italic etc).
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 »

Regarding reimporting, have you tried using quickbms with reimport.bat to reinjected the edited files back into the original sdfdata archive?

Just remember to keep only the edited files in the folder and deleting all the other non-modified files... the usual recommendations of the reimport feature (section 3 of http://aluigi.org/papers/quickbms.txt)

P.S.: as said in my last post, the current script works also if you only have sdf.sdftoc and one or two sdfdata, no need to have all of them.
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 »

Great script thanks. Can i reimport it back with same script too? If so, how, because i keep getting errors.

Btw the fonts are in sdf-A-0200 (Brazil-German).
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 »

As far as I know the script should work in reimport mode.
All the details are in section 3 of http://aluigi.org/papers/quickbms.txt
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 »

another problem: when you translate a string if you import it back in the game translated version should be shorter otherwise text doesnt seen in the game.

example: This feature requires online.
translated: bla bla bla bla bla..... (longer) bla

ingame result: bla bla bla.. (rest of the text doesnt seem in the game.)

and BTW to make it work in the game you need to edit lockpackbin files too but its too hard to edit them in notepad++ or any note editor.
strings are too complicated
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 »

Is there no way to reimport bigger files?
Korean font is bigger than original font.
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 »

blabla88 wrote:Great script thanks. Can i reimport it back with same script too? If so, how, because i keep getting errors.

Btw the fonts are in sdf-A-0200 (Brazil-German).


can you edit the fonts? can you add another font? btw i cant find the font files in german and brazil folders. whrr are them exactly?
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 »

wlscks7 wrote:Is there no way to reimport bigger files?
Korean font is bigger than original font.



where are the font files, can you tell me the location too? thanks! and try to reimport only edited files and when it ask you type "force" and press enter in qbms.

BTW; does anyone figure it out what are those barks.LOCPACK and LOCPACKBIN files? they are too complicated too seen in notepad
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 »

kornix3 wrote:
wlscks7 wrote:Is there no way to reimport bigger files?
Korean font is bigger than original font.



where are the font files, can you tell me the location too? thanks! and try to reimport only edited files and when it ask you type "force" and press enter in qbms.

BTW; does anyone figure it out what are those barks.LOCPACK and LOCPACKBIN files? they are too complicated too seen in notepad


camel\baked\fonts
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 »

there is anthother font\ folder but I think this is not important and don't know which sdf file is come from
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 »

blabla88 wrote:
kornix3 wrote:
wlscks7 wrote:Is there no way to reimport bigger files?
Korean font is bigger than original font.



where are the font files, can you tell me the location too? thanks! and try to reimport only edited files and when it ask you type "force" and press enter in qbms.

BTW; does anyone figure it out what are those barks.LOCPACK and LOCPACKBIN files? they are too complicated too seen in notepad


camel\baked\fonts


ohh right! thanks for that! and do you know which sdfdata contains only font folder? and these fonts only contains latin letters, so where are the german,russian fonts etc?
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 »

kornix3 wrote:
wlscks7 wrote:Is there no way to reimport bigger files?
Korean font is bigger than original font.



where are the font files, can you tell me the location too? thanks! and try to reimport only edited files and when it ask you type "force" and press enter in qbms.

BTW; does anyone figure it out what are those barks.LOCPACK and LOCPACKBIN files? they are too complicated too seen in notepad


I tried "force" but when I run it just crashed.
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 »

wlscks7 wrote:
kornix3 wrote:
wlscks7 wrote:Is there no way to reimport bigger files?
Korean font is bigger than original font.



where are the font files, can you tell me the location too? thanks! and try to reimport only edited files and when it ask you type "force" and press enter in qbms.

BTW; does anyone figure it out what are those barks.LOCPACK and LOCPACKBIN files? they are too complicated too seen in notepad


I tried "force" but when I run it just crashed.


its not crashing for me. maybe you need to edit .fontmetrics files too?
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 »

kornix3 wrote:
blabla88 wrote:
kornix3 wrote:

where are the font files, can you tell me the location too? thanks! and try to reimport only edited files and when it ask you type "force" and press enter in qbms.

BTW; does anyone figure it out what are those barks.LOCPACK and LOCPACKBIN files? they are too complicated too seen in notepad


camel\baked\fonts


ohh right! thanks for that! and do you know which sdfdata contains only font folder? and these fonts only contains latin letters, so where are the german,russian fonts etc?


Probably in other 2 sdfdata, mentioned before. Honestly, the whole archive seems like one big mess. Look at english_neutral and english_female. Subtitles are in spanish and most files don't have any text in them. Either Rouge_sdf kinda *SPAM* it up or there was some serious incompetency.

About those barks files. https://imgur.com/a/WuqJK Same thing. No idea Maybe offzip or packzip would help there.
Last edited by blabla88 on Sat Oct 21, 2017 6:53 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 »

in camel\baked\fonts
ttf and otf files from sdf-A-0200
fontmetrics files from sdf-A-0001
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

we need to edit locpackbin files too for translate the game but currently its impossible in notepad editor. look at this view;

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

and if new string is longer than original is not seen on the game.

btw in the fonts folder there are no any russian, german etc fonts? i think they are in somewher else with some different name. because i cant find the russian font style in these folders.
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 »

kornix3 wrote:
wlscks7 wrote:
kornix3 wrote:

where are the font files, can you tell me the location too? thanks! and try to reimport only edited files and when it ask you type "force" and press enter in qbms.

BTW; does anyone figure it out what are those barks.LOCPACK and LOCPACKBIN files? they are too complicated too seen in notepad


I tried "force" but when I run it just crashed.


its not crashing for me. maybe you need to edit .fontmetrics files too?


I mean game has crashed.
or did you mean succeed reimport bigger files and running game?
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 »

wlscks7 wrote:
kornix3 wrote:
wlscks7 wrote:
I tried "force" but when I run it just crashed.


its not crashing for me. maybe you need to edit .fontmetrics files too?


I mean game has crashed.
or did you mean succeed reimport bigger files and running game?


yes for example to understand the localization will work, i copied french files into english folders and reimported them it asked me they are bigger i forced them and i opened game and in the game succesfully even in english language selected, game become french.
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 »

Can you remove all folders and files except the one you edit, to reimport faster?
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 »

blabla88 wrote:Can you remove all folders and files except the one you edit, to reimport faster?

You MUST, haven't you read the text file I linked???