设为首页收藏本站官方微博

【汉化资料】为无字幕游戏添加中文字幕的新思路

[复制链接]
查看: 1396|回复: 2
打印 上一主题 下一主题

【汉化资料】为无字幕游戏添加中文字幕的新思路

跳转到指定楼层
楼主
发表于 2009-3-21 06:56 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

【汉化资料】为无字幕游戏添加中文字幕的新思路

有一些AVG没有字幕,比如天生罪犯,旧版的东方快车谋杀案。
. \5 h# a6 S7 P5 X9 K4 l1 o+ M最近想出来一个为这些文件添加中文字幕的思路。
* {# `( E6 q  \
4 r; B, p- q" S- y4 P" H* w这些AVG虽然不显示字幕,但是会播放语音文件。
( _% g  ^0 n# v: j我的思路是用OD在内存里寻找语音文件名,然后下内存断点,游戏在读取语音文件的时候会被断下来,往下走的话肯定会调用播放语音文件的函数,可以用NOP大法来确认。  j# q$ B$ g1 v

) i! ]6 N  _9 [所谓NOP大法,就是把某个CALL改为NOP语句,如果语音文件不被播放了,那么这个CALL肯定和语音文件播放有关,再按F7追进去用NOP大法找就行。直到找到最关键的那个播放语音文件的函数。
) i9 ]# j8 u9 @2 c$ o, y! |
- c( A5 \; v$ a( B+ ?找到以后,在某个寄存器里应该有一个语音文件名,我们可以把它看作一个字幕ID,在调用播放语音文件的函数前用JMP方法插入一段我们自己的代码。调用exttextouw等函数就可以输出字幕ID。8 F* r" W3 T( X0 Y

3 R: @- O' J( L' W) M0 ]( O* U最后在外部用HOOK方法,在exttextouw函数内把字幕ID替换为中文字幕即可。
' W6 `( ]- X0 I6 }0 K+ K  S1 i5 I9 t$ S8 _
局限性
" C; N. F* z2 N0 R6 ]* }只能适用于对话字模,不播放语音文件的字幕,如物品名就无法用此法。
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 很美好很美好 很差劲很差劲
回复

使用道具 举报

沙发
发表于 2009-3-21 07:49 | 只看该作者
还有一些问题。$ ^: o  S& R- G5 V* Z
添加中文字幕的话(当然对一些喜欢看字幕游戏来说是好消息). y$ p- w2 G( w8 n( f3 L- z$ z- W
大小会不会影响呢?
# g: C: B6 l' v6 h0 _9 R* D还有。
2 D' Y. m  ~$ @$ u4 b$ x1 y- c: p2 W目前HOOK有没有突破呢?毕竟一些人都在用别的系统平台。比如LINUX  WIN7 VISTA之类的。
回复 支持 反对

使用道具 举报

板凳
发表于 2009-3-21 07:59 | 只看该作者
Introduction
  Y1 b, G3 D' Q) c! \$ a/ p1 gIn the Microsoft® Windows™ operating system, a hook is a mechanism by which a function can intercept events (messages, mouse actions, keystrokes) before they reach an application. The function can act on events and, in some cases, modify or discard them. Functions that receive events are called filter functions and are classified according to the type of event they intercept. For example, a filter function might want to receive all keyboard or mouse events. For Windows to call a filter function, the filter function must be installed—that is, attached—to a Windows hook (for example, to a keyboard hook). Attaching one or more filter functions to a hook is known as setting a hook. If a hook has more than one filter function attached, Windows maintains a chain of filter functions. The most recently installed function is at the beginning of the chain, and the least recently installed function is at the end.
7 g" D: K/ r& j  r3 ^/ E+ ^% J# b0 X/ O. C* h1 O1 A8 O
When a hook has one or more filter functions attached and an event occurs that triggers the hook, Windows calls the first filter function in the filter function chain. This action is known as calling the hook. For example, if a filter function is attached to the CBT hook and an event that triggers the hook occurs (for example, a window is about to be created), Windows calls the CBT hook by calling the first function in the filter function chain.
3 b2 W; P$ v+ l) D1 b- ?: o6 C0 N+ I" A. B8 ?6 n
其他平台的用不了,如果用WIN模拟器还是Win平台就没问题。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

冒险解谜游戏中文网 ChinaAVG

官方微博官方微信号小黑屋 微信玩家群  

(C) ChinaAVG 2004 - 2019 All Right Reserved. Powered by Discuz! X3.2
辽ICP备11008827号 | 桂公网安备 45010702000051号

冒险,与你同在。 冒险解谜游戏中文网ChinaAVG诞生于2004年9月9日,是全球华人共同的冒险解谜类游戏家园。我们致力于提供各类冒险游戏资讯供大家学习交流。本站所有资源均不用于商业用途。

快速回复 返回顶部 返回列表