All Projects → waylaidwanderer → Dotabuddy

waylaidwanderer / Dotabuddy

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

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Dotabuddy

Re Start
react-native template to target multiple platforms 🌐 📱 💻 with single codebase.
Stars: ✭ 1,272 (+1267.74%)
Mutual labels:  cross-platform
Module Shop Mini Program
一个基于 .NET Core构建的简单、跨平台、模块化的商城系统
Stars: ✭ 89 (-4.3%)
Mutual labels:  cross-platform
Openra
Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X.
Stars: ✭ 10,220 (+10889.25%)
Mutual labels:  cross-platform
Httptransfertasks
Cross Platform HTTP Transfers for downloading and uploading (supports background operations)
Stars: ✭ 87 (-6.45%)
Mutual labels:  cross-platform
Otter Browser
Otter Browser aims to recreate the best aspects of the classic Opera (12.x) UI using Qt5
Stars: ✭ 1,289 (+1286.02%)
Mutual labels:  cross-platform
Cubicsdr
Cross-Platform Software-Defined Radio Application
Stars: ✭ 1,294 (+1291.4%)
Mutual labels:  cross-platform
Igropyr
a async http server base on libuv for Chez Scheme
Stars: ✭ 85 (-8.6%)
Mutual labels:  cross-platform
Roslynpad
A cross-platform C# editor based on Roslyn and AvalonEdit
Stars: ✭ 1,310 (+1308.6%)
Mutual labels:  cross-platform
Flutter Mvvm Provider Demo
Stars: ✭ 89 (-4.3%)
Mutual labels:  cross-platform
Faster
SIMD for humans
Stars: ✭ 1,304 (+1302.15%)
Mutual labels:  cross-platform
So 5 5
SObjectizer: it's all about in-process message dispatching!
Stars: ✭ 87 (-6.45%)
Mutual labels:  cross-platform
Friday
An open-source virtual assistant.
Stars: ✭ 88 (-5.38%)
Mutual labels:  cross-platform
Cutehmi
CuteHMI is an open-source HMI (Human Machine Interface) software written in C++ and QML, using Qt libraries as a framework. GitHub repository is a mirror!
Stars: ✭ 90 (-3.23%)
Mutual labels:  cross-platform
Pussh
The cross platform, multi-functional screenshot utility
Stars: ✭ 86 (-7.53%)
Mutual labels:  cross-platform
Daggy
Daggy - Data Aggregation Utility. Open source, free, cross-platform, server-less, useful utility for remote or local data aggregation and streaming
Stars: ✭ 91 (-2.15%)
Mutual labels:  cross-platform
Http Client
A high-performance, high-stability, cross-platform HTTP client.
Stars: ✭ 86 (-7.53%)
Mutual labels:  cross-platform
Xdg
Go implementation of the XDG Base Directory Specification and XDG user directories
Stars: ✭ 88 (-5.38%)
Mutual labels:  cross-platform
Nodegui Starter
A starter repo for NodeGui projects
Stars: ✭ 93 (+0%)
Mutual labels:  cross-platform
Foda
You are at FODA source code. Play now for free
Stars: ✭ 92 (-1.08%)
Mutual labels:  dota2
Mogwaierdesignerng
Java 2D & 3D visual entity relationship design & modeling (ERD,SQL) for Oracle,MSSQL,Postgres and MySQL
Stars: ✭ 90 (-3.23%)
Mutual labels:  cross-platform

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].