banner
Rating
Voted0

Gungnir Console Development Kit

0
Mod version:1
Game version:all
The mod has been successfully tested for the absence of viruses
321.46K66.2K

Report mod

  • image
  • image
  • image
modalImage

About This Mod

Gungnir, a mod for improving the game console, is designed to provide Valheim players with a cleaner and more enjoyable experience.

Gungnir is a suite of in-game console enhancements. It offers new aesthetics, useful commands, and makes it easier for other programmers to add new commands.


Features


New color scheme for console and Gungnir-related output.

A pop-up window that shows how to use the command you enter and highlights the parameter you enter.

Console history can now be scrolled up to 1,000 lines.

Lots of new teams.

Combine multiple commands (e.g. /fly 1;/creative;/god).

Create your own names for commands or their sequences using aliases (/alias).

Use the /bind command to bind commands to any key from the console.

Useful commands for changing and restoring the terrain.


You can use or be familiar with SkToolbox, but Gungnir is very similar to it. The on-screen menus and enemy detection are beyond this mode, so I'm not going to turn them on.

Obviously, mod is not compatible with SkToolbox or anything that can do something similar.



List of commands.


/alias <String name> <String keyCode>. 

Creates shortcuts or alternate names for commands.


/Bind <String keyCode> [3] 

Binds the console command to a key, see the Unity documentation for the code names.


/butcher [decimal radius = 50f] [Boolean killTamed = false].

Kills all creatures in the radius (meters) except the player.


/Clear.

Clears the console output.


/creative [Boolean enabled = none] Enables creative mode.

Enable creative mode.


/echo [4] 

Shout out out into the void.


/fly [Boolean noCollision = false] Changes flying ability.

It changes the ability to fly. Collisions can be disabled by a second argument.


/ghost [Boolean enabled = none] Enables ghost mode.

Enables the ghost mode. Prevent enemy creatures from discovering you.


/5] [number quantity = 1] [player player = none] [number level = 1

Gives you or another player an item.


/god [Bool Enabled = None].

Changes invulnerability.


/got [6]. 

Teleports you to another player.


/heal.

Heals all wounds.


/help [String commandOrPageNum = none] Displays a list of commands.

Displays a list of commands or searches for the syntax of a specific command. If you have many commands, you can also specify a page number.


/listaliases [String alias = none] List of user aliases.

Lists all user aliases or checks what aliases are made of.


/listbinds [String keyCode = none] Lists all private key bindings.

Lists all private key bindings or checks to which key ID is bound.


/listitems [String itemName = none] List all items in the game.

Lists all items in the game or searches for items that contain text.


/listportal

Lists all portal tags.


/listprefabs [String prefabName = none] Enumerates all prefabs.

Lists all prefabs in a game or searches for prefabs that contain text.


/listSkill.

Lists all the skills available in the game.


/listweather

Gets a list of all available weather types.


/nomana [boolean enabled = none].

It includes endless mana.


/nores [boolean enabled = no] Change building boundaries.

Includes building boundaries. Allows you to place objects even if the preview is red.


/noslide [Boolean enabled = no].

Allows you to walk on steep slopes without slipping.


/nostam [Boolean enabled = None] Switches to infinite strength.

Switches to endless endurance.


/nosup [Boolean enabled = None] Toggles the need for structural support.

Switching between structural support requirements.


/pos

Displays the current position in XZY coordinates (XZY is used for tp commands).


/puke

Removes all food buffs and makes room for another meal.


/removedrops [decimal radius = 50f].

Removes all dropping objects within a radius (meter).


/onar

Repairs all items in inventory.


/repairbuilds [decimal radius = 50f].

Repairs all nearby buildings within a radius (meters).


/seed.

Displays the seeds used in this world. /setmaxweight [decimal maxWeight = 300f].

Sets the maximum transport weight.


/set skill level.

Sets the skill level.


/spawn <String prefab> [Number levelOrQuantity = 1] Generates a prefab/creature.

Produces a prefab/creature/element. Set the level with levelOrQuantity for creatures and stack size for items.


/spawntamed <String creature> [levelOrQuantity = 1].

Produces a tame version of the creature.


/tamed [decimal radius = 10f] Tame all tame creatures.

Passivates all tame creatures within the radius.


/Time <String itemName>  

Overrides the time of day (0-1, 0.5 noon). Specify a negative number to cancel.


/tlevel [decimal radius = 10f].

Aligns the relief using a radius.


/tlower [decimal radius = 10f] [decimal depth = 1f] [decimal force = 0.01f].

Slightly reduces the terrain in the radius. Moving the density closer to 0 makes the edges of the terrain steeper, and moving away from 0 makes the edges softer.


/tp <Decimal x> <Decimal z> [decimal y = none].

Directs the beam to a specific coordinate; the y value is optional. If it is not specified, it will automatically try to find the optimal height.


/tpaint [decimal radius = 5f] [String paintType = 'reset'] Color the area by radius.

Color the area by radius. Available paint types are dirt, paved, cultivate, and reset.


/traise [decimal radius = 10f] [decimal height = 1f] [decimal force = 0.01f]

Raises the area in the radius by a certain value. Moving the density closer to 0 makes the edges of the terrain steeper, and moving away from 0 makes the edges softer.


/treset [decimal radius = 10f] Reset.

Resets all terrain changes within the radius.


/tshape [7] 

Selects the shape of the terrain change: circle or square.


/tsmooth [decimal Radius = 10f] [decimal Strength = 0.5f]

Smooths the area within a radius at a specific intensity. Higher density means more aggressive smoothing.


/unalias [8] 

Deletes the aliases that have been created.


/unaliasall [9] 

Removes all aliases for special commands. The parameter true/1/yes is required.


/unbind [10] 

Removes special key bindings.


/unbindall [11] 

Removes all Gungnir-related key bindings. The parameter true/1/yes is required.


/weather [12] 

Overrides the weather for you only. Use -1 to remove the override.



Use.


Press F5 and type /help to see an overview of the commands you can run. Each command displays a list of expected arguments, the type of argument, and whether the argument is required.


For example, the help for /give says: /give <String itemName> [Number amount=1] [Player player=none] [Number level=1].

This command has four arguments, three of which are optional.

Arguments enclosed in [parentheses] are optional and those enclosed in <chevrons> are required.

The value after the equal sign indicates the default value. If the default value is not very clear, none can be shown, but usually this should only be shown for the player name arguments. The default value of none for Player Name indicates that you are selected by default.


The possible types of arguments.

A string is any text.

A number is an integer. Fractional and decimal numbers are not allowed.

(+)Number is a positive integer.

Decimal - Specifies the number of decimal places.

Boolean is true/false; only three yes values, 1, or true. All others are considered false.

Player - The name of the player currently on the server.


It can also end with square brackets like String[], in which case this parameter is used as the initial parameter and all subsequent input parameters are used as arguments.



Command concatenation / teaming and teaming

Commands can be combined and executed at once.

Separate multiple commands with semicolons to execute multiple commands in sequence. Examples.


/god;/ghost;/nostam;/nores;/fly true


This feature works well with the /bind command and allows easy switching and quick access to utilities. To avoid confusion in the command chain, the commands to be bound must be enclosed in quotation marks. Example:


/bind k «/butcher;/removedrops 100».


Similarly, when you create an alias, if you want to create an alias that executes more than one command, you must enclose the command set in double quotes, as in the example above.


It is difficult to know if you want to run more than one command or if the alias/binding should contain additional commands. Using double quotes lets the mod know that you want to accept everything inside the quotes as an argument value.


To do


More teams.

Automatically execute commands when you join a game.

Improve autofill. The game's built-in autocomplete system is rather weak and only supports autocomplete of the first argument. It is planned to expand it so that it works for all arguments of the command and shows the format of the command as you type.

A framework that allows mods to save commands to Gungnir instead of the base game.

Allows you to select text in the console.

More customization options (color scheme selection, font size adjustment, etc.).


Contribution/Error Reporting


If you want to add a command, find an error, or view the source code, visit the Gungnir page on GitHub.

Similar Mods/Addons

Game Version *

all (Gungnir-1921-1-7-5-1713922670.zip)