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)
Please read this important information if you didn't already.
Last changes needed to be able to play on official OGS :
- Login to your official OGS user account and go to your official OGS bot profile page, then click “generate apikey”(and give a name to your engine) as we saw earlier for beta server, for example, i login with this account and i go at my bot profile page here
- Remove
--beta
gtp2ogs argument - Replace your beta.ogs bot username with your official ogs username,
for example i replace this
--username meta--金毛测试-20b
with that--username meta-金毛测试-20b
- Replace your beta.ogs apikey with the official for example for me
this
--apikey 53e428v1e8rv1er81e8febvv89r12be8
becomes now that apikey in the official OGS--apikey 1169f6espjogrdjirdgdrjgdrgdrigrdg958s4f8esg1
(this is not the real apikey so dont bother trying them) - You can also add more arguments like the
--greeting
and--farewell
and other arguments, as we saw earlier - Write a bot description in your user profile (repeating your answer 1000 times, or ignoring people work too…), as for me i even screenshoted game settings in many languages here
For example for my bot :
Note : you can have many OGS bots if you want, for example i also have this bot too, but i use --hidden and --rejectnew when i play with it (if you want to do selfplay, have different strengths, etc…) here
Note 2 : it is possible to make your command more efficient by
using ~
instead of /home/yourusername
, but it doesnt always
work so i avoided using it
Now connect to official ogs using gtp2ogs.js, and feel free to use a more advanced command
for example, i personally use something close to that (this is a false apikey btw so dont bother trying it)
sudo nvidia-smi -pm 1 && sudo nvidia-smi -pl 75 && nvidia-smi -i 0 -q -d POWER,CLOCK && cd /home/amd2020/PhoenixGo/etc && nano mcts_1gpu.conf && node ~/gtp2ogs-node/node_modules/gtp2ogs/gtp2ogs.js --apikey 1169f6espjogrdjirdgdrjgdrgdrigrdg958s4f8esg1 --username meta-金毛测试-20b --maxactivegames 1 --boardsizes 19 --debug --noclock --persist --minrank 6k --unrankedonly --maxhandicap 2 --timecontrols fischer,byoyomi --speeds live --minmaintimelive 120 --minperiodtimelive 120 --greeting "hi, this bot uses the original phoenixgo engine provided by Tencent https://github.com/Tencent/PhoenixGo 20 blocks version , not leela zero, have fun :)" --farewell "thank you for the game, hope you enjoyed and/or learned :) there is victory in defeat :)" -- /home/amd2020/PhoenixGo/bazel-bin/mcts/mcts_main --gtp --config_path=/home/amd2020/PhoenixGo/etc/mcts_1gpu.conf
Once connected, challenges work the same as earlier, you can challenge bots, humans, or just let your bot open online until people accept
Interesting to know :
the --hidden
argument : if you dont use it your ai is visible
by anyone in the computers list, for example :
As a final example i’ll show a game that i played on the official OGS with gtp2ogs :
First connect to gtp2ogs official server, then the rest the same as what we saw in beta server (see screenshots below)
You can press Ctrl+C to stop the engine
Thats it !
You now have a bot on the official OGS server, have fun :)
Credit for making this tutorial go to the most splurgist ogs player ever, aka : https://online-go.com/user/view/479173
anyways cya ^^