Skip to content

AmiWind v0.0.32: Last Stop on the Old Line: Window-Shopping in Vivec

Choose a tag to compare

@FlyingFathead FlyingFathead released this 08 Oct 20:01
· 75 commits to main since this release

AmiWind v0.0.32 - Last Stop on the Old Line: Window-Shopping in Vivec

A first look at Vivec: the Arena canton as an outside-only preview, with stairs
you can climb and residents standing where Morrowind puts them. The engine is
now safe for a real 68040's FPU, the console edits like a terminal prompt, fires
stay in view, and the repository builder builds the whole game itself, from
scratch, in parallel.

This is the last release on the old line: the AmiQuake-based legacy engine
and the legacy builder (region maps). The next release, v0.0.33 "Towards CHIM:
Replacing the Engine Block", is the first on the CHIM engine: a world
streamer that stores every mesh, collision hull and texture once and places it
by reference (world streamer, roadmap).

A lantern-lit bridge pillar against a blazing sunset in v0.0.32 A Vivec canal at night, lanterns on both sides, in v0.0.32
A lantern-lit bridge pillar against a blazing sunset. A Vivec canal at night, lanterns on both sides.

More in the gallery.

What's new:

  • Vivec Arena preview: the Arena canton, its walkways, bridges and the
    pieces of the neighbouring cantons that reach into it, built from your own
    Morrowind data. Outside only: its doors say "Interior unavailable". It is a
    separate area: dbg tp vivec_arena (or dbg tp vivec, dbg tp arena) takes
    you to the canton top.
  • Stairs and residents in Vivec: the Arena stairs, bridges and covered
    walkways can be walked; converted architecture keeps its authored collision
    surfaces where the simplified hull would close more than a step, and every
    Arena resident stands on the floor the original puts under them.
  • Horizon: the default horizon is the v0.0.30 look (aw_skyline_fill 0),
    the owner-approved method (Horstator approved). The skyline fill of v0.0.31
    stays selectable (aw_skyline_fill 1) as an experimental mode, buggy for now:
    sprites still need their shapes from the alpha channel. Saved settings from
    v0.0.31 move to the new default once.
  • Fire: the static flame budget keeps the flames you can see, ranked by size
    over distance, so a hearth no longer vanishes behind a row of candles
    (aw_static_flames_nearest 1 keeps the old nearest-first rule).
  • Console like a terminal prompt (aw_console_mode 1, default): the cursor
    moves without deleting, Home/End, Ctrl+A/E/U/K, and the last 31 commands kept
    in console-history.txt; Up stays on the oldest command. aw_console_mode 0
    keeps id's classic editor. The Amiga Del key is Delete again.
  • dbg daynight off holds the clock at 12:00 midday through the normal
    clock path (sky, light, lamps, windows and HUD); dbg daynight on resumes.
  • 68040 FPU: no library sine and cosine every frame, AmiWind's own text and
    number conversion, own atan2 and tan; the builder fails an engine that can
    reach FPU instructions a 68040 does not have.
  • FPU support library (optional, your own copy): --amiga-libs DIR puts
    your own 68040.library or 68060.library on the boot disk; the boot
    checklist shows the result and dbg fpu reports it. AmiWind never ships it
    (FPU support library).
  • Map loader: map data is decoded from 16 KiB slices straight into its
    final structures instead of being staged whole, lowering the memory peak while
    a map loads; every map is checked against the loader's heap model when the
    image is built.
  • Measuring tools: dbg rcount renderer counters, the awbench hardware
    benchmark for owners, and a warning when entities beyond the visible-entity
    limit are dropped.
  • New logo and start-up lines: "An open-source RPG engine / for the
    Commodore Amiga".
  • Builder: builds the whole game from your own Morrowind data in one command,
    with first-person hands, mushroom harvest, trees and grass and the Vivec Arena
    on by default; --jobs N reaches every stage; the image step runs in parallel
    with byte-identical results; a build profiler in every build; a known-inputs
    check identifies your Morrowind data, Kickstart and Amiga libraries
    (known inputs); Seyda Neen interiors keep their lantern
    hooks, ropes and ferns, and every left-out placement is receipted.
  • Bug tracking: one register, now 370 records, each with a report page.

What we gained (measured):

  • Per-frame FPU work on a 68040: Balmora's library cexp calls per frame
    (the 68040 has no sine or cosine instruction) went from 3,547 to 0.
  • NPC targeting: once per frame instead of 2-4 times; in Balmora 5 searches
    over 70 NPCs per frame became 1 search with none tested.
  • Map load memory: up to 925 KB less peak heap per map while loading (median
    about 165 KB on Vivec maps), with byte-identical results on all 1,664 shipped
    maps.
  • Builds: the repository builder now builds the release from scratch; the
    image step uses every core instead of one for about 23 minutes per pass.

Emulator numbers are relative until a hardware number exists
(BENCH-JIT-PROFILE-32).

Vivec Arena

The preview is one frame centred on the Arena canton (local +-1536 units, fog at
540). Objects whose footprint reaches into the frame are kept, so the Arena sits
among the edges of the Redoran, Telvanni, St. Delyn, St. Olms and Foreign Quarter
cantons; those end in a straight cut at the frame edge. Residents stand, the
stairs climb, and dbg tp vivec_arena lands on the canton top, never in the
water (VIVEC-ARENA-ACTORS-32,
VIVEC-ARENA-TP-ARRIVAL-32). The cantons'
interiors, the rest of Vivec and the link to the open world come with CHIM.

Seyda Neen

Seyda Neen's 66 region maps ship byte for byte as recorded in v0.0.31: the
legacy builder cannot regenerate them, and the world streamer rebuilds Seyda Neen
next, so the legacy builder is not fixed. The builder takes them as a recorded
input (--seyda-recorded), checks them byte for byte after every image pass, and
ships seyda.bsp as the sn029 alias (BUILD-SEYDA-REGEN-30).
Three of them (sn019, sn026, sn035) exceed the loader heap model's reserve
allowance (not the allocation ceiling). They pass the otherwise strict heap gate
through a temporary pre-CHIM bypass pinned by map name and SHA-256
(config/heap-bypass.json), which ends when Seyda Neen moves to CHIM (milestone
M2) (HEAP-SEYDA-OVERLAP-32).

Builder

One command builds the release: tools/build.py with your Morrowind data and,
for Seyda Neen, the recorded v0.0.31 stage. The release image is checked against
a from-scratch build with the same builder (RELEASE_WORKFLOW.md).
Development builds can reuse verified unchanged stages (--reuse-from); releases
are built from scratch (build profile and stage reuse,
parallel host builds).

Repaired in this release, awaiting a playtest check

Known in this build

Vivec:

  • The Vivec Arena preview is a separate area, not connected to the rest of
    Vvardenfell: reach it with dbg tp vivec_arena; walking off its edges leads
    nowhere. Joining Vivec to the world is CHIM work (milestones M3/M4).
    VIVEC-ARENA-FRAME-EDGE-32: neighbouring canton bodies end at the frame edge, in view
  • TOWN-EDGE-UNBUILT-32: Vivec and the open world are not merged: leaving the Vivec area (for example in noclip) drops the player into a bare open-world map (flat grey ground, no flora), and Vivec cannot be seen from the open world. Fix with CHIM (M3/M4)
  • VIVEC-ARENA-WATER-FALL-32: The sea ends at the Arena canton edge: sky below the horizon, and the player falls out of the area through the water
  • VIVEC-ARENA-FLOATING-NPC-32: A resident by the Telvanni canton stands at a walkway end with sky drawn below his feet
  • VIVEC-CANTON-SKY-HOLE-32: Sky shows through a canton wall seen from below
  • VIVEC-DISTANT-BRIDGES-32: Distant bridges between the Vivec cantons may not be drawn
  • IMPORT-TOWN-NO-INTERIORS-32: No Vivec interiors; every Arena door says "Interior unavailable"
  • HARVEST-EXTRA-TOWNS-32: No harvestable mushrooms in the Vivec Arena preview
  • FOG-TOWN-HEAVY-32: Heavy fog at the Vivec Arena (the canton is larger than the 540 fog band)

Seyda Neen:

  • BUILD-SEYDA-REGEN-30: Seyda Neen ships as the recorded v0.0.31 maps (owner decision); seyda.bsp is the sn029 alias
  • HEAP-SEYDA-OVERLAP-32: sn019, sn026 and sn035 pass the heap gate through the temporary pre-CHIM bypass, until CHIM M2
  • HARVEST-SEYDA-HEAP-REFUSED-32: Seven Seyda Neen sub-cells have no harvestable plants (sn018, sn019, sn020, sn021, sn026, sn035, sn055), six of which had them in v0.0.31
  • SEYDA-LANTERNS-MISSING-31: Seyda Neen lanterns light the night but are not in its maps

Stairs (most stairs work, including the Vivec Arena's; these flights may block
the player):

Game:

  • QC-AW-FLAME-SPAWN-32: The game logic prints harmless "No spawn function for aw_flame" errors to the console in rooms with fires (Census office: 51 flames)
  • CENSUS-LOAD-SLOW-32: With the remote debugging console enabled (aw_remote 1, test sessions) those errors make such loads slow; normal play is not affected (Census office 0.13-0.16 s in FS-UAE)
  • REMOTE-CONSOLE-LOG-COST-32: With the remote debugging console on, every console line costs about 7-18 ms in FS-UAE (test sessions only)
  • DEBUG-TP-SHIP-FREEZE-32: The game froze once on dbg tp balmora issued 6 s after dbg tp prisonship (seen once, debug path)
  • DEBUG-MAP-SAVE-VALIDATION-32: After a debug map load of an open-world map the autosave fails validation (earlier saves are kept)
  • WAIT-NOCLIP-MESSAGE-32: In noclip, T (wait) is refused with a message about registration, dry ground and speech instead of the real reason
  • CONSOLE-HISTORY-ARROWS-32: Console Up/Down recalled nothing on one FS-UAE setup; check with this build
  • HORIZON-FLORA-SPRITES-32: The selectable skyline fill is experimental and buggy
  • HORIZON-HOLES-31: Distant buildings break up against the sky
  • TOWN-VIS-OCCLUSION-31: Converted buildings, rooms and rocks do not block Quake visibility; tested occluders and hints give negligible benefit with the current partitioning, town occlusion is deferred pending a better approach
  • LAMPS-RANGE-31: Only the nearest lamps light up at night
  • NIGHT-0400-DARK-31: Exterior suddenly much darker around 04:00

Disks, emulators and hardware: