Repository navigation
reModel v0.16.0: live game sessions, per-palette texture packs, sharing audit
-
Studio:
studio sharingaudits skin, hair and garments: skin and hair stay the original's, each garment one design.owners.txtmarks an owner's
parts by texture key:NAME.skinandNAME.hairare held to the original through the owner's palette (colour
difference, flagskin-off,--fixed-limit),NAME.GARMENT[=RRGGBB]is one design whose parts must agree
in lightness and hue and in the hues their drawings show (a mottled image that averages to the garment's colour is
caught:garment:NAME,--garment-light,--garment-hue), and between the select screen and the races
(garment-select:NAME, scenes named by@select|text,..).--fixrepaints marked parts all the way,
keeping the drawing (hue turned, lightness bent);--recipe FILEwrites style recipes that redraw a garment's
parts from the original in three tones of its design;--suggest FILEdrafts the marks from the original's
colours. Thesharinggate counts the new flags. Synthetic skin and garment cases are in the tests. -
Studio:
remodel studio sharing STUDIO(make studio-sharing) audits which textures
share and whether the pack draws their owners consistently (docs/uplift-studio.md,
"Sharing and owners"). From the project's scenes (their captures, no ROM and no GPU;
360 Top Skater scenes in 8 s, then 1 s fromSTUDIO/sharing/) it lists, per texture
key, each palette it is drawn with (scenes, object blocks, pixel share, and what the
pack draws: variant, plain or original), groups the palettes drawn together on one
object (a run of object blocks in one 3D window) into owners, named in a small
owners.txt(NAME|pal,pal,...) and clustered asauto-Notherwise, and compares each
part's drawn tone (the mean colour of the pack's image) with the original seen through
its palette, against where its owner's other parts put it. It flags outliers (skin
12%, other parts 30%), a character's part drawn as the original, and a plain image that
serves palettes that look different. Output: a TSV,--jsonin the shared answer
envelope, a contact sheet per owner (the original through the palette next to what the
pack draws),--fix DIR(repainted variants of what is flagged on a character) and
--write-map(a texture map with a row per palette of each shared key, so
studio select --keyfinds a variant for a palette the project's texmap saw a key
through once or not at all).pack checkruns it as the optionalsharinggate when the
project has anowners.txt. -
Moves (docs/uplift-studio.md, "Moves"):
remodel moves learn GAME --tours FILE... [--out FILE](make moves-learn) cuts recordings' race stretches into the input
spans that recur (button taps and holds, analog steers by strength and duration,
and such inputs that overlap), measures each by replaying a window from a spine
checkpoint with and without it, tags each sample (airborne, speed band, screen)
and writes a move table;remodel moves checkcompares a table's predictions
with other recordings. Top Skater's table, learned from the Novice and Expert
recordings (18 moves, 95 rows; 65 s to learn with the spines made), is
crates/romset/src/games/moves/topskatr.txt. In a session,session.moves
lists the moves and their measured effects under the current conditions, and
session.step move=NAME(repeatable, withwait-N) plays them, repeating under
until;serve --moves FILEuses another table. Predictions on a held-out
course are honest: sideways movement and a hop's airtime carry over, speed does
not (docs/uplift/scenes-and-server.md, "Slice 5 as built"). -
Texture packs: per-palette variants. A texture key is the texels and the
colour-table address, and games rewrite the table (Top Skater's skaters share
skin textures and get their tone from it), so one key could only have one pack
image.tex_<key>~<pal>_<w>x<h>.pngis now the image for that key drawn through
the 16-colour palette whose id is<pal>(the hash of the ramp texmap reports as
ramp=, writtenpal=); it wins over the plaintex_image, which stays the
fallback. Drawn by the CLI's renderers, the player (hot reload included) and the
browser; no cost for a pack without variants (the palette is worked out only for
a key that has one: see docs/texture-packs.md, "Per-palette variants", for the
measurement).pack-lintknows the name; texmap and the catalogue reportpal=
and name a key drawn through several palettes with a row each;studio select
takes the variants of a key;scene render --jsonhasassets, which says which
variant drew. Render only: no state hash changes. -
Live sessions, from the first real use (docs/uplift/session-field-notes.md):
session.watchreports the writes to named values orADDR[:LEN]during a
step, each with the frame, the size, the value and the i960 instruction that
wrote (a watch never changes the emulation: the state hashes are the same with
and without; no measurable cost when none is set, and about 1% with one on the
interpreter; a watch turns the JIT's fast memory path off, 804 to 580 frames a
second on--jit), andsession.disasmlists the main CPU's code at an
address.session.step follow: tour:LABELapplies a recording's inputs for
the frames stepped, withinputsadded on top as an overlay;session.open overlayopens a recording with extra held inputs (jumpfront@2560-3000) and
exports as a branch that carries them. Reads take:floatand:signed,
ranges (ADDR:LEN,ADDR..END, as a hex dump or typed values),format
compactandtsv, andwhen: before_poke(a poke applies at the start of
the frame, so a read right after a step shows the poked value, which the answer
now says).untiltakesdistance NX,NY,NZ to X,Y,Z lt D,changes NAMEand
screen NAME(a game's value table may name its screens:
racing|screen=7|note).session.list;remodel call VERB --helpprints the
verb's arguments;--index-everyand--checkpoint-everyonserve(and per
open) set a spine's granularity; camerapreset=chase|side|topfor
third-person renders. A test restores after pokes and compares the whole
machine with a fresh replay: equal but for the renderer's version counters. -
Spines: a person's recording (a tour from power-on) opens fast at any
frame and can be searched.remodel spine index LABELreplays it once and
keeps a machine state every 600 frames and the game's named values every 30
underout/GAME/spines/LABEL/, keyed by the tour's line (and itsfrom=
parents'), so a changed recording drops them.session.open from: tour:LABEL@Floads the nearest state and steps the rest: on Top Skater's
Novice recording (19,368 frames), frame 5,000 opens in 0.9 s instead of
13.9 s, 10,000 in 1.5 s instead of 31.5 s and 15,000 in 0.1 s instead of
47 s, to the same state hashes.remodel spine where LABEL --near pos-x=12 --where screen=7(and the server verbsspine.indexandspine.where)
answers "the frames nearest here" and "the stretches on this screen" from the
game's value table, each with thetour:LABEL@FRAMEto open.--tours FILE
can be given more than once, so a branch tour whose spine is another file runs
intour runand counts incoverage; a branch's read map now goes stale
when its spine's line changes.make spine-indexandmake spine-where
(docs/uplift-studio.md, "Spines"). -
remodel serve: a long-running server with live game sessions, speaking MCP
(JSON-RPC) on standard input and output and, with--socket, on a Unix
socket (out/serve/GAME.sock, mode 0600; no network port). An agent opens
a machine of its own (session.openfrom power-on, a scene or a tour at a
frame), holds inputs, steps it (only then does the game advance), reads
named values, pokes, keeps and restores marks, moves photo mode's camera,
draws the frame to a PNG and exports what it did as a branch tour that
replays to the same state hash;scene.renderdraws a scene's still with
the GPU kept warm. The verbs are one table, so the MCP tools and the
command line (remodel call VERB name=value) share their arguments and
answers (the usual envelope). Limits:--marks,--max-step,
--sessions.make serveandmake serve-check(docs/uplift-studio.md,
"Live sessions"). Theservecargo feature of the CLI crate (on by
default, unix only) holds it; no emulation or state hash changes. -
scene render --camera SPEC(andmake scene-render CAMERA=...) draws a
scene from another camera with no ROM and no running game, using photo
mode's camera words (orbit,tilt,yaw,pitch,roll,x,y,
z,fov,near,hud).scene makenow also keeps the frame's
display list (display.bin, about 4.3 MB) for it; scenes made before
needscene make NAME --replace, and without--cameranothing
changes. Rendering only: the state hashes are the same. Photo mode's
--phototakesfovas another name forzoom. -
Named game values: a per-game table of work-RAM words found by running the
game (crates/romset/src/games/values/GAME.txt), andremodel ram values TOUR --at F1,F2,...(make ram-values) to read them at frames of a tour
or scene recipe, with--json. Top Skater's table has the screen, course,
skater, clock, total time, score, speed, position, heading and airborne,
each read against rendered frames (docs/uplift-studio.md, "Named values"). -
scene renderandlook-rendernow draw a pack's tile images (HUD, menus,
title) and regions as the player does; before they drew the original
patterns there. -
Looks: three new parameters, rendering only (defaults leave existing looks
as they were).outline_silhouetteinks contours wider than texture
lines,toon_gainstretches the light so toon steps show on lit models,
andhalftone_rampswells the dots towards the dark like a printed tone.