Code Monkey home page Code Monkey logo

dotabuddy's Introduction

DotaBuddy

DotaBuddy is a cross-platform, open-source application with helpful features for when you're playing a match of Dota 2.

Releases can be found here.

Features

  • View public match history of each player when loading into a game, including hero played, win/loss, K/D/A and GPM/XPM
  • Roshan/Aegis timer
    • Press Insert to start Roshan/Aegis timer (Press CmdOrCtrl+Alt+Insert to clear both Roshan/Aegis timers)
    • Press Alt+Insert to only start Roshan timer
    • Press Home to only start Aegis Timer (Press CmdOrCtrl+Alt+Home to clear Aegis timer)

If you want to use Roshan/Aegis timer, add a file called gamestate_integration_dotabuddy.cfg to path\to\steamapps\common\dota 2 beta\game\dota\cfg\gamestate_integration (create gamestate_integration folder if it doesn't exist), with the following contents:

"Dota 2 Integration Configuration"
{
    "uri"           "http://localhost:3222/"
    "timeout"       "5.0"
    "buffer"        "0.1"
    "throttle"      "0.1"
    "heartbeat"     "30.0"
    "data"
    {
        "provider"      "1"
        "map"           "1"
        "player"        "1"
        "hero"          "1"
        "abilities"     "1"
        "items"         "1"
    }
}

Screenshots

Main Tab Main Tab, players collapsed Main Tab, non-public match history Main Tab, show GPM/XPM on hover (v0.2.0+) Timers Tab (v0.2.0+) Roshan/Aegis Timer, in-game Roshan/Aegis Timer, in-game reminder Aegis Timer, 3 min expiry warning Aegis Timer, 1 min expiry warning Aegis Timer, expired warning Roshan Timer, minimum spawn time warning

Quick start

If you're just interested in using the application, check out the releases page for download links.

The only development dependency of this project is Node.js. So just make sure you have it installed. Then type few commands known to every Node developer...

git clone https://github.com/waylaidwanderer/DotaBuddy.git
cd DotaBuddy
npm install
npm start

... and boom! You have running desktop application on your screen.

Structure of the project

Declaring dependencies

There are two package.json files:

1. package.json for development

Sits on path: electron-boilerplate/package.json. Here you declare dependencies for your development environment and build scripts. This file is not distributed with real application!

Also here you declare the version of Electron runtime you want to use:

"devDependencies": {
  "electron": "1.3.3"
}

Note: Electron authors advise to use fixed version here.

2. package.json for your application

Sits on path: electron-boilerplate/app/package.json. This is real manifest of your application. Declare your app dependencies here.

OMG, but seriously why there are two package.json?

  1. Native npm modules (those written in C, not JavaScript) need to be compiled, and here we have two different compilation targets for them. Those used in application need to be compiled against electron runtime, and all devDependencies need to be compiled against your locally installed node.js. Thanks to having two files this is trivial.
  2. When you package the app for distribution there is no need to add up to size of the app with your devDependencies. Here those are always not included (reside outside the app directory).

Folders

The applicaiton is split between two main folders...

src - this folder is intended for files which need to be transpiled or compiled (files which can't be used directly by electron).

app - contains all static assets (put here images, css, html etc.) which don't need any pre-processing.

Build process compiles all stuff from src folder and puts it into app folder, so after build finished app contains full, runnable application.

Treat src and app folders like two halves of one bigger thing.

Drawback of this design is that app folder contains some files which should be git-ignored and some which should not (see .gitignore file). But thanks to this split development builds are much much faster.

Development

Installation

npm install

It will also download Electron runtime, and install dependencies for second package.json file inside app folder.

Starting the app

npm start

Adding npm modules to your app

Remember to add your dependency to app/package.json file, so do:

cd app
npm install name_of_npm_module --save

Working with modules

Thanks to rollup you can (and should) use ES6 modules for all code in src folder. But because ES6 modules still aren't natively supported you can't use it in app folder.

So for file in src folder do this:

import myStuff from './my_lib/my_stuff';

But in file in app folder the same line must look as follows:

var myStuff = require('./my_lib/my_stuff');

Testing

electron-boilerplate has preconfigured test environments...

Unit tests

Using electron-mocha test runner with the chai assertion library. To run the tests go with standard:

npm test

Test task searches for all files in src directory which respect pattern *.spec.js.

Those tests can be plugged into continuous integration system.

End to end tests

Using mocha test runner and spectron. Run with command:

npm run e2e

The task searches for all files in e2e directory which respect pattern *.e2e.js.

Making a release

Note: There are various icon and bitmap files in resources directory. Those are used in installers and are intended to be replaced by your own graphics.

To make ready for distribution installer use command:

npm run release

It will start the packaging process for operating system you are running this command on. Ready for distribution file will be outputted to dist directory.

You can create Windows installer only when running on Windows, the same is true for Linux and OSX. So to generate all three installers you need all three operating systems.

All packaging actions are handled by electron-builder. See docs of this tool if you want to customize something.

License

Released under the GPLv3 license. Built on top of electron-boilerplate (MIT).

dotabuddy's People

Contributors

dependabot[bot] avatar waylaidwanderer avatar yukidaruma 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  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  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  avatar  avatar  avatar  avatar  avatar

dotabuddy's Issues

can you make feature to see match history for specific id

i want to see pro player gameplay and that player not allowed to expose his public match

can you make feature too see his match history even he not allowed expose public match

i enter his id and can see his match history even he not allowed exposed public match

pleaseeeee

Need an icon

DotaBuddy needs an icon. Currently it's using the default Electron icon.

If anyone who's experienced with graphic design can create an icon for me, I'd be grateful.

Criteria:

  • PNG format
  • material design
  • possibly Dota 2 logo with buddy icon?
    • feel free to come up with your own idea

High resolution preferred so I can downscale to whatever size I need.

Timers problem?

Running Ubuntu 16.04 LTS

Cant get timers to work, have read the ReadMe.txt and added the .cfg's, not sure how you have done things so not sure what the problem is.

I cannot start the timers with Insert or any other button

Timer Reminders

I can't get the chat macros working to "warning me" about expire time or roshan respawn.

Feature Request: Short note per player.

Lots of players show up with no history or data, but I see a few of them in more than one game.

Would be helpful to quickly see a past thought about them.

Just save data local in a json or something simple.

`npm install` fails

npm WARN optional Skipping failed optional dependency /electron-builder/appdmg:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency /7zip-bin/7zip-bin-win:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency /7zip-bin/7zip-bin-osx:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN DotaBuddy No repository field.
npm WARN DotaBuddy No license field.
npm ERR! Linux 4.4.0-51-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] install: `node scripts/install.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node scripts/install.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 node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/tigger/DotaBuddy/npm-debug.log

npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: use uuid module instead
npm WARN prefer global [email protected] should be installed with -g

Estimated mmr

Hi, How is the estimated mmr calculated? if it your algorithm or from valve?

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.