football
football copied to clipboard
The role assignment is confusing in 11_vs_11_{}_stochastic SCENARIO
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.
Hi @Atan03 Could you please tell me how did you set up the left and right teams as built in AI?
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.
Hi @Atan03. Thank you so much for this. It will really help me a lot. I am attaching below 2 screenshots:
- Custom made environment
- 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.