Valheim

File information

Last updated

Original upload

Created by

Skrip

Uploaded by

Skrip037

Virus scan

Safe to use

About this mod

Extends the functionality of the console and chat commands. Admin and trainer commands featured in this mod are all accessible from the console or chat, via a / prefix. This mod allows you to take control of your game-play regardless of cheats being enabled. Now includes terrain modification commands!

Permissions and credits
Changelogs
Donations
SkToolbox for Valheim is a fully clientside utility meant to extend the functionality of the console, thereby improving the gameplay experience and enabling the player to modify their character or the environment to their liking. The mod enables features in both singleplayer and multiplayer that could allow any player (who has the mod installed) to drastically change their character or others.

你会说普通话吗?

Please note, this mod has not been maintained in some time and the functionality is no longer guaranteed. I may update this mod as time allows, but in the mean time will make public the source of this mod, and am open to reviewing pull requests. Feel free to use the code from the SkToolbox within the rights established in the license.

New Features and Behaviors

This mod works by extending the functionality of the console and chat by providing additional behaviors, commands, and customizations.

  • 50+ new commands! See below.
  • The console is automatically enabled. No need to change launch parameters!
  • Cycle through unlimited command history with up and down arrow keys! By default the game itself only stores the most recently entered command.
  • Execute console commands from chat! (toggle via configuration file)
  • Console commands can be chained! Execute unlimited commands on one line! (This includes the standard game commands, SkToolbox commands, and most other commands added by mods!)
    • For example: "/nocost; /god; /fly" with no quotes would execute each of the three commands one after the other!
  • Commands can be run automatically upon joining a server! (Again, even other custom mod commands often work with this!)
    • This only occurs on first server join after starting the game each time. This is to ensure commands don't run multiple times and cause unintended consequences.
    • See the settings / configuration file created after first launch with the mod. (\Valheim\BepInEx\config\com.Skrip.SkToolbox.cfg)
  • Auto-complete SkToolbox commands by pressing tab! Other mod (non-SkToolbox) commands supported for auto-complete by using command aliasing!
  • Feature Highlight: The console now supports unlimited output history and scrolling!
    
  • Configurable command hotkeys have been added! You can now assign any printable key to a command or command chain! This also supports the command aliases! In the gif below, there is a hotkey setup where "Hotkey 1 = q: /tl", and you can see the player pressing "q" as they walk along. Set your own hotkeys in the configuration file!
    Only one command or command chain can be assigned to each key (if hotkey 1 assigns to q, hotkey 2 cannot also assign to q).
    
  • Command aliasing has been added. You can now define custom commands via a configuration file! (Tab auto-complete will fill these commands as well!)

  • The style and visuals of the console can be modified to your liking via a configuration file.
    • The console has been pre-customized with a modern console font and color for better readability.



It is recommended that you use discretion when using these commands in Multiplayer, as this can strongly affect the gameplay experience of others. To be clear, the purpose of this mod is not to destroy the experience of others. Please be respectful when using this mod.

Note that this does not require a server mod or any other clients to run the mod for this to function. When installed on a client, this mod works on any server, any time!

SkToolbox Command List
  •             /alt - Use alternate on-screen controls. Press HOME to toggle if active.
  •             /coords - Show coords in corner of the screen
  •             /console [0/1] - Toggle the console. No parameter to toggle. 1 = Open, 0 = Closed. Intended for use with hotkeys and aliases.
  •             /clear - Clears the current console output
  •             /clearinventory - Removes all items from your inventory. There is no confirmation, be careful.
  •             /detect [Range=20] - Toggle enemy detection
  •             /echo [Text] - Echo the text back to the console. This is intended for use with aliases and the autorun features.
  •             /env [Weather Name] - Change the weather. No parameter provided will list all weather. -1 will allow the game to control the weather again.
  •             /farinteract [Distance=50] - Toggles far interactions (building as well)
  •             /findtomb - Pin nearby tombstones on the map if any currently exist
  •             /fly - Toggle flying
  •             /freecam - Toggle the freecam
  •             /ghost - Toggle Ghostmode
  •             /give [Item] [Qty=1], OR /give [Item] [Qty=1] [Player] [Level=1] - Gives item to player. If player has a space in name, only provide name before the space. Capital letters matter in item / player name!
  •             /god - Toggle Godmode
  •             /heal [Player=local] - Heal Player
  •             /imacheater - Use the toolbox to force enable standard cheats on any server (some are non-functional still. Work in progress!)
  •             /infstam - Toggles infinite stamina
  •             /killall - Kills all nearby creatures
  •             /listitems [Name Contains] - List all items. Optionally include name contains. Ex. /listitems Woo returns any item that contains the letters 'Woo'
  •             /listprefabs [Name Contains] - Lists all prefabs - List all prefabs/creatures. Optionally include name starts with. Ex. /listprefabs Troll returns any prefab that starts with the letters 'Troll'
  •             /listskills - Lists all skills
  •             /nocost - Toggle no requirement building
  •             /nores - Toggle building restrictions (build anywhere except ward zones)
  •             /nosup - Toggle building support requirements  - WARNING! - If you rejoin and this is disabled, your structures may fall apart. I recommend using this with the autorun functionality.
  •             /optterrain - Optimize old terrain modifications. Added so this can be used from chat by default.
  •             /portals - List all portal tags
  •             /q - Exit the game quickly
  •             /removedrops - Removes items from the ground
  •             /repair - Repair your inventory
  •             /resetmap - Reset the map exploration
  •             /resetwind - If wind has been set, this will allow the game to take control of the wind again
  •             /revealmap - Reveals the entire minimap
  •             /seed - Reveals the current world seed
  •             /set cw [Weight] - Set your weight limit (default 300)
  •             /set difficulty [Player Count] - Set the difficulty (default is number of connected players)
  •             /set exploreradius [Radius] - Set the explore radius (default = 100)
  •             /set jumpforce [Force] - Set jump force (default 10). Careful if you fall too far!
  •             /set pickup [Radius] - Set your auto pickup radius (default 2)
  •             /set skill [Skill] [Level] - Set your skill level
  •             /set speed [Speed Type] [Speed] - Speed Types: crouch (def: 2), run (def: 7), swim (def: 2)
  •             /spawn [Creature Name] [Level=1] - Spawns a creature or prefab in front of you. Capitals in name matter! (Use /give for items!) Use /listprefabs to search for creatures and prefabs!
    - Please note that as of Valheim version 0.151.1, the game only shows up to 2 stars for creatures, but there is currently a level cap of 10 with this command. Creatures higher than level 3 will show 0 stars, but are in fact the higher level.
  •             /spawntamed [Creature Name] [Level=1] - Spawns a tamed creature in front of you. Capitals in name matter! Use /listprefabs to search for creatures!
  •             /stopevent - Stops a current event
    Terrain Modification
    Known not working properly as of the latest Valheim update. Previously modified terrain will not get flattened or updated by these commands. This is being worked on, sorry for any inconvenience.
    Please note that excessive terrain modification can eventually cause some lag in your world. This game was meant for some terrain modification, but this can enable a lot of modification. Use this as you would like, but be careful with large areas. Please backup your world before using the terrain modification commands.
  •             /td [Radius=5] [Height=1] - Dig nearby terrain. Radius 30 max.
  •             /tl [Radius=5] - Level nearby terrain. Radius 30 max.
  •             /tr [Radius=5] [Height=1] - Raise nearby terrain. Radius 30 max.
  •             /tu [Radius=5] - Undo/reset all terrain modifications within the radius. Radius 50 max.

  •             /tame - Tame all nearby creatures
  •             /tod [0-1] - Set time of day (-1 to unlock time) - /tod 0.5
  •             /tp [X,Z] - Teleport you to the coords
  •             /wind [Angle] [Intensity] - Set the wind direction and intensity
  •             /whois - List all players

Is there a feature missing you would like to see? Is there a change you want to suggest? Head over to the forum, and let me know!

  • On-screen controls have now been incorporated to make the use of many commands more convenient.
    Press Numpad 0 to open the on-screen controls. Try /alt if you don't have numpad keys!
    
    
    


Enemy Detection - Colored by Range


Portal Detection


Terrain Modification


Auto-Run Commands and Command Chaining ("/nosup; /god" shown here!)


How To Use
When you are ready to use the mod, you'll simply type "help" in the console (F5) to see the available commands. Note you'll see the default commands, and a new one at the bottom!


If you then enter /? to see the Toolbox help, you'll see a list of available commands, their usage, and a description:




Requirements
  • As of Version 1.7.0, BepInEx is required. Please note that many mod managers are compatible with BepInEx, including Vortex, r2modman, and InSlimVML.

How To Install
This mod is installed to your client not a server.
    • Simply open the BepInEx zip file and extract all contents to the game's root directory (You'll see valheim.exe and UnityPlayer.dll in this folder).
  • After extraction, in the game root folder, you should see the Valheim.exe file, and the BepInEx folder in the same folder. (Example: https://i.imgur.com/kXnpAib.png)
    • Run the game and enjoy.
If you are just updating or already have BepInEx installed and you downloaded the DLL file, just place this file in the BepInEx plugins directory.
    
• I just need to update! What do I do?
    • Extract the .dll file to the plugins folder, run the game.

Mod Compatibility Q/A
  • What mods is this compatible with?
    All of them. This mod is not known to interfere with other mods
  • What mod managers / loaders is this compatible with?
    So far it is known to work with BepInEx, Vortex, r2modman (Thunderstore) and InSlimVML w/BepInEx.
  • Is it compatible with Vulkan?
    Yes

Enjoy. Please endorse at the top of this page if you find value in this mod, it really does help us out.

Questions? Feel free to check out the FAQ or post in the forums!

Extra Tags: trainer, menu, mod, cheat, unity, modmenu, hack, creative mode, modification, terrain editor, player, worldedit, world edit, admin