Changelog, part 6#
- Atlases: frames by name: a
.atlas.tomlfile puts many pictures on one, packed from the PNG files itspicturespatterns match (*in one folder's file names) or cut from onesheetby agrid, andSprite.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 withE0531and the nearest names; frames that do not fit 4096 by 4096 areE0530; a pattern that matches nothing isE0532;frost checkprints what each pattern matched.frost exportships each atlas cooked (NAME.atlas.toml.vatl) and not the pictures packed in it. With aframe,src_*cut a part of the frame, stopped at its edge; a sprite with aframeand aRepeatis refused (E0533).Sprite.frameis markedSchema::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 aregionof the frame (in the pointer's -1 to 1 units) and three actions, its place (x,y) and itspress. 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 andinput.setplay 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 asthing(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 devnow finish it first. No game changes. - What
frost test --writeaccepts keeps the recording it was played on: a game whose recording is a file of its own (recording = "run.toml", a saved test'stests/NAME.run), and a model's buffers and pictures, are kept in.frost/accepted/NAMEbeside the rest, so a later failure names the first step that differs with no git. A copy an olderfrostkept without its recording says so and how to keep it again (frost test --writeonce), instead ofE0401from inside it. - A project lists the models only its scripts name:
models = ["kit/drum.glb"], besideimages, loads each as the scenes' meshes are. A Mesh naming a model that was not loaded isE0438(new) andfrost checksaysE0439(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), andMesh.materialdraws a mesh with one. Its eight numbers areMaterial = { 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, asMeshholdsmaterialandMaterialis 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'ssession.mode {hand, mode}; inplanevery 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 PLANSwrites PLANS with it (read_only: true). An agent that joins by it changes nothing (E0447) under any name or mode until the editor'ssession.modelets 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 throughfrost 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
?muteplays 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.restoreanswerschanges(each command that madeedits_after: step, what, hand, who, name), andgame.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'sMeshnames as the model cooked from it,NAME.vmshbeside where the model was (art/crate.gltf.vmsh), and not the.glbor.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?}isfrost test --saysover 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'sdiffersgainsuntil, 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), andevents.since {against: "accepted", to?}reads the accepted game's events, played aside from its kept files. Nothing else changed. events.sincelists 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'ssendWorld.Send). A client that counted events counts fewer. Nothing in a world changed.- A 3D game's
Meshdraws the model it names:Mesh = { file }names a.glbor.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 cookcooks glTF models, andfrost cook FILEcooks one asset alone: a.glb, or a.gltfwith its buffers inside it or beside it (each one's hash is in the key), becomes a model (VMSH1,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_0and 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.gltfsays what it became; a file its importer cannot read isE0526(new).frost_remote::cooked_modelgives a loader the model for a path. No game draws a model yet; nothing else changed.graph.usesandscript.completeanswer 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",Camerahasfov,nearandfarbesidezoom, andMeshandLightexist; 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:zoomstays, and the layers are seen through it as before);frost test --writewrites the new one. No 2D game changes. - An agent joins with arguments that never change:
frost serve GAME.toml --join-file PATHwrites where it listens and its token to PATH (mode 0600) and removes it on exit, andfrost mcp --join-file PATHreads 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 --jsonprints one line for the whole test: each run'spassed,steps,against, the first difference (stepStep,thing,part,field,now,was,more,written) and the line it prints. Nothing else changed.Repeatmakes 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 movingsrc_x. A new component: no checksum moves. The whole picture repeats, not a frame of it.Shapedraws rings, discs and lines:Shape = { kind = "ring" | "disc" | "line", w, h, width, from, to, dash, color, layer }, in the rectanglewbyh(an ellipse when they differ), cut fromfromtotodegrees into an arc or a wedge, dashed, its edges smooth;Rotation,Scale,OpacityandBlendapply as to aRect, and it sorts with everything else by layer. A new component: no checksum moves.frame.atnames it"Shape"where it draws, and not in a ring's hole.- A scaled
Tilemapdraws all of itself: a map withScalewas cut to the part of the view its unscaled grid covered (an 8 by 8 map at 0.5 showed one row), andframe.atnamed 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.passeslists 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.inandblame.pixelname each hit'spassandmaterial,blame.pixeladds thepassesthe pixel came through, andframe.viewthe 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 effectscopy,bright,blurandadd(a glow, say: the engine'sballast/glow.tomlexample). 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 serveand the rest keep each picture's texture the first time it loads and read it from the cache after, inFROST_CACHEor the system's folder for caches. The pixels, frames and checksums are the same;FROST_CACHE=offdecodes at every load as before. An exported game is not changed. Undercargo(tests,cargo run,scripts/verify) the cache istarget/ven-cache(.cargo/config.toml), never the system's folder. frost cook GAME.tomlcooks 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_CACHEor the system's folder for caches (E0525, new, when there is none). A second cook of unchanged files cooks nothing;--checkcooks 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}assession.handssays a last change, withnextto ask from next time; the latest 4,096 are kept, andmissedsays 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.entityandblame.pixel, and each of its callers, hastext: 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.seeksays where it played from and what that cost, and where the keyframes are: it answersfrom,started("here", "keyframe" or "load"),replayedandms, andkeyframes.stepslists the keyframes' steps.world.seriesbuckets givemin_step,max_stepandlast_stepbeside their values. Nothing else changed.- Every command answers
--help:frost COMMAND --help,frost COMMAND -handfrost help COMMANDprint 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.Loadinon_sceneOnScenewaits 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_sceneOnSceneasked for goes to it. Ascene.loadScene.Loadasked for inon_sceneOnScenewaits for the end of the next step, and a snapshot taken before that step now holds that it was asked for:game.restore,game.tryandfrost test --restorewent on in the old scene (and blamed alocal). No checksum changed. - A failed
frost testnames 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 (byfrost 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.removeandfrost remove scene|script NAMEtake back aproject.add: the name leavesscenesorscripts(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; otherwiseE0446("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 asfrost test --writelast kept it, played from those files on the recorded input, for a timeline's accepted lane beside the one now; the answer saysagainst. Nothing else changed.frost test --writekeeps 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 DIRreads what someone kept elsewhere. The line of a--writeends ", 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.stepsandprofile.framecountscript_work, the calls and loop turns the Luau machine made, andscript_work NAMEfor 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,removeanddespawnWorld.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 insession.hands. Nothing else changed.- Data files:
data = ["levels/one.toml"]anddata(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 isE0408with 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")andlibrary("../name.luau")are from the folder of the file that callslibrary: 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 gamefrostplays 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 putstateback: the place to empty what alocalcaches.frost checkno longer warns (W0309) of alocalthaton_restoreOnRestoreempties. 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.