又研究了一下尼科波尔:不朽的秘密的script.opk文件,发现这个游戏的文本是以双字节的unicode来保存的,也就是说通过替换文本和字库,可能就能实现汉化。
3 p+ l$ ?6 N0 c( `! r: Q" @' K4 l
6 c) q! q" ?; n1 B7 i- ~+ _还发现了类似下面这样的Unicode函数: , O; E& H: ^, | L; L0 r
2 l4 r2 }' W' U6 c/ W
function EnableAllText() 9 G& B# Q E2 l; ?, y
for soldat,order in pairs(g_currentTabOrder) do / H$ m: E& [. K) A# q% a$ }
local l_soldat = Enable('ConsoleGuards_'..soldat,'GUIUnicodeText') ( }/ M8 y* i0 D
l_soldat.TextFile = TextFile[order]
( n& g( k7 R& ]8 Y! ?2 ^ l_soldat.Color.r = 0
. t! {- K- @4 s! U3 b$ t end 3 q+ t" s7 w3 B0 Z; d' ]
9 U& e0 E5 Y$ S% u; Y' D for i = 1,6 do
4 q& W4 d- l( J/ G$ ]2 U2 I) M0 V* c Enable('sdt_0'..i,'GUIUnicodeText')
`) c! d, ] X end
" [5 X/ v' F! ?/ b# w+ a/ y5 B
7 @& n7 E! N: V% N K- a8 Mend * D4 i0 @5 v. @+ U* T3 W
+ \+ X1 Z% v8 M1 Z& O3 ^8 ` j# G' |: m, f0 ^3 u& t
见图:
$ R) [* Y; Z3 \$ z$ B( h |