Giter VIP home page Giter VIP logo

wows-stats's Introduction

wows-stats

A XVM like statistics engine for World of Warships

Screenshot

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

tianweiliu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wows-stats's Issues

lol

XVM n'apporte pas d'environnement toxique ?

hahahahaaha....please. Si tu refiles un outil à une brêle non qualifié, il se coupera la main avec.

XVM n'est pas le fond du problème, c'est l'utilisation que la plupart en font. Denigrer, se la peter et jouer les gros dure sur les forums, et pire, IG !

Donc s'il te plait, XVM n'est pas la cause première, mais la source de la mauvaise ambiance sur WOT par exemple. Je ne te remercie pas d'avoir pondu ton travail pour warship. Désormais, on va avoir X Jean Kevin qui vont venir nous faire chier sur le chat IG. Bon, comme mauvais joueur, tout le monde en sera la victime.

Crashes Since Server / API / Client 0.5.4.1

Hello again,
I'm in the mid of troubleshooting the problem itself, as far as i can see its a random issue, occuring on random players pulled from the script even in the same battle.

The Output is everytime the same:
Console:

E:\Users\wofnu\Desktop\wows-stats>run.bat

E:\Users\wofnu\Desktop\wows-stats>start "" http://localhost:8080

E:\Users\wofnu\Desktop\wows-stats>npm start

> [email protected] start E:\Users\wofnu\Desktop\wows-stats
> node index.js

wows-stats is running on port: 8080
bigbrotherkamy
Flanker69
Jules_2303
wrobelek1331
Bullyhgw
waldelap
Nodmeister72
yh6yh46h
WoFNuLL
nwpl0710
Rm73
paw76
Aquastic
__Negra__
mircica2014
dakota0857
Jeakz
Hecki
Davituco
a7km
relu_san64
ESPERIENZA
tito_1983
Robbie_Johnston
E:\Users\wofnu\Desktop\wows-stats\index.js:146
                                res.sendStatus(rep.statusCode);
                                                  ^

TypeError: Cannot read property 'statusCode' of undefined
    at Request._callback (E:\Users\wofnu\Desktop\wows-stats\index.js:146:23)
    at self.callback (E:\Users\wofnu\Desktop\wows-stats\node_modules\request\request.js:199:22)
    at emitOne (events.js:90:13)
    at Request.emit (events.js:182:7)
    at Request.onRequestError (E:\Users\wofnu\Desktop\wows-stats\node_modules\request\request.js:821:8)
    at emitOne (events.js:90:13)
    at ClientRequest.emit (events.js:182:7)
    at Socket.socketErrorListener (_http_client.js:295:9)
    at emitOne (events.js:90:13)
    at Socket.emit (events.js:182:7)

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v5.8.0
npm ERR! npm  v3.7.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node index.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the wows-stats package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs wows-stats
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls wows-stats
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     E:\Users\wofnu\Desktop\wows-stats\npm-debug.log

My first thought was about single users as before with the hidden profiles, but then I saw the error coming up on different players in the same game, depending on when the script was startet, before the player Aquastic pulled the error, after a script restart, the user Robbie_Jonston caused the problem. At the next, another player.

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.