Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/w3gh/ghost.js

Try to port Warcraft3 Game Host Ghost++ to js
https://github.com/w3gh/ghost.js

battle-net battlenet bnet bot ghost ghostpp host javascript mpq war3 warcraft warcraft3

Last synced: 5 days ago
JSON representation

Try to port Warcraft3 Game Host Ghost++ to js

Awesome Lists containing this project

README

        

# GHost.js
Ghost++ — is a Warcraft III game hosting bot. As the original project https://github.com/w3gh/ghostplusplus based on https://github.com/w3gh/ghost,

This version is a try to port ghost++ to js

## Docker usage
Firstly you need download `docker` from https://www.docker.com/get-started
Then you need to build image with all `libbncsutil` and `libstorm` libraries
Also you can edit `config.json` to provide your own credentials for battle.net, currently only PvPGN is supported

```bash
cd path/to/ghost.js
docker build -t w3gh/ghost.js .
```
After, when image successfully builds, you need run it
```bash
docker run w3gh/ghost.js
```
And you will see log of running bot

## Usage

You need compiled `libbncsutil.dylib` or `libbncsutil.so` or `bncsutil.dll` in directory root.

And setup server credentials in `config.json`

```bash
git clone https://github.com/w3gh/ghost.js.git ghost
cd ghost
npm i
npm start
```

## Preview
it will display colored chat info like on screenshot below

[![asciicast](https://asciinema.org/a/75HoG34I0UEk9lNvDqeO430Cp.svg)](https://asciinema.org/a/75HoG34I0UEk9lNvDqeO430Cp)

## Manual compilation of bncsutil and storm libs

```bash
sudo apt-get install -y cmake git libboost-all-dev build-essential libgmp-dev zlib1g-dev libbz2-dev libmysql++-dev

cd bncsutil
mkdir build
cmake -G "Unix Makefiles" -B./build -H./
cd build && make && sudo make install

cd StormLib
mkdir build
cmake -G "Unix Makefiles" -B./build -H./
cd build && make && sudo make install
```