github idren2023/swbf-vr v0.1.1
v0.1.1 (test build)

pre-release41 minutes ago

Second test build of the VR mod for Star Wars Battlefront (2004, Steam "Classic 2004").

Install: put dinput8.dll in the game's GameData folder, next to Battlefront.exe (replace the old one). Start SteamVR, then the game. Controls are in the README.

Changes since v0.1.0:

Fixes

  • Stutter in vehicle pilot seats: every pilot seat of a hover vehicle, flyer or
    walker had a ~110 ms frame every ~2 s (turrets did not). The once-a-second
    look-up of the seat's aimer scanned memory on the render thread; it now caches
    what it found and skips what cannot match.
  • The grey gun turret's gun shook back and forth while held still: the turret's
    input flipped direction every update when the gun was at rest. It now keeps its
    direction until the gun actually turns.
  • The hit flash on the reticle now shows only while the aiming line is on.

Walker cockpits

  • AT-ST and AT-AT: HUD screens in both seats; the co-pilot's screens show the
    gunner's view. On Hoth, the Imperial screen frame is now loaded from the game's
    own files (that level does not include it).

Display

  • eye_resolution presets (15:14 eye image; medium = 1920x1792 when SteamVR is
    running) instead of the monitor's mode.
  • fit_window = 1 (off by default): shrinks the game's window to fit the monitor
    when a larger picture is forced.
  • When SteamVR is running at game start, the game now runs on Direct3D 9Ex and
    the eye images go to the headset through shared textures on the graphics card
    instead of through system memory (about 5 ms a frame instead of about 11 ms,
    measured on the desktop). Direct3D 9Ex is part of Windows; nothing to install.
    If the 9Ex device or the sharing is refused (for example a laptop running the
    game on its built-in GPU), the mod falls back to the old path by itself.
    shared_transfer = 0 turns it off.

New defaults

  • virtual_stock = 1 (two-handed aiming with a virtual stock) and
    scope_gesture = 1 (zoom by raising the weapon to the eye) are now on.

Known issue: on Naboo Plains a few grass clumps can flicker on and off; being investigated.

Bug reports are welcome as issues; please attach swbf-vr.log (and swbf-vr-crash.log after a crash) from the game folder.

The DLL was built by this repository's GitHub Actions workflow from the tagged source and carries a build provenance attestation (gh attestation verify dinput8.dll -R idren2023/swbf-vr). The build is reproducible: building the tag yourself gives the same bytes (SHA-256 in dinput8.dll.sha256).

Don't miss a new swbf-vr release

NewReleases is sending notifications on new releases.