Skip to content

Latest commit

 

History

History
115 lines (84 loc) · 6.19 KB

3A6-linux-run-gtp2ogs-js-beta.md

File metadata and controls

115 lines (84 loc) · 6.19 KB

HOME

0) COMMON : INTRODUCTION

1) COMMON : MESSAGE OGS MODERATORS

2) COMMON : GENERATE THE APIKEY

3A) FOR LINUX

3B) FOR WINDOWS

Before continuing to read

Please read this important information if you didn't already.

3A6) Run gtp2ogs.js (official)

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 :

node62 node63

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

node90b

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 :

node60

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)

node96b node91b node92b node93b node94b node95b

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 ^^