Blizzard / s2client-proto

StarCraft II Client - protocol definitions used to communicate with StarCraft II.
MIT License
3.76k stars 430 forks source link

Missung Debug command to set tech state and resource values #117

Open ttinies opened 5 years ago

ttinies commented 5 years ago

I am contributing development toward a custom scenario runner that will both run the game and also set up a predefined game state. I am setting unit creation/destroy events and positioning them to my liking with the existing protocol.

However, as far as I can tell, the debug proto either ignores upgrade requirements or advances ALL techs one level for player#1 using DebugCommand.game_state. This feature would also need to be able to set upgrades for not only the requesting player, but other players, opponents included.

A second, lesser issue is to be able to specify resource values, but the provided resource indexes only provide the requesting player a large amount of resources. Yet there appears to be no way to set specific, independent values for both mineral and vespene.

(edited for clarity)