Blizzard / Blizzard/s2protocol
'_gameloop' times being off?
- Dominant language
- Python
- Stars
- 641
- Forks
- 118
- PR merge metrics
- No merged PRs in 30d
Description
Im converting my sc2Reply to json and for the last `SPlayerStatsEvent` I am getting
```
{
"m_playerId": 1,
"_eventid": 0,
"_event": "NNet.Replay.Tracker.SPlayerStatsEvent",
"_bits": 1312,
"_gameloop": 38911,
"m_stats": {
"m_scoreValueVespeneUsedCurrentTechnology": 2925,
"m_scoreValueVespeneFriendlyFireArmy": 0,
"m_scoreValueMineralsFriendlyFireTechnology": 0,
"m_scoreValueMineralsUsedCurrentEconomy": 12475,
"m_scoreValueVespeneLostEconomy": 483,
"m_scoreValueMineralsUsedCurrentArmy": 4700,
"m_scoreValueMineralsKilledArmy": 12200,
"m_scoreValueVespeneCollectionRate": 1478,
"m_scoreValueMineralsUsedActiveForces": 4700,
"m_scoreValueMineralsCollectionRate": 2525,
"m_scoreValueWorkersActiveCount": 72,
"m_scoreValueVespeneUsedCurrentArmy": 3925,
"m_scoreValueVespeneLostArmy": 1917,
"m_scoreValueMineralsKilledEconomy": 5700,
"m_scoreValueMineralsUsedCurrentTechnology": 8625,
"m_scoreValueVespeneUsedInProgressArmy": 0,
"m_scoreValueMineralsLostEconomy": 3563,
"m_scoreValueMineralsCurrent": 39269,
"m_scoreValueMineralsLostArmy": 3622,
"m_scoreValueVespeneKilledArmy": 7900,
"m_scoreValueVespeneKilledTechnology": 25,
"m_scoreValueVespeneKilledEconomy": 0,
"m_scoreValueMineralsUsedInProgressTechnology": 100,
"m_scoreValueMineralsUsedInProgressArmy": 0,
"m_scoreValueMineralsFriendlyFireArmy": 0,
"m_scoreValueVespeneUsedActiveForces": 3925,
"m_scoreValueVespeneCurrent": 21883,
"m_scoreValueMineralsLostTechnology": 2139,
"m_scoreValueMineralsUsedInProgressEconomy": 0,
"m_scoreValueMineralsFriendlyFireEconomy": 0,
"m_scoreValueVespeneUsedInProgressTechnology": 0,
"m_scoreValueFoodMade": 1134592,
"m_scoreValueMineralsKilledTechnology": 350,
"m_scoreValueVespeneLostTechnology": 100,
"m_scoreValueVespeneFriendlyFireEconomy": 0,
"m_scoreValueVespeneUsedInProgressEconomy": 0,
"m_scoreValueVespeneUsedCurrentEconomy": 0,
"m_scoreValueVespeneFriendlyFireTechnology": 0,
"m_scoreValueFoodUsed": 647168
}
```
I know that ladder games are at a faster speed (x1.4) than real time. However, when I load the same sc2Reply into GGGreplays.com, they are telling me the total game time is 29minutes 50seconds. No matter how I do the math I cannot get my game times to line up with theirs - so am I completely looking at this wrong or is their math off?
Here is the replay in question -
[Eastwatch LE (251).zip](https://github.com/Blizzard/s2protocol/files/1878412/Eastwatch.LE.251.zip)
Thanks for the support,
- Nef
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the timing calculation from the attached Eastwatch LE replay and compare the final _gameloop value with GGGreplays.com's reported duration. Trace how s2protocol converts game loops to time, then identify and document the source of the discrepancy; done means the conversion agrees with the expected replay duration or the mismatch is explained.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100