Giter Club home page Giter Club logo

wc3v's Introduction

WC3V

Warcraft 3โ„ข Replay Viewer.

http://wc3v.com

Goal is to simulate enough of wc3 to get a 'birds eye view' of the match from a given replay.

Examples:

Happy vs Grubby showmatch on Concealed Hill

Usage

Running the reference wc3v client viewer

(NOTE: in order to show WC3 icons, you must follow the instructions on war3observer and put the resulting icons in the client/assets/wc3icons folder).

navigate to the client directory

run npm install -g http-server to install http-server

run http-server and follow the printed directions to see the locally hosted site

Also see the client README.md for more information

Running the wc3v map parser

note: currently built as a node project for ease of development, will eventually
be ported to web.

run node wc3v.js --replay=[REPLAY NAME]

where REPLAY NAME is the replay file path in the replays folder without any extension

example:

node wc3v.js --replay=happy-vs-grubby

Testing mode

to run wc3v in testing mode against a set of known test maps, run:

node wc3v.js --test

Latest test output:

$ node wc3v.js --test
user args:  [ '--test' ]
parse: 97.790ms
TEST PASSED:  ./replays/test-ch-movement.w3g
parse: 23.388ms
TEST PASSED:  ./replays/test-ei-movement.w3g
parse: 700.738ms
TEST PASSED:  ./replays/bnet-ud-vs-orc-2.w3g
parse: 706.537ms
TEST PASSED:  ./replays/happy-vs-grubby.w3g
parse: 1425.998ms
TEST PASSED:  ./replays/grubby-vs-thorzain.w3g
parse: 1575.497ms
TEST PASSED:  ./replays/happy-vs-lucifer.w3g
parse: 1185.854ms
TEST PASSED:  ./replays/cash-vs-foggy.w3g
parse: 297.573ms
TEST PASSED:  ./replays/foggy-vs-cash-2.w3g
parse: 982.399ms
TEST PASSED:  ./replays/crow-vs-john.w3g
parse: 905.581ms
TEST PASSED:  ./replays/chae-vs-hawk.w3g
parse: 938.540ms
TEST PASSED:  ./replays/soin-vs-chae.w3g
parse: 1090.073ms
TEST PASSED:  ./replays/joker-vs-lil.w3g

Example output

see the happy-vs-grubby.w3g.wc3v file for a pretty-printed JSON dump of the current output for a Happy vs Grubby show match.

How It Works

See the DESIGN.md file

Implemented

  • unit selection / deselection
  • unit spawning
  • skill training, levels
  • skill usage - point, object target, summon
  • Right Click path tracking
  • Hotkey Groups
  • Items (partially - registrtion of shop items / giving or dropping)
  • Shop tracking
  • Game Time simulation
    • unit movement is simulated (turn rates and basic pathing around known buildings and terrian WIP)
    • building construction and upgrading is simulated
  • Rendering 'birds eye view' of game play
  • Player starting position detection
  • Mirror matches

Not implemented

  • Neutral Creep tracking
  • Item unit spawns
  • Gold + Wood resource tracking
  • Food / Upkeep tracking

Credits

Replay parsing using:

Replay documentation from:

Icon extraction from:

wc3v's People

Contributors

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