Coldwave

Changelog, part 6#

Part 6 of 8: newer · older.

  • Atlases: frames by name: a .atlas.toml file puts many pictures on one, packed from the PNG files its pictures patterns match (* in one folder's file names) or cut from one sheet by a grid, and Sprite.frame (new) names the frame a sprite shows: Sprite = { image = "art/hero.atlas.toml", frame = "run_0" }. Sprites of one atlas share one picture, so a layer of them is one draw call. A frame draws exactly its picture's pixels (filter = "nearest"; one step in a few pixels with "linear"). An unknown frame stops the game with E0531 and the nearest names; frames that do not fit 4096 by 4096 are E0530; a pattern that matches nothing is E0532; frost check prints what each pattern matched. frost export ships each atlas cooked (NAME.atlas.toml.vatl) and not the pictures packed in it. With a frame, src_* cut a part of the frame, stopped at its edge; a sprite with a frame and a Repeat is refused (E0533). Sprite.frame is marked Schema::added, so no recorded game's checksum moved. assets.cooked {path} (new, the protocol and MCP) says what the cook makes of a file: a picture's size, an atlas's frames, a model's parts.
  • Two fingers on a touch screen: [input] fingers: up to 4 finger slots, each a region of the frame (in the pointer's -1 to 1 units) and three actions, its place (x, y) and its press. A finger takes the first free slot whose region it comes down in and keeps it until it lifts; a finger over the bars is at the frame's edge. Slots are actions, so recordings, tests and input.set play them. A new key: no checksum moves, and the first finger is still the pointer with "MouseLeft". An exported page's loader lets touches and clicks through to the game as it fades (it took them for 300 ms).
  • Each thing a material draws has four numbers of its own: Mesh = { ..., p0, p1, p2, p3 }, which its material's functions read as thing (a heat, a flash, a hole's size), set by a script per thing. What it does to a game: a 3D game with a Mesh changes its run checksum (four more numbers a Mesh); no picture changes.
  • A save is on the disk when the player is quit: Cmd-Q on macOS ends the process without unwinding, so a save still being written could be lost; the player and frost dev now finish it first. No game changes.
  • What frost test --write accepts keeps the recording it was played on: a game whose recording is a file of its own (recording = "run.toml", a saved test's tests/NAME.run), and a model's buffers and pictures, are kept in .frost/accepted/NAME beside the rest, so a later failure names the first step that differs with no git. A copy an older frost kept without its recording says so and how to keep it again (frost test --write once), instead of E0401 from inside it.
  • A project lists the models only its scripts name: models = ["kit/drum.glb"], beside images, loads each as the scenes' meshes are. A Mesh naming a model that was not loaded is E0438 (new) and frost check says E0439 (new) of a script whose text names one, in a tool and in an exported player alike. A changed picture in a game with models is redrawn again rather than restarting the game.
  • A 3D game's materials bend and paint what they draw: [render.materials] names each material's WGSL functions (vertex, which moves a point already in the world; fragment, a surface's colour before it is lit), and Mesh.material draws a mesh with one. Its eight numbers are Material = { of, p0..p7 } on one thing, written by a script: a shader has no clock. E0437 (new): a thing names a material not declared, or two give one its numbers. What it does to a game: a 3D game's run checksum changes, as Mesh holds material and Material is declared; no picture changes.
  • A hand carries its mode, and a planning hand changes nothing: session.hello {mode} (frost mcp --join --mode plan|ask|trial|free) and the editor's session.mode {hand, mode}; in plan every command that is not read-only is refused (E0447), and only the editor lifts it (E0448). No game changes.
  • A port has a read-only token: frost serve --join-file PATH --read-join-file PLANS writes PLANS with it (read_only: true). An agent that joins by it changes nothing (E0447) under any name or mode until the editor's session.mode lets its hand, so an agent that opens its own connection is held too. The first token and its answer are as they were. No game changes. lifts it (E0448). It holds an agent that acts through frost mcp --join; one that opens its own connection to the port under a new name is not yet held. No game changes.
  • An exported web page opened with ?mute plays no sound at all: it opens no audio, keeps no samples, and nothing a script asks for turns it on; the game plays the same to the same checksum. Open the page again without it to hear it. Nothing else changed.
  • A restore can bring the changes made since into the moment it puts back: game.restore answers changes (each command that made edits_after: step, what, hand, who, name), and game.restore {id, again: true} makes them again there, all or none (a refusal keeps its own code and leaves the game as it was). No game changes.
  • An exported game draws its models: frost export (desktop and web) ships each model a scene's Mesh names as the model cooked from it, NAME.vmsh beside where the model was (art/crate.gltf.vmsh), and not the .glb or .gltf, which a player cannot read; the player, and any program given a game with no model file, draws that. A game with no Mesh exports as before.
  • change.test {says, against?} is frost test --says over the protocol and as an MCP tool: the same answer (passes, said, differs, shots) with the line and the warnings, for an editor's landing line and an agent's report without a shell. A program that cannot run it (a browser's) says so (E0452). Nothing else changed.
  • The accepted run beside the one now: where a difference ends, and its events: frost test --json's differs gains until, the last step of the recording at which the run still differs from the game it is told against (null when it differs to the end), and events.since {against: "accepted", to?} reads the accepted game's events, played aside from its kept files. Nothing else changed.
  • events.since lists each event once: an event sent early in a step was in the log again for every stage after the one that sent it (four times for a script's sendWorld.Send). A client that counted events counts fewer. Nothing in a world changed.
  • A 3D game's Mesh draws the model it names: Mesh = { file } names a .glb or .gltf, cooked when the game loads and kept in the cache (E0436, new: one the cook cannot read). An exported game draws no model yet. No game that has no Mesh changes.
  • frost cook cooks glTF models, and frost cook FILE cooks one asset alone: a .glb, or a .gltf with its buffers inside it or beside it (each one's hash is in the key), becomes a model (VMSH 1, crates/frost_assets/src/mesh.rs, agreed with the 3D renderer): every mesh the default scene draws, placed by its nodes' transforms (a mirror keeps faces counter-clockwise), welded, with flat normals and Lengyel tangents made where the file has none, COLOR_0 and an application's own _ attributes kept as streams, the bounding box and sphere, the materials, and the pictures they name (one beside the model by its path; a PNG inside it cooked as a texture). One level, the whole mesh. frost cook FILE.png|FILE.glb|FILE.gltf says what it became; a file its importer cannot read is E0526 (new). frost_remote::cooked_model gives a loader the model for a path. No game draws a model yet; nothing else changed.
  • graph.uses and script.complete answer from the game's text: every place a part, field, thing, event, input action or tuning key is named (scripts, libraries, scenes, the project file), and the names that fit where a script is being written. Both read the text, say so (read: "text"), and count columns in UTF-16 code units (columns: "utf16"). Nothing else changed.
  • A 3D game draws its meshes, lit, as its Camera sees them: in a project with space = "3d", Camera has fov, near and far beside zoom, and Mesh and Light exist; the frame graph's implicit passes are the meshes, tested against a 32-bit reversed depth target, then every layer over them. A [render] pass may draw meshes (draw = "meshes", depth = "...", a target of format "depth"). Meshes are handed to the renderer by name (see the entry above for models). What it does to a game: a 3D game's run checksum changes, as its Camera holds three more numbers (its pictures do not: zoom stays, and the layers are seen through it as before); frost test --write writes the new one. No 2D game changes.
  • An agent joins with arguments that never change: frost serve GAME.toml --join-file PATH writes where it listens and its token to PATH (mode 0600) and removes it on exit, and frost mcp --join-file PATH reads it, so the agent's command line is the same at every start of the game. A file left by a session that is gone is refused (E0521).
  • frost test --json prints one line for the whole test: each run's passed, steps, against, the first difference (stepStep, thing, part, field, now, was, more, written) and the line it prints. Nothing else changed.
  • Repeat makes a sprite's picture repeat past its edge: with it, a part (src_x, src_w, and down) that runs past the picture shows the picture again instead of stretching its last pixels: scroll a belt by moving src_x. A new component: no checksum moves. The whole picture repeats, not a frame of it.
  • Shape draws rings, discs and lines: Shape = { kind = "ring" | "disc" | "line", w, h, width, from, to, dash, color, layer }, in the rectangle w by h (an ellipse when they differ), cut from from to to degrees into an arc or a wedge, dashed, its edges smooth; Rotation, Scale, Opacity and Blend apply as to a Rect, and it sorts with everything else by layer. A new component: no checksum moves. frame.at names it "Shape" where it draws, and not in a ring's hole.
  • A scaled Tilemap draws all of itself: a map with Scale was cut to the part of the view its unscaled grid covered (an 8 by 8 map at 0.5 showed one row), and frame.at named the tile of the unscaled grid. Both now go by the scaled grid. No checksum moves; a picture of a scaled map shows the tiles that were missing.
  • The frame says how it was drawn: render.passes lists the frame graph as it runs (passes kept and dropped, targets and the textures they share, pipelines); frame.capture { target } returns a target between passes; frame.at, frame.in and blame.pixel name each hit's pass and material, blame.pixel adds the passes the pixel came through, and frame.view the passes' names. Nothing else changed.
  • A project may declare its frame graph in [render]: targets between passes, passes that draw a range of layers, and the built-in effects copy, bright, blur and add (a glow, say: the engine's ballast/glow.toml example). A project without the table is drawn as before, by one pass of every layer into the frame: no checksum and no picture moved. A graph that cannot run is refused when the project is read, with the line of its pass.
  • A game's pictures are read through the cook's cache: frost run, frost dev, frost test, frost serve and the rest keep each picture's texture the first time it loads and read it from the cache after, in FROST_CACHE or the system's folder for caches. The pixels, frames and checksums are the same; FROST_CACHE=off decodes at every load as before. An exported game is not changed. Under cargo (tests, cargo run, scripts/verify) the cache is target/ven-cache (.cargo/config.toml), never the system's folder.
  • frost cook GAME.toml cooks a game's pictures into a cache: each PNG the game loads becomes a texture kept under the SHA-256 of the file, the importer and its version and the profile (--profile desktop|web), in --cache DIR, FROST_CACHE or the system's folder for caches (E0525, new, when there is none). A second cook of unchanged files cooks nothing; --check cooks again in an empty cache and requires the same bytes. The game itself still reads its files as written. Nothing else changed.
  • session.writes {hand?, since?} lists every change of the hands: oldest first, each {n, hand, what, name, line, step, at_ms} as session.hands says a last change, with next to ask from next time; the latest 4,096 are kept, and missed says about how many an ask from before them lost. Nothing else changed.
  • Blame says the text of the line that wrote: a script writer in blame.value, blame.entity and blame.pixel, and each of its callers, has text: the line as the code read when it ran (a reload since does not change it), trimmed, at most 200 bytes; null for code older than the newest 32 versions of its file. The function's name is read from that code too. Nothing else changed.
  • game.seek says where it played from and what that cost, and where the keyframes are: it answers from, started ("here", "keyframe" or "load"), replayed and ms, and keyframes.steps lists the keyframes' steps. world.series buckets give min_step, max_step and last_step beside their values. Nothing else changed.
  • Every command answers --help: frost COMMAND --help, frost COMMAND -h and frost help COMMAND print what the command takes and exit 0 (they were refused with E0501 by most commands), and exit 2 for one that is not built, so a tool can ask an engine whether it has a command. Nothing else changed.
  • The checksum covers a scene asked for and not started yet (a scene.loadScene.Load in on_sceneOnScene waits for the end of the next step): two games of equal checksums go on the same way. A game with nothing pending has the checksum it had; no test game's or stress game's recorded checksum moved.
  • A game put back before a scene that on_sceneOnScene asked for goes to it. A scene.loadScene.Load asked for in on_sceneOnScene waits for the end of the next step, and a snapshot taken before that step now holds that it was asked for: game.restore, game.try and frost test --restore went on in the old scene (and blamed a local). No checksum changed.
  • A failed frost test names the files that changed since the game it is told against: the one sentence now reads "... That is the first step that differs from the game as accepted (by frost test --write); changed since then: go.luau, speed.toml. If the change is meant, ...": from the accepted game's manifest (a file gone is named "(gone)"), or from git when told against the game as committed. Five names at most, then how many more. .frost/ is not a file of the game. Nothing else changed.
  • project.remove and frost remove scene|script NAME take back a project.add: the name leaves scenes or scripts (its line, when the list was only it), every other comment and line as written, and the file is deleted, only while it is still exactly the engine's stub and no scene, script or library names it; otherwise E0446 ("nothing was removed: ..."), with nothing changed. An add and its remove leave the folder byte for byte as it was: an editor's undo of "add". Nothing else changed.
  • world.series {against: "accepted"} reads the accepted game: the values of the game as frost test --write last kept it, played from those files on the recorded input, for a timeline's accepted lane beside the one now; the answer says against. Nothing else changed.
  • frost test --write keeps the game as accepted, and a failing test is told against it: .frost/accepted/NAME/ beside the project file holds every file the game loaded (its text files whole, pictures and sounds by hash). A failure then says the first step, the value and the line that differ from what was accepted, with or without git, before it falls back to git HEAD and then to the checkpoints; --against DIR reads what someone kept elsewhere. The line of a --write ends ", kept as accepted in ...". A folder .frost/ beside a game is new: it is yours to commit or not, and committed, a teammate without the history gets the same answer.
  • A step says how much work its scripts did, as a count: profile.steps and profile.frame count script_work, the calls and loop turns the Luau machine made, and script_work NAME for each script: the same on every machine and every run, unlike a time. Not in any checksum; a game that keeps no profile counts nothing. Nothing else changed.
  • world.apply {writes: [...]} makes several writes as one: spawnWorld.Spawn, insert, setWorld.Set, remove and despawnWorld.Despawn, each with its own command's parameters, in order and all or none. A refused write puts the world back to before the first, checksum and all; its error keeps the write's code and names it (writes[2]). "$N" names the entity of an earlier write, so a thing spawned can be given a part in the same call. One answer, one entry in session.hands. Nothing else changed.
  • Data files: data = ["levels/one.toml"] and data(name): a TOML file the project lists is read when the game loads and handed to a script as a new plain table each call (tables, lists from 1, text, numbers, true and false), by its path or from the calling file's folder with ./ and ../. A date or an integer past 2^53 is E0408 with its line. A changed data file starts the game again, as a library does. A game that lists none is as before; no checksum changed.
  • library("./name.luau") and library("../name.luau") are from the folder of the file that calls library: a set of libraries that take each other in works from a project in any folder that lists them (libraries = ["../shared/kit.luau", ...]). A name without ./ or ../ is found as before, by the path the project file writes.
  • Physics can step on more than one thread: FROST_PHYSICS_WORKERS=N (1 to 16) makes every game frost plays step Box2D on N threads. The results are the same bits on any number, so no checksum moves; left out it is one thread, as before, and an exported player and a web page always use one. A number outside 1 to 16 is refused (E0524).
  • A script may define on_restore()OnRestore(), called once before it next runs after the game was put back to another moment (game.restore, game.try, a seek, a rollback) or a failed reload put state back: the place to empty what a local caches. frost check no longer warns (W0309) of a local that on_restoreOnRestore empties. A script without it runs as before.

Generated from Coldwave 0.0.1 r335, 2026-11-30 by the binary itself: do not edit by hand.