Skip to content

Hook:Aokana 的打字机帧和脚本流不再被当成翻页 - #708

Open
Plastic-time wants to merge 1 commit into
ilynthn:mainfrom
Plastic-time:rrfz/typewriter-not-a-page
Open

Plastic-time wants to merge 1 commit into
ilynthn:mainfrom
Plastic-time:rrfz/typewriter-not-a-page

Conversation

@Plastic-time

Copy link
Copy Markdown
Contributor

问题

Aokana(Steam 版,Unity)每句台词会先叠在上一句下面,零点几秒后才变回单句,译文窗口跟着上下跳。

Aokana 有几路 Hook 流只带当前这一句:

  • 打字机每帧把整句写一遍,LunaHook 会把这些帧拼成一条多行输出。
  • 脚本流带着这句的英文和中文,其中一路还带「【说话人】」标签。

core 把它们当成了游戏一页的文本,认定游戏会翻页。于是新句先接在上一句后面,等下一条输出来了再重置。

改动

页面文本去掉当前句和「【】」说话人标签后还剩假名,才认定游戏翻页。认定之后,只含当前句的页面照旧算翻页。

ひぐらし(#468)的录像回放和原来一样,从第一页起就叠句,测试改成断言确切的叠句次数。有一种情况会变:页面文本比台词晚到,而且第一页只有一句时,第一页的第二句不会叠上,从第三句起正常。

新增 Aokana 回放用例,修复前失败、修复后通过。在 Aokana 上本地试玩同一段 15 句:修复前每句都先叠再重置,修复后没有叠句,单行句的译文窗口不再移动。

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.
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

Successfully merging this pull request may close these issues.

1 participant