Coldwave

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 Grid it 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.tree never reports focus: null for a menu that is up, and every recorded game with a menu that opens has a new checksum. Node has five new fields (locked, up, down, left, right), so every game with a node has one too.
  • frost test --restore finds 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 (a local outside its functions), which a snapshot does not hold, and the line says to move it into state. Nothing changes for a game that never asks for game.restore or game.try.
  • frost test --write writes which engine wrote a replay (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 test says, when a checksum no longer holds, whether the engine is the one that wrote it, and frost changes 27 prints the entries added since revision 27. frost --version prints the revision after the version (frost 0.0.1 r27 (commit 0123456789ab, source N)). A project file with no engine is read as before.
  • blame.on no longer plays the game again while snapshots are kept, since that would forget them: its answer then has whole: false and since the step it was turned on at. game.forget first, for an answer that is whole.
  • tuningTuning.Get is a name scripts are given: the numbers of the project file's new [tuning] table, read as tuning.jump. A script that kept a global of its own called tuningTuning.Get still reads its own; one that only looked whether tuningTuning.Get was there now finds it. local tuning = ... is untouched.
  • game.step answers reached, and game.info answers scene. 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 export from 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, under target/players/kept/. Its first line says is kept from an earlier build where it said is built already.
  • A frost with a players folder beside it exports without building. frost export copies the players that came with it (every part of the engine in each) and needs no checkout, no Rust and no Emscripten SDK; --slim builds a player with only what the game uses, as before. Players of another source than frost are refused (E0517), and one that lacks a part the game uses is E0518. A frost built by cargo has no such folder and exports as it did. frost --version also prints the commit and the source number. frost new reads its templates from a templates folder beside frost in the same way, and from the checkout when there is none.
  • frost check warns of a game's name written only under [web], or twice (W0439). title at 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 written 3 = 41.5); such a table was refused. A list at the top of a slot is kept too. An error of save.setSave.Set names the slot and the lines that called. frost serve and frost mcp take --saves DIR. A save that could not be read or written is a warning in log.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 best and shows it on the title and the end screen. A game started from the old template is not changed.
  • save is a name the engine gives scripts: save.getSave.Get, save.setSave.Set, save.deleteSave.Delete and save.slotsSave.Slots keep tables between runs. A script that had a global of its own called save now writes over the engine's; give it another name. id at the top of a project file and saves under [input] are new keys, and the text input.history returns starts with a saves line when the session started from saves.
  • frost serve --port N --stdio serves 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.info answers one field more, stopped: null, or where a debugger holds a script. game.step answers 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 a note while scripts have no local names; debug.evaluate on such scripts fails with E0444, which says why, where it failed with E0302.
  • A script can be debugged from an editor: frost dap is 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 running frost dev (frost dap --help).
  • A script can be debugged over the protocol: the debug. commands of frost dev, frost serve and frost mcp set 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's debug example 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.since reads what scripts printed and the game's warnings, each printWorld.Print with its file and line, for a client that does not read standard error. script.reload answers one field more, queued, which is false unless a debugger holds a script stopped.
  • frost export refuses a checkout that is not the source frost was built from (E0517, naming the commit of each): the player it would build is another engine than the one frost run and frost test are, and could come to another checksum. Build frost again, or pass --any-engine to export all the same. A project may give its name as title = "...": 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 with libraries and no scripts exports a player that can load it.
  • frost test warns 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 --wav warns the same and prints the run's peak.
  • A played sound says where it is heard from. audio.requests and a session's record give each playWorld.Play a pan (0 is the middle, which every sound was), and frost run --sounds ends 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 check warns 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.Volume over 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 --sounds prints stop 0 where it printed stop, and audio.requests and a session record give a stop its seconds.
  • A sound never moves a checksum, with one exception. Playing, stopping, fading and panning are output only and are no part of the world. vary on sound.playSound.Play is the exception: it draws the pitch from the game's random source, so adding or removing it changes what math.randomWorld.Random gives afterwards, and the checksum with it.
  • frost run prints two checksums, named apart: world checksum: (the world after the last step; the line was checksum:) and run checksum: (every world from the start, the number a project's replay holds). A tool that read the checksum: line reads world checksum: now. frost test says which of the two a line is about. The protocol's checksum field is unchanged: it is the world's.
  • frost check and game.check call on_sceneOnScene for 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. An on_sceneOnScene that is slow or prints is now slow and prints in a check.
  • frost test FOLDER tests every project file with a replay, not only those named game.toml: a second recording of a game kept beside it (game-pad.toml) is found. frost reference --types GAME.toml no longer needs the scripts to load, and frost changes prints this file.
  • A bare scene names its pictures from its own folder, not from the folder frost was started in, and a Font that asks for a text style the game does not have is found by frost check and 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 export looked for the text tween( 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 desktop lists a font file two styles share once.
  • on_sceneOnScene is 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 fills state in a first-step branch of stepStep and reads it in on_sceneOnScene, stops at load with E0302. Fill state at the top of the script or in on_sceneOnScene itself. 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's Opacity and Scale do to the nodes in it, is written to a component of its own, Inherit, which the renderer multiplies in. A node needs no Opacity = {} to be hidden (E1303 is retired; the lines can go), a node that was hidden in the scene with an alpha of 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 read Opacity.alpha to learn whether a node is hidden reads Node.shown. Every recorded game that hides a node has a new checksum.
  • An empty Bar or Slider hides its fill node (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's pressed colour 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_ui nodes in common.toml and held still by physics.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, "Component")World.Has(entity, "Component") 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 E0003. The protocol has world.spawn and world.despawn for the running game (no file is written), and game.info reports the [window] background and filter. 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) by frost check, frost run and game.status.
  • frost run and frost test print what only running the game finds: W1112, a joint removed because one end was despawned. frost run prints it on standard error after the checksum, frost test under the game's line; neither fails for it.
  • substeps above 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 but substeps = 4.
  • Mover.crushed is 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.read says paused. Nothing changes for a game that does not call it.
  • A wheel with spring = 0 is 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 = true with min and max.
  • A sensor no longer reports static colliders. A Collider with sensor = true sent sensor_enter for 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. Every Collider has the new field, so every recorded game with a collider has a new checksum.
  • physics.rayPhysics.Ray, physics.castPhysics.Cast and physics.overlapPhysics.Overlap take an entity to ignore after the mask. Nothing changes for a call that does not give one.
  • A mover has weight. Mover.mass is 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.crushed no 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 new leaves tool leftovers behind: names that start with a dot, __pycache__, stills, Thumbs.db, and files ending in .pyc, .pyo, ~, .swp, .tmp or .orig are 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.