sirskunkalot / PlanBuild

Valheim mod enabling you to plan buildings, copy structures and terraform
Do What The F*ck You Want To Public License
8 stars 13 forks source link

PlanBuild

PlanBuild enables you to plan, copy and share your building creations in Valheim with ease. The mod adds two new tools to the game. The Plan Hammer is used to plan your creations before actually gathering all the materials. When you are happy with your build, you can add the required building materials one by one or use a custom totem to automatically build the pieces for you. The Blueprint Rune lets you copy, save or delete your creations as a single building piece which can also be shared with other players using the mod and also includes terrain modification tools for quick and more precise terraforming without using the Hoe or Cultivator.

Planning

Plan mode

Introducing a new item, the Plan Hammer, which can be crafted from a single log of wood and the blessing of Odin shining upon you.

PlanHammer

Plan the construction of pieces without the need to gather the resources first. Anyone can add the required resources to the planned structure later and finish the construction after it was placed.

The Plan Hammer is compatible with custom piece tables from other mods. All custom pieces will be incorporated into the runes table for the planned pieces. You still need a Hammer and the required crafting station to finish the construction.

Planned pieces that are unsupported can not be finished. These pieces are also slightly more transparent so you can see what is and isn't supported. The planned pieces themselves do not require support, so you can build forever (if you can reach far enough).

Real pieces also snap to the planned pieces, so you could even use them as spacers or rulers.

Plan Totem

Plan Totem

Build a Plan Totem near your planned structures to be able to add resources in a centralized location for all individual pieces on the plan.

It will also protect existing structures. Any piece that is destroyed (not removed by the Hammer) will be replaced with a plan for that same piece in the same place!

This needs to be built with the vanilla Hammer tool and costs you 1 Wood and 1 Grey Dwarf Eye.

Skuld Crystal

Skuld Crystal

Includes the Skuld Crystal, a wearable item that removes the shader effect from the blueprints, so you can see what the construction will look like when completed.

Create it from a single Grey Dwarf Eye.

Watch your step! The pieces are still not really there, and will not support you!

Blueprinting

Blueprint mode

Introducing a new item, the Blueprint Rune, which can be crafted from a single stone and festering willpower given to you by the gods.

BlueprintRune

Copy existing structures into Blueprints and rebuild them as planned or regular pieces all at once. The blueprints are saved in and loaded from the filesystem as .blueprint files. Also supports .vbuild files (you can load and build your BuildShare saves with this mod)! After switching to the blueprint mode, the piece table of the Blueprint Rune offers three different categories:

Tools

Blueprint tools

The Blueprint Rune comes with a handful of tools to handle blueprint creation and terraforming.

Clipboard

Blueprint tools

You can find all of the temporary blueprints you make using the "Copy" command of the "Edit Selection" tool here. These are reset on every logout.

Blueprints

Blueprint tools

Place a blueprint as planned pieces. Select your previously saved blueprint and place it anywhere in the world. This works just like any other vanilla building piece. Additionally there are some extra controls to make placing your structures exactly as you want them as easy as possible:

Undo/Redo

The Blueprint Rune features an undo/redo mechanic for most of its actions. Placed blueprints, terrain/paint modifications and object deletions can be reversed using the bp.undo console command. A reversed action can also be replayed using the bp.redo console command. For easy access we recommend binding those commands to a key of your liking. To bind those commands to your mouse's "back" and "forth" keys for example type this into the game's console:

bind mouse3 bp.undo
bind mouse4 bp.redo

Blueprint Marketplace

Blueprint mode

Manage and share your blueprints through a custom GUI added to the game. Per default the marketplace is accessible via End key. Rename your local blueprints, assign a Category for them (which will create a new tab on your Blueprint rune for those blueprints) or add a description to them. If a server has this feature enabled, upload your local blueprints to that server so others can download and build your creations as well. Players with admin rights on a server can also manage the server side list through that interface.

Marketplace Pieces

Blueprint pieces

You can place one of two new rune themed pieces in the world which provide access to your own blueprints and the market on the server. If you want to completely stop clients from accessing the server blueprints via Hotkey, there is a server enforced config which disables that Hotkey for all clients.

Installing

It is recommended to use a mod manager to install PlanBuild and all of its dependencies.

If you want to install it manually, load all of these mods as they are all required for PlanBuild to function and install them according to their respective install instructions:

Finally extract all of the contents of the PlanBuild mod archive into <Valheim>\BepInEx\plugins\PlanBuild

It is possible for clients not using PlanBuild to connect to a server using it. Those clients won't see any planned pieces but are still able to play. You can not connect to a server without PlanBuild when the mod is installed on your local game for griefing reasons.

Compatibility

Fully compatible with:

The Hammer's PieceTable is scanned automatically, mods that add Pieces should be compatible. If you find a mod that adds pieces to the Hammer and they don't show up, please post a bug report with a link to the mod or join the Jötunn Discord and ping @Jules or @MarcoPogo.

Configuration

A lot aspects of this mod are configurable either through the config file found in your game folder (<Valheim>\BepInEx\configs\marcopogo.PlanBuild.cfg) or using the BepInEx ConfigurationManager:

Console commands

PlanBuild adds some new console commands to the game:

Building Community

Head over to the Valheimians page to find a community of builders and share your own creations. PlanBuild blueprints are supported.

Changelog

Check the changelog on github to see what's new.

Credits

The original PlanBuild mod was created by MarcoPogo

Blueprint functionality originally created by Algorithman & Jules

Blueprint Marketplace GUI created by Dreous

All further coding by MarcoPogo & Jules

Special thanks to Jere for exchanging code and ideas

Made with Löve and Jötunn

Contact

Source available on GitHub: https://github.com/sirskunkalot/PlanBuild. All contributions welcome!

You can find us at the Jötunn Discord (Jules#7950 and MarcoPogo#6095).