ConsoleMod
Extensible in-game command console with history, autocomplete, safe input blocking, built-in diagnostics, and a public API for future mods.
模組介紹 作者原文
Console Mod
Console Mod adds an extensible in-game command console to How to Fish for players and future community mods.
Press ` ` — the BackQuote key below Esc on most keyboards — to open or close the console. Escape` also closes it.
Features
- Persistent command history using the Up and Down arrow keys.
- Command and alias completion using Tab.
- Support for quoted arguments.
- Safe player-input blocking while the console is open.
- Cursor and player-input restoration when closing.
- Thread-safe public command API for other BepInEx mods.
- Does not pause the game, preserving multiplayer behavior.
Installation
Mod manager — recommended
Install ConsoleMod Mod Manager, r2modman, or Gale. The required BepInEx pack is installed automatically.
Manual installation
- Install BepInEx 5.4.23.5 x64.
- Extract the package into the inner game folder containing How to Fish.exe.
- Confirm this file exists:
BepInEx/plugins/ModConsole/HowToFish.ModConsole.dll
Controls
| Key | Action |
| --- | --- |
| ` `` | Open or close Console Mod |
| Escape | Close Console Mod |
| Up / Down | Navigate command history |
| Tab | Complete a command or alias |
| Enter | Execute the current command |
Built-in commands
| Command | Description |
| --- | --- |
| help [command] | Lists commands or explains one command |
| clear | Clears visible console output |
| plugins [filter] | Lists loaded BepInEx plugins |
| scene | Shows active and loaded Unity scenes |
| echo | Prints text back to the console |
| console | Shows Console Mod and API information |
Dynamic Weather automatically registers the weather command and its clima alias when both packages are installed.
API for mod developers
Reference HowToFish.ModConsole.dll at build time without bundling a second copy inside your package:
IDisposable registration = ModConsoleApi.RegisterCommand(
"my.mod.guid",
"mycommand",
"Short command description.",
"mycommand ",
args => "Result: " + string.Join(" ", args),
"alias");
Dispose the returned registration from your plugin's OnDestroy method. ModConsoleApi.ApiVersion is 1 in this release. Mods can keep Console Mod optional by locating the API through reflection.
Configuration
BepInEx/config/fernando.howtofish.modconsole.cfg
- Console.Tecla — open/close key; default BackQuote.
- Console.MaximoDeLinhas — visible history limit; range 50–1000.
Persistent command history is stored separately in BepInEx/config/fernando.howtofish.modconsole.history.txt.
Compatibility
- How to Fish for Windows x64
- Steam build 24911270
- Game version shown by the tested build: 1.0.9
- Unity 6000.4.4f1
- Mono scripting backend
- BepInEx 5.4.23.5
Source and support
Source code and issue tracker:
When reporting a problem, attach BepInEx/LogOutput.log and describe what happened before opening the console.
Development disclosure
This community mod was developed with substantial assistance from OpenAI Codex. The packaged code was reviewed, compiled, tested inside the game, and passed automated command-parser and API checks before release.
Disclaimer
Unofficial community mod. Not affiliated with or endorsed by Dazed Games or Valve.
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: