Skip to content

Protobuf definition out of date? #7

Closed
@NikEyX

Description

@NikEyX

Hi,

Could it be that you're using an outdated version of the sc2 client protobuf code?
For example, this is in the current s2clientprotobuf/sc2api.proto:

message Action {
optional ActionRaw action_raw = 1; // Populated if Raw interface is enabled.
optional ActionSpatial action_feature_layer = 2; // Populated if Feature Layer interface is enabled.
optional ActionSpatial action_render = 3; // Not implemented. Populated if Render interface is enabled.
optional ActionUI action_ui = 4; // Populated if Feature Layer or Render interface is enabled.
optional ActionChat action_chat = 6; // Chat messages as a player typing into the chat channel.
}

Whereas you seem to have generated the C# code based on this (as per your current github commit):

message Action {
ActionRaw action_raw = 1; // Populated if Raw interface is enabled.
ActionSpatial action_feature_layer = 2; // Populated if Feature Layer interface is enabled.
ActionSpatial action_render = 3; // Not implemented. Populated if Render interface is enabled.
ActionUI action_ui = 4; // Populated if Feature Layer or Render interface is enabled.
repeated ActionChat chat = 5; // Chat messages as a player typing into the chat channel.
}

This leads to chat not working at all. There might be more things broken though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions