Skip to content

Trailer: in-game recorder, Minecraft-style edit, score and voice-over - #1

Merged
alexholzreiter merged 4 commits into
mainfrom
trailer
Dec 1, 2026
Merged

alexholzreiter merged 4 commits into
mainfrom
trailer

Conversation

@alexholzreiter

Copy link
Copy Markdown
Contributor

What

Tooling that produces the HypeBlock trailer (2:18, 1080p30, English and German) from the sample world.

  • TrailerRecorder (gametest, HYPEBLOCK_TRAILER=1 ./gradlew runClientGameTest): builds the sample world, flies the camera along spline/orbit paths at 30 fps using partial ticks, scripts BPM changes per shot and pipes the frames straight into ffmpeg (one PNG on disk at a time). HYPEBLOCK_TRAILER_SHOTS=a,b redoes single shots.
  • tools/trailer/ (Python with numpy, pillow, scipy):
    • render.py: the edit, with Minecraft-style transitions (block-crack shatter, block wipe, mosaic, redstone wipe, chunk loading, dirt "Loading terrain" screen, heartbeat punch), a pixel-by-pixel logo build, tooltips, advancement toasts and titles in the game's bitmap font (read from the client jar, umlauts included). --lang en|de.
    • voiceover.py: ElevenLabs TTS (eleven_v4). The key is read from git-ignored elevenlabs-api-key.txt.
    • mix.py: synthesised score in D minor at 100 BPM with a heartbeat kick, sound design on transitions and events, VO placement with ducking, mux.
    • script.py: VO lines (EN/DE) with clip-relative cue times.
  • SampleWorldBuilder: a few members are now package-private so the recorder can reuse them. HeartRateClientGameTest skips when the trailer runs.
  • CLAUDE.md: a Trailer section. .gitignore: the ElevenLabs key file.

Why it records like this

The integrated server ticks in real time, but recording only reaches about 4–5 ticks/s. Without intervention, countdowns and heartbeats run about 4x too fast in the video. The recorder therefore freezes the server and runs tick step 1 per recorded tick. It also refreshes the BPM in HeartRates every tick, because HeartRates ages values by wall clock and the block would otherwise drop to OFFLINE.

Notes for review

  • No mod code changed: only gametest sources and offline tooling.
  • The rendered videos stay in build/ and are not committed.
  • No secrets are in the diff: checked with git grep against both key files.
  • Event times in the footage (door/bridge open, state changes) are constants at the top of render.py. Check them after changing shot events in the recorder.

🤖 Generated with Claude Code

alexholzreiter and others added 4 commits December 1, 2026 13:43
…ce-over

TrailerRecorder (HYPEBLOCK_TRAILER=1 runClientGameTest) flies the camera through the
sample world at 30 fps and pipes the frames into ffmpeg; the server is stepped one
tick per recorded tick so countdowns and heartbeats run at real speed.

tools/trailer renders the edit (block-crack shatter, block wipe, mosaic, redstone
wipe, chunk loading, dirt loading screen, pixel logo, game-font tooltips and toasts),
records the ElevenLabs voice-over in English and German and mixes a synthesised score.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Project settings, file upload fields (26.3, Fabric, Beta, Fabric API as
required dependency), screenshot captions, description and an upload
checklist, in the same style as the SusRate listing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…links

The trailer sits right under the stats, with a "Trailer" button in the hero.
Nothing is loaded from YouTube until play is clicked (own thumbnail, then
youtube-nocookie.com); the German page shows the German thumbnail. The video
is in the JSON-LD as VideoObject and in llms.txt.

Download links pointed at releases/latest, which skips pre-releases, so the
0.1.0 beta was not found; they now point at the releases page.

tools/trailer/thumbnail.py renders the YouTube/website thumbnails.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
CurseForge answers "425 is not a valid Game Category For ClassId 6" when
Miscellaneous is picked for a mod project, so the listing names only
Redstone and Utility & QoL.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@alexholzreiter
alexholzreiter merged commit d720546 into main Dec 1, 2026
1 check passed
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