kaorahi / lizgoban

Leela Zero & KataGo visualizer
GNU General Public License v3.0
169 stars 28 forks source link

Why katago not connected when running? #90

Closed qcgm1978 closed 11 months ago

qcgm1978 commented 11 months ago

The electron app shows katago waiting all the time. My config.json is:

"preset": [
    {
      "label": "KataGo",
      "engine": [
        "/opt/homebrew/Cellar/katago/1.13.2/bin/katago",
        "gtp",
        "-override-config",
        "analysisPVLen=50, defaultBoardSize=19",
        "-model",
        "/opt/homebrew/Cellar/katago/1.13.2/share/katago/kata1-b18c384nbt-s7342816768-d3618704537.bin.gz",
        "-config",
        "/opt/homebrew/Cellar/katago/1.13.2/share/katago/configs/analysis_example.cfg"
      ]
    }
]

I run the npm command npm start -- -c config.json

Electron app:

截屏2023-09-18 21 04 31
kaorahi commented 11 months ago

Does the following command work in your terminal (shell)?

/opt/homebrew/Cellar/katago/1.13.2/bin/katago gtp -override-config "analysisPVLen=50, defaultBoardSize=19" -model /opt/homebrew/Cellar/katago/1.13.2/share/katago/kata1-b18c384nbt-s7342816768-d3618704537.bin.gz -config /opt/homebrew/Cellar/katago/1.13.2/share/katago/configs/analysis_example.cfg

You should see the following message if it works correctly. (Press Ctrl-C to terminate it.)

GTP ready, beginning main protocol loop
qcgm1978 commented 11 months ago

Thanks. You're right. I try the command and terminal prompts some config missing e.g. logAllGTPCommunication, logSearchInfo and so on. So I change the config file to gtp_example.cfg and it works.

Thanks a lot.