GithubHelp home page GithubHelp logo

dayz-types-categorization's Introduction

๐Ÿฉธ a small tool to help categorize your dayz server types

๐Ÿš€ Usage

  • Download the latest binary executable from the releases.
  • When running the executable, pass the path to the types.xml folder of the mission you wish to categorize.
  • The executable will create a new folder called output which will contain the separated type files, types.xml replacement, and an extract from cfgeconomycore.xml with the new fields.

๐Ÿ“ฆ Installation

  • Copy the types folder generated inside output and insert it into a corresponding mission's db folder. (If you wish to change that, look into the extract of cfgeconomycore.xml).
  • Copy the extract of cfgeconomycore.xml within the <economycore> tags and paste it inside cfgeconomycore.xml. (The <ce> tag's folder field corresponds to where the types folder should be located).
  • Replace the types.xml folder in the db folder with the one generated inside output.

๐Ÿ“ Notes

  • If any of the values shown in base types.xml are missing from the categories.json, the script will notify you after the completion and output the missing values in output/unused.xml.

๐Ÿ“œ Editing the categories.json

  • In categories.json, a field inside the base of the object stands for the group. The name is written as follows [t = types | e = events]-[name]. It's important to get the types right, as if for example the infected are given the spawn type of types it will not work.

  • The value of the field should be a string array. An array should contain the Id names of the items that should be in that group. If the string begins with #, it means it's a comment, and when generating the type files, it will be written in the file as a comment to help distinguish between groups.

  • The categories.json file is read from the ./ folder, so it is important to keep in mind that the binary is located in the same folder as the categories.json file.

dayz-types-categorization's People

Contributors

agorushkin avatar

Watchers

 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.