Changelog, part 8#
Part 8 of 8: newer.
- A direction no longer jumps to a far node. The focus goes only to a node that is level with the one it is on, or no further to the side than ahead; with none it stays, unless it is in a stack that runs that way, which still goes round. In a
Gridit keeps to the row or the column. Where a menu relied on a far jump, name the neighbour:Node = { down = "back" }. - A menu a script shows is laid out and has its focus in that same step, not the next: the interface runs again at the end of every step.
ui.treenever reportsfocus: nullfor a menu that is up, and every recorded game with a menu that opens has a new checksum.Nodehas five new fields (locked,up,down,left,right), so every game with a node has one too. frost test --restorefinds a game that cannot be put back to a snapshot. It plays the recording and, at each checkpoint, takes a snapshot, plays on, puts it back and plays the same steps again; a game that goes another way the second time keeps something in a script's own variable (alocaloutside its functions), which a snapshot does not hold, and the line says to move it intostate. Nothing changes for a game that never asks forgame.restoreorgame.try.frost test --writewrites which engine wrote areplay(engine = "0.0.1 r27": the version, and the revision, which is how many entries this file has), also into a replay that still holds and names an older engine or none.frost testsays, when a checksum no longer holds, whether the engine is the one that wrote it, andfrost changes 27prints the entries added since revision 27.frost --versionprints the revision after the version (frost 0.0.1 r27 (commit 0123456789ab, source N)). A project file with noengineis read as before.blame.onno longer plays the game again while snapshots are kept, since that would forget them: its answer then haswhole: falseandsincethe step it was turned on at.game.forgetfirst, for an answer that is whole.tuningTuning.Getis a name scripts are given: the numbers of the project file's new[tuning]table, read astuning.jump. A script that kept a global of its own calledtuningTuning.Getstill reads its own; one that only looked whethertuningTuning.Getwas there now finds it.local tuning = ...is untouched.game.stepanswersreached, andgame.infoanswersscene. Two more fields in two protocol answers; a client that refuses fields it does not know must learn them. Nothing changes in a game.frost exportfrom a checkout keeps the players it has built, by their parts: two games that use different parts of the engine, exported in turn, no longer compile it each time. The eight sets used last are kept for each kind of player, about 10 MB a set for all three, undertarget/players/kept/. Its first line saysis kept from an earlier buildwhere it saidis built already.- A
frostwith aplayersfolder beside it exports without building.frost exportcopies the players that came with it (every part of the engine in each) and needs no checkout, no Rust and no Emscripten SDK;--slimbuilds a player with only what the game uses, as before. Players of another source thanfrostare refused (E0517), and one that lacks a part the game uses isE0518. Afrostbuilt bycargohas no such folder and exports as it did.frost --versionalso prints the commit and the source number.frost newreads its templates from atemplatesfolder besidefrostin the same way, and from the checkout when there is none. frost checkwarns of a game's name written only under[web], or twice (W0439).titleat the top of the project file names the window, the exported program, the browser tab and now the loader too; the[web]one is only needed for a page named otherwise. The game loads and plays as before.- A save keeps a table with gaps, or with numbers beside names, as it is (
{ [3] = 41.5 }is written3 = 41.5); such a table was refused. A list at the top of a slot is kept too. An error ofsave.setSave.Setnames the slot and the lines that called.frost serveandfrost mcptake--saves DIR. A save that could not be read or written is a warning inlog.since, and a browser that gives a page no storage has the player say that saves last for the visit only. - A save that cannot be written is told of once (
E0604), not once a write: a game that saves in every step no longer fills the log when a disk or a browser refuses. The next failure is told of after a write has worked again. - The Cinder template remembers its best time in the slot
bestand shows it on the title and the end screen. A game started from the old template is not changed. saveis a name the engine gives scripts:save.getSave.Get,save.setSave.Set,save.deleteSave.Deleteandsave.slotsSave.Slotskeep tables between runs. A script that had a global of its own calledsavenow writes over the engine's; give it another name.idat the top of a project file andsavesunder[input]are new keys, and the textinput.historyreturns starts with asavesline when the session started from saves.frost serve --port N --stdioserves standard streams and the port at once, so a program that runs the engine on its streams can let a debugger join the same game; the address is printed on standard error.game.infoanswers one field more,stopped: null, or where a debugger holds a script.game.stepanswers the same field, so a client knows why fewer steps ran than it asked for. A debugger's values say which entity a number is the handle of (entity,entity_name), and its answers carry anotewhile scripts have no local names;debug.evaluateon such scripts fails withE0444, which says why, where it failed withE0302.- A script can be debugged from an editor:
frost dapis a debug adapter (the Debug Adapter Protocol on standard streams) for any editor with a DAP client: breakpoints in the game's .luau files, steps, the stack, locals, tables, a console, and what the scripts print. It starts the game with or without a window, or joins a runningfrost dev(frost dap --help). - A script can be debugged over the protocol: the
debug.commands offrost dev,frost serveandfrost mcpset breakpoints, stop a script part way through a step, step it, and show its stack, its locals and what a line of Luau gives there (frost protocol debug.attach; the engine'sdebugexample is a game to try it on). An exported game has no debugger. Nothing changes for a game nobody debugs: a debugger that is attached and stops nothing leaves every checksum and frame as it was.log.sincereads what scripts printed and the game's warnings, eachprintWorld.Printwith its file and line, for a client that does not read standard error.script.reloadanswers one field more,queued, which is false unless a debugger holds a script stopped. frost exportrefuses a checkout that is not the sourcefrostwas built from (E0517, naming the commit of each): the player it would build is another engine than the onefrost runandfrost testare, and could come to another checksum. Buildfrostagain, or pass--any-engineto export all the same. A project may give its name astitle = "...": the window, the browser tab and the exported program are named by it (before: by the folder, which is still what a project without one gets). A project withlibrariesand noscriptsexports a player that can load it.frost testwarns of a recorded game whose sound goes over full scale (W0438). It is cut off there, which crackles. The game passes as before; play fewer sounds at once or turn them down.frost run --wavwarns the same and prints the run'speak.- A played sound says where it is heard from.
audio.requestsand a session's record give eachplayWorld.Playapan(0 is the middle, which every sound was), andfrost run --soundsends a line with it when it is not 0. Nothing to write. - At most 4 of one sound are heard at once, and 32 in all. One more takes the place of the quietest of them (the oldest of those as quiet), which is eased out; past 32 it was the new sound that was dropped. A pile of one sound in one step is quieter than it was and no longer sums past full scale. Nothing to write.
frost checkwarns of a sound over three minutes in a project with a[web]table (W0437). A browser holds it decoded, 21 MB a minute of stereo. The game loads and plays as before.- In a browser, held music is stopped and started again where it stood. It was played at no speed, which not every browser does alike. Like a desktop, the page now eases a hold, a let-go, a replaced track and
sound.volumeSound.Volumeover a few milliseconds where it cut them. Nothing to write. music.stop(seconds)Music.Stop(seconds)fades the music out and then stops it.music.stop()Music.Stop()stops at once, as before. A tool that reads requests sees the time on every stop:frost run --soundsprintsstop 0where it printedstop, andaudio.requestsand a session record give a stop itsseconds.- A sound never moves a checksum, with one exception. Playing, stopping, fading and panning are output only and are no part of the world.
varyonsound.playSound.Playis the exception: it draws the pitch from the game's random source, so adding or removing it changes whatmath.randomWorld.Randomgives afterwards, and the checksum with it. frost runprints two checksums, named apart:world checksum:(the world after the last step; the line waschecksum:) andrun checksum:(every world from the start, the number a project'sreplayholds). A tool that read thechecksum:line readsworld checksum:now.frost testsays which of the two a line is about. The protocol'schecksumfield is unchanged: it is the world's.frost checkandgame.checkcallon_sceneOnScenefor the scene a game starts in, in a game of their own that is thrown away, and report a failure as an error with its line: a game that cannot start no longer checks as "no problems". A check still runs no step. Anon_sceneOnScenethat is slow or prints is now slow and prints in a check.frost test FOLDERtests every project file with areplay, not only those namedgame.toml: a second recording of a game kept beside it (game-pad.toml) is found.frost reference --types GAME.tomlno longer needs the scripts to load, andfrost changesprints this file.- A bare scene names its pictures from its own folder, not from the folder
frostwas started in, and aFontthat asks for a text style the game does not have is found byfrost checkand as the game loads (E0429), not at the first step. A scene that was run from its own folder is unchanged. - An exported game with scripts always has animation. Before,
frost exportlooked for the texttween(in the scripts, and a tween started under another name or from a library the search missed failed in the exported game only.frost export desktoplists a font file two styles share once. on_sceneOnSceneis called for the scene a game starts in, as the game is loaded and before its first step (since the change "Small fixes from the second outside game, first part"). A script written before that, which fillsstatein a first-step branch ofstepStepand reads it inon_sceneOnScene, stops at load withE0302. Fillstateat the top of the script or inon_sceneOnSceneitself. Games made from the platformer, arena or breaker template before then are of this kind.- The interface no longer writes
Opacity. What hides a node, and what a panel'sOpacityandScaledo to the nodes in it, is written to a component of its own,Inherit, which the renderer multiplies in. A node needs noOpacity = {}to be hidden (E1303is retired; the lines can go), a node that was hidden in the scene with analphaof its own comes back at that alpha and not at 1, and a panel that fades or grows takes its children with it. A script that readOpacity.alphato learn whether a node is hidden readsNode.shown. Every recorded game that hides a node has a new checksum. - An empty
BarorSliderhides itsfillnode (Node.shown): before, the fill kept its last width. A stick pushed both ways moves the focus or the slider, the way it is pushed further: before, left and right always won. The theme'spressedcolour no longer stays on a button whose use opened a modal node. - The Ballast template has a pause menu (Escape, P or Start): Resume, Restart room, Quit to title, made of
frost_uinodes incommon.tomland held still byphysics.pausePhysics.Pause. Its title has a band behind the name and its end screen three lines. A game started from the old template is not changed. has(entity,says whether an entity has a component, and false for an entity that is gone, so a script need not keep its own sets to avoid"Component") World.Has(entity,"Component") E0003. The protocol hasworld.spawnandworld.despawnfor the running game (no file is written), andgame.inforeports the[window]backgroundandfilter. Nothing changes for a game or a client that uses none of them.- A polygon that is not convex is an error (
E1103). Before, its convex hull was used without a word. Write the hull's corners to get the old shape, or make the dent from convex pieces. A joint between two colliders with no moving body is still made, and warned of (W1114) byfrost check,frost runandgame.status. frost runandfrost testprint what only running the game finds:W1112, a joint removed because one end was despawned.frost runprints it on standard error after the checksum,frost testunder the game's line; neither fails for it.substepsabove 4 stiffens contacts and joints. Before, 8 and 16 gave what 4 gives. A game at the default 4, or fewer, is unchanged; one that set more runs differently (stiffer), and has no setting to go back butsubsteps = 4.Mover.crushedis true in every step of a crush, with or without a script: from the first squeeze until the kinematic body is out of the mover. Before, it was true for a step or two and false while the body went on through. A script that counted the steps it read true counts more.physics.pause(true)Physics.Pause(true)holds the simulation while scripts and the interface run;physics.readsayspaused. Nothing changes for a game that does not call it.- A wheel with
spring = 0is on a rigid axle, as the reference said. Before, the axle slid freely along its line and the body sank onto its wheels. For an axle that slides freely between two ends:limit = truewithminandmax. - A sensor no longer reports static colliders. A
Colliderwithsensor = truesentsensor_enterfor the floor or the tilemap it rests on, in its first step. Now only dynamic and kinematic bodies and movers are reported. For the old behaviour:senses = "all"on that collider. EveryColliderhas the new field, so every recorded game with a collider has a new checksum. physics.rayPhysics.Ray,physics.castPhysics.Castandphysics.overlapPhysics.Overlaptake an entity to ignore after the mask. Nothing changes for a call that does not give one.- A mover has weight.
Mover.massis 1 by default: standing on a dynamic body it presses on it as a body of its size and a density of 1 would, so a seesaw tips and a rope bridge sags under the character. For the old behaviour:mass = 0. - A dynamic body that moves carries the mover on it, as a kinematic one does: a character on a rolling cart goes with the cart. There is no switch for it.
- A body rests on a mover's head. A dynamic body that lands on a mover which cannot give way (it stands on something, or has a wall behind it) is stopped by the mover and lies on it; before, it pushed the mover into the floor. A mover is never taken through a static collider.
Mover.crushedno longer comes from dynamic bodies. - A standing mover's feet are exactly on its ground. It used to rest up to a third of a unit inside or above it. A character is drawn that much higher or lower, and meets a ramp or a crate a fraction of a unit differently.
- A mover is carried from the step it lands in, and round with a kinematic body that turns, not only along with one that slides.
frost newleaves tool leftovers behind: names that start with a dot,__pycache__,stills,Thumbs.db, and files ending in.pyc,.pyo,~,.swp,.tmpor.origare not copied out of a template.
Generated from Coldwave 0.0.1 r335, 2026-11-30 by the binary itself: do not edit by hand.