Changelog, part 5#
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.loadinon_scenewaits 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_sceneasked for goes to it. Ascene.loadasked for inon_scenewaits 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:spawn,insert,set,removeanddespawn, 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(), 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_restoreempties. A script without it runs as before. project.addandfrost add scene|script NAMEadd a scene or a script to a game: the file is written from the engine's stub and named in the project file'sscenesorscripts, the project file edited in place with its comments kept.E0446(new) when the name is taken, is not a plain path, or is outside the project. It is the one command that writes a project's files, in the trusted class. Nothing a game does changed.- A number kept in
statethat is not finite reads as"Infinity","-Infinity"or"NaN"inscript.state,save.listandfrost run --state, where all three werenull. Nothing a game does changed. frost run --setloads the game once, with the values in place, where it loaded it, set the values and loaded it again: the top of each script runs once (oneprintwhere there were two), and what a script saves as it loads is saved once. The run itself, and its checksum, are as before.bit32.mul(a, b)andmath.roundeven(x), for code ported from C, C# or JavaScript: the product of two 32-bit words wrapped as C wraps it (wherea * bpasses 2^53 and drops low bits), and rounding with halves to the even whole number (math.roundtakes them away from zero). Nothing a game does changed.session.handssays what each hand last ran, and where its code changed:last_run {to_step, checksum, matches_replay, n}for a run to the end of the recording (matches_replaytrue or false only where nothing but the recording moved the game, else null),lineon a script.reload'slast_change, andtag, the editor's own name for a hand's task (session.hello {tag},frost mcp --join --tagorFROST_HAND_TAG). A joinedfrost mcpthat sees its session end exits with status 2, as every error offrostdoes. Nothing else changed.frost test --says PART[@STEP]... [--against REV] [--json]holds a change to what it said: the game on disk may differ from the game at REV (HEAD) only in the parts said, asworld.checksumnames them, each from its step on, and a changed shot only where a said part differs. Without a repository, a change or areplayit says so (E0523). Nothing else changed.- An agent can act on the game the editor shows:
frost mcp --join 127.0.0.1:PORT --token-file PATH [--who NAME]serves the same MCP tools for a session that runs already (frost serve --port 0 --stdio,frost dev) in place of a game of its own. It saysE0521when it cannot join andE0522, and exits, when the session ends. - A connection says who it is, and blame names it:
session.hello {who, kind, model?}makes the connection a hand (an MCP client'sinitializedoes it by itself), andsession.handslists them with what each last did and who moved the game's step last (clock). Blame answers a client writer withhand,whoandagentbesidetrust: hand 0, "a client", for a connection that never said. No checksum moves. [export] credits = "full"ships the source notes with the game: each.from.tomlnote and.terms.txtfile goes beside its file undergame/, as well ascredits.txt. Left out, or"file", onlycredits.txtis written, as before. They are no part of what the web page downloads.[export]is a new table of the project file; any other value ofcreditsisE0408, with its line.- Source notes:
assets.from,assets.sources,credits.txtandW1410. A file of the game can have a note beside it,NAME.EXT.from.toml, saying which service made it, with which words and under which licence, and the service's terms asNAME.EXT.terms.txt; the editor writes them, the engine only reads them.assets.from {path}answers the note, the file's SHA-256 (sha256:…) andchangedwhen the file is no longer what the note'scamerecorded;assets.sourceslists every file the game loads and theunlicensedones.frost exportwritescredits.txtbeside the game when any file has a note, and warnsW1410(new) of a file a service made or a person brought with neither a licence named nor terms saved, asfrost checkandgame.checkdo; they also warnW1411(new) of a note whose file is gone. The notes are not copied into the exported game. Nothing changed for a game with no notes. frost check --costsandfrost exportsay what a game's files cost a download: the bytes as exported and with gzip, by kind (pictures, sounds, fonts, scripts, scenes), the five largest, and where a saving is known, one line: a picturefrostwould write smaller with the same pixels (exact), or a WAV sound of ten seconds or more as Ogg Vorbis formusic.play(an estimate, with the web player's decoder counted). Nothing is re-encoded.frost check --costs --jsonadds the object ascoststo the line it prints:{bytes, gzip, kinds, files, largest}. Nothing else changed.- Pictures
frostwrites are smaller, with the same pixels. A frame of at most 256 colours (frost run --shotand--frames,frost check --shots --write-shots,frame.capture) is written as a palette PNG (colour type 3, withtRNSwhen a colour is see-through) instead of eight bits a channel: the test games' 61 shots went from 648,555 bytes to 466,920, and those kept in the examples'shotsfolders were written again from their own pixels. A frame of more colours is the same file as before. A tool that reads these files with a PNG library that does not expand palettes must ask it to (thepngcrate:Transformations::EXPAND | Transformations::ALPHA); browsers, image viewers andfrost check --shotsread both. profile.steps {totals: true}adds up a stretch of the game: every span of the steps whose spans are kept, each place in the tree once, ms and count summed, with the first and last step added and how many. Nothing else changed.profile.stepssays where a step's time went, down to the line of a script: each span of a step's record hasparent, the index of the span it ran inside, andat, where in a script it is. Insidescript NAMEare itsstep()andon_scene(), and inside those each engine call they made whose cost depends on the world (find,each,spawn,despawn,events,tween,library,physics.ray,physics.cast,physics.overlapandsave's), added together per line that called it.profile.frameandprofile.framesadd the places of one name together, so they liststep()and those calls by name too. Timing a call costs a tool about 55 ns (a game made to calltween2,000 times a step steps about 5 % slower underfrost dev,frost serve,frost runandfrost bench); an exported game times nothing. No checksum changed.game.restoresays what it does not undo:edits_after, the steps of a client's changes made after the snapshot (a write to the world,scene.load,saves.set,debug.evaluate), which playing on with the same input does not make again, andcode_changed, the scripts reloaded since, which run as they are now.input.historylists the changes on the game's line of time asedits. Nothing a game does changed.world.seriesreads a field's value over a stretch of the recording:{entity, component, field, from?, to?, buckets?}answersvalues, one{step, value}a step (at most 3,600), or withbuckets: Nthe{from, to, min, max, last}of N stretches, andplayed_from. It plays the stretch again aside and changes nothing of the game.game.seekgoes back by keyframes. A seek to a step behind the game used to load the files and play from step 0; it now puts back a moment the session kept on an earlier seek (one every 300 steps) and plays on from there, where that makes the same game, and loads as before where it might not (a changed file, ascript.reload,tuning.setorblame.onsince the load, a debugger attached). What a client sees differently: the session's snapshots survive such a seek (a load forgot them),events.sincestarts at the keyframe and not at step 0 (fromsays where), and a game that keeps state in a script'slocalgets warningW0445once and is loaded as before.game.seekanswerskeyframes:{every, kept, bytes, most_bytes}.frost play DIRplays a folderfrost export webwrote: it serves the folder as it is on 127.0.0.1 and printsserving http://127.0.0.1:PORT/, with the media types and refusals offrost dev --web, and no protocol, no reload and nothing written. A folder without the page, both players andgame/is refused (E0520, new). Nothing else changed.frost new --listnames the templates for a program: one a line, the name, a tab and theaboutline of itstemplate.toml, in the order of their names. A downloadedfrostwith no templates beside it says where they belong in one sentence (E0519, where it saidE0515with "no templates were found", and no longer looks in atemplatesfolder of the current folder), and--listthen prints nothing and exits with status 2.frost new --helpsays the same.frame.capturesays which part of the world its picture shows:view,{left, bottom, right, top}in world units, asframe.viewgives it. Nothing else changed.world.insertandworld.removeput a component on an entity of the running game and take one off, and the entity keeps its id: what an editor's "Add a part" and "Remove" send. An insert is held to whatworld.spawnis held to. A remove takes the tweens of the component's fields with it, and is refused with the code that says why when something else needs the component: a joint that holds the entity by itsCollider(E1111), aTileColliderbeside itsTilemap(E1107), a node in it (E1301). A script then sees the entity as any that lacks the component:hasis false andgetof it stops the step withE0003. Neither writes a file.- Each of the engine's components says what it is, in a sentence:
world.componentsgives it as the component'sabout, where it was null, andfrost reference --typesas the comment above its type. It is a row of its own above the component's fields in each crate's reference table, with the field cell empty, asScreen's was; the pagefrost referenceprints leaves those rows off, but forScreen's, to stay within its budget. Nothing a game does changed. - A
Tweenthat would stop every step is refused before the first: one whosecomponentorfieldis empty (E1004, new), whose field holds no number (E1003) or whose easing is not one (E1002). A scene file with one fails to load andfrost checksays which, andworld.spawnmakes no entity; before, the game loaded and stopped at a step. A tween a script makes withtween()is as it was. profile.stepskeeps an hour of step times, and a replay hides nothing played. Each step is kept by its number: where its time went for the last minute, its time for the last hour (an older step is told withspans: null). A step the engine plays again to reach another (game.seek,blame.on) no longer writes over the same step as it was played, though it gives an older step's spans back, and agame.tryfrom a kept moment keeps nothing.stepsrows sayreplayed, a list is of the last minute unlessfromsays otherwise, atopast the game's step tells the steps still kept there, andkeptis now a record of what is held ({spans, steps, bytes, bytes_per_span, bytes_per_hour}), where it was a number.buckets: Ncuts a range of any length into N stretches with the slowest step of each.- A turned thing's hit has its outline, and
frame.viewsays what the frame shows. A hit offrame.at,frame.inandblame.pixelhasturnedbesidebox:{x, y, w, h, angle}, the box along the thing's own sides in the frame's pixels and its turn in degrees, or null for what is not turned.frame.viewanswers the frame's size and the part of the world it shows,{left, bottom, right, top}in world units, as the camera looks. Nothing else changed.
Generated from Coldwave 0.0.1 r289, 2026-11-30 by the binary itself: do not edit by hand.