Repository navigation
Engine v2.4.1
·
599 commits
to main
since this release
Engine v2.4.1
Fixes from a full review of the engine, the films and the textbooks (2026-10-26). Books made with v2 need no change.
Questions in films
- A
done()kept from an earlier start of the same beat no longer counts. In Shooting an Elephant, firing and stepping back within half a second used to push the reader on to the next shot. Every start of a beat changesP.gen; a chapter's ownaskhandler that acts later (a timer, a click listener) can compare it.
Music
- Safari and every iOS browser stall a media element for 0.3–0.6 s at each
playbackRatechange, so easing the music back to the picture pushed it further out (0.44 s off on average, close to 1 s at worst, in the upright short). There the music now keeps the film's speed and is put back by a seek, aimed ahead by the lag it showed after the last one: 0.12 s on average. Chromium and Firefox keep easing; Chromium is unchanged at about 0.05 s. - The hold give-back counts real time, so a frame longer than 100 ms (Firefox, slow phones) no longer lets the music run ahead.
- In a hidden tab throttled to one tick a second, a late tick is no longer taken for a seek, so sound effects play there too.
- A lesson with questions plays no
music(), as documented. A film with questions still setsCHAPTER.film = true.
Captions
- A beat whose
timings.jssaysforced: true(tts.pyandeleven.pymark a line in another language that way) shows its subtitles with captions off. Before, only picture books joined byjoin.pydid.
Phones and cards
- The frame is
position: fixed. On a phone held upright, the absolutely placed frame widened the layout viewport, and every landscape book lost about 42 px on each side, the Home button and the step bar with them. - Full-screen practice cards widen the label column to the longest label instead of clipping it off the left: rows such as a system of equations were unreadable in eight algebra chapters.
- On the upright stage, a film's next-chapter button sits at the foot of the stage, and the step name leaves the bar room for its steps.
Loading
- The hidden-tab timer starts in
boot(), and the sound unlock waits for the chapter, so a chapter opened in a background tab no longer logsBEATS is not definedwhile it loads.
Practice labels
- Several practice sets read "Chapter practice · set 1 of 3 · question 1 of 2" (ru, zh and ja too). This change was on
mainafter the v2.4 tag; it is released here.
Syncing
engine.py in the Skill syncs from the latest compatible release, now engine-v2.4.2.