You are viewing a potentially older version of this package. View all versions.
FlyingHose-BuildCamera-1.0.0 icon

BuildCamera

Fly the camera away from your character while you build, so you can see the whole build site. Client-side only.

Date uploaded 2 hours ago
Version 1.0.0
Download link FlyingHose-BuildCamera-1.0.0.zip
Downloads 14
Dependency string FlyingHose-BuildCamera-1.0.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2360 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2360

README

Build Camera

Part of FlyingHose's Modpack. Needs only BepInEx.

Press a key while you have a build tool out and the camera comes loose from your character. You can fly it around to see the build site from above, from the side, or from inside a room, while your character stands where it is. Press the key again and the camera snaps back.

Using it

Take out the hammer or another build tool, then press Keys.ToggleKey. It is N by default. A message in the middle of the screen says "Build camera on". The key does nothing without a build tool out, and nothing while a menu, the chat, the console, the inventory, or the map is open.

While the camera is on:

  • Move keys fly the camera. Forward goes along where you look, so looking down and pressing forward takes the camera down. Strafe keys go sideways.
  • Jump raises the camera straight up. Crouch lowers it straight down.
  • Hold the run key to fly faster.
  • The mouse looks around exactly as in the base game. Your character turns to face where you look, as it always does.
  • Placing, removing, and repairing work as usual.

Your character does not walk, jump, or crouch while the camera is on. It stays where it is and it can still be hit.

The camera passes through walls and terrain, and it can go under water.

When the camera goes back

The camera turns itself off, with a message, when you put the build tool away, when you die, when you teleport, when you sit or get on something, and when a cutscene starts. It also turns off when you take damage. Set Camera.ExitOnDamage to false to keep it on when you are hit.

The leash

The camera cannot go farther than Camera.MaxDistance meters from your character, 30 by default. It stops at that distance and slides along it.

Reach

Reach is the base game's unless you change it. With the camera away from your character you can only place or remove pieces within the base game's normal distance of your character, even if you can see farther. To build farther from your character, set Camera.ReachWhileActive to a distance in meters. It applies only while the camera is on and the game's own value is put back when the camera goes off. The default of 0 leaves the game's value alone.

Placement uses a ray from the camera, and the ray takes the first thing it hits. If something in front of the camera is out of your character's reach, it blocks placement, even when the spot you meant is within reach.

Client-side only

This mod works on any server, and the other players do not need it. It sends nothing of its own over the network and does not check versions. Every setting is yours; the server has no say in any of them.

After a game update

If a game update breaks the code this mod changes, the mod leaves the game's camera alone and writes the reason to the BepInEx log. If something goes wrong while you play, the camera goes back to your character, a message says "Build camera is off after an error", and the mod stays off until you restart the game.

Do not combine with

Other mods that move the camera freely while you build. They change the same game code, so run one or the other.

Config

File: BepInEx/config/com.yesucs.yesubuildkit.buildcamera.cfg

Key Default Who decides What it does
General.Enabled true you Master switch. Off means no patches. Needs a restart.
General.DebugLogging false you Detailed log lines.
Keys.ToggleKey N you Turns the build camera on and off.
Camera.Speed 8 you Meters per second. From 1 to 50.
Camera.FastMultiplier 3 you How many times faster the camera moves while run is held. From 1 to 10.
Camera.MaxDistance 30 you The farthest the camera can be from your character, in meters. From 5 to 100.
Camera.ExitOnDamage true you Turn the camera off when you take damage.
Camera.ReachWhileActive 0 you Placement and removal reach in meters while the camera is on. 0 keeps the base game's reach. Otherwise 5 to 50.

CHANGELOG

1.0.0

  • If the camera code hits an error, the camera goes back to your character with one message and one log line, and the mod stays off until you restart the game. Before, an error that kept happening wrote to the log every frame.
  • The README now says who decides each setting (you, for all of them) and what happens after a game update.
  • More in-game checks: the camera going under the ground, sitting down and teleporting turning it off, and the key doing nothing with the inventory open.

0.1.1

  • The camera no longer turns off a moment after it comes on. It took the slow health loss from food wearing off for damage. Now only a real hit turns it off.

0.1.0

  • First release.
  • Press a key while a build tool is out to move the camera away from your character. Your character stays where it is.
  • The camera goes back when you put the tool away, die, teleport, or take damage.
  • The camera stays within a set distance of your character. Placing and removing still use the base game's reach unless you set one.
  • Client-side only. Nothing is sent over the network and no version check is needed.