Repository navigation
Hook:Aokana 的打字机帧和脚本流不再被当成翻页 - #708
Open
Plastic-time wants to merge 1 commit into
Open
Plastic-time wants to merge 1 commit into
Plastic-time wants to merge 1 commit into
Conversation
Aokana sends the current line alone on several streams. Its typewriter sets the whole line once per frame, and LunaHook buffers the frames into one multi-line output. Its script streams carry the line with its English and Chinese, one of them with 【speaker】 tags. Core took each of these as page text. Each line was drawn under the one before it, the page reset came up to half a second later, and the reader kept the line moved up from the stacked block. Now page text only proves paging when it holds kana beyond the current line and speaker tags. A page game such as Higurashi still shows this on its first page, so its replay joins the same lines as before, now asserted exactly. After that, a page holding just the current line still turns the page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
Aokana(Steam 版,Unity)每句台词会先叠在上一句下面,零点几秒后才变回单句,译文窗口跟着上下跳。
Aokana 有几路 Hook 流只带当前这一句:
core 把它们当成了游戏一页的文本,认定游戏会翻页。于是新句先接在上一句后面,等下一条输出来了再重置。
改动
页面文本去掉当前句和「【】」说话人标签后还剩假名,才认定游戏翻页。认定之后,只含当前句的页面照旧算翻页。
ひぐらし(#468)的录像回放和原来一样,从第一页起就叠句,测试改成断言确切的叠句次数。有一种情况会变:页面文本比台词晚到,而且第一页只有一句时,第一页的第二句不会叠上,从第三句起正常。
新增 Aokana 回放用例,修复前失败、修复后通过。在 Aokana 上本地试玩同一段 15 句:修复前每句都先叠再重置,修复后没有叠句,单行句的译文窗口不再移动。