Skip to content

Soccer Twos - Fixes missing tag change, plus code cleanup #1813

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

Merged
merged 4 commits into from
Apr 3, 2019

Conversation

awjuliani
Copy link
Contributor

  • Tag on agent was not changed when assigned to a new team.

(We probably want to merge this into a v0.7.0a hotfix, or potentially roll into v0.8.

@awjuliani awjuliani requested a review from vincentpierre March 11, 2019 22:46
vincentpierre
vincentpierre previously approved these changes Mar 12, 2019
{
detectableObjects = new string[] { "ball", "redGoal", "blueGoal",
detectableObjects = new[] { "ball", "redGoal", "blueGoal",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change that ? It makes it less explicit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code is more concise. The extra string is redundant, because the contents are clearly already strings.

@awjuliani awjuliani changed the title Fixes missing tag change, plus code cleanup Soccer Twos - Fixes missing tag change, plus code cleanup Mar 12, 2019
@xffxff
Copy link

xffxff commented Mar 15, 2019

I build soccer based on this branch, but the goalkeeper went out of the penalty area and acted more like a striker.
image
My env info is the following
image

@awjuliani awjuliani changed the base branch from master to develop April 1, 2019 20:54
@awjuliani
Copy link
Contributor Author

Hi @xffxff

Thanks for pointing out this bug. I've just added a commit which will address this.

@Unity-Technologies Unity-Technologies deleted a comment Apr 1, 2019
@awjuliani awjuliani merged commit 51f82fd into develop Apr 3, 2019
@awjuliani awjuliani deleted the hotfix-soccer branch April 3, 2019 23:11
LeSphax pushed a commit to LeSphax/ml-agents-1 that referenced this pull request May 3, 2020
…nologies#1813)

* Fixes missing tag change, plus code cleanup

* Fix bug in agent position setting
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants