Act of Aggression .dlc

How to translate the files of a game
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Act of Aggression .dlc

Post by makc_ar »

hhrhhr
Posts: 36
Joined: Sun Jan 18, 2015 11:22 pm

Re: Act of Aggression .dlc

Post by hhrhhr »

Code: Select all

magic char[4] = "TRAD";
int count;
// header
{
int id;
int zero;
int off; // absolute offset
int len; // (len*2) UTF-16 LE chars
} // count-1 times

// last item
int id = 0;
int zero = -2147483648
int off = 0;
int len = 0;

// strings
// ...


the last line is more like some kind of checksum. lang.dic for example ([[id]] = [[string]]):

Code: Select all

[[868]] = [[Čeština]]
[[1052]] = [[Français]]
[[1183]] = [[Magyar]]
[[1823]] = [[Русский]]
[[1933]] = [[中文]]
[[2013]] = [[English]]
[[58336]] = [[Dev language]]
[[70620]] = [[Deutsch]]
[[79755]] = [[Italiano]]
[[83608]] = [[日本語]]
[[87644]] = [[Korean]]
[[108118]] = [[Polski]]
[[120459]] = [[Español]]
[[3717007]] = [[%m/%d/%y]]
[[3728626839]] = [[%m/%d/%y %I:%M%p]]
[[3492672926]] = [[Default language]]
[[3766024030]] = [[Test language]]
[[3611186327]] = [[%I:%M%p]]
[[3482658269]] = [[%I:%M:%S%p]]
[[3849926095]] = [[%m/%d/%y %I:%M:%S%p]]
[[1280914965]] = [[Test (flashing)]]
[[1312609884]] = [[Test (decoration)]]
[[0]] = [[aneslti goIM%pruy:dhDm/TcE)fS(šFçČР中й日本語KPикñсvу文k]]


p.s.
Lua 5.3 script for strings export.
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: Act of Aggression .dlc

Post by makc_ar »

hhrhhr
Thanks a lot.

Обратный конверт сможешь написать?
lua dic_import.lua path_to_file?
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: Act of Aggression .dlc

Post by spider91 »

Попробуй, должно работать.

Unpack: AoA_Text_Tool.exe -u file.dic file.txt
Pack: AoA_Text_Tool.exe -p file.txt file.dic
0wn3df1x
Posts: 24
Joined: Wed Sep 02, 2015 6:56 pm

Re: Act of Aggression .dlc

Post by 0wn3df1x »

spider91 wrote:Попробуй, должно работать.

Unpack: AoA_Text_Tool.exe -u file.dic file.txt
Pack: AoA_Text_Tool.exe -p file.txt file.dic



Спасибо, всё работает!
Thanks, it work.
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: Act of Aggression .dlc

Post by makc_ar »

spider91 wrote:Попробуй, должно работать.

Unpack: AoA_Text_Tool.exe -u file.dic file.txt
Pack: AoA_Text_Tool.exe -p file.txt file.dic

Аwesome! Thx spider91
lostprophet
Posts: 49
Joined: Thu Sep 04, 2014 9:34 pm

Re: Act of Aggression .dlc

Post by lostprophet »

By the way, where did you find those text files? I only see a lot of .dat files in my game directory.
Is the game translateable?
0wn3df1x
Posts: 24
Joined: Wed Sep 02, 2015 6:56 pm

Re: Act of Aggression .dlc

Post by 0wn3df1x »

lostprophet wrote:By the way, where did you find those text files? I only see a lot of .dat files in my game directory.
Is the game translateable?


.dat files - is archives
lostprophet
Posts: 49
Joined: Thu Sep 04, 2014 9:34 pm

Re: Act of Aggression .dlc

Post by lostprophet »

What did you use to open those .dat files?
xiaohuang
Posts: 13
Joined: Tue Mar 01, 2016 11:30 am

Re: Act of Aggression .dlc

Post by xiaohuang »



.dat decompression method for this localization file?
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: Act of Aggression .dlc

Post by makc_ar »

xiaohuang wrote:.dat decompression method for this localization file?

Use Modding Suite Tool.