Skip to content

Releases

Solar Magic 0.2.1077

Choose a tag to compare

@github-actions github-actions released this 20 Nov 16:14
0f115f4

Build 0.2.1077 from commit 0f115f4.

Changes since v0.2.1053:

  • Level animation: no step is shown while the picture goes back to the one without the animation (#556). When steps carried as a guess turn out wrong, the player …
  • Level animation: its player is a module of its own, with a test (#556, #441). Which step of the level animation shows was a state machine of about 130 lines in …
  • CONTEXT.md: level animation, animation step (#556). From the architecture review's fourth candidate (the level animation's player is a state machine in App …
  • Graphics: the sheet's stamp is a brush stroke as everywhere (#555, ADR 0011). The right drag on a graphics file's sheet was a drag loop of its own: it pasted …
  • Graphics: the pixel editor's model is a module of its own (#555). About 250 lines of rules on a graphics file's pixels were in the Graphics tab's DOM class, …
  • CONTEXT.md: pixel selection, float (#555). From the architecture review's third candidate (the pixel editor's rules live in the Graphics tab's DOM class): what …
  • Overworld: the drags are one list in the view (#554). Which drag runs was asked layer by layer in four places – the Esc chain, onMove, onUp and dragging(), …
  • Overworld: what a press on the map means is decided in one place (#554). onDown ranked about fourteen cases by hand – a label's link symbol, the cell asked …
  • Overworld: at most one cell is asked for at a time (#554). The tile a reveal or destroy is added at, the piece to replace and a link's other end were three …
  • Overworld: what is selected is held in one place (#554). The selected tile, the link meant at it, the selected sprite, the pieces marked on layer 2 and the …
  • CONTEXT.md: cell request (#554). From the architecture review's second candidate (what a click on the overworld meets is ranked by hand in six places): the …
  • A game the editor starts is played to its overworld by the drive (#553). LevelEmulator.untilOverworld – under startGame, startGameAt and reloadOverworld, so …
  • A new file, a save file loaded, a save at the prompt and a menu's cursor are played by the drive (#553). newFile (gamestart.ts) and loadSave (savefile.ts) each …
  • The drive: one module plays the emulated game with a player's buttons (#553). How the game is played to a screen was a private class of pregame.ts, written …
  • CONTEXT.md: drive, screen path (#553). From the architecture review's first candidate (how the game is played to a screen is written four times): the emulated …
  • Emulated results: the reads left out follow from what a result shows (#552). After #551 a result named what it shows, but behaviour and picture still took a …
  • Emulated results: the boot snapshot is an object, a result says what it shows (#551). Which ROM reads a result counts was combined in each caller: the three …
  • CONTEXT.md: boot snapshot, what an emulated result shows. From the architecture review's first candidate ("which reads count" has no single home): the boot …
  • Title screen: a stroke on its picture no longer blocks the page for seconds (#550). A Firefox profile of one stroke showed 3 s of the main thread: the title …
  • Title screen: painting its picture no longer drops every learned result (#550). The boot runs to the title screen and reads the picture – its entry of the …
  • Packages: a title screen picture is a graphics part (#548). The Romhack Races baserom's title screen read "© 1990, 1991 Ni89ndo": its layer 3 graphics redraw …
  • Title screen: the level no longer shows graphics data as tiles with a package's global animation (Romhack Races baserom: the ground under Mario garbled). The …
  • Level animation: a level opened after another one no longer animates some tiles wrongly (level 007's conveyor slopes until one was moved). The steps of the …

All changes with their full descriptions: v0.2.1053...v0.2.1077

Solar Magic 0.2.1053

Choose a tag to compare

@github-actions github-actions released this 18 Nov 21:00
ff8a2f7

Build 0.2.1053 from commit ff8a2f7.

Changes since v0.2.594:

  • Release: the notes fit into a release again. The job failed with "body is too long (maximum is 125000 characters)": the notes listed every commit's whole …
  • License: Solar Magic's own code is under the MIT License (LICENSE; "Christoph Giesche and Solar Magic contributors"), named in package.json and the desktop …
  • Test fixtures: the Romhack Races baserom's zip is no longer in the repository. It contains the game's own graphics (Lunar Magic's export …
  • Credits page: a static page of its own (credits.html, a second Vite entry with the stylesheet, the fonts and the theme – none of the editor's code), linked …
  • Start page: links to the repository on GitHub and to the Discord server (https://discord.gg/jbukYe4vgX), in the navigation (left out on a narrow screen) and …
  • Start page: the section on packages is headed "Community content" (also in the navigation, anchor #community); "Packages" is named only in its text, as the …
  • Start page: the earlier look again, on the new content. The sober version of 13c098e was too plain for the user: back are the hero set in the middle with the …
  • Start page brought up to date, and without the generated look. Its sections are the editor's five workspaces (Level, Overworld, Graphics, Game, Packages; the …
  • Overworld: the events shown are counted of 120, not of 78 – the total was written in hex beside a decimal count ("120 of 78 events shown").
  • The save scheme is learned before a save file is handed out (#529). Retry System (its own SRAM table), SRAM and BW-RAM Plus (saving and loading rewritten) and …
  • Play from power-on (#528): every play of the editor started after the file select with the intro skipped, so nobody saw the pre-game in sequence. …
  • Start of game page in the Game workspace (#527): what a new save file starts with – the intro, the lives, the start position, the initial level flags – in one …
  • Title screen movement: recordings of more pairs than the game's table holds (#525). The game reads its 34 pairs with three 16-bit addresses in bank 0, so the …
  • Title screen movement: the sync check (#524). A change to the title screen level, its sprites, blocks or code after recording leaves the buttons as they are …
  • Title screen movement is recorded on the title screen page (#523): Lunar Magic needs an external emulator, a savestate and an ASM installed and removed by …
  • Nintendo Presents' page in the Game workspace has fields (#526): each of the logo's tiles (OBJ) with its X position and tile number, the Y position and the …
  • The menus' texts are edited in the Game workspace (#522): file select, file erase, player select, the save prompt and the game over prompt are painted with …
  • The Game workspace lists every pre-game screen and menu the game gets into, each with its picture taken from the emulated game (#521): Nintendo Presents, title …
  • Game mode 0A named what it is (#520): GM.fileSelect was 0A, which is player select; file select is 08 and file erase 09. GM now names the pre-game's modes …
  • Pre-game research note: what was decided (US original only, own recording, the save prompts as menus beside the pre-game ones) and what is left to the tickets.
  • Pre-game research note: the two differences to the ROM map settled (the title screen's stripe is 905 bytes in the clean ROM, walked to its end; both cursor …
  • The pre-game research note with what SMW Central says: the patches of this area with ids, authors and download counts from the sections' lists, SRAM and BW-RAM …
  • Research note on the pre-game: everything from reset to the first overworld. The terms (Nintendo Presents, title screen, title screen movement, file select, …
  • The level's animation steps carried as a guess where something they read changed (#519): every object, Map16 tile or sprite added showed "Animations 1/n … n/n" …
  • The Packages workspace with one navigator, a page per package and an inspector (#517): the navigator and the package list were two columns before any content, …
  • Review fixes of #516: ADR 0016 is named for what it now decides (probe workers with fixed routing, the file renamed) and says under its title that it was …
  • A third probe worker for the sprites' lanes: in a profile with the two workers of #513 the object kinds waited for the sprite images on the second one – they …
  • Review fixes of #513: a probe worker breaking down no longer forgets what failed on the other one – the failure handler set the client's ROM generation back to …
  • A second probe worker: after a switch to a level not opened before the long jobs (object thumbnails, object kinds, sprite images, sprite memory check) shared …
  • Review fixes of #510-#512: the routines of the game's own extended objects (what a custom extended object without a handler is told by) were read once per job, …
  • Object thumbnails: the objects that draw nothing are loaded in groups before alone. Every extended object and custom number of object 2D that drew nothing in …
  • Object thumbnails keep each of their loads: the kinds of a tileset arrive while its thumbnails are learned, and with them the picker lists other objects (a …
  • Object thumbnails draw only the tiles their objects wrote: a thumbnail's load rendered the whole 32-screen test level – layer 1, its BG and layer 3, three …
  • Review fixes of #509: a BPS that changes the overworld's layer 1 tiles without bringing a byte of its own (two tiles swapped, a tile blanked with bytes the …
  • A package's overworld layer 1 tiles come with its overworld graphics: the Romhack Races baserom redraws GFX08 and GFX1E (installed as global GFX files) where …
  • App bar gives up room in steps instead of its parts running into each other: its three columns (menus and project | workspace switcher | actions) were 1fr auto …
  • Sprite images placed by where the game draws them, not by the sprite's position: an image's offset was taken from the sprite's position at the capture, so that …
  • Level editor: the properties below the picker instead of in a tab, "Used in levels" folded: the side panel shows the picker with the properties of what is …
  • Review fixes of #499–#505: a store the browser refuses at the commit (quota: the transaction aborts, no error event) rejects too, so the "could not store" …
  • npm test in parallel, the patched test image kept on disk: the tests move out of package.json's && chain into tools/runtests.ts (the same scripts and arguments …
  • Overworld paint stroke: the map drawn once per display frame, the event list and World check once per stroke instead of per stamped cell. A stamp only asks for …
  • The level view does no animation work while it is out of the page, and a step gives the canvas only what it changed (#504): on 'anim-frame' (and on a render) a …
  • lz2Compress is linear in its input instead of counting every length byte by byte: a fill's length at a position is the one at the next position plus one, and …
  • Ctrl+S never reaches the browser and saves only what there is to save (#501): the save keys are taken before any text field or dialog sees them (a field's …
  • The project in the browser's storage is no longer silent (#500): a store that fails (quota, private window, storage gone) is told once per streak of failures …
  • Opening or dropping a ROM/project while one is open asks first (Save project first / Replace / Cancel; nothing asked on the start page), and the replaced …
  • Del clears the selection in Graphics and Map16 tiles (#498): the pixel editor makes the selection (else its tiles) transparent – a pasted floating block is …
  • Map16 tiles: the builder (the quarters, the centre of the work) back in the middle of the view – the sheet at its left, the 8x8 graphics at its right with the …
  • Graphics workspace: the views in the order Palettes, Graphics, Map16 tiles, Animations (Graphics before Map16 tiles; their keys G G / G M unchanged). The G …
  • Restore the UI concept rollout (revert of 873b8d5): back to the state of 6238360 on the user's request, to be adjusted further. The tickets (#472–#497) stay …
  • Revert the UI concept rollout (#472–#489): back to 079b58b on the user's request – the 20 commits from "Design tokens for the whole UI (#473)" to "Review fixes …
  • Review fixes of the UI rollout (#472): - Tokens: --canvas-bg, --highlight and --font-mono were defined by themselves (the hex replacement had reached the :root …
  • UI wording after CONTEXT.md (#487): the picked item instead of "the element chosen in “Insert”" (status bar, View menu), the Graphics workspace instead of …
  • The level's View options are kept (#488): ui/viewprefs.ts keeps what View → Layers / Overlays shows (preference level-view) – also when a key switches it …
  • Game workspace: the standard zoom control (#489) – "− 300% +" from dom.ts zoomControl (whole SNES pixels 1×–6×, the percentage shown and kept up to date with …
  • Graphics workspace in the shell (#486): one context bar – the views (Palettes, Map16 tiles, Graphics, Animations), then the open view's own actions (its bar …
  • Test play as a full-window overlay (#485): the game in the middle, under it a transport bar with each key on its button – Restart from savestate (F8, shown …
  • Packages as a workspace (#484): the Packages dialog with its nested dialogs became the fifth workspace (G 5, the switcher's Packages, ROM → Packages, Map16's …
  • Command palette (#483): the central search (Ctrl+K, Ctrl+F, Ctrl+Space, the app bar's field) finds commands as well – a group "Commands" first: every menu …
  • One keyboard scheme (#482): ui/shortcuts.ts is the table of every key and mouse gesture; the help dialog lists it (the stale overview with the missing 6, the …
  • Bottom panel Problems | Log (#479): the log bar became a panel with two tabs. Problems shows the workspace's checks – the level's problems (problems.ts, …
  • Side panel as tabs Picker | Properties (#478, ADR 0015 for the level editor): the picker and the properties no long...
Read more

Solar Magic 0.2.594

Choose a tag to compare

@github-actions github-actions released this 30 Oct 12:57
bdf3192

Build 0.2.594 from commit bdf3192.

Changes since v0.2.431:

  • Vertical levels with the VRAM layout patch (SMWV): rows the camera comes to are drawn right. The game builds a block row only when the camera enters a row (or turns); SMWV built c-1 / c+15, which share a slot of the 16-row tilemap – a camera stopped at a block row and then going up showed that row with the tiles of the one 16 below (12A: stopped at its bottom, camera Y 400, row 3F showed row 4F's clouds). Now the rows built are c going up and c+14 going down, the rows that come into view there. Single tile changes (stripes) of a vertical layer go to VRAM only on the camera's rows c..c+14: a tile 16 rows away overwrote one on screen (12A's vine growing up to row 28 over row 38). testvram compares the tilemaps at the camera of the frame before (the scroll the NMI set), also checks rows 54-63 of vertical layers, and plays 12A up from its bottom and with the vine growing.
  • Exit view: a vertical level's screen box spans the level's whole width (screenRect: the rectangle of a screen in the level picture, from the layer geometry). The frame of the chosen screen and an exit's fill were drawn 256 pixels wide in every level, but a vertical level's screen is 32 tiles (512 pixels) wide – in 12A they covered only its left half. Checked for 12A and 105 (testscreenrect.ts).
  • Sprites in vertical levels where the game loads them: tile X from byte 0's high nibble, tile Y from byte 1's (parseSprites and serializeSprites had the two swapped – both ways, so a save kept the bytes but every vertical level's sprites were drawn, selected and placed at positions the game does not use). Checked by emulation in 12A (testvsprites.ts): its info box and wall springboard are shown where they spawn, sprites placed by the editor spawn there; 12A's box opens message 2 as in the game (#166's problem list no longer reports an empty message). Sprite 6C spawning one tile left of its position is its own init, not the loader. Fixes #168
  • Review of #166: one trimLine for message lines, the problem text no longer states the game's B9 rule (the hover shows what a box opens), justifyLine without an unused parameter, "Show in game" checked in the game for a level nothing reaches (it shows the intro's message). Part of #166
  • Messages are edited beside the level (messagepanel.ts, in the picker's place) instead of a dialog: typed into the game's 18×8 box drawn in the ROM's font as the level has it, with a caret (Enter, Backspace joining lines, arrows, Home/End; refusals say why), the characters left per line, pasted text wrapped and optionally justified, a Justify and a Clear button, a picker of the font's glyphs instead of {xx}, a look-alike offered for a character the font lacks. Every change is a ROM edit, typing in one message one undo step. The panel names the levels showing the messages and the translevel's role (switch palace, Yoshi's house), and for a level nothing reaches that it shows the intro and Yoshi's thank-you, pointing to its exits. Hovering a message box sprite shows the message it opens, a double click opens it in the panel; "Show in game" test plays the level with the box open (Yoshi's house's message 2 on Yoshi). The problem list reports message problems, an entry opens the message. Part of #166
  • What makes the game show a message (messageToShow): its message box number, translevel 0's message 2 as message 3, Yoshi's house's message 2 as message 1 with Mario on Yoshi – checked in the game for a level's two messages, Yoshi's house's, a switch palace's message 2 and Yoshi's thank-you. A whole message justified (justifyBox: every line of a paragraph but its last). Part of #166
  • Where a translevel's messages are shown and what is wrong with them (messageuse.ts): its level and the sub-levels reached from it through exits (the exit graph, as the game's translevel goes along with Mario); a level nothing reaches shows translevel 0's. Problems, the message each sprite opens as learned by hitting or jumping on it: a sprite opening an empty message (saying when the other one has text), a sprite showing the intro's message in a level no overworld level leads to, a message with text no sprite of the levels sharing it opens (Yoshi's house's message 2 is shown riding Yoshi, a switch palace's message 1 by its switch, translevel 0's by the game); nothing while a sprite's message is not known. A problem names the message it is about. Part of #166
  • The message box as an editor edits it (messagebox.ts): 8 lines of 18 character codes with a caret that moves freely in the box – typing beyond a line's end pads it with spaces, Enter splits a line, Backspace at a line's start joins it to the one above, Delete at its end the one below; nothing is pushed out of the box (refused). Pasted text wraps into lines of 18 (line breaks kept, the caret after it), optionally justified as the game's texts are set (spaces spread evenly, those left over after a sentence's end first, then from the left; a paragraph's last line stays). Characters the font lacks get a look-alike (’ → ', “ → '', … → ..., 8 → B, 9 → g, accents dropped …), others are left out and named. Part of #166
  • Which message a message box sprite opens is learned by emulation: a sprite hit watches $1426 and keeps observing while timers the hit started still run (the game's B9 bounces ~15 frames before it opens its message, after the probe had stopped), and when a hit opens a message the X positions split by the message it opens there – B9: message 1 at even X, 2 at odd X, its summary says so. Sprite results get a new key; all other vanilla sprites probe as before (~10 % longer in all). Part of #166
  • Every level has two messages (SMWM, after Lunar Magic's message routine): a message box in a level the game's table doesn't name showed the yellow switch palace's message, pressed its switch and ended the level (RHR 13B) – the lookup at $05B1A3 now jumps to $03BB90 as in Lunar Magic, message = translevel × 2 + (message − 1), pointers at $03BE80, the text in free space; from $03BBC9 on the code is Lunar Magic's byte for byte, so the Retry System's hijack at $03BC72 lands in it. The switch palaces (message 1 only) and Yoshi's house (message 2 riding Yoshi) are read from the game's table, message 3 is translevel 0's message 2. Installed with the editor patches; the game's messages move to their levels. Edited from the level (Level → Message boxes, Edit … at a level tile); the old on-demand SMWM and its 25 slots are gone (ADR 0009). Closes #164
  • The pickers follow the level's animation: the Map16 pages, the BG sheet, object and prefab thumbnails (with their copies in the search and the hover preview) show what the level view's animation shows at each step – only the tiles a step changes are drawn anew (TileAnimation: the 8x8 tiles whose graphics or colors differ, stepChanges, as for the level), only for pictures on the screen (the others catch up once back on it, and all go back to the level as rendered when the animation stops), their pixels read only once one is drawn anew; a step costs ~1 ms with the pickers, as before without them. Object thumbnails keep where their tiles are (cells).
  • An animation step uploads the level image without copying it first: putImageData copies the pixels itself, the extra copy of the whole image (8.8 MB in a 20-screen level) took half of every step (~2.2 ms, now ~0.5 ms)
  • The animation's images are emulated in the background, one per slice (animationSteps, each resumed from the state the last one stopped at), not all at once while the level loads: a level whose animations repeat after 64 steps held every edit ~130 ms longer on the main thread; what they read still counts for the render
  • Animation frames are prepared cell by cell: a step's VRAM and CGRAM are compared with the level's, and only the 16x16 cells drawing an 8x8 tile whose graphics or colors changed are drawn anew and composed (animatedPixels) – each step drew and composed the whole level again to find the few hundred pixels that change, ~19 ms on the main thread per step (1.2 s after every edit in a level with 64 steps), now ~0.5 ms; a step changing the backdrop color is still drawn whole
  • Sprites that erase themselves at once get a picker image: one loaded alone without an image is shown with the tiles it drew in its last frame alive – RHR's donut lift (PIXI A0) draws itself, then turns into its Map16 block while Mario isn't on it, so the picker showed nothing while the level showed the block; the sprite images are learned again (i6)
  • Level animation no longer stalls when a sprite reaches Mario: the frames for the editor's animation are emulated with Mario invulnerable as after a hit – in RHR's 13B a sprite walked into him after ~290 frames, he died and the game froze, so half of the 64 snapshots were the same and the animation stood still for half of every cycle
  • Resize cursor follows the mouse pixel by pixel, not tile by tile: the handles' bands are narrower than a tile, so on a single tile the middle showed resizing while a click moved, and outside it stayed a whole tile too long; which part sizes which axis is kept per object, so the cursor check on every move stays cheap
  • Resize objects on every edge: 8 handles (corners and edge middles, only those of the axes the object can be resized on), each edge grabbable along its whole length; a drag aims at the mouse – the tiles an object covers at each size are emulated alone (objresize.ts), the size whose dragged edge lands nearest wins and the origin moves so the opposite edges stay (slopes growing left, coupled nibbles, byte widths included); all selected objects resize on the grabbed edges by as many tiles; Alt+Shift+arrow keys resize on the left/top; the status bar shows the size while dragging
  • Switch states found by emulation: the collision probe runs again with the blue P-switch running, the silver P-switch running and ON/OFF set to OFF, and keeps the sta...
Read more

Solar Magic 0.2.406

Choose a tag to compare

@github-actions github-actions released this 23 Oct 06:47
3dcf4b5

Build 0.2.406 from commit 3dcf4b5.

First release.

Solar Magic 0.1.416

Choose a tag to compare

@github-actions github-actions released this 22 Oct 14:41
f27bd6a

Build 0.1.416 from commit f27bd6a.

Changes since v0.1.343:

  • A load's temporary pointer patches no longer count as a ROM change: they are written into the image directly instead of through rom.w8 and taken back the same way, so rom.gen stays. Every test play (and every render with the level as edited) bumped it, so the probe client sent the ROM to the worker again, which dropped its queue: block behavior, object kinds and the level scan started over after returning from a test play. testromgen: a load with overrides leaves rom.gen and the bytes as they were.
  • Start page SEO for smw.traumwald.net: canonical URL, og:url, a preview image (og-image.jpg, the editor with Yoshi's Island 1) for Open Graph and Twitter, sitemap.xml referenced from robots.txt; nginx sends X-Robots-Tag noindex on smw-dev.traumwald.net so the dev build stays out of search results (same image for both).
  • Start page redesigned: static HTML in index.html that search engines can read (title, description, Open Graph, schema.org SoftwareApplication and FAQ data, robots.txt, favicon), telling in plain words what Solar Magic is and what you can do with it, without technical details; "Open ROM …" instead of "Import ROM …" (also in the File menu).
  • Review fixes for results with inputs: the sprite memory check has the sprite memory value in its input again (a changed value reused the old check); jump arcs after the first of a prepared level count what preparing it read (a ROM edit to the level's load kept them); the animated tiles and colors have the content of the masked graphics and ExAnimation data in their input (once per ROM state); the thumbnails' file hash is memoized per ROM state and their key hashed by inputHash. Refs #23.
  • CONTEXT.md: an emulated result stays valid while its inputs and the ROM bytes it read are unchanged; Input (state outside the ROM a result depends on: the level as edited with the view settings, graphics file content) and Derived ROM data (plain parsing of the ROM, memoized per ROM generation). ProbeClient's failure sets, forgotten on every ROM change, documented as the deliberate exception. Refs #23.
  • The last of App's emulated results onto inputs: the open level's Map16 tiles (levelTiles) are kept in memory with the level as edited as their input instead of by the render's identity; the sprite memory check (sm3) takes the test level it plays as its input, its BG now among it. Refs #23.
  • LevelUses through the input mechanism: a level's tiles (lu2) are stored with the level as saved as their input (the hash of levelInput) in the result cache, instead of a data hash of its own kept inside the value. Refs #23.
  • Jump arcs and the animated tiles and colors as results kept in memory (keep: 'memory') with the level as edited as their input (the animated ones with the view's ExAnimation triggers): learned in the background by the learner, emitting 'arcs' / 'animated' as before. refresh() no longer clears arcs (arcCache, arcLevel, arcWant are gone; the arc emulator is prepared again when the ROM or the level state changed), and the animated tiles no longer depend on the render's identity or a timer (the level's previous ones are shown while they are learned). Refs #23.
  • Object thumbnails through the learner: App.objectThumbs learns them in a lane of their own, a batch of 32 objects per slice (objectThumbsJob), with the level they are drawn in as their input, and emits 'thumbs' when done; the object palette shows placeholders until then and asks again on every render, ROM change, header change and new object kinds (no more synchronous emulation on the main emulator on a tileset change, no hand-made tileset key). testthumbs: a step per batch, the same thumbnails. Refs #23.
  • Sprite images through the learner's input: the set of all sprites (i5), variants (v5) and images by extra bytes (b3) are keyed by the sprite GFX and palette, their input the sprite memory bits, the content hash of the level's sprite graphics files (masked out of the bytes read) and the custom sprites. ensureSpriteImages is asked on every render and ROM change, the learner deciding whether there is work; palettesChanged, spriteKey and the 'palettes' event are gone (the object palette, which listened to it, is rebuilt on the render after a ROM change). Refs #23.
  • Key gaps closed through inputs: the layer 2 motions (l2m2) and layer 3 kinds (l3k2) take the level as edited as their input (an unsaved entrance action or mode changed them under the old key); the object thumbnails' input is the level they are drawn in (its number decides its graphics slots) and the content of their graphics files (masked out of the bytes read, so an edited file kept stale thumbnails), their BG is not (layer 1 only, the suspected layer 2 pointer gap is none); levelDataKey hashes the level input, so the level scan (ls5) and the camera at Mario (cam2) are learned again for the view's ExAnimation triggers (a silver P-switch slows level 106 down). testresultinputs: each suspected gap. Refs #23.
  • Learner inputs: ResultLearner takes an input next to the key (state outside the ROM a result depends on, hashed canonically by core/inputs.ts), a result holding while key, input and the ROM bytes it read are unchanged; the result cache keeps the input's hash with the entry. keep: 'memory' keeps a result in memory only (the latest 256, checked against the ROM the same way) for results that change with every edit. App.levelInput: the one input of everything learned from the level as edited (its data and the view settings as a load is given them). testlearner: an input or a byte read changing learns again, neither reuses, memory results aren't stored. Refs #23.
  • Review fixes for moving tiles: moving onto a tile with a block of its own drops that block from list.txt too (it came back on the next assembly, or replaced the moved one); a move while the usage index is still looking through levels for tiles placed by objects' code asks first; the .map16 import offer reads the levels like the remap dialog (game BGs too); hex() for numbers. testtilemove: onto a block. Refs #33.
  • Docs for moving Map16 tiles with their uses and Remap Direct Map16 / Background Tiles: README, credits (Lunar Magic 3.71's help edit_remap_dm16.htm, level_bg_offset.htm), CONTEXT.md (tile move). Refs #33.
  • Move and remap uses in the editor: the Map16 tab's Move panel takes the selected tiles to a typed number or where the selection is dragged in the sheet, shows the levels, structures and blocks it rewrites and why it can't be done, asks before overwriting defined tiles, one undo step. Level menu: Remap Direct Map16 and Remap Background Tiles (Lunar Magic's) with a list of Map16 numbers, for this level or all levels, the levels rewritten listed before applying; a game BG is taken from its load before the edit, the usage index skipping levels known not to have the tiles. Importing a .map16 elsewhere than it was exported from offers the remap of the levels using the old numbers. Refs #33.
  • Moving Map16 tiles with their uses, and rewriting the uses alone (core/tilemove.ts): a move of tiles 200-FFF takes graphics, acts-like and block along and rewrites the Direct Map16 objects of every level (both layers), the structures, the BG tilemaps and the custom blocks' list.txt; moving onto a tile in use, a tile placed by an object's code (the usage index), half of an "always show" pair or outside 200-FFF is refused, onto a defined tile reported to ask first. Lunar Magic's Remap Direct Map16 and Remap Background Tiles rewrite the uses only (a Direct Map16 object fills its rectangle with one tile, so it moves as a whole); a game BG, known from its load, becomes the editor's. testtilemove: the levels look the same after a move (flags off and on), one undo step each. Refs #33.
  • Remap lists of Map16 tile numbers (000-FFF, no P, G or S) for rewriting where levels use tiles: parseRemap's what 'numbers'. Refs #33.
  • Sprites are translucent while the BG or layer 3 is edited, like the ghosted layers (35 %, with "Inactive layer translucent"), so the tiles being painted show through them.
  • Music doesn't stutter while the editor computes: once only the SPC700 runs (after the level's start frames, or an SPC file right away), it runs in a worker (ui/musicworker.ts) with the sound unit's state. The audio worklet gets a port to it and asks for samples itself as its queue needs them, so a busy page no longer lets the queue run dry. Without a worker the page plays on as before.
  • Readable palette thumbnails and screen numbers: thumbnails (objects, sprites, structures, search) show the level's backdrop colour behind their transparent pixels, as in the game, instead of a fixed dark grey that hid dark graphics; screen numbers are drawn on a dark box like the exit labels, readable on light backgrounds.
  • Object palette thumbnails: a new cache key (o2), so thumbnails stored from a failed batch load are rendered again.
  • Object palette thumbnails when a batch's load fails: in level 105 (tileset 7) two of object 33's types in one batch of 32 stall the emulated level load (game mode 1); the thumbnails were taken from that broken state anyway, so objects 1F-32 showed purple ? blocks. A batch whose load fails is rendered in halves, an object that fails alone gets no thumbnail. renderObjectThumbs takes ROM, emulator and level instead of App. testthumbs: every 16x16 block of 105's thumbnails is one of its own Map16 tiles as the level shows them.
  • Learning emulated results, after review (#64): a callback already waiting for a key isn't added again (levelTiles asked on every 'level-uses' emitted once more per slice; sprite images and level uses pass one callback each, jump arcs are asked once per tile while learned); "Jump arcs" shows again while the run speeds are probed; a lane is urgent for all its jobs; the option after each slice is progress. testlearner: the same callback twice is called once.
  • Learning emulated resul...
Read more

Solar Magic 0.1.343

Choose a tag to compare

@github-actions github-actions released this 20 Oct 07:23
46bf4e7

Build 0.1.343 from commit 46bf4e7.

First release.