LARG / HFO

Half Field Offense in Robocup 2D Soccer
MIT License
228 stars 93 forks source link

No matching processes belonging to you were found, when trying to kill rcssserver #118

Closed Amrit-pal-Singh closed 3 years ago

Amrit-pal-Singh commented 3 years ago

When I run my code, I get

HFO/src/strategy.cpp 198: already initialized.
***ERROR*** Failed to read team strategy.

Then I found out from this issue https://github.com/LARG/HFO/issues/75, that it was because of rcssserver. I tried to manually kill the process using killall -9 rcssserver, but then it shows. No matching processes belonging to you were found. If anyone can help me in this, i would be greatly appreciated.

Amrit-pal-Singh commented 3 years ago

The issue was that I was not running the server first. To start the server run the command.

./bin/HFO --offense-agents=1 --defense-npcs=1 --no-sync 

Keep in mind there are 2 options in command one is --offense-agents and other is --offense-npcs, npcs means non player character, which HFO provides and agents means the agent which you will connect. You can connect it using any example file like ./example/hfo_example_agent and check the port before connecting.