Features
- Combo 'A. Delay'
1f761d531Delay a combo's animation on it's first frame for a specified number of frames; similar to how item delay works, but not using the same math. Item delay is in multiples of animation frames, so a 4-speed 15-delay item will delay for 60 frames total. Combo delay is already in frames, so a 15-delay combo will delay for 15 frames, regardless of the speed. Combo delay, however, can range from 0 to 65535 to compensate for this.
- Combo 'CSet2 Flash Duration'
b14475f7fAllows the combo's CSet2 to flash on and off to create flashing CSet effects.
Player
- Show FFC sizes, FFC flags and combo triggers in -dump-screen
44d4f19a5 - Save the replay when the player crashes while recording
93ad8f630If the player crashes while a replay is being recorded, the replay is now saved with the crash in it, ending as if the program was closed on the frame that crashed. Before, everything since the last save was lost. A save file's replay continues as usual the next time the save is loaded.
Replays are also written to a temporary file first, so a crash while writing one doesn't leave it truncated.
- Tag crash reports with whether the JIT and optimizer are on
3c4c54541
Editor
- Label player weapons "L" in weapon type lists
ef7dd27ddDiscordPlayer weapons in weapon type dropdowns are now prefixed with "L" (e.g. "L Arrow"), matching the existing "E" prefix on enemy weapons. The Weapon Type dropdown in the Shooter and Step Effects combo wizards also has a tooltip explaining whether the chosen weapon can hit the Hero or only enemies.
ZScript
- Report the running script when a CHECK fails
589745c4cWhen a CHECK fails while a script is running, the crash report now says which script it was: its type, name and index, the register it was accessing, its pc and screen, and its ZScript stack trace. The same text goes to allegro.log.
- Tag crash reports with the running script
a52efc3f2A crash (a segfault, etc.) while a script is running now tags the report with the script's type, number and index, the register it was accessing, and whether the screen was scrolling.
- Keep a frame pointer in jitted code, for crash stacks
9d8b9eb4a
Bug Fixes
- Loose-file upload script's replay uploads were rejected
1d58f64f5
Player
- Save file replays could desync after the game was closed
d19b85a2fA save file's replay continues each time the save is loaded. If the previous session ended without a recorded quit - quitting while paused, or closing the program right after saving - playback carried on with the old session using the next session's inputs, which then went out of sync.
Quitting while paused, or from a menu that blocks the F6 script, now records the quit. Recording also continues only after the last save, since the save menu saves a while after its last input. For replays already recorded this way, playback ends the session itself where the next one begins (waiting for a pending save first), and updating the replay records that quit.
Bug introduced when save file replays were added in 2.55-alpha-110 (923a1031c9).
- Replay update mode allowed one screen load to be missed
c670594fdUpdating a replay stops when a screen is not loaded on the frame the replay expects, but the check looked one load ahead, so a single missed load went unnoticed. That is how a save file replay whose session ended without a recorded quit got past its first seam.
Regressed in 3.0.0-prerelease.35+2024-12-20 (0dc4fce9e3).
- Old save file replays desynced after the game was reloaded
4657a3192Loading a save used to unequip the A button, until that was fixed in 2.55.11 and 3.0. Replays recorded before then expect the A button to be unequipped when a save was loaded after closing the program, so they went out of sync from then on.
Regressed in 3.0.0-prerelease.130+2025-08-23 (9806fb8abd).
- Explain that a save from a newer version can't be opened
d3ae40449DiscordA save file made by a newer version of ZC now says that it was made by a newer version, instead of only saying it failed to read.
Editor
- Swapped help text for the 'Block (Same/Any Layer)->' triggers
3078b1ff2Bug introduced when these triggers were added in 3.0.0-prerelease.185+2026-05-10 (27a04f1046).
ZScript
- Prevent crash after an insta-warp with a carried-over FFC
3342053c3DiscordTaking an insta-warp that keeps the enemies alive could move a carryover FFC onto a screen outside the new region, so a script on that FFC reading
Screen->crashed. Seen in Yuurand when floating into the Lunar Tower portals.Regressed in 3.0.0-prerelease.127+2025-08-16 (0831755d51).
- Handles to carryover FFCs broke when the screen changed
a6b587228A carryover FFC got a new identity every time the hero scrolled or warped to another screen, so a script holding a handle to it got "Invalid sprite" errors afterwards, and arrays and objects the FFC owned were released.
Bug introduced when FFC handles became sprite ids in 3.0.0-prerelease.77+2024-10-27 (9304859284).
- Prevent crash after scripted insta-warp that keeps sprites
b05d60fc9An insta-warp from
Hero->WarpExwithWARP_FLAG_DONT_CLEAR_SPRITES, or a combo-triggered insta-warp from a screen with "Sprites Carry Over In Warps", left every kept sprite belonging to the screen it came from. Once that screen was gone, drawing a kept enemy crashed, as did a script on a kept sprite usingScreen->.Regressed in 3.0.0-prerelease.89+2025-02-18 (6b5e98dd70).
- Log an error instead of crashing when a sprite's screen is gone
0bc58d061If a sprite is left belonging to a screen that is no longer loaded, a script on it that uses
Screen->now logs an error and uses the current screen, which is whatScreen->always meant in 2.55. An enemy like that also draws normally instead of crashing.This fixes the crashes reported in The Rosemaster, where a script setting
Screen->QuakeorScreen->Wavycrashed the game.Regressed in 3.0.0-prerelease.89+2025-02-18 (6b5e98dd70).
- Sprites made while scrolling kept belonging to the old screen
1f347304eA sprite a script created while the screen was scrolling, before the new screen loaded, still belonged to the old screen once the scroll finished. A script on it then used the wrong screen for
Screen->, which crashed before the previous commit.Regressed in 3.0.0-prerelease.89+2025-02-18 (6b5e98dd70).
Web
- Title screen sword intro never played
42f8a87feThe web package left the sword logo images and woosh sound out of the preloaded data, so they were empty placeholders when the title screen tried to load them, and it fell back to the plain logo crawl.
Bug introduced when the sword intro was added in 3.0.0-prerelease.208+2026-08-04 (ca9cc641aa).
- Audio crackled on Android
4da2303feOn the web, Allegro played audio through SDL with a 512-sample buffer. SDL backs that with a ScriptProcessorNode, and Chrome on Android plays one that small with gaps (it pulls audio in larger chunks there, ~24ms on a Pixel), so the title music and sound effects crackled. The buffer is now 1024 samples, which plays cleanly. MIDI music was unaffected: SDL_mixer already used 1024.
Bug introduced when the web version was given its Allegro patches in 2.55-alpha-112 (518bfc4ae9).
Documentation
- Remove leftover vsync config setting
600997d8cThe player still read "vsync" from zc.cfg, but nothing has used it since the FPS throttle stopped waiting on vsync (3ca0a1208e). The editor's copy in zquest.cfg was never read after 505aff7ff1.
- The player's menu is 'Cheat', not 'Cheats'
15ed55cc3
Chores
- Update replay_uploads_known_good_replays.json
24f5965be
Refactors
- Cleanup some combo animation code
f9595c748 - The default theme is Moosh Mood, like on desktop
fed810504This only changes the theme for new web users. Anyone who has opened ZC before keeps the theme they have.
Tests
- Cover save file replay seams and missed screen loads
749373068test_session_ended_without_recorded_quit removes the recorded quit between two sessions of a save file replay, then checks that updating it ends the session itself, records the quit, and plays the next session exactly as recorded (just later).
test_update_stops_at_missed_screen_load moves a screen load a few frames earlier than it happens, and checks that updating stops right there.
CI
- Skip file contents when cloning in the release workflow
779bd5202 - Print a backtrace when a program crashes on Windows CI
39c3dd02eA crash on Windows CI only reported "process crashed with an access violation": there's no debugger for run_target.py to re-run the program under there, as it does on mac and Linux. On CI, the programs now catch unhandled exceptions and abort() themselves and print a backtrace using DbgHelp, to the file run_target.py names in ZC_CRASH_BACKTRACE_FILE (or to stderr). Windows packages built with debug info (CI's test packages) now include the .pdb files it reads symbols from.
The handler also flushes stdout, which the C runtime would otherwise drop on a crash - when stdout is a pipe, that's usually all of the program's output.
- Build the x64 and arm64 Windows CI jobs with debug info
e209d8221They built Release, which writes no .pdb files, so a crash there could only show addresses in its backtrace. Every CI job now builds RelWithDebInfo, like the releases do.
- Wait out longer Chocolatey feed outages on Windows
e4261a95a