Binary Domain .stb files

How to translate the files of a game
Crea
Posts: 2
Joined: Mon Dec 14, 2015 9:58 am

Binary Domain .stb files

Post by Crea »

Hello,

Binary Domain game, I want this game localizate to our language. I need a tool to open the stb file extension. Please help this subject.If you can help me, i'll be grateful.
Skrillex
Posts: 5
Joined: Wed Jun 03, 2015 5:44 pm

Re: Binary Domain .stb files

Post by Skrillex »

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

Re: Binary Domain .stb files

Post by aluigi »

This is not my field but I would like to give a quick info.
The format seems quite complex, if after few weeks nobody will have a solution then it's possible to try a very lame Slog work-around with quickbms.
Basically dumping all the strings from offset 0x53ae1 of string_tbl_en.stb, then you can edit them with notepad and finally reimporting them back, but the size of each string must be equal or minor than the original which may be a big problem.
Skrillex
Posts: 5
Joined: Wed Jun 03, 2015 5:44 pm

Re: Binary Domain .stb files

Post by Skrillex »

aluigi wrote:This is not my field but I would like to give a quick info.
The format seems quite complex, if after few weeks nobody will have a solution then it's possible to try a very lame Slog work-around with quickbms.
Basically dumping all the strings from offset 0x53ae1 of string_tbl_en.stb, then you can edit them with notepad and finally reimporting them back, but the size of each string must be equal or minor than the original which may be a big problem.


Russians and brazilians localizated to their language, i think it's not possible aint ya.

Thanks for advice, we'll waiting for your help 8-)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Binary Domain .stb files

Post by aluigi »

Ok, in case you want to try:

Code: Select all

get NAME basename
string NAME + ".txt"
goto 0x53ae1
for i = 0 < 16552
    slog NAME -1 -1
next i

Remember that the reimporting must be performed one time only with the original archive so you can't make things like edit+reimport, new edit+reimport and so on otherwise the script is unable to get the correct strings (they are sequences of NULL delimited strings).

Usage:
extraction and reimport use the same steps (same files and folders) except that in reimport mode you have to click on reimport.bat.

I really doubt you can make a translation using less bytes than the original string so don't expect a success.
Additionally it may be suggested to fill the remaining bytes (in case your new string is shorter) with spaces.

Yeah it's not easy and may be a failure :(
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: Binary Domain .stb files

Post by michalss »

I made localization to Czech long time ago... But it was to X360. Ill try to find some tools first..
Skrillex
Posts: 5
Joined: Wed Jun 03, 2015 5:44 pm

Re: Binary Domain .stb files

Post by Skrillex »

aluigi wrote:Ok, in case you want to try:

Code: Select all

get NAME basename
string NAME + ".txt"
goto 0x53ae1
for i = 0 < 16552
    slog NAME -1 -1
next i

Remember that the reimporting must be performed one time only with the original archive so you can't make things like edit+reimport, new edit+reimport and so on otherwise the script is unable to get the correct strings (they are sequences of NULL delimited strings).

Usage:
extraction and reimport use the same steps (same files and folders) except that in reimport mode you have to click on reimport.bat.

I really doubt you can make a translation using less bytes than the original string so don't expect a success.
Additionally it may be suggested to fill the remaining bytes (in case your new string is shorter) with spaces.

Yeah it's not easy and may be a failure :(


It's decompressing every word to apart. I can't edit like this sir. Anyway thanks for your working, I'll wait for you improving this code.

michalss wrote:I made localization to Czech long time ago... But it was to X360. Ill try to find some tools first..


I hope you find it.
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: Binary Domain .stb files

Post by makc_ar »

Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: Binary Domain .stb files

Post by Delutto »

Binary Domain STB Tool [PC-PS3-X360]
By Delutto
See the Reame.txt for instructions.
Binary_Domain_STB_Tool_By_Delutto.7z