
Oops guys, who can create a tool to facilitate the editing of the texts of this game, a friend of mine will be very happy, he intends to translate this game into Brazilian Portuguese


hnnewgames wrote:Oops guys, who can create a tool to facilitate the editing of the texts of this game, a friend of mine will be very happy, he intends to translate this game into Brazilian Portuguese
Code: Select all
idstring "#LNG"
get unknow long
get text_num long
get skip byte
math skip - 1
get NAME basename
STRING NAME + ".txt"
getdstring zero skip
for i = 0 < text_num
getdstring ID 32
get OFFSET long
getdstring zero_textnum 12
Slog NAME OFFSET -1
next i
gameside wrote:hnnewgames wrote:Oops guys, who can create a tool to facilitate the editing of the texts of this game, a friend of mine will be very happy, he intends to translate this game into Brazilian Portuguese
Hi, test this script, you can use reimport2 for import text backCode: Select all
idstring "#LNG"
get unknow long
get text_num long
get skip byte
math skip - 1
getdstring zero skip
for i = 0 < text_num
getdstring ID 32
get OFFSET_1 long
getdstring zero_textnum 12
savepos befor_2ID
getdstring ID 32
get OFFSET_2 long
xmath size "(OFFSET_2 - OFFSET_1) - 1"
get NAME basename
STRING NAME + ".txt"
Slog NAME OFFSET_1 -1
goto befor_2ID
next i