Skip to content

Latest commit

 

History

History
772 lines (645 loc) · 47.5 KB

DEBUG_OVERLAYS.md

File metadata and controls

772 lines (645 loc) · 47.5 KB

Development overlays

Last updated with AmiWind v0.0.67-dev1 (17 November 2026).

Contents

Named debug scenes and character UI versions (v0.0.29 candidate)

From the local main menu or game, open F10 and enter dbg tpscene headselection. tpscene means transport/teleport to a named scene; it is intended for repeatable testing without replaying the intro. Use dbg tpscene or dbg tpscene list to list implemented destinations. The first destination is headselection; future scenes need explicit setup and tests. This is separate from geographic dbg tp and does not accept arbitrary commands.

This starts a fresh disposable character-creation session named Scene Tester. It resets unsaved in-memory story/character progress and save-session bookkeeping; it does not delete or overwrite disk saves. It loads the local dock scene, checks guard/navigation/barrier/arrival prerequisites, waits for sign-on and opens the real appearance UI. Acceptance resumes the ordinary dock registration flow. It skips the movie, Jiub name prompt and initial escort/dialogue waits. It does not finish registration, grant quest items or unlock all story gates. The normal New Game path and original name-entry screen remain unchanged. Video/reader/ gallery playback, remote sessions and invalid names are refused. Missing assets are reported instead of being represented as a successful scene arrival.

aw_ui_mode 2 is the saved default for appearance, class, birthsign and review. It adds a framed bottom-right OK button on the footer row. In appearance, Enter advances Race -> Sex -> Face -> Hair -> OK; the next Enter opens confirmation. The mouse can activate OK directly. It uses the same validation and confirmation as Enter; review subedits return to review first. Footer hints are not click targets. aw_ui_mode 1 restores the previous full-width footer and its input behavior. Saved configuration overrides the default; config/game.cfg also selects V2. These modes do not change aw_modal_freeze, aw_modal_black or music policy.

Source changes and synthetic checks are distinct from native acceptance. The maintainer has accepted the preceding appearance/class blackout/freeze presentation; the new OK buttons and scene shortcut still need a matching target build check.

v0.0.29 navigation and character-HUD work

Requested default Debug HUD V2 retains global/local coordinates and adds eight-point geographic heading (N, NE, E, SE, S, SW, W, NW) and saved-world-clock 24-hour HH:MM. Preserve V1 and the independent normal compass switch; verify native-width layout and distinguish raw engine yaw from compass bearing. This is candidate work until the matching HUD fixtures and native view pass.

Health, magicka and fatigue must show independent current/max fractions; the health denominator currently uses fixed 100. See HUD-STATS-29. The later requested dbg god on/off (true/false, 1/0) is separately planned; do not imply that this command or its save semantics are already implemented. Recurring F/V hand readiness in debug play is tracked independently in TORCH-INPUT-29.

Open map-teleport regression - 4 October 2026

The maintainer reports that both dbg tp map and dbg map tp no longer work from F10 in the post-release v0.0.28 playtest; a later dbg tp map retry worked. Both aliases route to aw_teleport_map in the source. The report remains intermittent and open. The instructions below describe the intended behavior, not final target verification. Source diagnosis found an incorrect dependency on visible HUD overlays; a v0.0.29 candidate removes it, preserving explicit map/story gates. Actual C fixtures pass; exact owner-state replay and native acceptance remain pending. See MAP-TELEPORT-28.

Runtime command reference, updated for the v0.0.28 candidate on 4 October 2026. Open the console with F10 or the key left of 1 (normally § on the Finnish layout). Boolean commands accept on/off, true/false and 1/0, case-insensitively. With no value they report their setting.

Command Default Purpose
amiwind_show_debug on off Master switch; enabling also turns coordinates on
amiwind_debug_all on off Alias of the master switch
amiwind_debug_coords on off until master enabled Player XYZ, DEG heading and P pitch in the bottom-right strip
amiwind_debug_showram on off Alias of the actual showram setting
showram 0 0 Original numeric cache-thrashing indicator setting

Master off hides the title/place, control hints, coordinates and renderer debug indicators. Every explicit master enable also enables coordinates; an existing saved coordinate-off preference does not prevent this. Use debug coords off afterward to hide coordinates separately. Master-off also sets coordinates off. Queries and invalid arguments leave the selection unchanged. Enabling master does not enable showram or FPS. Crosshair, menus, dialogue/subtitles and loading feedback remain visible; they are not debug overlays. Commands are small resident handlers; no disk lookup is needed for these toggles.

The compact console-font rows show GLOBAL XYZ in original source units and LOCAL XYZ in converted scene units (one quarter scale). Both report the simulated player origin, not eye height. Exterior source coordinates are (local + region_origin) * 4, including the region's Z origin. Interior global coordinates are explicitly unavailable. DEG is engine yaw, normalized to 0..359 (0=+X, 90=+Y); P is pitch. The normal HUD compass uses geographic north (+Y), clockwise bearings and eight direction labels. When enabled with dbg compass on, it remains visible with debug off; rc6 defaults it to hidden.

GLOBAL and LOCAL coordinates with compass

For a missing wall, record both coordinate rows plus view direction. aw_pos prints local and global position, the scene name and source cell; local XYZ alone does not identify an island region. aw_view x y z yaw pitch reproduces a local camera in the same scene while noclip is enabled. For collision add aw_blockers. Use aw_recover to return to the safe spawn. The reserved strip slightly changes the viewport, so keep its setting identical for performance/visibility comparisons. Hiding overlays restores the view area.

The blue square was the cache-thrashing indicator, not a gameplay element. Its absence with showram disabled does not prove cache thrashing has stopped; retain profiles and model-load diagnostics during memory-budget changes.

Original cell in the debug HUD

The debug HUD also names the original Morrowind cell, at the end of whichever coordinate row is shorter (the block keeps its two rows):

  • Outdoors: CELL x,y, the original exterior grid cell, from the GLOBAL position: floor(global / 8192) on each axis (8,192 original units per cell; floor, so the cell west or south of zero is -1). Balmora is around CELL -3,-2, Seyda Neen around CELL -2,-9. On CHIM frames and legacy region maps alike it uses the same transform as GLOBAL XYZ. On a disk without the world directory (a MiniWind) both come from the active CHIM frame: global = local x 4 + the frame centre, the inverse of chim_tp.
  • Indoors: INT n, a plain interior number. The builder numbers every interior cell of the masters the same way in every build: the base master's interior cells sorted by cell ID take 1..N, then each expansion (Tribunal, then Bloodmoon) appends the cells it adds, sorted the same way, so a missing expansion never renumbers the others. Each interior map carries its number and full cell ID in worldspawn (_aw_cell_int, _aw_cell_id); the whole table is written to cell-numbers.json in the build folder (also listed in build.json under cell_numbers), and python3 tools/cell_numbers.py DATA_FILES [--find TEXT] prints it from the game data.
  • When the full form does not fit the row at the current screen width, the compact C x,y / I n is used; when neither fits, the cell is left out rather than cutting a coordinate.

dbg cell prints the cell in full: the grid, global X/Y, region and scene outdoors, or INT n = "<cell ID>" and the map name indoors.

Noclip and god mode in the debug HUD

While noclip, fly or god mode is on, the debug HUD says so on the same two rows as the cell, by the same rule (the shorter row that still has room): NOCLIP: ON, FLY: ON, GOD: ON, or the short forms NOCLIP, FLY, GOD when the row is short of room. The text disappears when the mode is turned off.

Sea-height visibility

amiwind_debug_sealevel on/off defaults on and accepts the same boolean spellings. It shows/hides the converted *water surface. The exterior datum is global source Z=0; in a rebased terrain region its local Z is -origin.z. This can help inspect the shoreline, low terrain and pier clearance. It does not change water contents, swimming, collision or terrain heights. It is independent of the overlay master; hiding text overlays does not remove the sea.

The old bounded demo backdrop is historical. The island conversion covers the frozen survey's 1,404 cells and 2,526 regions. rc1 preserves original shoreline samples where coarse triangulation changed land/water classification. See WORLD_TERRAIN.md for coverage and remaining limits.

Flight and recall

Noclip W/S follows the full view direction, including pitch; A/D strafe and Shift boosts speed. With debug enabled, Ctrl gives twice the Shift speed; Ctrl+Shift does not add a further multiplier. E/Q remains world up/down. No inertia on key release and no diagonal speed bonus. Safe collision re-entry is unchanged.

M remains the map in debug/noclip, and M/N remain ordinary console letters. Alt+M deliberately exposes the desktop only with debug enabled. Default and personal bindings are separate from graphics/settings configuration; see the maintained keyboard and command reference.

amiwind_debug_reset_location 0 returns to the validated Seyda Neen town spawn and restores walking. Other IDs are rejected without moving the player. From the ship this loads the town first; in town it uses the existing checked recovery path. It is a fixed diagnostic link, not general fast travel. aw_recover remains available. Future IDs will need explicit scene identity, position/orientation and safe-spawn validation.

Readable console and space-separated commands

Checkpoint-015 adds debug help (or dbg help), which lists the supported commands and their arguments. dbg ... and amiwind debug ... are equivalent prefixes. Old underscore commands remain valid. Use PageUp/PageDown to scroll help. The command line edits like a terminal prompt (cursor keys, Home/End, Del, history kept between sessions; aw_console_mode 0 for id's classic editor); see console line editing.

Command Purpose
debug reset location 0 Safe town recall and return to walking
debug coords on Show XYZ
debug all off Hide debug text/indicators
debug showram on Explicitly enable the cache indicator
debug sealevel off Hide temporary sea geometry
debug pos / debug blockers Position/collision diagnostics
debug noclip / debug recover Fly through geometry / safe town recovery
debug view x y z yaw pitch Repeatable camera while noclip is on
debug console bg color black Solid console background, default black
debug console bg color blue Nearest available palette blue
debug console bg color gray Nearest available palette gray
debug console bg color 24 24 32 Nearest palette entry to RGB values 0–255
debug font readable New original 5x7 glyphs in the existing 8x8 cells
debug font retro Retained previous font, unchanged

Colors are palette matches, not new palette allocations. Solid fill replaces cached console artwork and covers every visible console row each draw. There is no opacity mode or extra framebuffer. The readable/retro atlas choice affects normal-size console/menu/HUD and lasts for the session; restart defaults to readable. Both atlases are stored on disk; one 16 KiB atlas remains active. A validated font switch uses a temporary 16 KiB stack buffer, not a second permanently resident atlas.

dbg daynightcycle on/off controls automatic game-time advancement; dbg sky on/off independently controls sky/fog presentation. Both are implemented and default on. See day/night controls and limits.

Compact console in checkpoint-016

The default console font is original 3x5 glyphs in 4x6 cells. It has a 475-byte glyph table and reuses the existing 16 KiB text history. dbg console font normal returns to 8x8 cells; dbg console font small restores compact text. For the old look use both dbg console font normal and dbg font retro. Small text does not replace the retained atlases. Font/size choices are session settings.

Shift plus the physical key left of 1 (Finnish §) opens/toggles full-height console; Shift+F10 is the fallback. Ordinary §/F10 opens/closes it. PageUp and PageDown scroll by a page; Shift+Up/Down are layout fallbacks. New messages keep a scrolled view anchored. Size changes retain text, although old soft line wraps remain line breaks. No new GUI or unbounded scrollback allocation.

debug overlay off / dbg overlay true / amiwind debug overlay 0 all address the existing debug master; on/off, true/false and 1/0 are accepted. This does not hide gameplay menus or the crosshair.

dbg scene ship and dbg scene town retain their aliases. The scene picker and dbg scene <map> also cover the 13 town interiors and Addamasartus; see the scene list. dbg recover finds a checked spawn in the current scene; dbg reset location 0 returns to town. dbg eyeheight reports eye offset and height above the feet. An optional numeric offset (4..24 runtime units above the hull origin) supports comparison, e.g. dbg eyeheight 13.3 restores the old nominal camera for this scene session.

dbg dimensions reports the live player box and BSP standing-hull dimensions, then compares standing-body and point sweeps along all six axes. In a known flat calibration room, subtract their stopping coordinates to measure the effective physical half-extents. In ordinary scenery the two sweeps can hit different surfaces; do not interpret those differences as a new player size.

Reproducing a reported view

dbg coords on in v0.0.15-dev2 already shows XYZ, DEG (horizontal yaw) and P (vertical pitch). Capture all fields plus version and area. Keep the same fog, overlay/viewport and hand mode for comparisons. Existing maintainer lower-hold views: (12,142,-9), DEG47/P11; (-3,276,-8), DEG282/P10; (7,234,-9), DEG95/P-8.

Teleport shortcuts and destination menu (v0.0.24-dev4)

Use these during play:

Command Destination / action
dbg tp Open the settlement list (below); on a disk without it, the scene picker
dbg tp menu Open the scene picker
dbg tp X Y Original Morrowind global XY; checked terrain/water arrival
dbg tp balmora Balmora exterior at the converted arrival point
dbg tp seydaneen Seyda Neen exterior at the checked town recall point
dbg tp prisonship Imperial Prison Ship interior
dbg tp census Census and Excise Office
dbg tp tradehouse Arrille's Tradehouse
dbg tp lighthouse Lighthouse interior
dbg tp addamasartus Addamasartus

Other converted map names from the scene list work too. Names are case-insensitive. seyda / town and ship retain their short aliases.

The settlement list (v0.0.57)

dbg tp with no argument opens a box on top of the game (the view stays behind it, as with the console; the world waits while it is open, so the view is drawn once and kept, and an open box costs almost nothing), in the console font, with every named place of the island: towns, villages, camps, forts, strongholds and ruins, taken from the game's own place names (the names its world map shows). Type to search: letters and digits only, case ignored, so aldruhn finds Ald-ruhn and vivecar finds Vivec, Arena; Backspace takes a letter back. Up/Down, PgUp/PgDn, Home/End and the mouse wheel move, Enter or a click on a name takes you there, Escape closes the box.

You arrive where the game itself would put you on the street: the place's own teleport marker when it has one, else the outside end of a door into the place, the one nearest the place's middle among the doors on its street (on land the doors that stand lowest over the ground, so not a tower or ruin top; over the water, as in Vivec, the lowest walkway near the middle), else where a placed object stands on land near the middle, on the ground there. The choice runs the same coordinate teleport as dbg tp X Y Z, so a place that is not on this disk says so and leaves you where you are.

The list also holds every converted room the disk carries (v0.0.63), each shown with its cell name and "(interior)" after it, so a room never shares a name with an outdoor place and typing interior lists only the rooms; andrano finds Andrano Ancestral Tomb (interior). Choosing a room runs dbg tp with its room map, so you enter at the arrival point of its door, as with dbg tp <room map>. A long room name may run past the right edge of the box; the search still finds it.

Since v0.0.66 four buttons sit above the search: All (the default), Exteriors, Interiors and Beings; Left and Right or a click choose one, and the search filters within it. Beings are people and creatures together, each by its own name in the game (Fargoth, Vivec, Slaughterfish), never a record id. One placed once takes you to it; a name placed in a few places is listed once per place (Dagoth Ur, Facility Cavern and Dagoth Ur, Akulakhan's Chamber); a common kind placed five times or more (slaughterfish, mudcrabs, generic guards) is listed once and takes you to the nearest one, in the room you are in first, else outdoors nearest to you. You arrive on a free spot beside the being, facing it: the player's size is tested against the walls, the furniture and the other actors at up to 48 points around it, never through a wall. If its area is loaded, that is where it stands now (one that walks about); otherwise its placed position. In a room you first arrive the way a door brings you in, standing on the being's floor at its placed position, and are then moved beside it (since v0.0.67: before, the arrival was taken at the being's feet, so the floor search began inside the floor and could take the floor under the room). tools/tp_arrivals.py ID1 checks every such arrival of an image by number, with the rooms' teleports and every door into a room: it runs the game's floor search on each room's collision and fails on any arrival that ends under its floor. A being whose area this disk does not hold is not listed (the build report names it). A place, room or being that an expansion adds carries the expansion's name in this list only, for example Raven Rock (Bloodmoon) or Almalexia (Tribunal); a base-game place an expansion only changes keeps its plain name, and typing the plain name finds a tagged entry.

The list comes from tables the builder makes from the game data and the rooms in the image (tools/tp_places_lut.py): tp-names.lut holds the names, tp-places.lut each entry's arrival (128 bytes a row), and tpk/ the placements of each common kind. While the box is open the game holds only the names list, as one block taken when the box opens and given back when it closes (the world waits behind the box, so nothing loads in the meantime); an entry's details are read from the disk only when you choose it. When memory is low, the game keeps only one offset per entry and reads the names from the disk page by page; the entries, the search and the buttons are the same. Nothing of it stays in memory while you play. The same box is meant for the weapon and gear pickers next. debug tp ... and amiwind debug tp ... use the same handler. Teleport uses the existing scene state capture and checked arrival path, not a New Game reset. Missing map files and unknown destinations are rejected before leaving the scene. This is a development shortcut and can bypass the intended opening route.

dbg scene change remains an alias for the same menu. The picker lists all 17 converted logical scenes, including Balmora, plus Cancel. Arrows/Tab scroll the list; Enter or mouse selects; Escape returns without loading. Missing scene files are disabled. It does not expose arbitrary filenames, individual bmNNN regions, or unconverted Balmora interiors. Legacy dbg scene <map> commands remain.

The entrance lookup for an interior now uses its destination catalogue even when invoked from Balmora. Previously the picker could offer a Seyda Neen interior but search Balmora's unconverted door catalogue and fail to find the entrance.

Live exterior fog/draw distance (checkpoint-017)

dbg fog distance 500 and debug draw distance 500 set the same value. Both other prefixes and the old dbg drawdistance spelling work. No value prints the current distance; new commands accept whole numbers 100..1500 and reject invalid input. The default/Medium value remains 700. One local unit equals four source Morrowind units; 700 is 2800 source units. This is forward view depth, not a radius or a real-world metre measurement.

Escape → Options → Graphics has a live slider. Select Fog distance and use Left/Right (10-unit steps), Shift+Left/Right (1-unit nudges), or click the bar. Select Medium/default to restore 700. Escape/Back returns to the main menu; Return to game resumes. Try 500 or 400 for a shorter view. Alt+V cycles requested 450/540/1000 distance (Shift+V before v0.0.43). Bare 1/2/3 no longer set distance. Startup removes only the exact old generated numeric distance bindings; unrelated custom bindings survive. Both Balmora and Seyda Neen region exteriors cap effective distance at 540 so the view stays within converted overlap. The larger stored request remains available in other scenes.

Fog still starts at 40% of the selected depth and becomes opaque at 100%; BSP and model rejection use the same distance with the existing small safety margin. Changing it does not reload geometry or resize the heap. Only the existing 32 KiB inverse-depth table is refreshed: 15 integer divisions and band fills replace 32,767 floating-point divisions. That distance-setting optimization left per-pixel fog and culling work unchanged. The later day/night candidate adds cached color selection and direction-based sky haze without changing the depth bands. Potential savings from a shorter distance come from rejected geometry, not from making a menu value adjustable. Indoor visibility remains unchanged; setting the distance indoors affects the next exterior view.

The live slider is a session adjustment. Explicit settings persistence and a more complete Options UI remain later work. Increasing distance cannot load geometry missing from the converted scene.

FPS display

dbg fps on/off (also true/false/1/0 and the other debug prefixes) controls a FPS readout, small, in the bottom-left corner of the screen. By default it comes on with dbg hud; dbg fps on shows it always, without the debug HUD too, and dbg fps off hides it, the debug HUD's as well (before v0.0.56 it needed the debug HUD on and was off by default). It shows in every view, the vanity camera shots too. Photo mode hides it, unless Ctrl+H brings the HUD back. The Halloween benchmark shows the same counter in the same place. It averages rendered game frames over approximately one second using the profiler's existing time sample. No extra clock call, file access or unbounded history is added. The number is AmiWind's frame rate, not the emulator's video refresh rate or host compositor FPS. Use the same overlay/viewport settings when comparing views.

Loading presentation

For exterior sub-cell crossings, Options → Area loading selects Freeze frame (default) or Black screen. aw_region_loading 1 holds the last frame/palette with a small top Loading box; aw_region_loading 0 restores blank transitions. The setting is saved in the configuration. Neither option changes BSP loading latency or enables background streaming.

aw_loading_style normal is the default for ordinary scene loads. aw_loading_style blank selects a black loading frame with no artwork or text for subsequent loads. Other values fall back to normal. This setting lasts for the session. The opening movie uses a one-transition blank override; ordinary doors return to the selected default.

Loading style controls presentation only. Map loads preserve the selected music track and buffered samples, and service playback between bounded reads and decode batches. Deliberate track changes, pauses and movie audio retain their existing meaning. This is cooperative servicing on the main Amiga task; slow individual disk operations can still exceed a playback deadline.

soundinfo also prints the live sound channels (sample name, emitter gain, left/right volume and playback position), plus the loading-music flag. This helps separate a missing loop from a quiet or distant one. Ship waves now use the converted source gain; the earlier extra 5 dB reduction is removed.

Dialogue, target names and time

  • dbg ui dialogue 2: default speaker above; 1: classic inside name; 3: target-only identity; 4: speaker at upper right. Archived parameter: aw_dialogue_box_display_method.
  • dbg ui targetnames on/off: independent upper-right aimed NPC label, default on; enabled only after Census review or in the inspection demo. Archived parameter aw_target_names; unrelated to the master diagnostics overlay.
  • dbg ui targetplace below/topright/hudleft: place aimed NPC names. dbg ui labels below/topright/hudleft: independently place object/action labels.
  • dbg ui namelabels amiwind/morrowind: the name-label style. AmiWind (default) shows the title and the action only below the view; Morrowind shows only the framed box over the view. Archived parameter aw_name_labels, also Options > Prefs > Name labels.
  • dbg timeofday: show time/date; append an hour in [0,24), or morning, night, midday, day, evening, sunset, sunrise, dawn, dusk. Preserves legacy evening=18:00 / sunset=19:00 aliases.
  • dbg set time 0630: exact four-digit HHMM, preserving date; rejects invalid hours/minutes. Named snapshots: dawn=05:30, sunrise=06:00, morning=09:00, midday=12:00, day=14:00, evening=17:00, sunset=18:00, dusk=19:00, night=00:00.
  • dbg daynightcycle on/off (true/false, 1/0): archived aw_daynightcycle, default on. Off pauses automatic clock/cloud progression while preserving the chosen timescale. Explicit dbg set time, dbg timeofday changes and T waits still advance/set the same saved clock. On resumes without wall-time catch-up.
  • dbg sky on/off (true/false, 1/0): archived aw_daynight, default on. Shared exterior sky and distance fog follow the saved clock; off restores the original sky and baseline fog independently of the cycle switch. Interiors retain their authored environment. The current candidate includes sun, original night textures and both moons; regional weather remains follow-up work. aw_timescale 0 also freezes automatic time; 30 remains the default rate.
  • aw_wait opens the hours selector (T by default); aw_quick_help opens help (F1). bind t aw_wait and bind F1 aw_quick_help restore these defaults.

Boolean forms are case-insensitive; either switch without an argument reports its setting. Invalid values leave it unchanged. Shipped defaults are overridden by saved user configuration. For repeatable captures use dbg daynightcycle off, then dbg set time 0630 (or another exact/named time); resume with dbg daynightcycle on. Automatic ticks now retain sub-millisecond fractions to avoid frame-rate-dependent drift; the saved world clock remains the only calendar.

The earlier V1 Clear-profile sky/fog checkpoint replaced coarse ordered dithering with cached remaps; its approximately 8 KiB table growth and 63-method 09:05 EEST fixture result are historical. The corrected V3/night/guard source passes full 822-test gates and matching Amiga compiles, including tiny-star, arrival and cloud-speed corrections. Native replay remains pending; earlier startup/default/clock results do not validate those changed bytes. See day/night implementation and limits, current release evidence and dialogue and waiting.

aw_show_speaker_name_during_voiceovers 0/1 controls voiced speaker identity (default 0). Options → Interface provides these same persisted settings.

Voiceover identity: aw_voice_dialogue_display_style 2 (default) forces aim-only identity and suppresses all speaker headers. Style 1 honours aw_show_speaker_name_during_voiceovers 0/1 and the dialogue layout.

dev4 layout and opening quote

dbg ui layout 3 selects padded content-sized dialogue (default); 2 keeps full width with centered text, 1 retains the fixed legacy body. Saved parameter: aw_dialogue_box_layout. Classic speaker method 1 keeps its exact older layout.

aw_intro_text_overlay 0/1 switches original/readable first movie text, when the private optional opening card is present. Aim-only identity also works during sampled introductory speech; input prompts and character selectors suppress it.

dev5 playtest controls

dbg hud type 2 is the default compact version/location banner; type 1 retains the original size. dbg render order 2 selects the corrected mesh span ordering; type 1 keeps the legacy renderer for matched-camera comparisons.

dbg aw hors 0 resets to Hors (male Nord, Barbarian, The Steed), after Census in Seyda Neen square. dbg tp balmora creates Hors only without an existing character. dbg door sounds on/off controls authored opening/closing samples. dbg inputtrace on/off logs raw key and mouse events in the console; with -condebug they also reach the debug log. It accepts true/false and 1/0, case-insensitively. No argument reports its state. Tracing defaults off and is not an archived preference; dbg input trace remains an alias. Use dbg inputtrace off immediately after collecting the needed input evidence, because mouse motion produces many lines. Visual playtests and sky captures keep tracing off.

dbg daynight off sets the game clock to 12:00 (midday) and holds it there. It goes through the same clock as dbg time 1200, so the sky, daylight, light tables, night lamps, night windows, guard torches, location fog and the HUD TIME all show midday; no system has a switch of its own. While it holds, automatic time, waiting, dbg time HHMM, dbg timeofday and dbg 24hrcycle do not move the clock (they say so); dbg time without an argument still reports the time and the hold. Turning it off also ends a running 24 h cycle and any sky or light-gallery time preview; previews started afterwards still work, since they never change the saved clock. The hold is a session setting: it survives map changes, a loaded save and a new game (every frame puts the clock back to 12:00, keeping the date), is never written to a savegame (a save made during the hold simply records 12:00), and lasts until dbg daynight on or quitting. dbg daynight on resumes the normal cycle from the current time (automatic time still follows dbg daynightcycle); dbg daynight alone prints the state, and the remote state file carries daynight on|off. dbg sky is a different switch: it turns the sky/fog presentation off while time keeps passing.

dbg daycycle gallery previews eight sky stages in a camera tour, eight seconds each. On the tested Seyda Neen town map it uses the recorded scenic viewpoints; other exteriors use the current eye with changing look directions. Add here to keep the current view. The player is never moved. Escape, command repetition or dbg daycycle gallery off returns to real game time without changing the saved date or sky settings. dbg nightgallery [here/off] gives a four-stage 23:00 tour: current wide view, Masser, Secunda, then overhead stars, eight seconds each. Eye position never changes. Moon directions use the saved date and the renderer's orbit; a moon below the horizon is labelled and that stage keeps the current view. here keeps all camera angles unchanged too. Escape, repetition, off, completion or map change restores the normal view/time. Console/menu pauses the tour. Saved clock, date, player and sky settings remain untouched; clouds/scenery still occlude the sky. Native verification of this new command remains pending.

dbg skyspeed [0..100] controls only cloud scrolling. The default multiplier 0.00333333333 is approximately one-three-hundredth of the old cloud speed and one third of the preceding 0.01 setting; 0 stops clouds and 1 restores the old speed. The sun and saved clock keep their existing rate. See sky controls. dbg starsky on/off controls the stars and nebula; dbg nightsky on/off controls the complete night layer including Masser and Secunda. Both also accept 1/0 and true/false, default on and save as aw_starsky and aw_nightsky. Query either without an argument. The master dbg sky switch and interior isolation still apply. Selected bright stars have gentle, sometimes cool-blue twinkle (dbg startwinkle on/off, saved as aw_star_twinkle, default on; off = steady stars); the complete moon discs, including their unlit phases, occlude the stars.

dbg guardtorch on/off/auto controls the current guard-torch candidate. On/off also accept true/false and 1/0; auto clears the session override. The archived guards_torch_cycle setting defaults true and accepts those Boolean forms. Automatic use requires an original inventory torch and a validated exterior, strictly before 06:00 or after 20:00. on includes supported Imperial and Hlaalu guard records regardless of inventory or time; it does not equip unrelated NPC classes. Corpse/dead, swimming and asset-validity checks still apply. Final combined native acceptance is pending. See guard torch policy, source rules and resource limits.

Frame CSV now also records server time and surface-order mode, separating movement/logic cost from world rendering. Alt+V (Shift+V before v0.0.43) stays unchanged.

Reconciled input and defaults

Shift/Ctrl/Alt are refreshed from each native input qualifier, with Caps Lock limited to letters and focus changes clearing held input. Legacy personal keymap.cfg loads before keymaps.cfg. The maintained canonical reference is KEYMAPS.md. Autosave default is five; aw_autosaves 0..16 remains an archived setting in config.cfg and Options > Prefs > Autosave history.

The compass/heading HUD defaults to hidden in rc6. Use dbg compass on or dbg compass off; 1/0 and true/false are also accepted, case-insensitively. dbg compass alone reports the current setting. It remains independent of dbg all/dbg hud. The archived config variable is aw_compass, with shipped config/game.cfg default aw_compass 0; saved user settings override that default on startup. Invalid values leave the setting unchanged.

rc7 navigation and cave lighting

dbg compass on now displays heading plus the original game's region name at the player's coordinates. The compass remains off by default. The ordinary M map shows the same region below its viewport regardless of compass visibility. See map lookup and teleport.

dbg tp map (or dbg map tp) selects a point with a red crosshair, then requires the TELEPORT button or Enter to confirm. Escape cancels.

During play, dbg tp -14231 -76109 uses original Morrowind global X/Y, without a Z argument. Decimal coordinates and exponents are accepted; invalid, non-finite, out-of-range or extra arguments leave state unchanged. Coordinates must resolve to an available converted destination. The existing checked map teleport route preserves player state and validates the standing hull at arrival. It places the feet above terrain, or above the actual BSP water surface when terrain is submerged. A blocked arrival uses the existing checked scene-spawn fallback and reports it. The four focused Linux native fixtures pass; emulator/target acceptance is pending.

F, then V equips the temporary carried torch; Alt+V (Shift+V before v0.0.43) continues to cycle draw distance.

Version, world and original region

The exterior debug header reads AmiWind v<version> Vvardenfell / <region>. The simulated player's coordinates are converted to original world coordinates, then to the source CELL and its RGNN region ID. Display text comes from that REGN record's FNAM, including the original wording. No nearest-region guessing or generated terrain IDs are used. The heading/compass remains separate. Interior headers show the level's original area name; unavailable exterior region data is labelled unavailable. Long headers are clipped with an ellipsis at the selected HUD font width. This does not change normal compass defaults.

HUD source-candidate evidence, 4 October 2026

The source candidate now uses independent stat current/max values, with live single-player health authoritative where applicable and safe invalid-max handling. Actual UI pixel tests cover 55/55 full, independent half/quarter bars, live health, zero, overheal and invalid maxima, without character-state mutation. Default Debug HUD V2 now adds eight-point compass/numeric bearing, pitch and saved-clock HH:MM (--:-- when unavailable), retaining V1 raw DEG behavior. Bounded 320-wide layout and the focused HUD/UI/sprite runner methods pass 3/3 on Linux. Native display, save/load and gameplay acceptance remain pending.

Modal background controls

The v0.0.29 candidate keeps the existing live 3D background selectable and makes background freeze plus black coverage the new default. config/game.cfg exposes two independent saved numeric switches, each defaulting to1:

Setting 1 0
aw_modal_freeze Suspend background world simulation and client world clocks during blocking overlays Keep background world work running
aw_modal_black Paint the modal background black and skip hidden world drawing Draw the existing 3D background

New default:

aw_modal_freeze 1
aw_modal_black 1

Restore the existing live-background method:

aw_modal_freeze 0
aw_modal_black 0

Head/race selection, subsequent character pages, journals and other blocking overlays use this policy. The original name-entry prompt keeps its prior behavior. UI/head animation and soundtrack servicing continue with either mode or mixed settings; modal freezing never issues a music stop. Closing a modal or changing black coverage requests a fresh world redraw. Existing explicit pause ownership and deliberate wait/rest clock changes remain separate.

User values saved in id1/config.cfg override config/game.cfg defaults at startup. These controls are source-tested candidates; native visual, music and performance acceptance remains recorded in MODAL-WORLD-29.

Mushroom pickup checkpoint (next v0.0.29 build)

dbg shroompicker is the one-command pickup regression location for the More Mushrooms! release. During unrestricted single-player gameplay it uses the normal checked teleport route to original global XY -10920, -75120, then sets yaw 4 and pitch 64 after final signon. Close the console, target a Luminous Russula cap and press E when E: Pick appears. The default is spot1; the numbered extension is described below. It preserves character, equipment, inventory, harvest seed and picked facts; picked or empty placements remain absent. It does not respawn mushrooms.

The location and picking were confirmed in dev4; the new shortcut is for the upcoming build, not the already published dev4 binary. In dev4 use these commands separately, waiting for the teleport to finish before setting the view:

dbg tp -10920 -75120
aw_aim 4 64

Use dbg shroomtracker before and after picking. Regression checks cover the original name/action prompt, actual ingredient quantity, disappearance, no repeat award, map return and save/load persistence. Use a fresh playtest save when testing the first pickup; reuse the same save when testing that the picked plant stays gone. This small cluster is a repeatable checkpoint, not proof of worldwide coverage.

Disk-backed debug catalogue and numbered mushroom checks (next build)

The next source candidate reads id1/debug-commands.txt only when submitting a dbg command or requesting help. Opening the console and typing do not read it. The bounded reader keeps one row at a time and closes the file afterward; there is no permanent command-description table. Handler code and the engine's small registered-command list still occupy RAM. This is metadata loading, not executable code overlays, and the operating system may maintain its own disk cache.

dbg help groups AUDIO, VIDEO, PLAYTESTING, WORLD / TRAVEL, SKY / LIGHTING, UI / CONSOLE, INPUT and DIAGNOSTICS, with a dashed line beneath each heading. The catalogue is limited to64 KiB and384 bytes per row including termination; malformed or missing metadata produces a diagnostic, while direct legacy handler names remain available. Both loose files and bounded packed members are supported. Normal image creation must include the matching catalogue.

The earlier no-argument-only proposal is extended: dbg shroompicker and dbg shroompicker 1 use the confirmed Seyda checkpoint; 2 through 10 select source-derived locations across the map; dbg shroompicker list lists their verification status. Destinations live in the separate4-KiB-bounded id1/shroompicker.txt. Slots2–10 are source-checked candidates, not yet accepted native standing/aiming locations. Checked teleport and map-identity validation remain mandatory; no command restores already-picked or empty plants. These additions are not retroactively present in the shipped dev4 binary.

Rc1 video-player aliases

dbg playvid 15 plays the original Morrowind intro when included. IDs 1..17 (also 01..17) or an included catalogue name select other videos. The rc1 candidate also accepts dbg vidplay, dbg playvideo and dbg videoplay, all routing to the same player and arguments. The current dev4 uses dbg playvid. The aliases are listed under VIDEO in the disk-backed debug catalogue.

NPC companion test

A pathfinding test: one NPC follows the player. Nothing of it is saved.

Command What it does
dbg companion Who follows, its distance and the counters (see below).
dbg companion pick / dbg companion choose Pick mode: the crosshair turns red while it points at an NPC within 384 units; attack makes that NPC follow. Again, or Escape, leaves pick mode.
dbg companion test Spawns a test companion (a copy of the nearest resident, preferring one with walk frames) beside you.
dbg companion off A picked NPC walks no further and is put back at its home spot with its own behaviour; a test companion is removed.
dbg companion distance [N] How close it keeps, feet to feet: 48..512 game units, default 96 (out of your way in a doorway). No number prints the value.
dbg companion mimic speed [on/off] On (default): it matches your horizontal speed, a quarter faster beyond twice the distance, at most 360 units/s, slowing over the last half distance so it stops at the distance. Off: walk 120, run 200 beyond twice the distance. Also true/false, 1/0. No value prints it.

Aliases: dbg companiontest on/off (= companion test / companion off; no argument prints the status), dbg pickcompanion and dbg choosecompanion (= companion pick).

How it moves (the Quake way): the follower is an entity with a think every 0.1 s (aw_companion_think, 0.05..0.2), run where Quake runs entity thinks. Each think it walks with the player's own step physics (stairs up to the player's 8.5-unit step, slopes up to the walkable limit), so it climbs what the player climbs. When it is within the distance it stands and does no collision work at all. When walking stops making progress for four thinks it "pings": short standing-hull sweeps fanned around it, nearest the player's direction first (Quake's chase-direction idea), at most two sweeps a think; the first clear one that brings it nearer is walked for half a second. After three failed detours it floods an 8 x 8 grid of 16-unit step cells around itself, at most two cells a think, and walks the cells to the reached cell nearest the player. If it still cannot follow (less than 48 units of net movement in six seconds) or falls more than 640 units (or three times the distance) behind, it is placed beside the player, behind them first, and the console says so. Neither blocks the other: the follower is not solid and the player is ignored by its own sweeps. After a scene change the test companion rejoins you; a picked NPC stays in its own scene.

Status line counters: thinks, stuck events, pings and their sweeps, detours, flood fills and their cells, routes found and lost, teleports (too far / stuck), respawns, search and movement traces per second, milliseconds per think (average, worst) and the thinks over 20 ms (the console names what a new worst think did: walk, ping, flood or teleport, and its trace count), unstick steps (a step that ran Quake's unstick search because the box started in solid: it costs up to 164 traces, so after two in a row the follower is placed beside you instead), the follow distance, mimic speed, and the memory it uses (one 48-byte navigation state, the companion record, the shared flood scratch; no allocation). Emulator timings are relative.