All Projects → Measurity → ModTemplateValheim

Measurity / ModTemplateValheim

Licence: MIT license
Valheim template for quickly writing mods using BepInEx

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to ModTemplateValheim

jotunnlib
A modding library for Valheim, with the goal of making the lives of mod developers easier.
Stars: ✭ 24 (+84.62%)
Mutual labels:  modding, bepinex
HedgeLib
A C++ library and collection of tools that aims to make modding games in the Sonic the Hedgehog franchise easier.
Stars: ✭ 63 (+384.62%)
Mutual labels:  modding
Bodyslide And Outfit Studio
BodySlide and Outfit Studio, a tool to convert, create, and customize outfits and bodies for Bethesda games.
Stars: ✭ 190 (+1361.54%)
Mutual labels:  modding
BitOfEverything
A mod aimed at adding every essential for all Modded Minecraft Players!
Stars: ✭ 28 (+115.38%)
Mutual labels:  modding
SiraUtil
A powerful utility mod which expands the capabilities and provides more tools to Beat Saber modders.
Stars: ✭ 47 (+261.54%)
Mutual labels:  modding
BS2PC
Half-Life PlayStation 2 map converter
Stars: ✭ 32 (+146.15%)
Mutual labels:  modding
Unityexplorer
An in-game explorer and a suite of debugging tools for IL2CPP and Mono Unity games, to aid with modding development.
Stars: ✭ 172 (+1223.08%)
Mutual labels:  modding
ME3ModManager
Legacy mod manager for Mass Effect 3 (superceded by ME3Tweaks Mod Manager)
Stars: ✭ 17 (+30.77%)
Mutual labels:  modding
among-us-replay-mod
Replay mod for Among Us
Stars: ✭ 48 (+269.23%)
Mutual labels:  modding
QuickAccessBox
Plugin for quickly searching through studio items in games by Illusion
Stars: ✭ 19 (+46.15%)
Mutual labels:  bepinex
JDuel-Links-Bot
An all-in-one modding tool and bot for Yu-Gi-Oh! Duel Links (Steam version)
Stars: ✭ 25 (+92.31%)
Mutual labels:  modding
gd.h
windows geometry dash headers
Stars: ✭ 22 (+69.23%)
Mutual labels:  modding
MafiaMP
Multiplayer experience for Mafia: Definitive Edition
Stars: ✭ 31 (+138.46%)
Mutual labels:  modding
Hypermc
Install Minecraft extensions with a user-friendly interface ⛏💎
Stars: ✭ 27 (+107.69%)
Mutual labels:  modding
openrct2-ride-price-manager
A plugin for OpenRCT2 that automatically manages ride prices.
Stars: ✭ 40 (+207.69%)
Mutual labels:  modding
Oxide.rust
Rust game extension for the Oxide modding framework
Stars: ✭ 185 (+1323.08%)
Mutual labels:  modding
Plasma
Minecraft Mappings for legacy versions (currently just beta 1.7.3)
Stars: ✭ 30 (+130.77%)
Mutual labels:  modding
NeosModLoader
A mod loader for Neos VR
Stars: ✭ 58 (+346.15%)
Mutual labels:  modding
Fragsurf-2
Fragsurf is an actively developed standalone game based on HL2 surf and bhop movement mechanics.
Stars: ✭ 68 (+423.08%)
Mutual labels:  modding
PMMasterQuest
Take Paper Mario 64, buff old and new enemies to absurd levels, then rebalance Mario's overpowered strategies, and you've got one of the most difficult hacks of all time: Paper Mario Master Quest. The Discord:
Stars: ✭ 58 (+346.15%)
Mutual labels:  modding

ModTemplateValheim (Windows OS & Steam game)

Template mod for Valheim using Bepinex. Works for Steam, client-side only! Everything required is automatically installed into Valheim:

  • BepInEx (Unstripped UnityEngine dlls too) + HarmonyX
  • Publicizes dlls from game as project dependencies
  • Moves your mod into the BepInEx plugins folder.

How to use template

  1. Download or clone this repository then open in Visual Studio or JetBrains Rider.
  2. (optional) Rename the ExampleCallMethodMod.csproj to your mod name.
  3. Rebuild solution twice: PLAY!

Any project in this solution that ends with Mod will automatically install itself into Valheim and reference the game code.

Requirements

Troubleshooting

  • Missing dependencies
    • Run rebuild again (need to do it twice for fresh install)
  • Code is red - IntelliSense broken
    • Restart VS (after you've built solution twice)
  • Valheim has updated, getting errors
    • Remove folder ..\ModTemplateValheim\BuildTool\bin\generated_files and rebuild solution.

I want to..

  • Rename my mod
    Add (or change) the AssemblyName property to the mod's .csproj file. Note to remove the old mod DLL from BepInEx plugins folder in Valheim. Example:
<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <AssemblyName>My cool mod name</AssemblyName>
    </PropertyGroup>
</Project>
  • Change mod author or version
    Add (or change) the Authors property to the mod's .csproj file. Example:
<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <Authors>Measurity;geocine;eai04191</Authors>
        <AssemblyName>My cool mod - the second</AssemblyName>
        <Version>1.0.0.1</Version>
    </PropertyGroup>
</Project>

Which will generate the BepInEx plugin metadata as:

public const string PluginAuthor = "Measurity & geocine & eai04191";
public const string PluginGuid = "com.github.measurity.Mycoolmodthesecond";
public const string PluginName = "My cool mod - the second";
public const string PluginVersion = "1.0.0.1";

Credits

https://github.com/MrPurple6411 - First to make a proper template. Used their declared project dependencies as a base.
https://github.com/sebastienvercammen - Providing help with overriding game DLLs with unstripped dlls through UnityDoorstop.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].