跳到正文
DEV Community· Jonie Rangel·· 37 分鐘前AI 評分24

V.E.T.O.R — A Ruptura 推出 Demo V7.1:修正語系路由及回憶片段音訊/字幕同步

Shipping Demo V7.1: Fixing i18n Localization Routing & Syncing Audio/Subtitles in Flashback Memories

AI 導讀

V.E.T.O.R — A Ruptura 為 Windows 推出 Demo V7.1(7.1.0,build 2492372),修正動態對話的語系路由錯誤,以及回憶片段中語音、影片與字幕的同步問題。新版本以 AudioContext.currentTime 作為時間基準,並在語系目錄確認後才渲染文字;目前提供予預購用戶及獲授權測試者。

正文

Jonie Rangel

We just released Demo V7.1 for Windows (version 7.1.0, build 2492372) for our upcoming sci-fi action-RPG V.E.T.O.R — A Ruptura.

Built on a custom HTML5 Canvas and synchronized video engine, the game blends real-time exploration, tactical semi-turn boss combat, and dynamic conversational AI for in-engine dialogue branches.

With this new release, our primary focus was eliminating two frustrating bugs reported during earlier playtests:

  1. Dialogue keys routing to incorrect language locales during dynamic conversational branching.
  2. Micro-desync between localized voice audio, video playback, and subtitle cues during narrative memory sequences.

1. Root Cause & Solution: Dynamic Locale Fallback Leaks

In V.E.T.O.R, dialog branches combine static branching trees with dynamic contextual generation (assisted by Codex for logic flow and scripting). Each NPC maintains conversational memory across the play session.

When players switched language preferences or encountered high-latency state transitions, certain fallback nodes rendered English text even when the user had chosen Brazilian Portuguese.

The underlying causes:

  • Asynchronous bundle resolution: Locale string catalogs loaded on-demand. If an AI node resolved before the active locale bundle finished compiling, the dictionary fell back to the bundled default without triggering a re-render.
  • Canvas Bitmap Texture Caching: Rendered dialog speech bubbles were cached into off-screen canvas textures. Changing locales didn't systematically invalidate the texture cache for pending dialog frames.

The Fix:

  • Built a strict localeBarrier.ensure(locale) pipeline: no text node is dispatched to the Canvas render layer until the active locale's catalog is verified.
  • Added atomic texture invalidation across all off-screen dialog canvas buffers upon locale switch events.
  • Added comprehensive unit tests asserting 100% key parity between Portuguese and English catalog dictionaries.

2. Audio & Subtitle Synchronization in Memory Flashbacks

In V.E.T.O.R.'s memory sequences, players witness past timeline fragments through synced video layers combined with localized voice acting and directional audio effects.

Because HTML5 video currentTime resolution varies across hardware decoders, subtitle display drifted by 150ms to 400ms on machines with variable framerates.

The Fix:

  • Web Audio API Master Clock: Switched the timeline master from the HTML5 <video> element's internal clock to AudioContext.currentTime, which offers sub-millisecond precision.
  • Interpolated Subtitle Spans: Converted subtitle definitions into delta-based cue objects, allowing the Canvas text renderer to interpolate opacity and position smoothly even under CPU frame drops.
  • Chunked Pre-buffering: Audio voice tracks and video clips are now pre-buffered into memory buffers prior to sequence trigger.

Gameplay Showcase: The Limbo Spider Boss Fight

To see how the combat and presentation come together—including our hostage mechanic where the spider boss uses a living hostage trapped inside a web cocoon as a biological shield—check out our 149s 1080p 60fps gameplay clip:

https://www.youtube.com/watch?v=vtvE_7ay2_4


Demo V7.1 Availability & Specs

Demo V7.1 for Windows (build 2492372) is now available for pre-purchasers and authorized testers:

Estimated System Specs for Demo V7.1:

  • OS: Windows 11 64-bit
  • CPU: Intel Core i5-8400 or AMD Ryzen 5 2600
  • RAM: 16 GB
  • GPU: NVIDIA GeForce GTX 1050 Ti (4 GB)
  • Storage: 50 GB free space
  • Internet connection required for dynamic AI dialogues.

Development Transparency: Dialogue logic structured with Codex, cinematics assisted with Veo, coupled with a custom HTML5 Canvas engine and professional localized voice actors.

來源:DEV Community · dev.to