Interfaces & Contracts — MeadowValley BackToEarth (SlateOne) 04 Recomp
- Last Updated:
2026-11-29(Implementedv0.5.0->v1.0.0Confirmed Gold ->v2.0.0Summit) - Primary Architecture Doc:
ARCHITECTURE.md - SDK Pins (
Dev/lib/sdk-manifest.json):Foundation v0.6.0·reEngine v0.7.0·reSlate v0.4.0
1. Clean-Room Manifest & Recipe Contracts (v0.5.0 Implemented)
| Artifact | Shipped v0.5.0 Specification |
Constraints & Validation |
|---|---|---|
Dev/module.recomp.json & Manifests/module.recomp.json |
moduleId: "meadowvalley-backtoearth-slateone-04", title/displayName: "MeadowValley BackToEarth (SlateOne) 04", version: "0.5.0", engineId: "reSlate", engineVersion: "0.4.0", compatibleEngineTrack: "0.4.x", supportedEngineTracks: ["0.4.x", "0.3.x"], entryAssembly: "MeadowValley-BackToEarth-SlateOne-04.recomp.dll", moduleTypeName: "HMBackToNatureRecomp.Module.HMBackToNatureGameModule", preloadRomDir: "data/rom" |
Byte-identical across root Dev\ and embedded Manifests\ (enforced by unit test) |
Dev/src/HMBackToNatureRecomp.Module/Manifests/aot-recipe.json |
Derived from MeadowValley-BackToEarth-SlateOne-04.decomp (v0.2.1); 14 modules, 4,334 unique sorted entry addresses incl. 0x8002C5B8, moduleId: "meadowvalley-backtoearth-slateone-04", generatedCacheAssemblyName: "meadowvalley-backtoearth-slateone-04.Generated.dll", sleighSpecId: "MIPS:LE:32:R3000A_GTE" |
Zero retail bytes / *.g.cs |
Dev/decomp.manifest.json |
appId: "meadowvalley-backtoearth-slateone-04", version: "0.5.0", upstreamResearchPath: "HarvestMoonBackToNature-PlayStation", goalRecompTier: "R5", d4ParityTier: "D4a", metrics.readableFiles: 52 |
Read-only Tier R reference |
Dev/app.manifest.json |
appId: "meadowvalley-backtoearth-slateone-04", version: "0.5.0", activeMilestone: "0.5.0", sdkVersion: "0.6.0", engineId: "reSlate", engineVersion: "0.4.0", compatibleEngineTrack: "0.4.x", reEngineVersion: "0.7.0", supportedEngineTracks: ["0.4.x", "0.3.x"], umbrellaSubpath: "StreamItAll\\reEngine\\games\\MeadowValley-BackToEarth-SlateOne-04" |
Audited via enforce_fleet.ps1 |
Dev/src/HMBackToNatureRecomp.Installer/installer.manifest.json |
schemaVersion: 2, manifestType: "installer-manifest", version: "0.5.0", allowAutoStart: false, allowLegacyMigration: true, layoutMode: "single-line", supportedProfiles: ["lightweight", "full"], secondaryPickers: ["--reengine-dir"] (%LOCALAPPDATA%\Programs\StreamItAll\reEngine, reSlate v0.4.0) |
Pure Win32 wizard (WizardControl / InstallerWizardForm.RunDialog() + MessageBoxW); InstallerPathResolver suite-first + Wizard auto-sort + misnested self-heal |
Dev/assets/byo_media_sha256.json |
8 required ISO entries + optional license_data.dat (28,032 B) |
Matches standalone_integrity.json |
2. Module Entry Interfaces (HMBackToNatureGameModule)
Implements IRecompGameModule, IModuleInputProfileProvider (7 ControlOptions across Controls & Video tabs), INativeGameActionHook (NativeGameActionContext.ModuleOptions -> ViewportPolicy + 360° analog radial deadzone), IRecompWidescreenProvider, IRecompQuickSaveProvider, ISkipCutsceneHook, and IDisposable:
- Pure-Static Readiness & Multi-Scene Trace Parity (v0.5.0): HMBackToNatureGameModule.EvaluatePureStaticReadiness delegates to Slus01115PureStaticReadiness.Evaluate (14/14 resident + Slot A/B overlays + PsxCpu.EvaluatePureStaticReadiness(), requiring staticAotOnly and jit=0, threadedIr=0, interp=0); Slus01115TraceParityVerifier.VerifyScene reads non-intrusive guest RAM invariants across TitleScreen (0x0D), FarmhouseInterior (0x0E), OutdoorFarmFreeRoam (0x02/0x06/0x13/0x14), and Year3EvaluationAndCredits (0x10/0x04).
- 360° Analog Deadzone, Zero-RAM Haptic Rumble & --save-dir Isolation (v0.5.0): Slus01115NativeActionHook.ComputeRescaledAnalogVector rescales circular stick input using stickDeadzoneInnerPercent (5–50%, default 15%) and stickDeadzoneOuterPercent (60–100%, default 95%) around 0x80 (0x5C..0xA4 neutral window); Slus01115HapticRumbleController.ObserveTickEnd captures PsxCpu.Joypad.GetMotorState(0) (0x42–0x4D) strictly outside InSubTickRender (HasGuestRamMutation == false); SaveMigrationHelper.MigrateLegacySavesAndMemcardsIfNeeded routes bu00:/bu10: memcard_meadowvalley-backtoearth-slateone-04_slot{1,2}.mcr and .rst files cleanly inside --save-dir via MemCardMcrStore.ResolveSaveBaseDir / AppEnvironment.AssertPathContained.
- Overlay QuickSave Chunk: "OVLY" (DualSlotOverlayChunkCodec, "HMOV" v1) captured/restored inside "RST1"+"RSTX" save-states alongside reSlate v0.4.0 "MCD2" memory-card chunks (with BIOS A0:0x1A strncpy diary saves BASLUS-01115-FARM0..3).
- .text-Scoped Overlay Adapter (v0.3.0 / v0.3.3): TextScopedOverlayModuleAdapter : ITextScopedOverlayRecompModule, IRecompCompiledEntryLookup constrains both legacy LoadRamAddress/ContentSizeBytes/ContentSha256Hex and VerifiedTextStart/VerifiedTextSizeBytes/TextSha256Hex strictly to immutable .text segments so writable overlay .data/.bss never invalidates OVL_part11 AOT residency.
- Smart Isometric Widescreen Provider (v0.4.0): IsometricVramGuard.IsTrueWidescreenSupportedInCurrentRelease = true delegates to SmartIsometricViewportPolicy.IsWidescreenAllowed / EvaluateFraming (widening outdoor isometric scenes to horPlus16By9/horPlus21By9, clamping compact <= 320 px indoor rooms, 480i screens, area loads SubmodeStateAddr == 1, fades 0x8005E3C4 != 0, and modal/dialogue screens to 4:3, and computing centered 4:3 HudSafeRect).
- 60–240+ Hz Sub-Tick Hook & ISkipCutsceneHook (v0.4.0): Slus01115SubTickHook runs with enableLiveSubTickExecution: true (gated behind IsEnhancedFrameRateEnabled && !IsFastForwardEnabled && !480i), interpolating HmCameraIsoState (0x80061DE8), Farmer (0x80071B00), Chicken Coop (0x800742EC, 10x0xB4), and Barn/NPC actors (0x800749F4, 20x0xB8) via Slus01115EntityInterpBuffer (MaxTeleportDelta = 65536) with Slus01115SubTickRamGuard 4KB dirty-page bitmask rollback (0 guest RAM write violations). Slus01115CutsceneSkipHook (ISkipCutsceneHook) skips splash/intro (0x01/0x04/0x05), Title intro (phase < 7), and g_core_event_script_ctx (0x800A0378 +0x04/+0x118) while protecting free-roam gameplay, diary/memcard (0x07/0x08/0x10), and Title Menu Select (phase == 7).
- Clean-Room <dataDir>\hdpacks\ Hook (v0.4.0): HdTexturePackShield wraps path-contained HdTexturePackStore.FromDataDirectory (AppEnvironment.AssertPathContained, no reparse points) and shields dynamic p11_animl (vramX >= 0x140 / (texPage & 0x0F) * 64 >= 0x140) VRAM uploads from static (clutSha256Hex, rectSha256Hex) overrides.
- Gameplay Context, VSync, Cadence & Native Action Hook: Slus01115InputProfile.IsGameplayContextActive(IReStationCpu) (and Slus01115CadenceHelper.IsNonGameplayOrTransition) gates Free-Roam against ActiveOverlayIdAddr = 0x8005E39C (0x02, 0x06, 0x0E, 0x0F, 0x13, 0x14) + SubmodeStateAddr = 0x80070CC0 (0, 2, 4, rejecting 1), and rejects modal UI via DialogueActiveAddr = 0x8006C904, CoreEngineFlags0Addr = 0x8006C844 & 0x18000000, HudInventoryStateAddr = 0x8012D52C, ShopMenuStateAddr = 0x8012D79C, Part11UiStateAddr = 0x80126FE0, Part11MapUiModalAddr = 0x80128420, and Part11UiMenuModeAddr = 0x801273DC (excluding PlayerStatusFlagsAddr = 0x80071A6C 0x20000000). Slus01115VSyncHelper handles 0x80032CFC vs 0x800575D4, < 64-cycle VBlank remainders, and cpuEx.Pc entry/return alignment on reSlate v0.4.0 (131/131 Release & Debug unit tests passing, 0 warnings).
3. Configuration (data\config\settings.json) & Schema B (21 IDs / 15 UI Rows)
SettingsMigrator (upgraded to SettingsMigrationHelper.CanonicalRelativePath = "config/settings.json" in v0.3.0, preserving flat <dataDir>\settings.json non-destructively and aliasing legacy appId: "hmbacktonature-recomp"):
| Setting Key | Baseline Default | Notes & Future Gates |
|---|---|---|
schemaVersion |
2 |
Auto-migrated with .bak.json backup in data\config_history\ (UTF-8 no-op fast-path in SettingsMigrator) |
useGlobalFormatRules |
true |
Standard global keybind drawer & format sync |
backendId |
"opengl" |
"opengl" | "vulkan" | "parallelCpu" | "software" ("gl" and "parallel-cpu" aliases normalized) |
aspectRatioMode / isWidescreen16By9 |
"nativePar" / false |
"nativePar" | "fourByThree" | "squareInteger" | "nativeFit" | "horPlus16By9" | "horPlus21By9"; isWidescreen16By9 mirrors "horPlus16By9" |
overscanCropPx |
{0, 0, 0, 0} |
{ top, bottom, left, right }, each clamped 0..64 |
isHdTexturePackEnabled |
false |
Enables <dataDir>\hdpacks\ lookup (HdTexturePackShield) |
isFastForwardEnabled / fastForwardMultiplier |
false / 2.0 |
Audio-safe Fast-Forward toggle & multiplier clamped 2.0..4.0 (F6 / Tab_System) |
frameRateMode |
"original" |
"original" (TargetFps=30 decimation + 60 Hz SPU) vs "enhanced" (60–240+ Hz sub-tick smoothing) |
controllerDpadMode |
"quickActions" |
"quickActions" | "dpadWalkStickRun" | "stickWalkDpadRun" (ControlOptions) |
isometricMoveMode |
"cropGrid" |
"cropGrid" | "screenSpace" (ControlOptions) |
isRumbleEnabled |
true |
Enables committed-tick DualShock haptic rumble observer (Slus01115HapticRumbleController) |
cddaVolume |
1.0 |
Clamped 0.0..1.0 (matches --cdda-volume) |
padPort1Type / padPort2Type |
"analogDualStick" / "none" |
"none" | "digital" | "analogDualStick" (--pad1-type, --pad2-type) |
metadataJson module keys (v0.4.0–v0.5.0) |
"320", "true", "true", "15", "95" |
indoorWidthClampPx ("256".."640"), isHudPinned4By3 ("true"|"false"), shouldSuppress480iSmoothing ("true"|"false"), stickDeadzoneInnerPercent ("5".."50"), stickDeadzoneOuterPercent ("60".."100"), plus controllerDpadMode / isometricMoveMode |
modernActionBindings / modernControllerBindings / keyBindings.controllerBindings |
21 IDs (15 UI rows) + 1:1 Gamepad |
KBM [1st, 2nd, 3rd] (4..511, mouse/wheel 1001..1007), Modern Gamepad (2001..2032, move* defaults DPadUp..DPadRight, map [Back, Touchpad], journal [R3], callMount/callCompanion []), and nested keyBindings.controllerBindings (2001..2032 or 0 cleared) across Global 1:1 and Game 1:1 |
Data Dictionary (/define) Gates
- Completed (
v0.3.0/v0.4.0/v0.5.0): RegisteredallowLegacyMigration,secondaryPickers,isHdTexturePackEnabled,clutSha256Hex,rectSha256Hex,texPage,aspectRatioMode,indoorWidthClampPx,isHudPinned4By3,shouldSuppress480iSmoothing, and verifiedv0.5.0keysisRumbleEnabled,cddaVolume,padPort1Type,padPort2Type,stickDeadzoneInnerPercent,stickDeadzoneOuterPercent,saveDir,isPureStaticReadyin the canonical Data Dictionary (metadataJsoncarries module-specific keys cleanly). - Before
v2.0.0Coding: Add"recomp-achievements"tomanifestTypeenum and registerachievementId,achievementPoints,unlockedAtUtc,triggerCondition,isHiddenAchievement.
4. Launcher, Installer CLI, Exit Codes & Certification Fixtures
Launcher (MeadowValley-BackToEarth-SlateOne-04.exe, migrated from HMBackToNatureRecomp.exe)
- CLI Flags:
--engine-dir,--engines-root,--reengine-dir,--suite-dir,--module,--profile <lightweight|full|json>,--migrate-legacy,--confirm-legacy-cleanup,--disc,--open(alias for--disc),--preload-media,--execution-tier <staticAotOnly|aotWithJitFallback|aotWithThreadedIr|jitBringup|interpreterOracle>,--jit-bringup,--force-zero-rwx,--promote-profile <json>(forwarded as--profile <json>),--require-pure-static(maps to--execution-tier staticAotOnly; conflicts with--jit-bringup/ non-static tier ->ExitCode = 2),--backend <opengl|vulkan|parallelCpu|software>,--require-backend,--audio-driver <auto|sdl3|null>,--aspect-mode <nativePar|fourByThree|squareInteger|nativeFit|horPlus16By9|horPlus21By9>,--overscan <l,t,r,b>,--fullscreen,--window,--fast-forward [on|off],--hd-packs [on|off],--rumble [on|off],--no-rumble,--cdda-volume <0..1>,--pad1-type <none|digital|analogDualStick>,--pad2-type <none|digital|analogDualStick>,--save-dir,--scale <1|2|4|8>,--fps-mode <original|enhanced|lockedCap|unlocked>,--target-fps <n|unlocked>,--vsync [on|off],--no-vsync,--frames,--data-dir,--config,--log-dir,--port,--tray-only,--dry-run,--verify,--doctor,--fixture,--dump-audio,--dump-screenshot,--open-settings,--enable-logs,--show-fps,--wait,-v|--version,-h|--help. (--automation-port/--automation-tokenDebug/Test only, automatically waited viaShouldWaitForPlayerExit.)
Installer (*-Setup-v<Ver>-win-x64.exe, AllowAutoStart = false)
- CLI Flags:
--install-dir/--dir,--profile <lightweight|full>,--reengine-dir,--suite-dir,--engine-dir,--silent,--verify,--uninstall(synchronous in-place uninstall viaStandardInstallerHost.Run+RemoveReadyMarkerIfPresent),--purge-data,--dry-run,--data-dir,--config,--log-dir,--skip-bootstrap,-h|--help,-v|--version(--automation-port/--automation-tokenstrictly Debug/Test-only). - canonical 7-File
Releases\Bundle (v0.3.0+):*-Setup-v<Ver>-win-x64.exe,*-v<Ver>-win-x64-Portable.zip(zero Setup EXE inside),README.md(compiled fromUSER_GUIDE.md),FEATURES.md,RELEASE_NOTES.md,CHANGELOG.md, andSHA256SUMS.txt.
Exit Codes
0 Success / Help / Version · 1 General runtime or --verify fault · 2 Bad CLI usage / disallowed Release --automation-port · 3 Fail-closed AppEnvironment / InstallerRuntimeContext containment violation · 4 Missing engine/module or SLUS-01115 media/SHA mismatch · 5 --jit-bringup assert/spin watchdog · 6 Unavailable --require-backend (vulkan/parallelCpu) · 130 User cancelled (SIGINT).
Tri-Backend Certification Fixtures (v0.5.0 Enhanced RC -> v1.0.0 Confirmed Gold)
| # | Fixture ID | Empirical Target & Numeric Gate (opengl, vulkan, parallelCpu) |
|---|---|---|
| 1 | boot_title |
9/9 disc digest checks, 0 fallbacks at 0x8002C5B8, 480i smoothing inhibit, steady 30/60 Hz cadence |
| 2 | new_game_mayor_intro |
Opening dialogue, house interior (<= 320 px clamp, 0 void bleed), naming screen & single-edge input |
| 3 | farm_turnip_field |
Spring Day 1 crops/stamina/hydration, 0x0E sprites, p11_animl (x >= 0x140) protection, D4b parity |
| 4 | town_dual_slot_transition |
Mineral Town Slot A (Part 11) + co-resident Slot B (Part 15/30) transitions (< 2 ms stall, jit=0) |
| 5 | part9_vab_xa_audio |
39 VABp / 36 SEQ + STR/01..04.XA stereo + 0x180..0x1AA XA fade attenuation (0 underruns) |
| 6 | festival_horse_race_and_cooking |
High-entity Slot B swaps, timer parity, 360° analog deadzone (0x5C..0xA4) & 0x42–0x4D rumble |
| 7 | mine_waterfall_and_hot_spring |
Isometric 16:9/21:9 cull widening + GPU StoreImage/MoveImage/GP0(E6h)/ABR parity |
| 8 | memcard_dual_slot_save_load |
Multi-block BASLUS-01115 .mcr save/reload + Slot-1 bu00: / Slot-2 bu10: isolation + "MCD2"/"OVLY" |
| 9 | wedding_and_family_milestone |
Event RNG/affection parity against D4b oracle & locked 4:3 dialogue HUD |
| 10 | year3_evaluation_and_credits |
Year-3 Spring evaluation score, credits roll, Party Picture flag, isPureStaticReady = true, 0 leaks |