zolantris / ValheimMods

Collection of ValheimMods, ValheimRaft (originally created by Sarcen) and a few other upcoming mods including a vehicles mod.
GNU General Public License v3.0
12 stars 5 forks source link
valheim valheim-mod valheim-raft

ValheimMods

A collection of Valheim mods maintained by zolantris. Many of these mods were previously maintained by other authors.

Some mods may be maintained only, other mods may be actively worked on

Mods

Each mod has the link to the folder and mentions activity.

The following statuses will be used to label repos.

Supported Mods

Mod Name Status Description
ValheimRAFT Active Allows Valheim Build system on the water, similar to the Raft Game
BuildingDamageModExtended LTS Allows setting building damage multipliers based on entity types and also additionally allows for damage caps

Contributing

Go here for more information.

Support Open Source

Buy Me a Coffee at ko-fi.com

Step Debugging ValheimMods

  1. Download doorstop >=4.x.x
  2. Place doorstop files into your BepInEx folder under r2modman profile/ or directly in valheim game directory if you are directly managing valheim ( NOT RECOMMENDED)
  3. Change the doorstop config to these values
    [General]
    enabled=true
    target_assembly=BepInEx\core\BepInEx.Preloader.dll
    redirect_output_log=false
    ignore_disable_switch=false
    [UnityMono]
    dll_search_path_override=
    debug_enabled=true
    debug_address=127.0.0.1:10000
    debug_suspend=false
    [Il2Cpp]
    coreclr_path=
    corlib_dir=

    _Noting that doorstopconfig.ini must be changed within the valheim game folder instead of the r2modman/thunderstore profile folder.

  4. Copy and overwrite the doorstop_4.x.x_libs/BepInEx.Preloader.dll into BepInEx/core and replace the current file.
  5. For Rider IDE under BepInEx/config/BepInEx.cfg enable dump assemblies. (set to true)
  6. In Rider connect the debugger via attach to process. Create a custom process call it Valheim add the IP which is the debug_address e.g. 127.0.0.1 and the port 10000
  7. add a breakpoint in your mod to pause things.
  8. alternative wait for a game error to throw and it will pause and decompile that assembly!

Want Valheim To Run Faster?

Add this to `valheim_Data/boot.config folder. This should allow script heavy mods to run on more threads without bottlenecking the game UI so fps will be much higher.

The gc-max-time-slice takes a integer that should be the number of threads available on your machine. Example below for a machine with 20 threads

gc-max-time-slice=20