又研究了一下尼科波尔:不朽的秘密的script.opk文件,发现这个游戏的文本是以双字节的unicode来保存的,也就是说通过替换文本和字库,可能就能实现汉化。
: F+ l; h8 H0 i) N# v
1 F' ~7 C3 D2 G2 W+ s$ @% k还发现了类似下面这样的Unicode函数: ' L, h8 W; i1 v. ~1 P
( B1 I8 c2 w% f2 n. ]function EnableAllText() 4 _- Z4 ?/ |0 D5 w* m" ]1 g* ]
for soldat,order in pairs(g_currentTabOrder) do / r7 ]" l' c7 ?; X
local l_soldat = Enable('ConsoleGuards_'..soldat,'GUIUnicodeText')
) K/ r7 K1 C% K# U1 y8 w) b l_soldat.TextFile = TextFile[order]
" B9 L0 ^# s: B( b l_soldat.Color.r = 0 1 `, D; n$ s; A0 d- O
end
& D$ R" h! J0 V, q Z , W. d5 [4 [' r2 l
for i = 1,6 do # m2 @& A6 j0 g* R0 |
Enable('sdt_0'..i,'GUIUnicodeText')
( z0 m+ V$ H& N- s$ E5 M end
0 [" B' b& W. f! W8 v3 T
1 v1 B" I3 N1 Eend
0 I2 b! W! F2 C/ \5 G' P, N% B. U/ Z5 j
1 M6 `: n+ Z, a- C, l$ _2 S
见图:& X% n0 G* Y# t5 [
|