标题: 关于迷迭香(Rosemary)的汉化(jimi 请进) 14:00更新 [打印本页] 作者: shane007 时间: 2009-7-10 20:58 标题: 关于迷迭香(Rosemary)的汉化(jimi 请进) 14:00更新 在这个帖子里准备专门讨论这个游戏的汉化问题。5 B' H+ e& }1 J
6 V# W( Z% U" p1 j: o& Y4 ^
对于字幕内嵌在script脚本里的WME引擎游戏,我还没仔细研究过。 ' |* P% m( _' x3 F, L( O4 m {这个是第一个。目前有2个想法。 8 e2 W* Q! K+ {- F " @$ L- b% F% P1。就是采取你现在的方法,补空格,万一多补或少补一个就会游戏崩溃。 ' J8 o) h6 m6 l 这是必然的,解决方法是开发一个小工具,不过这个工具其实也不是那么简单开发的。 6 x5 g; j @3 \$ q1 X5 p" D1 s, z, o% {3 g: y0 }0 h
2。用HOOK的方法。目前还需要进一步的调查研究。1 {6 d8 c6 |, k$ `7 M& l$ ]
4 k7 p3 A5 g! z7 S9 ^) _
现在想知道的是,用补空格的方法,如果字节数完全符合,能正常显示中文吗?: s% D4 M, y( Y! N3 H+ E2 h' ^
如果可以的话,请帖一张抓图出来。有疑问请在这个帖子里提问。作者: jimi 时间: 2009-7-11 13:22
用补空格的方法,节数完全符合,能正常显示中文,我在网吧截图暂时没有,抱歉 / Y# B! n( }. a" q) Q3 a另外那个hook是什么啊??觉得好像外挂7 t) {0 U; T$ ^0 [! c
: ^7 T8 u) L3 i5 g4 b
肥牛兄正在研究工具,007可以和他讨论下作者: shane007 时间: 2009-7-11 13:36
hook的原理类似外挂。 $ W, F1 I* Q2 o3 B3 @对了,你能贴个游戏直接的下载地址吗,那个网页的按钮我按下去没反应。作者: jimi 时间: 2009-7-11 13:47
【下载地址】(28.9MB)6 B) z* ~. Z8 g9 ^, e http://gambit.mit.edu/loadgame/spring2009/rosemary.zip9 d. u1 @" C! g% f1 r% F
原帖在这: ( g5 v- o: t3 y7 u7 zhttps://www.chinaavg.com/read.php?tid=178583 v" S# _3 V t6 f" |/ N, n6 N
这个是sky发的作者: shane007 时间: 2009-7-11 13:50
OK. 收到,谢谢!作者: shane007 时间: 2009-7-11 14:01
你看看这个工具可以用吗? ' A7 L4 \4 p' L/ X4 Qhttp://www.aluigi.org/mytoolz/exestringz.zip " ?6 U: Y) k k: g8 [# C- \* k, N* x/ T, F1 O( y http://www.aluigi.org/mytoolz.htm 9 C1 e" p9 r0 [" M1 W( ZExecutable's strings lister and replacer 0.2.3 (exestringz) .image.( v: R# [1 t4 K- a. i
this tool has the main purpose of finding any ASCII and unicode string inside PE and ELF executables with the possibility of modifying them using any external text editor and re-injecting them in the original executable.% d n+ Q6 S6 K
technically the finding of the strings works in the following way: it disassembles all the executable sections of the input file (like .text, only x86 32 bit supported) and visualizes any string or any array of strings, so any instruction like push "string" or mov eax, "string" or mov eax, "[4*edx+array]" and so on is handled perfectly.1 q& D6 a) T4 U5 Y. A( c
instead the injecting of the modified strings back in the executable (ELF not supported) is performed through the adding of a new "stringz" section which contains all the new strings and the substituiting of all the pointers to those strings collected in the "finding" operation with the new ones (relocation). 3 d6 T) F+ m- J# e9 o% Tthe tool can be also used as a quick and advanted strings program (the one available on *nix) with the difference that the strings found by exestringz are not casuals but are found and confirmed by the disassembled code avoiding false positives.0 x" `7 K3 d) J( J
anyway through the -b option the tool can acts exactly like the strings program and naturally can also re-import the modified strings. * D$ n V" k5 ^2 ~% Jthere is also an "experimental" option specific for the asian utf8 which was also the reason of the initial creation of this tool for the translating of a japanese game.6 _) r+ j1 z; t# o0 h
note that for obvious technical reasons is not possible to export and reimport ever all the strings for any executable because in some cases (usually with big programs) could be generated false positives, anyway the output file generated by the tool is very easy to understand and edit so it's not a problem. 8 h7 n% R2 Q. k* x2 g) z3 Etechnical limitations:5 Y- _& {2 W9 t+ N
% b: m; g8 L& V/ l
the end_of_line (carriage return/line feed) is left as was in the original string, so the result is that the output file could have a "mixed" style of unix ('\\n') and windows ('\\r\\n'), and some text editor could try to convert the whole text in or the other style causing troubles (for example overwriting other strings or resources in the executable) ! J- z q* ?$ Fthe recognization of the english strings is ok since that charset is enough limited but for the others it's just a chaos anyway the tool is still a work-in-progress...作者: shane007 时间: 2009-7-11 14:03
你把脚本文件改为exe ,修改完毕再改过来即可。作者: jimi 时间: 2009-7-12 13:25
初步汉化效果是这样的: 6 q( R3 t6 n' K4 ^$ K2 m/ D- ? ^( M. w' N- `4 S( F
画面下方的动作按钮需要改图 $ F- l- B& _: L$ q6 g: j: k