State of Mind .bin

How to translate the files of a game
BANDIT
Posts: 22
Joined: Thu Oct 23, 2014 1:04 pm

State of Mind .bin

Post by BANDIT »

BANDIT
Posts: 22
Joined: Thu Oct 23, 2014 1:04 pm

Re: State of Mind .bin

Post by BANDIT »

Please, someone help with this file.
akintos
Posts: 88
Joined: Tue May 08, 2018 7:48 pm

Re: State of Mind .bin

Post by akintos »

You sure that file is the one you have to translate?

Most of the time when you tranlate UE4 games, you only have to translate .locres files.
BANDIT
Posts: 22
Joined: Thu Oct 23, 2014 1:04 pm

Re: State of Mind .bin

Post by BANDIT »

Yes, I am sure.
BANDIT
Posts: 22
Joined: Thu Oct 23, 2014 1:04 pm

Re: State of Mind .bin

Post by BANDIT »

BANDIT wrote:Please, someone help with this file.
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

Re: State of Mind .bin

Post by Shokoniraya »

Code: Select all

get SIZER asize
goto 280
for i
savepos OFFQW
if SIZER = OFFQW
break
endif
get CHECKER short
goto OFFQW
get ID long
if CHECKER = 4
get DUMMY longlong
endif
get LENGHT long
math LENGHT / 4
math LENGHT x 4
savepos OFFSET
slog "" OFFSET LENGHT
getdstring DUMMY LENGHT
next i
BANDIT
Posts: 22
Joined: Thu Oct 23, 2014 1:04 pm

Re: State of Mind .bin

Post by BANDIT »

Shokoniraya wrote:

Code: Select all

get SIZER asize
goto 280
for i
savepos OFFQW
if SIZER = OFFQW
break
endif
get CHECKER short
goto OFFQW
get ID long
if CHECKER = 4
get DUMMY longlong
endif
get LENGHT long
math LENGHT / 4
math LENGHT x 4
savepos OFFSET
slog "" OFFSET LENGHT
getdstring DUMMY LENGHT
next i

Thnx, but how I can repack translated *txt?
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: State of Mind .bin

Post by Delutto »

State of Mind BIN Text Tool [PC]
By Delutto
See Readme.txt for instructions.
State_of_Mind_BIN_Text_Tool_By_Delutto.7z
Notes: Based on file samples and not tested ingame.

I made this tool a while ago and just forgot to post... :oops:
Shokoniraya wrote:

Code: Select all

get SIZER asize
goto 280
for i
savepos OFFQW
if SIZER = OFFQW
break
endif
get CHECKER short
goto OFFQW
get ID long
if CHECKER = 4
get DUMMY longlong
endif
get LENGHT long
math LENGHT / 4
math LENGHT x 4
savepos OFFSET
slog "" OFFSET LENGHT
getdstring DUMMY LENGHT
next i

You can use "while" and "goto" to optimize your code, like this:

Code: Select all

get SIZER asize
goto 280
do
   get CHECKER short
   goto -2 0 seek_CUR
   if CHECKER = 4
      get DUMMY longlong
   endif
   get ID long
   get LENGHT long
   math LENGHT / 4
   math LENGHT x 4
   savepos OFFSET
   slog "" OFFSET LENGHT
   goto LENGHT 0 seek_CUR
   savepos OFFQW
while OFFQW < SIZER
BANDIT
Posts: 22
Joined: Thu Oct 23, 2014 1:04 pm

Re: State of Mind .bin

Post by BANDIT »

Thnx, Delutto, your tool works great.