Preservation & Port Design Document: HMBackToNature-Recomp
- Design Profile:
PRESERVATION(RECOMP) - Current Shipped Baseline:
v0.5.0(Implemented) - Active Target Horizon:
v1.0.0(Locked for v1.0.0) - Charter & Roadmap Anchors: CHARTER.md · ROADMAP.md · ARCHITECTURE.md
1. Product Vision & Core Capabilities
Clean-room static SlateOne (MIPS32 R3000A + GTE) recompilation module for North American retail release SLUS-01115, built on reSlate and reEngine.
Shipped & Scoped Capability Pillars
- Clean-Room Research Upstream: Consumes clean binary specifications, typed C headers, and lift metadata produced by the standalone sister research repository
MeadowValley-BackToEarth-SlateOne-04-Decomp(v0.2.1—52warning-free C modules,3,828indexed functions, and12deterministic fixed-point math and simulation checks). Its exported clean-roomMeadowValley-BackToEarth-SlateOne-04.decompbundle feeds the local AOT recipe directly. - Static Recompilation Engine Stack: Powered by
reSlate(staticMIPS32 R3000A+GTEahead-of-time compiler and live runtime translator, integrated cleanly viareEngine's zero-daemon launcher). Never a generic compatibility emulator — guest functions compile natively ahead of time or throughreSlate's guarded runtime translator, with interpreter execution isolated strictly to explicit developer verification mode. - Playable Today (
v0.5.0): Verifies your own retailSLUS-01115disc, compiles native local AOT code with100%pure-static14/14binary readiness (isPureStaticReady = true, zero interpreter/JIT dispatch understaticAotOnly), validates4-scene trace parity (TitleScreen,FarmhouseInterior,OutdoorFarmFreeRoam,Year3EvaluationAndCredits), persists isolated Slot 1 (bu00:) and Slot 2 (bu10:) in-game diary.mcrsaves +.rstquick-saves via--save-dir, protectsPart 11/Part 27overlays with.text-only SHA-256 verification +MidEntries, renders acrossOpenGL 3.3,Vulkan,ParallelCpu, andSoftwarebackends, adds Smart Isometric16:9/21:9framing (<= 320 pxindoor clamp +4:3HUD pin), drives60–240+ Hzcamera/farmer/animal/NPC smoothing with480i+ Fast-Forward suppression and4KBdirty-page rollback alongside locked60 HzSPU audio, adds360°analog radial deadzone + zero-RAM haptic rumble, supports audio-safeFast-Forward(F6),Cutscene Skip(F7), and<dataDir>\hdpacks\(p11_animlshielded), passes131/131synthetic unit & certification tests (0warnings) across10/10tri-backend fixtures, and ships a pure Win32 offline Setup executable plus standalonePortable.zip. - Clean-Room Local AOT Compilation: Ships zero generated C# files or compiled retail libraries; compiles native
.NET 8.0code forSLUS_011.15and13overlays on first launch inside gitignored<dataDir>\cache\. - Smart Isometric Framing & High-Refresh Smoothing: Widens outdoor isometric gameplay scenes to
16:9or21:9, clamps compact<= 320 pxinteriors and480iscreens to4:3, pins HUD/dialogue boxes inside the4:3safe zone, and interpolates camera, farmer, coop, and barn/NPC positions up to240+ Hzwith zero guest RAM mutations. - Dual-Slot Container & Hardware Guards: Parses the
32-partitionA_FILE.HDT/A_FILE.BINarchive, tracks co-residentSlot A(0x800B7E20) andSlot B(0x8012DDE8) overlays cleanly without.bssoverlap tamper alerts, shields dynamicp11_animl(x >= 0x140) VRAM uploads in<dataDir>\hdpacks\, and validates0x0Esprite banks,Part 9audio soundbanks, andSTR/01..04.XAstreams.
2. Clean-Room BYO-Media Pipeline & Runtime Experience
- BYO-Media Verification Gate: Validates user-supplied retail media against expected SHA-256 digests locally before compiling or caching AOT modules under
<dataDir>/cache/. - Shared Host Presentation: Leverages
reEngine.Hostand platform engine slices for low-latency native rendering, accurate audio mixing, modern controller/keyboard prompts, and non-destructive save management. - Purist vs. Enhanced Balance: Preserves authentic timing and simulation behavior by default while exposing optional widescreen, display filter, and quality-of-life toggles.
3. Data, Configuration & Failure-Mode Contracts
- Configuration Precedence: Explicit CLI flags (
--data-dir,--config,--log-dir,--port) override environment variables, which override local workspace defaults—ensuring automated tests never touch live production state. - Graceful Degradation: Missing optional inputs, offline endpoints, or corrupted local cache files surface clear recovery guidance rather than silent data loss or unhandled crashes.
4. Design Change Log
2026-11-30(v0.5.0->v1.0.0): Synthesized baseline living design specification from shipped architecture, feature registry, and roadmap horizons.