Giter VIP home page Giter VIP logo

wows-stats's Introduction

wows-stats

A XVM like statistics engine for World of Warships

forked from wows-stats

Edit after fork:
  • Added bot detection by winRate and battles (winRate < 45% and battles > 666)
  • Fix replay json path with version number

screenshot

Send the message to in-game chat manually

chat

Requirement

You agree that statistics of a player does NOT mean how a player will perform in a game, and you will NOT use this tool in any way to create a toxic environment or demonstrate any unethical/immortal behaviour in World of Warships. If you do NOT agree, you shall NOT use this app.

Node.js

Installation

  1. Make sure you have Node.js installed, and you have restarted your computer if you just ran the installation.
  2. Make sure you have replay enabled in World of Warships.
  3. Clone this repo.
  4. Make sure there is no open web page with address: http://localhost:8080
  5. Run install.bat.
  6. You should see a web page open on http://localhost:8080, like this: Installation
  • If you leave or refresh this page, installation will be cancelled, and you will need to run install.bat again.
  • Change World of Warships Location to where you installed World of Warships, it is usually the default value C:\Games\World_of_Warships. Click on Validate to make sure the location is correct.
  • Select your region.
  • Get an Application ID from Wargaming Developer Room at your region.
    • Note: You can skip this step and wows-stats will use the demo key, where Wargaming has a limit on how many times you can hit their API in a certain period of time using demo as a key. I recommend you go ahead and follow the steps, it takes less than a minute and it is totally free.
    • Create an application on My Applications page in Wargaming Developer Room at your region and copy the newly generated Application ID.
    • Place Application ID you copied into Application ID textbox.
    • Click on Validate to make sure the Application ID you placed works.
  • Click on Save. If everything goes through, the installation page will becomes an blank page.

Usage

  1. Run run.bat to start the app.
  2. You should see a web page open on http://localhost:8080, make sure only one web page to that address is open at all time.

API

  • /api
    • GET
    • Response 200:
    {
      "status": "ok",
      "name": "wows-stats api",
      "version": "v2"
    }
    
  • /api/player?name=rubycrow
    • GET
    • Response 200:
    {
      "id": "1001632578",
      "name": "rubycrow",
      "battles": 1343,
      "winRate": "54.28%",
      "avgExp": "1317",
      "avgDmg": "36208",
      "kdRatio": "1.45",
      "raw": {
       ...
      }
    }
    
  • /api/ship?playerId=1001632578&shipId=4289607376
    • GET
    • Response 200:
    {
      "name": "Mutsuki",
      "img": "http://api.worldofwarships.com/static/1.3.2/wows/encyclopedia/vehicle/PJSD005.png",
      "info": {
       ...
      },
      "id": 4289607376,
      "battles": 43,
      "victories": 24,
      "survived": 12,
      "destroyed": 34,
      "avgExp": "1175",
      "avgDmg": "20677",
      "raw": {
       ...
      }
    }
    

wows-stats's People

Contributors

kotorinyanya avatar tianweiliu 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.