CrystalFerrai / ValheimMods

Contains all Valheim mods created by Crystal
Other
19 stars 5 forks source link

Valheim Mod Collection

This repository hosts all of the Valheim mods created by Crystal. The primary intent of this repo is to serve as a reference for people who want to see how the mods work. If you are considering using code from this repo for your own projects, please read the license.txt file included at the root of the repo for redistribution details.

Releases

Currently, mod releases are only being published to Thunderstore. You can download releases from there, or you can install and use r2modman to download and manage the mods for you (recommended).

PTB Releases

Occasionally, there will be mod prereleases for the public test branch of the game. If any such releases currently exist, you can find them here on Github. These releases will be removed and moved to Thunderstore whenever the current game PTB is moved to the public branch.

How to Build

For easier development, all mods are part of the same repo and share the same Visual Studio solution. Each mod is a separate project within the solution.

Before the solution will build, you will need to get some third party DLLs and place them in a lib directory at the root of the repo (next to ValheimMods.sln). This is where all of the .csproj point to for external assembly references. The following should be included in the lib directory:

Once the lib directory is populated, you should be able to open ValheimMods.sln in Visual Studio 2022 and build the solution.

How to Package for Release

The process for packaging up a build for release is not included in this repo. However, some of the supporting files are included. Within each project's root directory is a directory called package which contains these files.

The mod version needs to be updated in multiple places prior to building and packaging.

Producing a releasable package involves combining the files in the package directory, along with a release build of the mod's dll, into a zip file named using the mod name and version, such as BetterChat-1.0.0.zip. Do not include the package directory itself in the zip file.