DayNightCycle
Continuous day and night cycle for How to Fish. Sun, fog and ambient light follow the time of day, co-op works fine.
模組介紹 作者原文
Day/Night Cycle
Adds a continuous day and night cycle to How to Fish. The sun moves across the sky, and
fog, ambient light and sun color follow the time of day — dawn, day, dusk, night, and back
around.
The clock is derived from the FishNet server tick, so everyone in a co-op lobby sees the
same time without a single extra network message.
Install
With a mod manager (r2modman Mod Manager): click Install. Nothing else to do.
Manually:
- Install BepInEx 5.4.23+ (win x64 Mono build) into the game folder, next to How to Fish.exe.
- Launch the game once and close it, to generate BepInEx/plugins and BepInEx/config.
- Copy the BepInEx folder from this zip over the one in the game folder.
- Launch the game.
Features
- Continuous cycle. Sun rotation, fog color and density, ambient intensity and reflection
intensity all interpolate through dawn, day, dusk and night.
- Synced in co-op. Time comes from the FishNet server tick, so it cannot drift between
players, and someone joining mid-session lands on the correct time on their first frame.
- Zero network cost. No broadcasts, no serializers, no handshake.
- A night that actually looks like night. The game's skybox ships with an unauthored
night gradient (a burnt-orange horizon that reads as a permanent sunset). The mod replaces
those two colors, and keeps the real sunrise/sunset band where it belongs.
- Configurable. Cycle length, starting time, night sun intensity, moonlight color, night
fog color and density.
- Underwater fog untouched. Diving still looks the way the game intended.
- Works offline. Falls back to a local clock in single player or when no server is running.
- Open to other mods. Exposes a public DayNightAPI with TimeOfDay, DaylightFactor
and NightFell / DayBroke events.
Config
Written to BepInEx/config/com.zpaulin.howtofish.daynight.cfg on the first run.
| Key | Default | What it does |
|---|---|---|
| Enabled | true | Off returns the game to its original lighting |
| DayLengthSeconds | 1200 | Length of one full cycle, in real seconds |
| StartTimeOfDay | 0.30 | 0 = midnight, 0.25 = dawn, 0.5 = noon, 0.75 = dusk |
| SyncToNetworkTick | true | Derive the clock from the FishNet server tick |
| FreezeTime | false | Hold the clock at the current time |
| SunYawSweep | 60 | Degrees of azimuth the sun sweeps, which rotates shadows |
| NightSunIntensity | 0.08 | Moonlight strength, as a fraction of the daytime value |
| MoonlightColorHex | #5C7BB8 | Directional light color at night |
| DriveSky | true | Retune the skybox night colors |
| SkyNightTopColorHex | #070C1A | Zenith the skybox blends toward at night |
| SkyNightBottomColorHex | #111A2E | Horizon the skybox blends toward at night |
| SunsetBandStrength | 1 | How much of the authored sunrise/sunset band to keep |
| MoonBrightness | 1 | Multiplier on the skybox moon |
| DriveFog | true | Let the mod drive fog color and density |
| NightFogColorHex | #0B1220 | Fog color at deepest night |
| NightFogDensityMultiplier | 1.8 | Night fog density relative to the game default |
| NightAmbientIntensity | 0.15 | Ambient intensity at deepest night |
| NightReflectionIntensity | 0.2 | Reflection intensity at deepest night |
Commands
Typed into the game's own debug console. Output goes to the BepInEx console.
/dn status
/dn on | off
/dn day | night | dawn | dusk
/dn time 0.75 or /dn time 18:30
/dn length 600
/dn freeze
/dn resync
Time commands shift only your own client, on purpose, for testing. Use /dn resync to
return to the lobby clock.
Co-op notes
Every player needs the mod, with matching DayLengthSeconds and StartTimeOfDay. The
defaults match, so this only matters if you edit the config — mismatched values mean players
see different skies.
For mod authors
[BepInPlugin("com.example.mymod", "My Mod", "1.0.0")]
[BepInDependency("com.zpaulin.howtofish.daynight")]
public class MyPlugin: BaseUnityPlugin
{
private void Awake()
{
DayNightAPI.NightFell += day => SpawnWave(day);
DayNightAPI.DayBr
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: