Changelog, part 3#
- Copies of the game, one per agent:
copy.make,copy.listandcopy.dropmake, list and drop a copy of the game in.frost/copies/NAME/beside the project file, played in the same engine on a thread of its own; a hand made for it (copy.make {for}) acts in it with every command, and the session's owner names one withcopy: NAMEon any command.change.test {copy}andwith: [{copy}]test a copy's changes. New codesE0473toE0476. Withbeforealone,change.testnow lists the game's own changed lines inhands. No game behaves differently. change.testtests a folder of changed files with no repository:change.test {says, folder}plays the folder's files over the served game's beside the game's own, on its recording, and holds the run to what it said asfrost test --saysdoes;with: [{folder}]plays other changes under it on both sides (two that pass alone, together), andbefore: {folder}holds the files on disk to a whole game kept in another folder. Its answer addsstages,steps,on,handsandms; with a foldersaysmay be empty, and a folder it cannot test is refused (E0472). Withoutfolderandbeforeit is as it was. No game behaves differently.project.remove {file}has two ways through, and is undone:maybe: trueremoves a file although places that only may name it remain (a script's call whose name is made as it runs; the answer lists them asmaybe), andunlist: truetakes its name out of the project file's other keys and lists in the same change (recording = "run.toml"), refused in words for the start scene and where the game would not load. A file's remove is now a changeproject.undotakes back andproject.redomakes again: the file is moved into.frost/removed/N/beside the game (answered askept) and no longer deleted outright; delete that folder to let it go.project.refsgives each placewhy:"made"for one not followed, else null. No game changes.- A
Collideris as large as its thing's scale makes it: its shape is its written size times the thing's scale in the world (Scalein 2D;sx,sy,szin 3D; its own times its parents'), at the load and whenever the scale changes, for bodies, sensors, movers, tilemaps and a car's body, and inphysics.read, the overlay and a pick. It was the written size whatever the scale, so a crate drawn double collided at its old size. A circle, sphere or capsule scaled unevenly (a cylinder: unevenly along x and z), and any collider scaled by 0, is refused (E0471) at the load, at the next step and at aworld.set; below 0 mirrors. A changed scale makes the body again (contact_end, thencontact), its mass following its size. To keep the old size, dividew,h,d(or a polygon'spoints) by the scale, or put theCollideron a thing that is not scaled and what is drawn on a thing under it; do the second for a picture whose scale a script or a tween changes. A recorded game with a scaled collider moves its checksum; none of the engine's did. - An eye's picture is the size asked, and an eye can have no perspective: with
eye,frame.capture'swidthandheightare the picture's size, exactly (1 to 4096 each, the frame's where left out), where before they shrank the frame's own shape to fit; itsview_projectionhas that shape, with fov held from bottom to top; andframe.at,frame.inandframe.viewtake the samewidthandheightwith an eye (refused without one).eye.ortho, in place offov, is a picture with no perspective, that many world units from bottom to top. An eye's capture now saysview: null, and an eye withtargetis refused in words. Without an eye every answer is as it was. - A 3D pick says the part of the model, and a pass says its draws: a
frame.athit of kindMeshhaspart,{index, mesh, primitive, material, point, distance}for the first triangle the ray meets, or null where it is in the model's box and meets none (and null for aCollider);render.passesgives each passdraw_calls, the draws it made in the last picture drawn, null before one. Both are new keys; no game changes. - A 3D game is looked at from an
eye:frame.capture,frame.at,frame.inandframe.viewtakeeye: {at: [x, y, z], turn: [x, y, z, w], fov?, near?, far?}and draw, pick and measure the game from there in place of itsCamera, for that answer only; the answer'sview_projectionis the eye's. What the layers draw (a HUD) is left out of such a picture and its hits. Nothing of the game changes and no checksum moves.E0449now says both refusals: aviewin a 3D game, and aneyein a 2D one.blame.pixeltakes no eye. graph.uses {kind: "clip", name}says who plays a clip: the[clips]key that declares it, each scene thing whoseClipstarts with it, and each script line that sets aClip'snameto it or spawns a thing with it, the name written out. A name that comes through a variable is not found. No game changes.- A
Colliderwith noBodyunder a parent is held where its parents put it: in 2D and in 3D the physics held such a collider at its ownTransformread as a place in the world, away from where it is drawn. It now stands whereParentputs it, turned with its parents, and goes with them each step; its size is still not scaled. A game that relied on the old place puts the thing under a group (an entity with noTransform) or under nothing. ABodyorMoverunder a placed parent is refused as before (E0455). A recorded game with such a collider may move its checksum; none of the engine's did. frame.atandframe.inanswer for a 3D game's things:frame.at {x, y}now also lists each thing the ray through the pixel meets, the nearest first, by itsCollider(box, sphere, capsule, cylinder) or else the box around itsMesh's model, withprojected: true, thepointmet and itsdistance;frame.ineach thing whose box, as the camera projects it, touches the box asked. A 3D game's answers were only what its layers draw, and those hits are as they were, in front. A 2D game's answers are the same bytes, and no checksum moves.blame.pixelis as it was.project.renamerenames a file of the game with every name of it, andproject.refslists more:project.rename {from, to}moves one file and writes the new name over the old in the project file, the saved tests, the scenes, the files of values and the scripts, each where it stands and in the spelling it had, as one changeproject.undotakes back byte for byte andproject.redomakes again (E0463toE0470say why not, with what to do). No game changes until it is asked.project.refsnow also lists a plain string in a script or in adatafile that is the file's path, and a name spelled another way (./art/hero.png), soproject.remove {file}refuses a file such a string names; adata(...)whose argument is made as the script runs now counts only against a.tomlfile. A planning hand's refusal (E0447) saysfromandtoamong what was tried. No checksum moves.- A 3D game has a car:
Vehicle: on an entity with aColliderand a dynamicBodyit makes the body a car on four wheels, with springs, an engine and gears. A script drives it by writingVehicle.forward,right,brakeandhandbrake, and readsspeed,revs,gearandtouching;physics.wheels(car)andphysics.read'svehiclessay where its wheels are. AVehiclein a 2D game, on a body that is not dynamic, without aCollideror made of what no car is stops the load, with what to do (E0459toE0462). A 3D game with physics that declares a component of its own namedVehicleno longer loads: give it another name. A 3D game without one, and every 2D game, is as it was, and no checksum moves. frost testsays a game with no recorded run apart: it has not passed: a project with noreplaywasok: nothing to replayand counted inall passed. Its line now startsno recorded run:, and the last line counts it apart (tested 2 games: 1 passes, 1 has no recorded run);all passedis said only when every game has a run and held to it. The exit status is as it was, 0 unless one failed.--jsonaddsstateto each run ("passed","failed","no_replay") and the countspassedandno_replaybesidefailed; a run'spassedis still false only for a failure, so readstate. A script that looked forall passedor: ok:sees such a game no longer match. No game changes.- A hand has a token of its own, and the engine holds it to the editor's mode: the editor's
session.token {tag, mode?}answers{tag, hand, mode, file}and writes a join file for that hand alone beside the session's (PATH.handN), whichfrost mcp --join-filetakes. Whoever joins by it is that hand under any name, andsession.mode {hand, mode: "plan"}refuses its writes (E0447) on every connection that came by its token, open or made later, until another mode lets it. A hand's token of another session isE0458. Nothing changes for a client of the session's own token or the read-only one, except that a name a connection says never joins a hand that has a token. No game changes. audio.requestssays the music playing now, and a restore puts the requests back:music: {name, since, paused}or null, however long ago the music started. A game put back withgame.restorehas the requests (andmade) it had at the snapshot, without those of the future it came back from, and the music then playing starts again, at the volumes (sound.volume,sound.effects,music.volume) set by then. No game changes.- A 3D game's
frame.captureandframe.viewanswerview_projection: the 16 numbers (column-major, world to clip) the picture's meshes were drawn with, so an editor puts a point of the world on the picture: after the divide, x and y from -1 to 1 span the whole picture, y up, depth reversed.frost run --shotand a held web player print it too. A 2D game answers no such key. No checksum or picture changes. project.remove {file}removes any file of the game: it leaves the project file's lists and is deleted, refused while anything else names it.{kind, name}still takes back aproject.add. No game changes.- A step drawn again tells one picture:
profile.stepsandprofile.framewithstepgive a step'sdraw_calls,quads,instance_bytesand the renderer's other counters, and the time of its picture's spans (render.build,gpu.submitand the rest), as the last picture drawn of it took them, where they added every picture (a paused game captured three times said 10, 20, then 30 draw calls, and three pictures' time; now 10 and one picture's time each time).totalsadds one picture a step. The slowest steps and each script's share were never touched by it (the step's own time, the scripts' time). No game changes. - A load that cooked again says why:
game.infohascooked,{fresh, cached, ms, why}, withwhyone ofimporters,files,first,off;frostprints one line on stderr when a load, or the first frame, cooked something now and took over half a second. The cook's cache keeps animportersfile beside its blobs; a tool that lists the cache folder finds it. project.refs {file}lists every place that names a file of the game: what an editor asks before it renames or removes one; a script's call whose file is made as it runs is listed as one that cannot be followed. No game changes.- A game writes its own full-frame effects in WGSL:
[render] effects = { lines = { file = "lines.wgsl" } }, run by a pass asbrightorpaniniare, with the pass'sthresholdandstrength(set each frame throughPass; an effect has no clock), at most 8, reading 1 or 2 targets. One that does not compile is refused at its own file and line when the game loads (E0456), with no device, so a check and an export for the browser refuse it too. The engine's five effects are now plain WGSL files written the same way, so a game can start from any of them, and each draws the same pixels as before. No checksum or picture changes; the engine's scan example is new. - The engine's sentences say "repository", not "git":
frost test's line andreasonname "the game as committed (the repository's last commit …)" and "the folder is not a repository"; flags and docs that name the tool keep it. No game changes. - A thing under a parent takes its Opacity, and a new
Tintpart, from the things above it: a whole rig fades or flashes with one write on its root. What it does to a game: one withOpacityon a thing that others are under now draws those others faded too (a parent at 0.5 over a child at 0.5 is drawn at 0.25); no checksum changes. The interface'sInheritis as it was.Tint = { color }is new. Known visible change: Scrap Riot's nine recordings keep their checksums, and of 3,750 frames compared 15 differ, in two cases (an entering robot's glow and hit-flash now fade in with it; Bolt's white flash now blinks with him), both what the original's own code does. - A saved test says which game it tests: a top-level
test_of = "game.toml", whichfrost test --writewrites,frost test --jsonandfrost projectsreport andfrost checkholds to a project file beside it (E0445). Left out: game.toml. No game changes. - A run that draws nothing decodes no model picture: a model's pictures are read and decoded when something is first drawn, not at load, so
frost test,frost benchand a headless game load faster and smaller. A picture's header is still checked at load (a missing file, another format or impossible sizes are errors there and infrost check, as before); a picture whose body is damaged is now an error at the first frame, naming it. - A person's edits are told one by one: in blame, each write a client makes is a run of its own (an edit and its undo are two), and a write made right after
blame.onmid-game has the step the game stands at, not 0. No game changes. - An Accept can be undone:
frost test --writekeeps the copy it replaces (.frost/accepted/NAME.before, one level), andfrost test --unaccept RUN.tomlputs it back once the run's project file is as it was. No game changes. frost checkwarns of aPassthat gives its numbers to a pass that reads neither (W0457): one oncopy,blur, or a pass that draws changes nothing.- A model's pictures go to the device with every level, and their pixels are let go: a picture a model is drawn with is uploaded with its smaller levels (so it does not shimmer drawn small), one at a time, and its decoded pixels are dropped once it is on the device; on a new device the model is read again from its file. A new picture no longer puts every other one on the device again. No checksum or picture changes.
frost run --sizesays when it replays a recording in another frame: a recording holds the pointer as a share of the frame and is made in the project's frame, so a game whose scripts readframe.size()(to fit its camera) plays it as another game at another size. W0456 says so, with both sizes; leave--sizeout to replay it as it was made. A window of another size changes nothing: it shows the project's frame with bars.frost projects [DIR] [--json]lists a folder's project files: each with its space and how many scenes it lists, in the orderfrost testwalks them. No game changes.- E0447 writes a text it names in quotes:
world.set with entity "platform", path "a, b.luau" is refused, each value as JSON writes it, so the sentence can be taken apart whatever a name holds. No game changes. - An exported game takes its own picture:
frost_player --picture-at N --out FILE.pngplays the game's recording N steps, draws that step off-screen (no window ever opens), writes it as a PNG and prints how long the program took to its first frame ("started in 0.21 s"). It is pixel-equal to whatfrost run --shotdraws at that step on the same machine (the same pixels, not the same file). A player is 49,840 bytes larger for it. - A wide 3D view can be bent by the Panini projection, and a pass's numbers set each frame: the effect
paninibends what a pass reads by the Panini projection of distancestrength(0 none, 1 cylindrical), the middle kept and the edges of a wide view pulled in, filling the frame.Pass = { of, threshold, strength }on one thing gives a pass its numbers this frame, so a script can turn a bloom up or the bend with speed;E0449(new): it names a pass the graph has not, or two give one. What it does to a game:Passis declared in every game; no checksum or picture changes. game.info,game.checkandfrost check --jsonanswercsharp: one field more for every client, null for a game with no C# script (and for every game of an engine built without C#, which is every released one). For a game with one it is{solution, dotnet, compiler}: the file a C# language server is started on, which the engine now writes itself whenever the game is loaded or checked, and the .NET and the compiler the engine uses. No game changes.- Who let a thing go is kept:
blame.gone {name}says which step the last thing of a name was despawned in and by what (a script's line, a client), or the scene change it went with and the line that loaded the next scene. No game changes. frost test --json,frost check --jsonandfrost check --costs --jsonsay how long they took: each answer carriestook_ms, the engine's own time for the run in whole milliseconds. It is the one field that differs from run to run: a program that compares two answers leaves it out.- 3D models are lit as their materials say: in linear light, each part by its metal and roughness (a shine from the sun and the lamps), its normal picture, its occlusion, its glow, and a masked material's cutoff. A material's
fragmentfunction is handed and returns its colour in linear light. What it does to a game: every lit 3D picture changes (brighter falloff, shine on smooth and metal surfaces); no checksum changes. A glTF material that does not say its metal is metal, as glTF says. - A model's pictures download small on the web: for the web and phone profiles (and
frost export web) a picture inside a model is cooked packed, its level 0 as a PNG file (VTEX format 2), and its levels are made again when it is read, by the same function, byte for byte. The Spin Top hull cooks to 15.4 MB for the web where it was 69.8 MB; loading it takes about 0.2 s more natively for the picture it draws. The desktop profile is as before. Nothing a game draws changed. - A failed step says so:
game.infogivesfailed_step(the step a script's error stopped part way, null when the last step finished) andwhole. No game changes. frame.capture {times: true}says what the picture took:took: {draw, read, encode, text}in milliseconds, the engine's share of a picture's way to a client. Without it the answer is as before. No game changes.
Generated from Coldwave 0.0.1 r289, 2026-11-30 by the binary itself: do not edit by hand.