Collected Vespene score remains 0 during the whole match

オープン
#286 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
cpp
領域
game-dev

調査の方向性

replay.cc の例と、Observation()->GetScore() を呼び出す OnStep() のコードパスから始めます。プレイヤーがガスを収集している間、score.score_details.collected_vespene と collection_rate_vespene を比較します。collected_vespene が 0 のままになる理由を特定し、試合中にそのフィールドが蓄積されたベスピンのスコアを報告することを確認できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Hello there,

I've been trying to use this API and wanted to register every 10 seconds the current scores of the player.
When I use the following code on the OnStep() method

const sc2::ObservationInterface* obs = Observation();
const struct sc2::Score& score = obs->GetScore();
std::cout << "> collected_minerals - " << score.score_details.collected_minerals << std::endl;
std::cout << "> collected_vespene - " << score.score_details.collected_vespene << std::endl;

for some reason collected_vespene remains 0 during the whole match but every other score updates consistently (strangely enough, when a player starts collecting vespene gas the score score.score_details.collection_rate_vespene will update correctly).

I wrote me code directly expanding the replay.cc example.

Thank you.

主要言語
C++
スター
1.7k
フォーク
281
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Blizzard/s2client-api のほかの issue

Blizzard/s2client-api の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。