football icon indicating copy to clipboard operation
football copied to clipboard

The role assignment is confusing in 11_vs_11_{}_stochastic SCENARIO

Open Atan03 opened this issue 2 years ago • 3 comments

The initial positions of the players in 11_vs_11_{}_stochastic are shown as below: 捕获 As you can see,the player 3,4,5,6 are in the backline. However,during the game, the re-initialising positions are not corresponding these initial positions: 捕获 As you can see,the player 1,2,3,4 are in the backline this time. A more visual example, the scenario 11_vs_11 stochastic assign player 9 the role of a CM, but puts it in the CF position when re-initialising as the screenshot of step 1555 shown. 捕获 I carefully checked all the 11_vs_11 scenarios under the folder, and I found that only the 11_vs_11 kaggle assigns the right roles corresponding to the positions after re-initialising. 捕获 As you can see ,the player 1,2,3,4 are in the backline and the player 9 is assigned the role of CF.

I compare the build-in AI’s behaviour under 11_vs_11_kaggle and 11_vs_11_stochastic,the AIs in former scenario seem more reasonable and keep a better formations. So i think that the role of player may be important to the rule-based build-in AI.

For the training phase, this is also unreasonable if we add the role information in the feature.

To sum up, I suggest that revising the scenario file of 11_vs_11_?_stochastic to the same as 11_vs_11 kaggle.

Atan03 avatar Jun 11 '22 08:06 Atan03

Hi @Atan03 Could you please tell me how did you set up the left and right teams as built in AI?

kaustesseract avatar Aug 05 '22 02:08 kaustesseract

Hi @Atan03 Could you please tell me how did you set up the left and right teams as built in AI?

Hi, although it is not relevant to this issue, but I think the error you get may be caused by the action set. When trying to use build-in ai action, you should add config to the function gfootball.env.create_environment like the picture below, and then you could use 19 to denote executing the build-in ai action. 捕获 Or you can also set the player uncontrollable in your scenario file like this. In my experience, the uncontrollable player will be taken over by the build-in ai core automatically. 捕获

Atan03 avatar Aug 05 '22 11:08 Atan03

Hi @Atan03. Thank you so much for this. It will really help me a lot. I am attaching below 2 screenshots:

  1. Custom made environment
  2. The create_environment function It will be really helpful if you can look at it and let me know if I have done the setup correctly.

Screenshot from 2022-08-05 22-36-16

Screenshot from 2022-08-05 22-37-44

kaustesseract avatar Aug 05 '22 12:08 kaustesseract