GithubHelp home page GithubHelp logo

tvelich / dota-grid-cli Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 99 KB

A tool for easily sorting your DotA grid config file

License: MIT License

JavaScript 2.87% TypeScript 97.13%
dota grid cli sort opendota

dota-grid-cli's Introduction

DotA Grid CLI

CI

Overview

This is a tool for easily sorting your DotA grid config file by win rate, pick rate, or a mixed combination using the OpenDota API. It will go through each group in your grid layouts and order the heroes by the rate you specify.

Install

You'll need to install npm to use this tool. You can find the download for your platform here.

After you install, open your command prompt/terminal on your system and type:

npm i -g dota-grid-cli

After this you should be all set to use it!

Config File

This file can be found in various locations depending on your OS and install method, but the common locations are found below:

Windows

C:\Program Files\Steam\userdata\<steam user id>\570\remote\cfg\hero_grid_config.json

macOS

/Users/<your user>/Library/Application Support/Steam/userdata/<steam user id>/570/remote/cfg/hero_grid_config.json

Linux

/home/<your user>/.steam/steam/userdata/<steam user id>/570/remote/cfg/hero_grid_config.json

Usage

Once installed, you can invoke the cli to output your sorted file as text using:

dota-grid-cli <path to file>

If you wish to overwrite your file, simply add a --writeSortedFile or -w:

dota-grid-cli <path to file> --writeSortedFile

You can use the --sortBy or -s flag to change the sorting method. The supported sort options are win rate, pick rate, and mixed. The default is mixed which sorts by a combination of win rate and pick rate:

dota-grid-cli <path to file> --sortBy mixed
dota-grid-cli <path to file> --sortBy win-rate
dota-grid-cli <path to file> --sortBy pick-rate

Support

If you find a need to revert your config to what it was before running the command, you can find the backup at hero_grid_config_backup.json. Simply replace this file with your main one to restore.

If you need help or a reminder on the commands, you can type dota-grid-cli --help at any time:

Usage: dota-grid-cli [options] <grid-config-file-path>

Options:
  -V, --version          output the version number
  -w, --writeSortedFile  Overwrite the file specified with the sorted result (default: false)
  -s, --sortBy <method>  The method used to sort each grid group (mixed, win-rate, or pick-rate) (default: "mixed")
  -h, --help             display help for command

For additional help or to request a new feature, please open an issue under the "Issues" tab.

dota-grid-cli's People

Contributors

tvelich 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.