Is it possible to extract the actions of the bot ?

41 views
Skip to first unread message

Haziq Razali

unread,
Jan 27, 2021, 8:50:48 AM1/27/21
to Google Research Football

I am trying to extract the actions such as dribble, long pass, etc performed by the bot and was wondering how I can do this as the observations do not list their actions.

Piotr Stanczyk

unread,
Jan 27, 2021, 12:11:27 PM1/27/21
to Haziq Razali, Google Research Football
This is not possible in general, as the "set of actions" done by internal bots is different from the public actions. Extracting "passes" could be done by hacking around the code, but is not exposed by default.

On Wed, Jan 27, 2021 at 2:50 PM Haziq Razali <haziqb...@gmail.com> wrote:

I am trying to extract the actions such as dribble, long pass, etc performed by the bot and was wondering how I can do this as the observations do not list their actions.

--
You received this message because you are subscribed to the Google Groups "Google Research Football" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-research-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-research-football/65ca9f6d-70ca-4e16-87a3-697eb702a5fbn%40googlegroups.com.

Haziq Razali

unread,
Jan 27, 2021, 5:42:15 PM1/27/21
to Google Research Football

Extracting "passes" could be done by hacking around the code, but is not exposed by default.

Thank you. Could you point me in the right direction for doing this ? I looked through the play_game.py python script as well as some of the other functions and files it calls but have not been getting any closer to determining the code that will let me save the actions.

Piotr Stanczyk

unread,
Jan 28, 2021, 2:12:36 AM1/28/21
to Haziq Razali, Google Research Football
Message has been deleted

Haziq Razali

unread,
Jan 28, 2021, 5:37:23 PM1/28/21
to Google Research Football
Thank you. Just wanted to confirm that I will be able to extract actions performed by the AI such as shot, long pass, header, etc and not only the pass right ? Namely the list of actions found here https://github.com/google-research/football/blob/cae99cae9932a971b502d0a4d769a6130ee40b97/third_party/gfootball_engine/src/gamedefines.hpp#L95

enum e_FunctionType {
  e_FunctionType_None,
  e_FunctionType_Movement,
  e_FunctionType_BallControl,
  e_FunctionType_Trap,
  e_FunctionType_ShortPass,
  e_FunctionType_LongPass,
  e_FunctionType_HighPass,
  e_FunctionType_Header,
  e_FunctionType_Shot,
  e_FunctionType_Deflect,
  e_FunctionType_Catch,
  e_FunctionType_Interfere,
  e_FunctionType_Trip,
  e_FunctionType_Sliding,
  e_FunctionType_Special
};

Piotr Stanczyk

unread,
Jan 29, 2021, 2:27:47 AM1/29/21
to Haziq Razali, Google Research Football
Yes, that is correct. Just note some of those actions are not part of the actions available to the agents.

Haziq Razali

unread,
Jan 29, 2021, 6:47:08 AM1/29/21
to Google Research Football
Noted. And thank you very much!
Reply all
Reply to author
Forward
0 new messages