-
Notifications
You must be signed in to change notification settings - Fork 93
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
Exp2 #9
Exp2 #9
Conversation
Thanks for the PR. The simulator runs much faster without the other agents connected! One problem I've noticed is that games start before the player-controlled-agent has connected. More comments to follow. |
When testing on OSX, the game doesn't start because the trainer never gets past the checkIfAllPlayersConnected call. The players never report in. The problem stems from too small a wait time between starting / terminating players. See in-line comments below. |
# Launch offense players | ||
for player_num in xrange(1, 12): | ||
player = self.launch_player(player_num, play_offense = True) | ||
time.sleep(0.1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change to 0.2 for stability on OSX.
Alright. I wasn't able to replicate the game staring before agent connection problem on Ubuntu 15.04. Will change the sleep value and report. |
Yeah, things work correctly for me on Ubuntu. OSX is just weird... But the weirdness existed prior to this PR. So after you change the sleep values, this looks good. |
Actually on Ubuntu, the following command does not work correctly: (./bin/HFO --offense-agents=1 --offense-npcs=0 --no-sync &) && ./example/hfo_example_agent Instead of having an offense agent, we get an offense npc. The offense agent then dies:
On further inspection this seems to be caused by the no-sync flag. |
This problem is gone when I added sleep time after the agent connect too. I noticed another common problem in this pull request and also in the master branch. |
Cool, can you push your changes so this PR gets updated? |
Hey, just wanted to make sure this thread doesn't go stale. Can you push the changes so I can verify that examples work correctly? |
Sorry about that was a bit busy with Sarsa. Will push it immediately. |
Testing on another Ubuntu box, the basic single agent offense example is still giving me the same error described above even without --no-sync flag. An alternative way of going about this would be to not kill the un-needed team members until after everyone has joined. I'll poke around tomorrow and see if I can figure something out... |
Hey, I did some refactoring to your PR. Tried to create a PR against your On Thu, Oct 8, 2015 at 2:22 PM, UNiQ10 notifications@github.com wrote:
|
Addressed by PR #12 |
Hi Matthew,
Prof. Shivaram had asked us to permanently remove the non HFO players. We are directly using the sample_player binary rather than the start.sh script so that we get each individual player pid's which is later used to kill the unnecessary players.
Please check if this is fine.