ShipToShoreCam
Automatically zoom out the camera when boarding a ship and zoom back in when leaving a ship. Zoom levels are user-configurable.
About this mod Author’s original text
ShipToShoreCam
==============
Automatically change the game camera's zoom level when entering and exiting a ship. Ever been in the situation where you've zoomed all the way out on a ship to see as much as possible, but then you go ashore and try to fight mobs forgetting to change the camera back to a better zoom level on land? I have. This mod fixes that.
Both zoom levels (enterShipZoom and exitShipZoom) are user-configurable. When you enter a ship, the camera's zoom is changed to the enterShipZoom value and when you exit a ship it goes to the exitShipZoom value. Or use the useZoomLevelBeforeEntry to automatically revert to your pre-entering zoom level.
Code can be found on github. Issues or change/feature requests can be sent via github or to @FixingDeer at the Valheim Modding Discord.
Installation (manual)
To install manually:
- Move ShipToShoreCam.dll from the archive into \BepInEx\plugins.
- Run the game.
Upgrading from 1.0.0
Recommend deleting the ShipToShoreCam.dll from \BepInEx\plugins and fixingdeer.ShipToShoreCam.cfg from \BepInEx\config. It doesn't seem to cause any issues, but it'll be cleaner since some of the variable names have changed and the older ones don't seem to get cleared out of the.cfg file.
Configuration
enableMod - true/false to enable the mod
enterShipZoom - What zoom level to use when you enter a ship
exitShipZoom - What zoom level to use when you exit a ship
useZoomLevelBeforeEntry - true/false to use the zoom level you were at before entering the ship when you exit (overrides the exitShipZoom value)
showDebugMessages - true/false to show debug messages in the BepInEx console
Changelog
1.2.2
- Corrected the github link
1.2.1
- Fixed version being incorrectly reported
1.2.0
- Added the ability to enable/disable the mod via configuration
- Corrected some documentation in readme.md
1.1.1
- Removed limitation on upper bound of zoom level (to allow for customized zoom levels by other mods)
- Fixed an issue with the debug messages not showing the correct zoom levels in certain situations
- Fixed an issue where exiting a ship wouldn't change the zoom properly if both enterShipZoom and exitShipZoom had the same value
1.1.0
- Changed some variable names
- Added option to use pre-entry zoom level automatically when exiting a ship
- Turned off debug messages by default and added the option to turn them on in the configuration
1.0.0
- Initial release
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.
Install these first, or the mod will not work: