You are viewing a potentially older version of this package. View all versions.
CutyIMoDo-ShipBoundaryFix-1.0.1 icon

ShipBoundaryFix

Fixes ship-area stutter when using Wider Ship Mod with WesleysInteriors by throttling rapid boundary trigger flipping.

Date uploaded 5 days ago
Version 1.0.1
Download link CutyIMoDo-ShipBoundaryFix-1.0.1.zip
Downloads 696
Dependency string CutyIMoDo-ShipBoundaryFix-1.0.1

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
mborsh-Wider_Ship_Mod-1.4.3 icon
mborsh-Wider_Ship_Mod

Makes the ship 'a little' wider for you and your stuff.

Preferred version: 1.4.3

README

ShipBoundaryFix

Fixes ship-area stutter/freeze when using Wider Ship Mod (+ 2 Story Ship) together with WesleysInteriors.

The Problem

When WesleysInteriors is installed alongside Wider Ship Mod, all players experience periodic stuttering near the left and right sides of the extended ship. CPU usage drops during the stutter, indicating main thread blocking rather than high computation.

How It Works

This mod applies two patches:

  1. AudioReverbTrigger Throttle — Limits ChangeAudioReverbForPlayer to execute at most once every 0.3 seconds, preventing rapid-fire calls at the ship boundary.
  2. Ship Boundary Debounce — Prevents rapid inside/outside state flipping in SetPlayerInsideShip when standing at the edge of the extended ship area (0.5 second debounce).

Installation

  1. Install with r2modman or manually place ShipBoundaryFix.dll in BepInEx/plugins/.
  2. That's it. No configuration needed.

Compatibility

  • Wider Ship Mod 1.4.3+
  • 2 Story Ship 2.1.5+
  • WesleysInteriors 4.1.15+
  • Should be compatible with all other mods.

Note

This is a workaround, not a root cause fix. The underlying issue is in how WesleysInteriors' registered triggers interact with Wider Ship Mod's expanded ship boundaries.

CHANGELOG

Changelog

1.0.1

  • Removed broken ShipBoundaryDebouncePatch (StartOfRound.SetPlayerInsideShip does not exist; ship inside/outside state is set directly via trigger colliders, not a patchable method)
  • AudioReverbTrigger throttle alone is sufficient to fix the stutter
  • Cleaner log output (no more HarmonyX error on startup)

1.0.0

  • Initial release
  • AudioReverbTrigger throttle (0.3s interval)
  • Ship boundary debounce (0.5s interval)