[Vita] Freedom Wars .lmsg

How to translate the files of a game
hnnewgames
Posts: 148
Joined: Sat Dec 16, 2017 8:58 pm

[Vita] Freedom Wars .lmsg

Post by hnnewgames »

Image

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

Image
Image
gameside
Posts: 66
Joined: Sun Nov 08, 2020 1:07 pm

Re: [Vita] Freedom Wars .lmsg

Post by gameside »

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 back

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

edit: I forgot to remove some unused parts, now I remove them
Last edited by gameside on Sun Dec 13, 2020 1:11 pm, edited 2 times in total.
hnnewgames
Posts: 148
Joined: Sat Dec 16, 2017 8:58 pm

Re: [Vita] Freedom Wars .lmsg

Post by hnnewgames »

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 back

Code: 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

Oops, thanks brother! From what I saw it is working properly. Thanks!