Giter Site home page Giter Site logo

playerstatcontroller's Introduction

PlayerStatController

This is a modder utility for the game 7 Days to Die. This utility allows modders to get the player stats as xml bindings.

Features

  • XUiC_PlayerStats is a XUiC_Controller allowing it to be used as a controller in the 7 Days to Die xml.
  • Allows a modder to easily bind certain player stats to xml that can be used to show the stats in the UI.
  • Easy to add to a mod, as simple as adding as little as 1 line of xml and popping in the required files to the mod
  • Supports up to 43 XML bindings related to the Player's stats
  • Allows easy access to add new custom bindings without touching the the XUiC_PlayerStats controller

Include in your mod

There are two ways to include this utility in your mod.

First you have to download one of the releases. In the download, there are 3 files in a folder called PlayerStatController, the 3 files included are:

  • Modinfo.xml
  • LICENSE.md
  • PlayerStatController.dll

As a seperate mod

To add the utility as a seperate mod, extract the PlayerStatController folder and add it to the 7 Days to Die Mods folder. From there, 7 Days to Die will load it as a seperate mod which will allow you to access the XUiC_PlayerStats from your own mod in a seperate mod folder.

Make sure that the PlayerStatController folder is included in the download of your mod or include instructions for users of your mod on how to download and install the PlayerStatController standalone mod.

Include in your mod's folder

To add the utility as part of your mod, extract both the PlayerStatController.dll and the LICENSE.md into your mods folder. 7 Days to Die will load the PlayerStatController.dll from your mod's folder when the game is started.

When you bundle up your mod, make sure that the PlayerStatController.dll and LICENSE.md are in your mod's folder. Your users will not need to download any additional files.

Additonal Steps

After you have picked one of the two options above, there are a few additional steps that must be taken. As the PlayerStatController adds additional code to 7 Days to Die, Easy Anti Cheat must be turned off on the client if someone is using a mod that includes the PlayerStatController.

How to turn off East Anti Cheat on 7 Days to Die

Caveats

For a mod using the PlayerStatController to work on multiplayer, the mod must also be installed on the server and the server must have Easy Anti Cheat turned off.

Usage

Using the Controller in your mod

Adding a new XML binding

Examples of the Controller in Action and custom XML bindings

Changelog

Changelog

License

Copyright 2021 Christopher Beda

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

playerstatcontroller's People

Contributors

s7092910 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

playerstatcontroller's Issues

Feature Request: Formatting support

Hi Christopher,

Just getting started with this mod as part of a tweak I'm working on for AGF's Hud Plus mod. It looks really good; I've managed to add an additional binding without too much effort and have successfully pulled that into the UI adjustments I've made.

I've not had a lot of time to look into this feature I'm about to request, so my apologies if it is something that already exists or is capable via other means. I figured I'd ask about it first so that you can maybe give a little bit of input before I go too far down this rabbit hole!

Would it be possible to add formatting support to the binding definitions?

Use Case
I have a value that is stored in game as a decimal, and I want to add a binding so that modders can access it. However, some modders may want it to 2 decimal places, others to 1, others again to 0. It would be useful if, rather than me providing multiple bindings for different formats, or using aliases to provide them, if users could pass in the formatting they want and have the binding automatically use it.

I'm happy to create a fork and work on an implementation of this, but was curious if it is something you've already considered?

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.