RAYMAN ORIGINS loc file

How to translate the files of a game
ZFI-TA
Posts: 2
Joined: Thu Oct 01, 2020 2:49 pm

RAYMAN ORIGINS loc file

Post by ZFI-TA »

How to open this loc file of rayman origins
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: RAYMAN ORIGINS loc file

Post by LolHacksRule »

Send a sample.
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

Re: RAYMAN ORIGINS loc file

Post by Shokoniraya »

UbiArt Framework .loc/.loc8 text script

supported games
-Valiant Hearts: The Great War
-Rayman Legends
-Rayman Origins
-Rayman Fiesta Run
-Gravity Falls: Legend of the Gnome Gemulets

Code: Select all

get FILE_NAMER basename
get ENIADN_MODE long
goto 0
endian guess ENIADN_MODE
get TEXT_FILE_COUNT long
get FILE_EXTENTION extension
for j = 0 < TEXT_FILE_COUNT
get TEXT_FILE_LANGUAGE_ID long
get TEXT_COUNT long
string TEXT_FILE_NAME = ""
string TEXT_FILE_NAME + FILE_NAMER
string TEXT_FILE_NAME + \\
string TEXT_FILE_NAME + "Language_"
string TEXT_FILE_NAME + TEXT_FILE_LANGUAGE_ID
string TEXT_FILE_NAME + ".txt"
math ID_MODE = 0
for i = 0 < TEXT_COUNT
get TEXT_ID long



#######android test for Rayman Fiesta Rub#######
if ID_MODE != 1
savepos CHECKPOINT
math CHECKPOINT - 4
goto CHECKPOINT
math CHECKPOINT + 4
get TEXT_ID long
get ID_LENGTH long
if FILE_EXTENTION = "loc"
math ID_LENGTH * 2
getdstring HEADING ID_LENGTH
else
getdstring HEADING ID_LENGTH
endif
get TEXT_LENGTH long
get TEST_TEXT short
if TEST_TEXT != 0 | TEXT_LENGTH = 0
math ID_MODE = 1
endif
goto CHECKPOINT
endif

if ID_MODE = 1
get ID_LENGTH long
if FILE_EXTENTION = "loc"
math ID_LENGTH * 2
getdstring HEADING ID_LENGTH
else
getdstring HEADING ID_LENGTH
endif
endif
################################################




get TEXT_LENGTH long
savepos TEXT_OFFSET
if FILE_EXTENTION = "loc"
math TEXT_LENGTH * 2
slog TEXT_FILE_NAME TEXT_OFFSET TEXT_LENGTH unicode
else
slog TEXT_FILE_NAME TEXT_OFFSET TEXT_LENGTH
endif
getdstring TEXT_HEADING TEXT_LENGTH
next i
savepos CHECKER
get COUNT long
get TEXT_ID long
get FIELD_STRING_LONG long
getdstring LONGER_STRING_DUMMY FIELD_STRING_LONG
get TEST_MORE long
goto CHECKER
if TEST_MORE = 0xFFFFFFFF
get COUNT long
for a = 0 < COUNT
get TEXT_ID long
get TEXT_LENGTH long
savepos TEXT_OFFSET
if FILE_EXTENTION = "loc"
math TEXT_LENGTH * 2
slog TEXT_FILE_NAME TEXT_OFFSET TEXT_LENGTH unicode
else
slog TEXT_FILE_NAME TEXT_OFFSET TEXT_LENGTH
endif
getdstring TEXT_HEADING TEXT_LENGTH
getdstring DUMMY 16
next a
endif
next j
lazenes
Posts: 22
Joined: Sat Feb 13, 2021 8:32 pm

Re: RAYMAN ORIGINS loc file

Post by lazenes »