Skip to content

ACZero Enhancer v0.24 — Terrain retexturing base

Choose a tag to compare

@MrHammerhed MrHammerhed released this 22 Nov 22:36
· 3 commits to master since this release

ACZero Enhancer v0.24

Highlights

  • 4x HD Terrain & Map Retexturing Engine — Stage 1 (~25% Overall Terrain Overhaul) (acz_hdtex.asi): Native 64x64x1024 terrain tile arrays are now upgraded on the fly to 256x256x1024 BC7_UNORM D3D12 Texture2DArray (with automatic 128x128 / 64x64 ring-buffer safety fallbacks), multi-threaded slice assembly (up to 8 worker threads), .dds_cache acceleration, automatic stock water alpha-mask preservation, and .jpg/.jpeg support.
    • Note on Terrain Roadmap: This is Stage 1 (~25%) of the terrain overhaul. The current 256x256 4x HD tiles will serve as the distant / high-altitude terrain textures in the final rendering pipeline, while close-range terrain will be replaced with PBR materials (Albedo + Normal + Roughness + Height) through a custom D3D12 terrain shader (detailed in docs/MAP_EDITOR_ROADMAP.md).
  • 18 Upscaled 4x HD Maps Included (custom textures.zip): Full 256x256 Stage 1 tile packs (16,868 tiles) covering k00a and m01a–m17a (including shared mission/free-flight/VS variants).
  • Configurable Multi-Stage Fast Startup (FastStartup = 0..3 in enhancer.ini): Bypass the native launcher and controller manual screen, skip intro logos on any button press (FastStartup=1), remove Memory Card UI wait timers and auto-skip logos to the Title Screen (FastStartup=2), or boot straight into the Main Menu (FastStartup=3).
  • Full Dual-Version Compatibility: Automatically supports both acz.exe v1.0.2.1 and v2.0.0.1 (Steam AppID 5370600).

Changelog

enhancer.asi (v0.24)

  • Added multi-stage FastStartup option under [Enhancer] in mods\enhancer\enhancer.ini (default 0):
    • 0: Disabled (vanilla startup flow).
    • 1: Skips the native launcher (e.arc mount & dialog) and controller manual screen (CModePadManual), and hooks CModeWakeLogo::Update so pressing any gamepad button or Enter / Space / Esc skips intro logos cleanly to the Title Screen (CModeTitle) with 6-frame input suppression to prevent accidental auto-advance.
    • 2: Level 1 + removes the 2x30-frame (~1.0s) artificial Memory Card UI timers in CSelectMemorycard and automatically redirects post-save boot straight to CModeTitle.
    • 3: Level 2 + automatically skips both intro logos and the Title Screen straight into CModeMainSelect.
  • Added FastStartup status reporting to enhancer.log and memdump.asi diagnostic summaries (AczEnhancer_WriteStateSummary).
  • Documented technical details and dual-version RVAs in docs/FAST_STARTUP_ARCHITECTURE.md and docs/VERSION_MAP.md.

acz_hdtex.asi (v0.24)

  • Added Hook_UploadTerrainTextureArray (RVA +0x18E940 in v1.0.2.1 / +0x18EFC0 in v2.0.0.1) intercepting g_TerrainTexArray[16] uploads and upgrading matched maps to 256x256x1024 BC7_UNORM Texture2DArray (with automatic 128x128 / 64x64 fallback if the D3D12 upload ring slice is nearly full). This is Stage 1 (~25%) of the terrain overhaul, establishing the distant terrain base layer ahead of close-range PBR material replacement (docs/MAP_EDITOR_ROADMAP.md).
  • Implemented multi-threaded terrain slice assembly (1..8 worker threads) with:
    • Fast .dds_cache direct BC7 block loading (TryLoadFastDdsTerrainSlice) for opaque 256x256 tiles.
    • WIC decoding + BC7 Mode 6 encoding (TryEncodeHdPngTerrainSlice) with automatic bilinear preservation of the stock 64x64 water alpha mask (alpha < 0x80) when replacing water tiles with opaque .jpg/.png textures.
    • Fast bilinear upscaling + solid-block BC7 fast path for any unmatched stock tiles (EncodeStockTerrainTileSlice).
  • Added .jpg and .jpeg texture support in ScanTexturesDirectory() and WIC loading for compact HD terrain packs (mods\textures\terrain\).
  • Documented architecture and workflow in docs/TERRAIN_RETEXTURE_ARCHITECTURE.md.

Tools & Documentation

  • Added py/ACZ_Terrain_Converter.py (v1.0) for exporting seamless context-padded 512x512 terrain sheets (6x6 core + 1-tile border) for 4x AI upscaling and slicing them back into 256x256 FNV-1a hashed tiles.
  • Added docs/TERRAIN_RETEXTURE_ARCHITECTURE.md, docs/FAST_STARTUP_ARCHITECTURE.md, docs/KNOWN_VANILLA_ISSUES.md, and docs/MAP_EDITOR_ROADMAP.md.

Installation / Upgrade

Fresh Install

  1. Download ACZero_Enhancer_v0.24_Release.zip and extract version.dll and the mods\ folder directly into your game root directory (next to acz.exe).
  2. (Optional — if you also use the legacy ACE COMBAT ZERO mod loader 1.2) Rename the legacy version.dll to version_orig.dll next to acz.exe.
  3. Download custom textures.zip (from this release) and actrilogy-hud-upgrade-v1.2.1.zip (from OstrichMods) and place both .zip files inside <GameDir>\mods\ (do not extract them manually).
  4. Launch acz.exe — acz_hdtex.asi will automatically unpack and install all HUD, menu, font, controller glyph, and HD terrain textures into mods\textures\.
  5. (Optional) To enable Fast Startup, edit mods\enhancer\enhancer.ini and set FastStartup=1, 2, or 3.

Upgrading from v0.23.6

  1. Extract ACZero_Enhancer_v0.24_Release.zip over your game directory, overwriting version.dll and mods\enhancer\*.asi (if you want to keep your custom enhancer.ini, manually add FastStartup=0 under [Enhancer]).
  2. Replace mods\custom textures.zip with the new custom textures.zip from this release.
  3. Delete mods\textures\.install_stamp (if present) so the built-in auto-installer extracts the new textures\terrain\ files on next launch.

Known Issues

  • Terrain Overhaul Is Stage 1 (~25%): Current 256x256 HD terrain tiles represent the first pass (destined to act as distant terrain textures). Close-range terrain detail, physical scale at low altitude, and dynamic surface lighting will be addressed in future stages via PBR materials and a custom D3D12 terrain shader (see docs/MAP_EDITOR_ROADMAP.md).
  • First-Load Terrain Cache Warmup: The first time each HD map loads with EnableDdsCache=1, opaque terrain tiles are compiled into .dds_cache (BC7_UNORM), adding a brief one-time load delay. Subsequent loads of the same map read pre-compiled DDS slices directly.
  • m06a (Diapason / Directus) River Shorelines: Narrow rivers can still show stair-stepped edges at very low altitude because the stock 64x64 binary water alpha mask (alpha < 0x80) is preserved directly on top of the 4x HD tiles. High-resolution water alpha masks / shader smoothing are planned for a future update.
  • m03k (The Round Table / Area B7R) Scrubland: Harsh vanilla black-speckle scrubland patterns were replaced with a unified muted desert scrubland texture; subtle 256x256 periodic repetition remains visible from certain altitudes and will be resolved by close-range PBR material splatting.
  • m04k (Juggernaut / Futuro Canal) Terrain Relief: Visual fidelity around the canal banks and bridge shadow is still constrained by the stock low-resolution heightmap geometry (m04k.mha/m04k.mhd).
  • m01a (Glacial Skies) Sector (11, 3): Vanilla m01a.mta contains a coarse texture sector grid mismatch at (11, 3) near Valais Air Base (tracked in docs/KNOWN_VANILLA_ISSUES.md).