Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

7.9KB

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. Hold the right cursor key until the view stops moving.
  2. Repeat for down, left and up (W/A/S/D as well).

Expected:

  • The view scrolls one tile at a time without garbage characters
  • Scrolling stops at each map edge and the cursor cannot leave the map

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. Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Move the cursor onto a rock tile and press D, then D again.
  2. Move onto a floor tile and press D.
  3. Use the joystick to move to another rock tile and press fire.

Expected:

  • D marks the rock tile (yellow marked glyph) and the second D unmarks it
  • D on floor changes nothing
  • The joystick moves the cursor and fire marks the tile

Verifies: R4

MT2.2: Mark by mouse (c64)

Setup: VICE x64sc, PAL, control port 1 set to Mouse (1351), mouse grab enabled. Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Move the mouse slowly across the map.
  2. Left-click a rock tile, then click it again.
  3. Hold the pointer at the right edge of the view.

Expected:

  • The pointer moves smoothly and the highlighted cursor tile is always under the pointer tip
  • The first click marks the tile, the second unmarks it
  • The map scrolls right while the pointer stays at the edge

Verifies: R5

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.

Powered by TurnKey Linux.