Repo for the most awesome berry-hunting experience.
(Last updated 30.10.2018)
- open a terminal at project root
- run
make
. This will take a while when running first time (about 10 minutes) - run
./up.sh
to load the images into docker and start docker - game url: http://local.berryhunter.io:2015/?local
- chieftain api url: https://local.berryhunter.io:2015/chieftain/scoreboard
- there's a race condition between chieftaind and berryhunterd. If berryhunterd starts before chieftaind is up, it will crash. Solution: Shut down docker-compose (CTRL+C) and run
./up.sh
again.
To compile Go-libraries
- Install tdm64-gcc
(http://tdm-gcc.tdragon.net/download)
- Create
- 32bit and 64 bit
- Type of install: TDM-GCC recommended, C/C++
For chieftaind
- Install go
- OpenSSL https://wiki.openssl.org/index.php/Binaries (I used "Win64 OpenSSL v1.1.1" from https://slproweb.com/products/Win32OpenSSL.html )
- Add
C:\Program Files\OpenSSL-Win64\bin
(or whatever the installation path is) to your PATH variable
- Add
- Install required certificates:
cd chieftaind
server\genkey.bat
- The following error message can be safely ignored:
Can't load ./.rnd into RNG 6656:error:2406F079:random number generator:RAND_load_file:Cannot open file:crypto\ rand\randfile.c:88:Filename=./.rnd
- Create
conf.json
fromconf.example.json
For berryhunderd
- Install go
- Install git
- Create
conf.json
fromconf.default.json
- Create
tokens.list
fromtokens.example.list
- Switch tag from engo.io/esc to v1.0.1
git checkout tags/v1.0.1
For frontend
- Install node.js https://nodejs.org
- Install yarn https://yarnpkg.com/
- Run build.bat in project root
- every project part (chieftaind, berryhunterd, frontend) has it's own build.bat, too. In case you only want to build a specific part.
- Run start.bat in project root
- every project part (chieftaind, berryhunterd, frontend) has it's own start.bat, too. In case you only want to build a specific part.
:V