Closed Amrit-pal-Singh closed 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.
When I run my code, I get
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.