Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relationship between pysc2 and s2client-api #334

Open
ava6969 opened this issue Jun 10, 2021 · 0 comments
Open

Relationship between pysc2 and s2client-api #334

ava6969 opened this issue Jun 10, 2021 · 0 comments

Comments

@ava6969
Copy link

ava6969 commented Jun 10, 2021

I have been building a c++ based drl library, I am currently testing my library on the starcraft env. I am having troubles implementing some of the actions like select uni, army.. Can I please get any guidelines on what functions to call. I have this 3 currently.

    inline void moveCamera() final
    {
        ActionsFeatureLayer()->CameraMove(current_action_arg.minimap);
        ActionsFeatureLayer()->SendActions();
    }

    inline void selectPoint() final
    {
        ActionsFeatureLayer()->Select(current_action_arg.screen, current_action_arg.select_point_act);
        ActionsFeatureLayer()->SendActions();
    }

    void selectRectangle() override
    {
        ActionsFeatureLayer()->Select(current_action_arg.screen, current_action_arg.screen2);
        ActionsFeatureLayer()->SendActions();
    }

    void controlGroup() override
    {
        auto obs = Observation();
        auto const& army = obs->GetUnits(sc2::Unit::Alliance::Self, IsArmy(obs));

        for(auto const& unit: army )
        {
          
        }
    }
  1. What if i was getting observations from the rgb screen, how will i still move camera Action()->CameraMOve() isnt implemented
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant