Coder Social home page Coder Social logo

gungnir's Introduction

Gungnir

Gungnir is a mod for the Unity game Valheim. It aims to replicate the functionality of the existing mod, SkToolbox, but with a simpler approach to creating commands and a more straightforward code base.

Gungnir enhances the default in-game console by offering a new set of commands, better visuals, scrolling, and more.

Features

Below is a list of features planned for the mod. Checked items are currently implemented, while unchecked ones are still in-progress.

  • Advanced command processing.
  • Debug logging.
  • Basic utility/administration commands.
  • New console theme.
  • Console history/scrolling.
  • Autocomplete for each argument of a command (if applicable).

Screenshots

Helpful new commands.
Overview
Succinct and visually pleasing command feedback.
Feedback
Integration with autocomplete, and partial matching.
Autocomplete and partial matching
Item/prefab searching.
Searching

Technical To-Do

For a more technical view of what's planned, refer to this list. These may or may not include end-user features, and is just a general list of things I'd like to incorporate into the mod, or change about the implementation.

  • Use GUI components rather than OnGUI drawing functions.
    • Selectable console text. Currently, GUILayout functions don't have a good way to accomplish this.
    • Patch Console class methods to redirect to new GUI elements (Print, updateSearch).
    • Custom auto-complete text handler.
  • Better error message handling. Utility functions should not be printing anything. Specific exceptions should be thrown, or an error context object should be given as an output parameter.
  • API for other mods to register commands?

Building from Source

If you'd prefer to build Gungnir yourself rather than use the available binary, download the repository and open the .sln file in Visual Studio.
Valheim relies on the .NET Framework version 4.7.2, so you may need to install that.

Before you can build, this mod relies on the following library (.dll) files:

  • BepInEx
  • 0Harmony
  • All unstripped DLLs provided by BepInEx for Valheim
  • assembly_valheim
  • assembly_utils

These files should not be distributed by third parties, so you will need to locate them yourself. The last two can be found in your Valheim game installation folder.

Once you have these files:

  1. Place them near this project's .sln file.
  2. In Visual Studio, right-click "References", then click "Add Reference".
  3. Click "Browse".
  4. Select all of the .dll files mentioned.
  5. Click "Add".

Now the project should be ready to build!

  1. Change the build configuration to "Release", if it isn't already.
  2. Click "Build" from the top of Visual Studio.
  3. Click "Build Gungnir".

Alternatively, instead of steps 2-3, just press CTRL+B.

You now have a Gungnir.dll file to use as you please, located under bin/Release/Gungnir.dll. Install like you would any other BepInEx plugin.

gungnir's People

Contributors

zambony avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.