Ghost++ — is a Warcraft III game hosting bot. It can host Warcraft III games on LAN, on battle.net, on PVPGN, and on any combination of these networks at the same time.
As the original project ghostplusplus based on ghost,
This one is a try to port ghost++ to js. Here is the original repo location ghost.js started and maintained by JiLiZART (Nikolay Kostyurin)
Click on it below :
- Node.js
- Npm
- Install Node Version Manager with these commands:
sudo apt update sudo apt install build-essential ; sudo apt install libssl-dev curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash source ~/.bashrc
- Install latest Node.js :
nvm install node nvm use node
- Install Npm :
nvm install --latest-npm
-
Install required packages :
sudo apt install git cmake libclang-6.0-dev libgmp10 libgmp-dev libgmp3-dev
-
Go to the directory where you want to store your bot :
cd ~
-
Clone this repo to your computer
git clone https://github.com/ice-go/ghost.js
-
Go to cloned repo :
ghost.js
-
Install Node modules :
npm i
cd bncsutil cmake -G "Unix Makefiles" -B./build -H./ cd build && make sudo make install cd .. && cp -r src/bncsutil/ ../src/libbncsutil/src/ cd .. && rm -rf bncsutil sudo ln -s /usr/local/lib/libbncsutil.so libbncsutil.so
git clone https://github.com/ladislav-zezula/StormLib.git cd StormLib mv Makefile.linux Makefile && make sudo make install cp -r src/ ../src/libStorm/src/ cd .. && rm -rf Stormlib sudo ln -s /usr/local/lib/libStorm.so /usr/lib/libstorm.so
name | Description |
---|---|
npm start |
Regular execution |
npm run dev |
Start in debug mode |
If you get sort of bncsutil/stormlib errors then you can get rid of it by generating wrappers regarding to your platform:
cd src/libbncsutil
./ffi-generate.sh > libbncsutil.js
cd -
cd src/libStorm
./ffi-generate.sh > libStorm.js
cd -
Next, you must comment out undefined properties related to libbncsutil or libstorm.
If you have any questions feel free to ask them here.