LegacyBaseFovCompat

版本 v0.2.1·更新於 2026-10-11

Restores AddFoVSettings compatibility with the current Risk of Rain 2 camera system: custom FOV works again, and sprint FOV off stays steady.

模組介紹 作者原文

LegacyBaseFovCompat

AI-generated project notice: the code and documentation were written with AI assistance and then tested in

Risk of Rain 2 by the project owner. Please report anything that does not work as described.

A small compatibility patch that makes AddFoVSettings

work again on the current version of Risk of Rain 2.

Why is this needed?

AddFoVSettings adds a Base Camera FOV slider and a Sprinting Increases FOV option to the game's settings.

After a recent game update, the slider and checkbox still show up and still save your choice, but the game's

new camera code ignores the value, so the view stays at the default FOV.

This patch connects AddFoVSettings' settings to the current camera system:

  • Base Camera FOV works again. The FOV you pick is what you see in game.
  • Sprinting Increases FOV = off keeps your chosen FOV steady while you start sprinting, keep sprinting and stop,

with no flicker or jump.

  • Sprinting Increases FOV = on keeps the game's normal, smooth sprint zoom on top of your chosen FOV.
  • Aiming and zoom effects from abilities still work, relative to your chosen FOV.

AddFoVSettings itself is not changed. This package does not replace or include any other mod's files.

It only uses the official packages listed below.

Installation (r2modman)

  • Install AddFoVSettings through r2modman as usual (if you haven't already).
  • Install LegacyBaseFovCompat in the same profile.
  • Start the game with Start modded.

r2modman installs the required packages automatically: BepInExPack, HookGenPatcher, AddFoVSettings and

AddFoVSettings' own dependencies.

Usage

Use AddFoVSettings' normal controls: Settings → Gameplay → Base Camera FOV and Sprinting Increases FOV.

Changing them from the pause menu during a run applies immediately (this is the tested way to use them).

LegacyBaseFovCompat has no in-game menu of its own.

Configuration

Nothing needs to be configured. The config file BepInEx\config\Nhiblam.LegacyBaseFovCompat.cfg (also editable in

r2modman's Config editor) only contains troubleshooting options, both off by default:

| Setting | Default | What it does |

|---|---|---|

| Diagnostics.TraceAppliedFov | false | Logs the camera FOV this patch calculates, at most once every 5 seconds. |

| Diagnostics.TraceSprintTransitions | false | Logs a few frames around each of the first 10 sprint starts/stops of a session. |

Compatibility

Tested with:

| Component | Version |

|---|---|

| Risk of Rain 2 | Steam build 25475991 (game update of 2026-10-08) |

| AddFoVSettings | 1.0.0 |

| BepInExPack | 5.4.2122 |

| HookGenPatcher | 1.2.9 |

| RoR2BepInExPack | 1.45.0 |

| R2API | 5.0.5 (with R2API Core 5.3.0) |

Notes:

  • Only works together with AddFoVSettings. Without AddFoVSettings it does not load and changes nothing.
  • Client-side only: it changes your own camera and sends nothing over the network. Other players don't need it.
  • Other mods that change the gameplay camera FOV may conflict with it. Use one FOV mod at a time.
  • Not tested with split-screen.
  • If a future game update changes the camera code again, the patch logs an error and leaves the camera alone

instead of guessing.

Reporting a problem

Please include:

  • What you did and what you saw (for example "the view flickers when I start sprinting with sprint FOV off").
  • Your LogOutput.log. In r2modman, open Settings → Browse profile folder, then go to BepInEx\LogOutput.log.

Attach it after closing the game, because it is rewritten every time the game starts.

  • For sprint-related problems, first set Diagnostics.TraceSprintTransitions = true in the config editor,

reproduce the problem once, then attach that log.

A healthy log contains these lines near the start:

[Info:LegacyBaseFovCompat] LegacyBaseFovCompat 0.2.1 build=...

[Info:LegacyBaseFovCompat] AddFoVSettings 1.0.0 bound:...

[Info:LegacyBaseFovCompat] CameraModePlayerBasic.UpdateInternal IL hook applied.

Building from source

Requirements: Windows, the.NET SDK (tested with 10.0) and PowerShell 7..\

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

Quizzik-AddFoVSettingsRiskofThunder-HookGenPatcherbbepis-BepInExPack

檔案與校驗

檔案名稱
LegacyBaseFovCompat-0.2.1.zip
檔案大小
34.8 KiB