1) COMMON : MESSAGE OGS MODERATORS
2) COMMON : GENERATE THE APIKEY
- 3A1) Download and install nodejs and npm
- 3A2) Install gtp2ogs.js with npm
- 3A3) Recommended : Upgrade gtp2ogs.js from old branch to “devel” branch (latest)
- 3A4) Optional : Edit the gtp2ogs.js file (for example show winrate on OGS)
- 3A5) Run gtp2ogs.js (beta)
- 3A6) Run gtp2ogs.js (official)
- 3B1a) Preparations
- 3B1b) Download and install nodejs
- 3B2) Install gtp2ogs.js
- 3B3) Recommended : Upgrade gtp2ogs from old branch to devel (latest) branch
- 3B4) Optional : Edit the gtp2ogs.js file (for example show winrate on OGS)
- 3B5) Run gtp2ogs.js (beta)
- 3B6) Run gtp2ogs.js (official)
This step is highly recommended, even though you can skip it.
The last stable release of gtp2ogs is old does not include recent fixes and improvements, see the official gtp2ogs devel branch's github
note: as of february 2019, the old gtp2ogs.js has been split into many modules. To upgrade your gtp2ogs version to devel, this is not relevant, because all we have to do is regardless just to replace old gtp2ogs folder with the devel one.
To upgrade gtp2ogs.js to devel branch, we’ll use the all in one command below:
note 2: if backup folder already exists, it will tell that to you, but this doesnt prevent our all in one command from being executed (backup folder content will just be overwritten)
# Making backup of existing gtp2ogs && \
mkdir ~/gtp2ogs-backup ; \
cd ~/gtp2ogs-node/node_modules/gtp2ogs && \
cp -rf * ~/gtp2ogs-backup/ && \
# Delete existing gtp2ogs folder && \
cd .. && \
rm -rf gtp2ogs && \
# Install gtp2ogs latest devel cloned from github && \
git clone -b devel https://github.com/online-go/gtp2ogs && \
cd gtp2ogs && \
git branch && \
# Installing locally extra needed dependencies from new branch's package.json && \
npm install && \
ls
If you just want to use gtp2ogs easily (not dev), you can also copy paste
(from downloaded ZIP on github website) any other branch
that has some extra features or fixes, for example using this command
git clone -b roy7live-textonly-phoenixgo https://github.com/wonderingabout/gtp2ogs && \
in the same command line than above.
If you're a developper, you'd most likely want to use your own repository, so you'd run
the same command as above, except that you'd use devel or any other branch from YOUR repository
(i am wonderingabout
for example git clone -b devel https://github.com/wonderingabout/gtp2ogs && \
)
This method installs gtp2ogs locally in your home folder, which allows to easily change branches
with git checkout
and do any other dev operation very conveniently!