Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用Localemulator之后会导致读不出来钩子函数 #96

Open
GrandArth opened this issue Mar 15, 2020 · 7 comments
Open

使用Localemulator之后会导致读不出来钩子函数 #96

GrandArth opened this issue Mar 15, 2020 · 7 comments

Comments

@GrandArth
Copy link

如题, 测试用的兰斯10
LE设置: "H:\Rance\LE\LEProc.exe" %GAME_PATH%

@luojunyuan
Copy link
Contributor

不使用启动器就可以正常启动吗?

可以看一下使用le启动时debug的log吗
image
可以将日志中的内容复制上来

@GrandArth
Copy link
Author

yuki:ipc request config config +68ms
yuki:ipc request config games +0ms
yuki:ipc main page load finished. starting apis... +0ms
yuki:api external file H:\Rance\YUKI\config\baiduApi.js loaded +0ms
yuki:api external file H:\Rance\YUKI\config\youdaoApi.js loaded +0ms
yuki:api external file H:\Rance\YUKI\config\qqApi.js loaded +2ms
yuki:ipc apis started +4ms
yuki:game choose Locale Emulator as locale changer +0ms
yuki:game exec string: "H:\Rance\LE\LEProc.exe" "H:\Rance\ランス10\Rance10.exe" +1ms
yuki:game finding pid of Rance10.exe... +5ms
yuki:game could not find game. retry times... 1 +1s
yuki:game found game. pids [ 4556 ] +990ms
yuki:hooker trying to access CLI exe at H:\Rance\YUKI\lib\textractor\TextractorCLI.exe +0ms
yuki:merger initialized true +0ms
yuki:textInterceptor initialized +0ms
yuki:textInterceptor initialized +0ms
yuki:mecab enabled +0ms
yuki:hooker application builded +101ms
yuki:hooker injecting process 4556... +2ms
yuki:hooker process 4556 injected +0ms
yuki:win32 registering process exit callback at pid 4556... +0ms
yuki:win32 process handle: 2868 +0ms
yuki:win32 process exit callback registered +0ms
yuki:translatorWindow alwaysOnTop -> true +0ms
yuki:ipc request config config +10s
yuki:translatorWindow subscribing hooker events... +366ms
yuki:publish webContents YUKI Galgame Translator successfully subscribed type has-hook-text +0ms
yuki:translatorWindow hooker events subscribed +0ms
yuki:ipc request config config +49ms
yuki:ipc request config { name: 'Rance10', code: '', path: 'H:\Rance\ランス10\Rance10.exe', localeChanger: 'localeEmulator' } +0ms
yuki:ipc request config gui +1ms

是的, 不用LE的话就可以正常的读出钩子函数

@GrandArth
Copy link
Author

不使用启动器就可以正常启动吗?

可以看一下使用le启动时debug的log吗
image
可以将日志中的内容复制上来

yuki:ipc request config config +71ms
yuki:ipc request config games +0ms
yuki:ipc main page load finished. starting apis... +0ms
yuki:api external file H:\Rance\YUKI\config\baiduApi.js loaded +0ms
yuki:api external file H:\Rance\YUKI\config\youdaoApi.js loaded +1ms
yuki:api external file H:\Rance\YUKI\config\qqApi.js loaded +2ms
yuki:ipc apis started +4ms
yuki:game choose No Changer as locale changer +0ms
yuki:game exec string: "H:\Rance\ランス10\Rance10.exe" +0ms
yuki:game finding pid of Rance10.exe... +5ms
yuki:game found game. pids [ 3160 ] +1s
yuki:hooker trying to access CLI exe at H:\Rance\YUKI\lib\textractor\TextractorCLI.exe +0ms
yuki:merger initialized true +0ms
yuki:textInterceptor initialized +0ms
yuki:textInterceptor initialized +0ms
yuki:mecab enabled +0ms
yuki:hooker application builded +94ms
yuki:hooker injecting process 3160... +2ms
yuki:hooker process 3160 injected +1ms
yuki:win32 registering process exit callback at pid 3160... +0ms
yuki:win32 process handle: 2496 +0ms
yuki:win32 process exit callback registered +1ms
yuki:translatorWindow alwaysOnTop -> true +0ms
yuki:ipc request config config +8s
yuki:translatorWindow subscribing hooker events... +384ms
yuki:publish webContents YUKI Galgame Translator successfully subscribed type has-hook-text +0ms
yuki:translatorWindow hooker events subscribed +0ms
yuki:ipc request config config +54ms
yuki:ipc request config { name: 'Rance10', code: '', path: 'H:\Rance\ランス10\Rance10.exe', localeChanger: 'noChanger' } +1ms
yuki:ipc request config gui +0ms
yuki:filter [3] $幅,n,はば|1,n,いち|9,n,きゅう|6,n,ろく|タイトル,n,たいとる|幅,n,はば|1,n,いち|9,n,きゅう|6,n,ろく|ルート,n,るうと|パーツ,n,ぱあつ +0ms
yuki:filter [8] $ルート,n,るうと|パーツ,n,ぱあつ +3ms
yuki:filter [6] $ルート,n,るうと|パーツ,n,ぱあつ +0ms
yuki:filter [7] $ルート,n,るうと|パーツ,n,ぱあつ +1ms
yuki:filter [5] $タイトル,n,たいとる|幅,n,はば|1,n,いち|9,n,きゅう|6,n,ろく +1ms
yuki:filter [4] $幅,n,はば|1,n,いち|9,n,きゅう|6,n,ろく|MENU,n,|タイトル,n,たいとる|最初,n,さいしょ|から,p,|タイトルロードタイトル,n,|第,undefined,だい|二,n,に|部,n,ぶ|タイトル,n,たいとる|アフター,n,あふたあ|幅,n,はば|1,n,いち|9,n,きゅう|6,n,ろく|統合,n,とうごう|部隊,n,ぶたい|幅,n,はば|1,n,いち|9,n,きゅう|6,n,ろく|アンケート,n,あんけえと +418ms
yuki:filter [3] $システム,n,しすてむ|/,w,|ターン,n,たあん|スタート,n,すたあと +603ms


这个是不用le的启动日志.

@luojunyuan
Copy link
Contributor

  1. 你可不可以尝试下先单独用LE启动游戏,再用yuki的从进程加载游戏功能加载
  2. 或许你可以再试试,其他版本的le,以及其他的转区软件

@GrandArth
Copy link
Author

GrandArth commented Mar 16, 2020 via email

@uns3t
Copy link

uns3t commented Apr 16, 2020

  1. 你可不可以尝试下先单独用LE启动游戏,再用yuki的从进程加载游戏功能加载
  2. 或许你可以再试试,其他版本的le,以及其他的转区软件

我也有相同的问题

@Jacob-Yao
Copy link

我这边如果用管理员启动LE的话也会读不到钩子,但换成非管理员启动LE的话就能读到了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants