Create wonderous gamemodes for Valheim with Lua.
This is a highly WIP project. Not intended for use...yet.
These steps are only needed if you plan on developing the Luaxe mod. If you are writing Lua scripts to be used with the mod, you don't need to complete these steps, but instead read the documentation to make sure you install Luaxe properly.
- Download BepInEx for Valheim. Follow the instructions to install BepInEx to Valheim. Also make sure to install it to your server.
- Create a
Libs
folder (right next to this file). - Copy the following files from BepInEx to the
Libs
folder:
0Harmony.dll
BepInEx.dll
- Navigate to your Valheim game directory. Copy the following files from the
valheim_Data\Managed
folder to theLibs
folder:
assembly_valheim.dll
assembly_utils.dll
assembly_steamworks.dll
- Navigate to your Valheim game directory. Copy the following files from the
unstripped_corlib
folder to theLibs
folder:
UnityEngine.InputLegacyModule.dll
UnityEngine.InputModule.dll
UnityEngine.PhysicsModule.dll
UnityEngine.CoreModule.dll
UnityEngine.dll
UnityEngine.UI.dll
- Create an environment variable called
VALHEIM_BEPINEX_PLUGINS_CLIENT
and set it to the path of your BepInEx plugins folder in your game, including the end \. Example:
VALHEIM_BEPINEX_PLUGINS=B:\Programs\Steam\Games\steamapps\common\Valheim\BepInEx\plugins\
- Create an environment variable called
VALHEIM_BEPINEX_PLUGINS_SERVER
and set it to the path of your BepInEx plugins folder in your server, including the end \. Example:
VALHEIM_BEPINEX_PLUGINS=C:\Program Files (x86)\Steam\steamapps\common\Valheim dedicated server\BepInEx\plugins\
- Open up Luaxe.sln and you're all set! If you opened it before creating your environment variables, you will need to restart it.