Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

11KB

Stonehold 64 - Manual tests

Exact setup, actions and expected observations for each milestone and target. The agent asks you to run the relevant section after each task; record results in docs/verification-status.md.

General setup for every test: run commands from the repository folder in PowerShell 7. VICE keyboard mapping: letters, digits and Return map directly; RUN/STOP is Esc, RESTORE is Page Up and the Commodore key is Left Ctrl. Reset from the VICE menu (Machine > Reset). To use a joystick, assign a PC joystick or keyset to the port in VICE (Preferences > Settings > Input devices > Joystick) before the test.

M0 - Starter builds and runs

MT0-c64: starter on c64 (Commodore 64, vicii-40)

Setup: prerequisites installed (pwsh -File tools/check-prereqs.ps1 reports no missing tools).

Steps:

  1. Run pwsh -File tools/smoke.ps1 -Target c64 and note the result.
  2. Run pwsh -File tools/run.ps1 -Target c64 (VICE starts and autostarts build/stonehold-64.prg).

Expected:

  • tools/smoke.ps1 prints [PASS] c64; screenshot in build/smoke/c64/.
  • (Since M1.2) Row 0: ‘STONEHOLD 64’. Row 24 briefly shows ‘GENERATING MAP’ (about 2 seconds). Then rows 1-23 show the part of a random map around the starting cave, drawn with the custom glyphs: brown soft rock, grey hard-rock veins, dark-grey floor, three orange dwarves on floor in the starting cave. Row 24: ‘STONE 000 SEED nnnnn ANY KEY EXITS’. If the memory map is wrong, row 1 shows ‘MEMORY CLASH’ instead. Any key restores the normal character set and returns to BASIC.
  • (M0 starter, before M1.2) Row 1 showed ‘CHARSET OK’, rows 3-21 a fixed sample patch, row 23 a glyph legend and row 24 a frame counter.
  • Autostarts to the Stonehold screen drawn with the custom character set: title on row 0, a map view on rows 1-23, status line (stone counter, seed, RUN/PAUSED) on row 24. Three dwarves move on their own to mine tiles the player marks with the mouse, joystick or keyboard.

M1 - World and view

MT1.1: Random map and seed (c64)

Setup: VICE x64sc, PAL. Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Start the game and note the seed on row 24.
  2. Close VICE, run the start command again, and note the seed. (Machine > Reset only returns to BASIC; the program is not reloaded.)
  3. Fixed seed (R2.3): run pwsh -File tools/run.ps1 -Target c64 -Define FIXED_SEED=12345, take a screenshot (or note the visible map), close VICE and run the same command again.
  4. Run pwsh -File tools/build.ps1 afterwards so the normal (random-seed) build is back in build/.

Expected:

  • Row 24 shows ‘GENERATING MAP’ for about 2 seconds, then ‘STONE 000 SEED nnnnn ANY KEY EXITS’
  • Steps 1 and 2: the two seeds differ and the visible maps differ
  • Step 3: both runs show ‘SEED 12345’ and exactly the same map
  • Three orange dwarves stand on dark-grey floor tiles inside an open cave in the middle of the view
  • The map shows brown soft rock, grey hard-rock veins and (often) part of a dark cavern; no letters or stray symbols inside the map area

Verifies: R1, R2

MT1.2: Scroll to all four edges (c64)

Setup: VICE x64sc, PAL. Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Note row 24 and the blinking white cursor bracket in the starting cave.
  2. Tap the right cursor key a few times. Then hold it until the view stops moving, and keep holding.
  3. Repeat for down, left and up. Then do the same with W (up), A (left), S (down) and D (right).

Expected:

  • Row 24 reads ‘STONE 000 SEED nnnnn RUN’
  • Each tap moves the cursor one tile. The cursor blinks, showing the tile or dwarf under it in between.
  • The view starts scrolling when the cursor is 2 tiles from an edge, and scrolls steadily one tile at a time while the key is held, without garbage characters. A brief shear or tear in the map while it scrolls is a known limitation, not a failure.
  • At each map edge the view stops scrolling and the cursor goes on to the outermost tile (2 tiles from the view edge), then stops. It cannot leave the map.
  • W/A/S/D move exactly like the cursor keys

Verifies: R3

MT1.3: View redraw within one frame (c64)

Setup: VICE x64sc, once with PAL and once with NTSC. Start: pwsh -File tools/run.ps1 -Target c64 -Define VIEW_TIMING, then pwsh -File tools/run.ps1 -Target c64 -Define VIEW_TIMING -Video ntsc

Steps:

  1. Wait for the map to appear and watch the border.
  2. Close VICE and run pwsh -File tools/build.ps1 so the normal build is back in build/.

Expected:

  • The border shows a red band. It starts in the bottom border, continues through the top border and ends partway down the screen (PAL: about the middle of the screen; NTSC: just above the status line). Below it the border is black down to the bottom border.
  • The border is never red all the way round (that would mean a redraw takes more than one frame)
  • In this timing build the dwarves may flicker, because the view is redrawn over them every frame. The normal build does not do that.
  • Automated equivalent: pwsh -File tools/smoke.ps1 -Video ntsc passes the ‘Full view redraw fits in one frame’ check

Verifies: R3.3

M2 - Designation by keyboard, joystick and mouse

MT2.1: Mark by keyboard and joystick (c64)

Setup: VICE x64sc, PAL, a joystick or keyset mapped to port 2 (Preferences > Settings > Input devices > Joystick; a keyset must not use the cursor keys, W/A/S/D or RETURN). Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Move the cursor out of the cave onto a rock tile (brown or grey) and press RETURN. Then press RETURN again.
  2. Move onto a floor tile (dark, inside the cave) and press RETURN.
  3. With the joystick: tap a direction once, then hold it for a second, then try a diagonal.
  4. Move with the joystick onto another rock tile and press fire. Press fire again.
  5. Mark a few tiles, scroll them out of view and back.

Expected:

  • After RETURN the tile under the cursor shows for a moment as the yellow marked glyph (framed X), and the blinking cursor then returns. The tile stays yellow between blinks. The second RETURN restores the brown or grey rock.
  • RETURN on floor changes nothing
  • A joystick tap moves exactly one tile. Holding moves one tile, pauses briefly, then repeats steadily (about 12 tiles per second). Diagonals move both ways at once. The view scrolls at the edges as with the keys.
  • Each fire press marks or unmarks once, exactly like RETURN. Holding fire does not keep toggling.
  • Marked tiles are still yellow after scrolling away and back

Verifies: R4

MT2.2: Mark by mouse (c64)

Setup: VICE x64sc, PAL. tools/run.ps1 already sets control port 1 to Mouse (1351) (-controlport1device 3). After the game starts, click into the VICE window and press Alt+M to grab the host mouse (Alt+M again releases it). A joystick or keyset on port 2 is needed for step 6. Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Before grabbing the mouse, wait 10 seconds without touching anything.
  2. Grab the mouse (Alt+M). Move it slowly across the map, then quickly.
  3. Left-click a rock tile, then click it again. Left-click a floor tile.
  4. Hold the pointer on the rightmost column, then on the leftmost, the top view row and the bottom view row.
  5. Use the cursor keys while the pointer rests in the middle of the map.
  6. Move with the joystick, then with the mouse, then press RETURN, all in one session.

Expected:

  • Step 1: the white arrow pointer sits on the cursor in the starting cave and does not move. The map does not scroll on its own.
  • Step 2: the pointer follows the mouse smoothly, pixel by pixel, in the right directions (mouse up = pointer up). The blinking cursor is always the tile under the arrow tip.
  • Step 3: the first click marks the rock (yellow), the second unmarks it, a click on floor does nothing. Holding the button down does not toggle again, and the game does not react as if a key had been pressed.
  • Step 4: the map scrolls steadily in that direction while the pointer rests on the edge, and stops at the map border.
  • Step 5: the pointer jumps onto the cursor tile and follows each keyboard move.
  • Step 6: all three devices work together; none of them stops working or produces stray moves.

Verifies: R5

MT2.3: Scrolling without tearing (c64)

Setup: VICE x64sc, once with PAL and once with NTSC. Start: pwsh -File tools/run.ps1 -Target c64, then pwsh -File tools/run.ps1 -Target c64 -Video ntsc

Steps:

  1. Hold a cursor key so the view scrolls across a busy area (hard-rock veins), in all four directions.
  2. Rest the mouse pointer on an edge so the view scrolls (mouse grabbed with Alt+M).
  3. Watch the map, especially vertical veins while scrolling left/right.

Expected:

  • Every scroll step moves the whole map at once: no row or band of the map is ever shown one tile behind the rest (no tear or shear)
  • The cursor, pointer and dwarves stay steady while the map scrolls
  • On PAL the scrolling is even; on NTSC it may be slightly less even (a scroll step can take two frames there, see docs/verification-status.md)

Verifies: R3

M3 - Dwarves at work

MT3.1: Dwarves mine marked tiles (c64)

Setup: VICE x64sc, PAL. Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Mark three adjacent rock tiles at the edge of the starting cave.
  2. Watch the dwarves.
  3. Mark one soft and one hard rock tile and compare mining time.
  4. Mark a rock tile that is completely enclosed by rock.

Expected:

  • Within about 5 seconds dwarves walk to the marked tiles, each to a different one
  • Each mined tile turns into floor
  • Hard rock takes clearly longer (about 3x)
  • The enclosed tile stays marked and no dwarf gets stuck

Verifies: R6

MT3.2: Stone counter and pause (c64)

Setup: VICE x64sc, PAL. Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Note ‘STONE 000’ and mark two tiles; wait until both are mined.
  2. Press SPACE while a dwarf is walking; mark another tile.
  3. Press SPACE again.

Expected:

  • The counter reads ‘STONE 002’ after two tiles
  • Row 24 shows ‘PAUSED’, the dwarves stop, and marking still works
  • Row 24 shows ‘RUN’ and the dwarves continue

Verifies: R7, R8

MT3.3: Same speed on PAL and NTSC (c64)

Setup: VICE x64sc started once with -pal and once with -ntsc. Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Mark a tile 10 tiles away from a dwarf through open floor and time how long it takes to arrive.

Expected:

  • The two times differ by less than 10%

Verifies: R10

M4 - Sound

MT4.1: Sound effects (c64)

Setup: VICE x64sc, PAL, sound on. Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Mark and unmark a tile.
  2. Watch and listen while a dwarf mines; pause during mining.

Expected:

  • A click on each mark and unmark
  • Repeated pick strikes while mining, which stop when the tile is done or the game is paused

Verifies: R9

Real hardware

Optional for this release. Use these steps when hardware is available.

  1. Build: pwsh -File tools/build.ps1.
  2. Get the program onto a disk the machine can read, for example: copy the .prg (or .d64) to an SD2IEC/Pi1541/1541 Ultimate SD card; or write the .d64 to a real floppy with a ZoomFloppy/XUM1541 and OpenCBM (d64copy build\<image>.d64 8).
  3. On the machine: LOAD"*",8 then RUN (a C128 in native mode can also use RUN"name"). For C64-mode targets on a C128, enter C64 mode first (GO 64, then Y).
  4. Repeat the manual tests for the current milestone and note any difference from VICE (timing, colours, display artefacts, disk speed) in docs/verification-status.md.

M5 - Smooth scrolling

To be written when M5 starts (pixel-smooth scrolling; spec R3 changes with the user's approval first).

Powered by TurnKey Linux.