DebugCreateUnit spawns twice as many researces on frame 2

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
game-dev

調査の方向性

Start by tracing the DebugCreateUnit path and how OnGameStart() creations are reported across game loops 2 and 3. Reproduce with neutral mineral fields or vespene geysers, then inspect the server-side creation flow mentioned in the report. Done means one set of units appears for each creation and no duplicate tags remain on frame 2.

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

説明

Symptom:

When using DebugCreateUnit to make neutral resources on the OnGameStart() step, UNIT_TYPEID::NEUTRAL_MINERALFIELD and UNIT_TYPEID::NEUTRAL_VESPENEGEYSER in my case, the server spawns 2 sets of units in the same location with different tags for a single frame (game loop 2). The extra units vanish on frame 3.

Tag families: about 4.30e9 and 8.59e9, which looks like two separate creation events.

Workaround

Skip any logic interfacing with these spawned resources while GetGameLoop() <= 2.

Cause

I backtracked them all the way to coming from the server.

主要言語
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 を短くまとめたダイジェスト。