FixingDeer-ShipToShoreCam icon

ShipToShoreCam

Automatically zoom out the camera when boarding a ship and zoom back in when leaving a ship. Zoom levels are user-configurable.

Last updated 3 years ago
Total downloads 3138
Total rating 2 
Categories Mods
Dependency string FixingDeer-ShipToShoreCam-1.2.2
Dependants 5 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.900 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.900

README

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:

  1. Move ShipToShoreCam.dll from the archive into <GameDirectory>\BepInEx\plugins.
  2. Run the game.

Upgrading from 1.0.0

Recommend deleting the ShipToShoreCam.dll from <GameDirectory>\BepInEx\plugins and fixingdeer.ShipToShoreCam.cfg from <GameDirectory>\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