Skip to content

About

Portable native 64-bit Vulkan port of Star Trek: Voyager – Elite Force (Singleplayer, Holomatch Multiplayer & Dedicated Server) for Linux, macOS, Windows, and Raspberry Pi 4/5

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

Repository files navigation

OpenHazard

Build OpenHazard Website License: GPLv2

OpenHazard is a modern, portable, native 64-bit Vulkan port and Zero-FBO Direct-FX remaster of Star Trek: Voyager – Elite Force — unifying Singleplayer, Holomatch Multiplayer, and Dedicated Server on a single shared engine and Vulkan renderer for Linux, macOS, and Windows (x86_64 & ARM64), with first-class support for ARM64 SBCs (Raspberry Pi 4 / 5, RK3588, Apple Silicon).

No game data included: You must provide your own legally owned retail files (pak0.pk3–pak3.pk3 and efgamex86.dll) from an original CD or GOG installation.


Screenshots (Raspberry Pi 5 — 1920×1080 Native Zero-FBO Vulkan Direct-FX)

Singleplayer (borg2 — Direct-FX, 4× MSAA, 2× HD ASTC, Normal Maps @ 48 FPS) Live F8 Comparison — Vanilla 2000 (62 FPS) vs. Direct-FX (48 FPS)
OpenHazard Singleplayer Direct-FX Vanilla 2000 vs OpenHazard Direct-FX
Native LCARS OpenHazard Direct-FX Setup Menu Holomatch Multiplayer (Native 16:9 UI + Retail QVM Compatibility)
OpenHazard LCARS Direct-FX Setup Menu OpenHazard Holomatch Multiplayer 16:9

Why OpenHazard?

Port / Method Singleplayer Holomatch MP Native Vulkan Native ARM64 / Pi 5 (16 KB pages) Built-in Bink (.bik)
ioef-cmod No Yes No (OpenGL) Limited No
lilium-voyager No Yes No (OpenGL) Untested No
GOG + Wine / Proton Yes (32-bit x86) Yes Wrapper No (x86 emulation only) Yes
OpenHazard Yes (64-bit native) Yes (Retail QVMs) Yes (Zero-FBO Direct-FX) Yes (4 / 16 / 64 KB pages) Yes (static FFmpeg)

Key Features

  • Unified 64-Bit Engine & Vulkan Renderer (engine/): Built on lilium-voyager + Quake3e renderervk (renderer_vulkan.{so,dylib,dll}) shared across openhazard-sp, openhazard-mp, and openhazard-ded.
  • Pure Zero-FBO Direct-FX Vulkan Pipeline (r_fbo 0 default — 40–60 FPS @ 1080p on Pi 5):
    • Direct-to-Swapchain 4× MSAA + Alpha-to-Coverage (r_ext_multisample 4, r_ext_alpha_to_coverage 1): crisp geometry and floor grates resolved entirely in fast on-chip tile SRAM without offscreen FBO round-trips.
    • Tangent-Space Normal Maps, Crevice Micro-AO & Heightmap Relief (r_normalMapping 1): supports <stem>_nh companion packs with height-gated metallic bevel glints and per-pixel Schlick-Fresnel dynamic lights (r_dlightMode 2).
    • Zero-FBO Fake-Bloom, Volumetric Light-Shafts & Floating Light Motes (r_fakeBloom 1, r_lightShafts 1, r_lightMotes 1): automatic BSP light-fixture extraction with true lamp colors, rendered in a unified single-batch Z-tested additive draw alongside dynamic light coronas (r_dlightFlares 1) and subtle drifting dust motes inside nearby light cones.
    • Phaser & Energy Beam Glow + Per-Dlight Scissor Clipping (r_beamGlow 1): soft additive volumetric glow sheaths, muzzle/impact halos, and compact impact dynamic lights for both Singleplayer poly beams and Holomatch entity beams, accelerated by screen-space per-dlight vkCmdSetScissor tile culling and ARM64 NEON fast inverse-square-root lighting.
    • Soft Radial Floor Contact Shadows (r_contactShadows 1): grounded Gaussian contact shadows beneath Borg, crew, and props with automatic multi-part MD3 deduplication.
    • Enhanced Entity Lighting & Dynamic Metallic Reflection Sheen (r_entityLighting 1, r_envSheen 1): Half-Lambert wrap shading, grazing rim light, directional specular, and view-reflection Fresnel metallic sheen on Borg armor, crew, and view-weapons (zero GPU cost).
    • Depth-Sliced Atmospheric Haze, 2D Vignette & Peripheral Dlight Glow (r_atmosphere 1, r_vignette 0.12, r_dlightGlow 1): subtle room-tinted spatial depth haze and cinematic 3D-scene edge shading that never darkens the 2D HUD.
    • Zero-Subpass Filmic S-Curve Tonemap + IGN Anti-Banding Dither (r_tonemap 1, r_dither 1): pure in-shader filmic highlight roll-off and 3-op Interleaved Gradient Noise dithering.
    • Live F8 A/B Toggle & LCARS OpenHazard Setup Menu: Press F8 anytime to toggle between Vanilla 2000 and Direct-FX + 2× HD ASTC without touching your saved config (oh_restore returns to your everyday settings), or tune every Direct-FX, Audio, and Restored Content option live inside the native bilingual (DE/EN) LCARS Setup menu.
  • Native Hardware-ASTC Texture Packs (KTX1) & Ultra Upscaler Tooling (tools/): Automatic textureCompressionASTC_LDR loading (r_ext_compressed_textures 1, r_hdTextures 1) for 2×/4× HD .ktx ASTC packs with precomputed mipmaps (~70% VRAM savings on Pi 4/5 & Apple Silicon), 16× Anisotropic Filtering, hardware LOD bias (r_mipLodBias -0.35), plus an optional Transformer upscaler pipeline (tools/setup-ultra-upscaler.sh & tools/upscale-ultra.py using 4xNomos8kHAT-L_otf + 4xNomos8kDAT).
  • Singleplayer + Skippable Cutscenes & Built-in Bink: Native 64-bit efgame / efui modules (efspconfig.cfg) with a statically linked, LGPLv2.1+ Bink-only FFmpeg 7.1.1 decoder, instant cutscene & FMV skipping (Space/Enter/ESC/Gamepad), and true Hor+ Widescreen FOV (cg_fovAspectAdjust 1).
  • Retail Mission Fixes & Restored Cut Content (g_missionFixes 1, g_restoreCutContent 1):
    • Mission Fixes (g_missionFixes 1): Runtime fixes for 11 confirmed retail campaign/script bugs (including trigger/paintarget typos and the _brig friendly-fire transition & crew spawn race) — all without modifying retail .pk3 files.
    • Restored Cut Content (g_restoreCutContent 1, toggleable in LCARS Setup → SYSTEM / AUDIO → RESTORED CONTENT / GESTR. INHALTE):
      • borg3 3rd Lt. Foster Path (Mercy Kill): Restores the cut shootable Foster path (cinema_findfoster_killed + cinema_foster_killedfoster) with original EN/DE Jurot & Seven dialogue and savegame-safe cross-level campaign consistency across borg5, borg6, forgeboss, and voy13.
      • forgeboss Expanded Finale: Restores the cut Borg & assimilated Foster intervention (spawnborg / borgbattle / fosterborgdead with both EN/DE voice branches and softlock failsafe) plus the cut 4th Vohrsoth chest-beam attack (VLS_CHEST_BEAM) and QuadLobber OOB bugfix.
      • All 10 Holodeck Programs & Voyager Library Forge Seed: Unlocks the 3 commented-out Holodeck missions (Chang – Camelot, Biessman – High Noon, Tuvok – Klingon Temple) and 3 hidden bonus maps (Captain Proton 2/Beta, Deck 15 – Borg Slayer, Voyager Brig) in a balanced 5+5 LCARS menu, plus the cut Forge Seed / Forge-Saat 3D library entry.
      • Voyager Scenes & Bonus Weapons Cheat: Restores voy4 Biessman "Just making sure!" (voy4/recon.ibi), voy16 interactive Doctor dialogue (voy16/needhealth.ibi), and the cheat give bonusweapons unlocking all 8 cut/NPC weapons with first-person viewmodels (scroll-wheel selectable).
  • 100% Retail Multiplayer Compatibility: openhazard-mp (hmconfig.cfg) and openhazard-ded (hmconfig_server.cfg) execute unmodified retail QVMs (ui.qvm, cgame.qvm, qagame.qvm) via native ARM64 (vm_aarch64.c) and x86_64 (vm_x86.c) JIT compilers, with active community master servers (master.stvef.org, master.stef1.daggolin.de, efmaster.tjps.eu) and dynamic libcurl HTTP fast map downloads.
  • Audio & Cross-Platform Portability: Native OpenAL 3D spatial audio (s_useOpenAL 1) with OpenAL Soft HRTF (s_alHrtf), multithreaded SMP rendering (r_smp 1), dynamic page-size JIT (4 / 16 / 64 KB), 64 KB ELF alignment, and automatic VK_KHR_portability_subset for macOS MoltenVK.

Portable Downloads (GitHub Actions)

Every push and release tag builds 6 self-contained, single-folder portable archives via .github/workflows/build.yml — no installer or .deb required:

Platform Architecture Portable Archive
Linux x86_64 OpenHazard-1.1.1-linux-x86_64.tar.gz
Linux (Raspberry Pi 4/5, SBCs) arm64 OpenHazard-1.1.1-linux-arm64.tar.gz
macOS (Apple Silicon) arm64 OpenHazard-1.1.1-macos-arm64.tar.gz
macOS (Intel) x86_64 OpenHazard-1.1.1-macos-x86_64.tar.gz
Windows x86_64 OpenHazard-1.1.1-windows-x86_64.zip
Windows arm64 OpenHazard-1.1.1-windows-arm64.zip

Game Data Directory

Place your retail pak0.pk3–pak3.pk3 and efgamex86.dll inside baseEF/ (or run ./openhazard-import-data.sh /path/to/setup_star_trek_voyagertm_elite_force_1.2.exe):

  • Linux: ~/.local/share/openhazard/baseEF/ (or --data-dir <path> / OPENHAZARD_DATA_ROOT)
  • macOS: ~/Library/Application Support/OpenHazard/baseEF/
  • Windows: %APPDATA%\OpenHazard\baseEF\ or portable baseEF\ right next to openhazard-sp.exe

Building from Source (Linux / macOS)

Prerequisites (Debian / Ubuntu / Raspberry Pi OS)

sudo apt install build-essential cmake ninja-build pkg-config \
  libsdl2-dev libopenal-dev libcurl4-openssl-dev libvulkan-dev \
  innoextract # optional, for importing GOG .exe installers

Build & Package

# 1. Build minimal LGPLv2.1+ Bink-only FFmpeg static libraries
./cmake/build-bink-ffmpeg.sh

# 2. Configure and build (Release + LTO, portable ARMv8.0-A / x86-64 baseline)
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build -j"$(nproc)"

# 3. Create portable archive (.tar.gz)
cpack --config build/CPackConfig.cmake -B build

# 4. Import retail data (GOG installer .exe or existing BaseEF folder)
./packaging/openhazard-import-data.sh /path/to/setup_star_trek_voyagertm_elite_force_1.2.exe

# 5. Launch (supports --fullscreen, --windowed, --wayland, --x11)
./packaging/openhazard.sh       # Singleplayer (Vulkan)
./packaging/openhazard-mp.sh    # Holomatch Multiplayer (Vulkan)
./packaging/openhazard-ded.sh   # Dedicated Server

Key Direct-FX Console Variables (CVARs)

CVAR Default Description
r_fbo 0 Zero-FBO Direct-FX default (0 = maximum FPS on Pi 5 & desktop; 1 = optional legacy FBO path)
r_ext_multisample 4 Direct on-chip MSAA sample count (0, 2, 4, 8) with Alpha-to-Coverage (r_ext_alpha_to_coverage 1)
r_normalMapping 1 Tangent-space normal mapping, crevice micro-AO & heightmap relief (r_normalStrength 1.0, r_normalSpec 1.0)
r_fakeBloom 1 Zero-FBO batched Gaussian lamp halos (r_fakeBloomIntensity 0.60) + dynamic light coronas (r_dlightFlares 1)
r_lightShafts 1 Zero-FBO volumetric fake light-shaft cones (r_lightShaftsIntensity 0.50) + drifting light motes (r_lightMotes 1)
r_beamGlow 1 Zero-FBO additive glow sheaths, impact halos & compact impact dlights on Phaser and energy beams
r_contactShadows 1 Zero-FBO soft radial floor contact shadows under characters & props
r_entityLighting 1 Half-Lambert wrap, rim highlight & specular on characters/weapons + dynamic metallic sheen (r_envSheen 1)
r_atmosphere 1 Zero-FBO room-tinted depth-sliced atmospheric air haze (r_atmosphereIntensity 0.50)
r_tonemap 1 Zero-subpass in-shader Filmic S-curve tonemap + 3-op IGN anti-banding dither (r_dither 1)
r_vignette 0.12 Zero-FBO 2D 3D-scene edge vignette (0.0–0.5) + peripheral dlight edge glow (r_dlightGlow 1)
r_gpuAutoTune 1 Auto-tune Direct-FX MSAA/AF profiles for Pi 4, Pi 5, and CPU rasterizers (0 = manual override)
r_swapInterval 2 Vulkan present mode: 0 = Immediate, 1 = VSync FIFO, 2 = Low-latency Mailbox
s_useOpenAL 1 OpenAL 3D spatial audio with HRTF (s_alHrtf, automatic SDL fallback)
g_missionFixes 1 Runtime fixes for confirmed retail SP campaign & _brig script bugs (no .pk3 edits)
g_restoreCutContent 1 Restores cut SP content (borg3 3rd Foster path, forgeboss Borg finale & chest-beam, 10 Holodeck maps, Forge Seed library entry, voy4/voy16 scenes, give bonusweapons)

Licenses & Credits

  • Engine & Vulkan Renderer (engine/): GPLv2 (LICENSE) — based on id Tech 3, ioquake3, lilium-voyager, Quake3e, and VoyagerSP.
  • Embedded Bink Decoder (cmake/build-bink-ffmpeg.sh): LGPLv2.1+ (FFmpeg 7.1.1, minimal Bink-only build).
  • Singleplayer Game Modules (game-sp/): Raven Software STEF Game Source License (game-sp/STEF Game Source License.doc).

See CREDITS.md for full attribution.

About

Portable native 64-bit Vulkan port of Star Trek: Voyager – Elite Force (Singleplayer, Holomatch Multiplayer & Dedicated Server) for Linux, macOS, Windows, and Raspberry Pi 4/5

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages