Skip to content

reModel v0.16.0: live game sessions, per-palette texture packs, sharing audit

Choose a tag to compare

@github-actions github-actions released this 26 Nov 09:47
· 31 commits to main since this release
  • Studio: studio sharing audits skin, hair and garments: skin and hair stay the original's, each garment one design. owners.txt marks an owner's
    parts by texture key: NAME.skin and NAME.hair are held to the original through the owner's palette (colour
    difference, flag skin-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,..). --fix repaints marked parts all the way,
    keeping the drawing (hue turned, lightness bent); --recipe FILE writes style recipes that redraw a garment's
    parts from the original in three tones of its design; --suggest FILE drafts the marks from the original's
    colours. The sharing gate 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 from STUDIO/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 as auto-N otherwise, 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, --json in 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 --key finds a variant for a palette the project's texmap saw a key
    through once or not at all). pack check runs it as the optional sharing gate when the
    project has an owners.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 check compares 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, with wait-N) plays them, repeating under
    until; serve --moves FILE uses 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>.png is 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=, written pal=); it wins over the plain tex_ 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-lint knows the name; texmap and the catalogue report pal=
    and name a key drawn through several palettes with a row each; studio select
    takes the variants of a key; scene render --json has assets, 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.watch reports the writes to named values or ADDR[: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), and session.disasm lists the main CPU's code at an
    address. session.step follow: tour:LABEL applies a recording's inputs for
    the frames stepped, with inputs added on top as an overlay; session.open overlay opens a recording with extra held inputs (jumpfront@2560-3000) and
    exports as a branch that carries them. Reads take :float and :signed,
    ranges (ADDR:LEN, ADDR..END, as a hex dump or typed values), format
    compact and tsv, and when: 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). until takes distance NX,NY,NZ to X,Y,Z lt D, changes NAME and
    screen NAME (a game's value table may name its screens:
    racing|screen=7|note). session.list; remodel call VERB --help prints the
    verb's arguments; --index-every and --checkpoint-every on serve (and per
    open) set a spine's granularity; camera preset=chase|side|top for
    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 LABEL replays it once and
    keeps a machine state every 600 frames and the game's named values every 30
    under out/GAME/spines/LABEL/, keyed by the tour's line (and its from=
    parents'), so a changed recording drops them. session.open from: tour:LABEL@F loads 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 verbs spine.index and spine.where)
    answers "the frames nearest here" and "the stretches on this screen" from the
    game's value table, each with the tour:LABEL@FRAME to open. --tours FILE
    can be given more than once, so a branch tour whose spine is another file runs
    in tour run and counts in coverage; a branch's read map now goes stale
    when its spine's line changes. make spine-index and make 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.open from 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.render draws 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 serve and make serve-check (docs/uplift-studio.md,
    "Live sessions"). The serve cargo feature of the CLI crate (on by
    default, unix only) holds it; no emulation or state hash changes.

  • scene render --camera SPEC (and make 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 make now also keeps the frame's
    display list (display.bin, about 4.3 MB) for it; scenes made before
    need scene make NAME --replace, and without --camera nothing
    changes. Rendering only: the state hashes are the same. Photo mode's
    --photo takes fov as another name for zoom.

  • Named game values: a per-game table of work-RAM words found by running the
    game (crates/romset/src/games/values/GAME.txt), and remodel 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 render and look-render now 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_silhouette inks contours wider than texture
    lines, toon_gain stretches the light so toon steps show on lit models,
    and halftone_ramp swells the dots towards the dark like a printed tone.