EnableConsoleMine

v1.0.0·Updated 2024-12-22

Simply enable console without any other alteration

About this mod Author’s original text

Introduction

tried 3 different mods to enable the console, not a single one worked, decompiled and there is some trash code instead of just enabling the **** console, so i created this one adn worked!

Developed by aedenthorn

Description

just set consoel to true

Installation

  • Copy the EnableConsoleMine.dll to your /Valheim/BepInEx/plugins directory

If you want to complain or ask for help, don't, download decompile and fix it yourself

Source Code

using BepInEx.Logging;

using BepInEx;

using HarmonyLib;

using UnityEngine;

namespace EnableConsoleMine

{

[BepInPlugin("EnableConsoleMine", "(mod)EnableConsoleMine", "1.0.0.0")]

public class EnableConsoleMine: BaseUnityPlugin

{

static ManualLogSource logger;

public void Awake()

{

Logger.LogInfo("Plugin EnableConsoleMine is enabled.");

logger = Logger;

Harmony.CreateAndPatchAll(typeof(EnableConsoleMine));

}

[HarmonyPrefix]

[HarmonyPatch(typeof(FejdStartup), "Awake")]

static void Prefix_FejdStartup_Awake()

{

Console.SetConsoleEnabled(true);

Debug.Log("Console has been enabled by EnableConsoleMine mod."); //Unity log

logger.LogInfo("Console has been enabled by EnableConsoleMine mod."); // BepInEx log

}

}

}

Change Log

v1.0.0

  • enalbe debug console

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.

File & checksum

Filename
EnableConsoleMine-1.0.0.zip
File size
17.5 KiB