LARG / HFO

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

Demos #48

Open psFournier opened 6 years ago

psFournier commented 6 years ago

Hello, I've just installed and compiled the whole thing, which worked fine. But when I try to run the demos, the visualizer appears and does nothing: running "./bin/HFO --offense-agents=1 --no-sync &" and "./example/hfo_example_agent" for example leads to the soccer field window with all players staying in line above the field and no animation at all. Meanwhile, things seem to work out of the visualizer. Do you know if there are specific requirements for Qt4 to make the visualization work or anything that could explain the behavior ? Thanks in advance

drallensmith commented 6 years ago

Can you run soccerwindow2 on a .rcg log file?

psFournier commented 6 years ago

I tried that on the log file obtained after having launched the command above, soccerwindow2 opens and tell me "Empty log file [log/2017...-base_left_0-vs-base_right_0.rcg] whereas episodes ran (all OutOfTime) properly in terminals.

drallensmith commented 6 years ago

Does it work at all (albeit way too fast to see much) without --no-sync? And how about the log file if you do HFO --headless?

psFournier commented 6 years ago

Running "./bin/HFO --offense-agents=1 &" in a terminal and "./example/hfo_example_agent" after works and leads to (much more) trials that end with status OutOfTime. Running HFO --headless and soccerwindow after prints a lot of things to the terminal and gives error "Empty log file [log/incomplete.rcg]".

drallensmith commented 6 years ago

When you ran soccerwindow2 for the second case, what log file did you point it at via "-l"?

psFournier commented 6 years ago

When i run the commands from my previous message, it generates three incomplete.rcg, .rcl and .hfo files. (Is it normal that they're called this way ?) I ran soccerwindow2 with the .rcg.

arberqoku commented 6 years ago

I have also encountered the same problem:

The players move (rotate in place) while waiting for the agent to connect, but then as soon as the game begins, everything freezes. Same thing happens when starting a 1v1 game between two NPCs. The game seems to be running in background, since the logger works fine and the log files are created.

When trying to replay a game through a logfile, an error "Empty log file" is thrown as can be seen from the screenshot, though the logfile is not empty.

screenshot from 2017-10-26 11-46-31

Anybody has the same problem and/or found a solution yet?

mhauskn commented 6 years ago

I've occasionally had this happen.

What OS are you using? What is the command you run to start the game? Have you tried without the visualizer? Have you made sure all rcssservers are dead (e.g. kill -9 rcssserver)?

On Thu, Oct 26, 2017 at 3:19 AM, arberqoku notifications@github.com wrote:

I have also encountered the same problem:

The players move (rotate in place) while waiting for the agent to connect, but then as soon as the game begins, everything freezes. Same thing happens when starting a 1v1 game between two NPCs. The game seems to be running in background, since the logger works fine and the log files are created.

When trying to replay a game through a logfile, an error "Empty log file" is thrown as can be seen from the screenshot, though the logfile is not empty.

[image: screenshot from 2017-10-26 11-46-31] https://user-images.githubusercontent.com/24175839/32047639-e3ff0b22-ba46-11e7-8262-c52be1593dfa.png

Anybody has the same problem and/or found a solution yet?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/LARG/HFO/issues/48#issuecomment-339620722, or mute the thread https://github.com/notifications/unsubscribe-auth/AABNOcHmYabdefynxmftEfhzC9qcHE0Aks5swFycgaJpZM4PvcUZ .

arberqoku commented 6 years ago

Everything is running on ubuntu 16.04.

I have tried plenty of commands: 1v1 game between NPCs with visualizer: ''./bin/HFO --offense-npcs=1 --defense-npcs=1 --no-sync" 1v1 game no visualizer: ''./bin/HFO --offense-npcs=1 --defense-npcs=1 --headless" in order to replay the .rcg file. It gets interesting when I try to connect an agent ("./bin/HFO --offense-agents=1 --offense-npcs=2 --defense-npcs=2 --no-sync"), because the NPCs are visible and constantly turn back and forth while waiting for the agent to connect. But then, as soon as the agent connects (game begins) everything stops and only the logger remains active in the terminal.

screenshot from 2017-10-28 15-18-52

Also tried running a headless game, and then replaying the rcg file through the command "./bin/soccerwindow2 -l log/20171028152915-base_left_0-vs-base_right_0.rcg". After parsing the whole file I get the following message:

screenshot from 2017-10-28 15-31-53

Somehow it shows data size = 0..

drallensmith commented 6 years ago

I find it usually shows up data size = 0, but then proceeds to display the game in any event. (It also typically doesn't show up until one actually clicks on the soccerwindow2 icon on the bottom bar on OS X; if nothing is showing up at all for soccerwindow2, it may be a windowing system interfacing issue.)

-Allen

On Sat, Oct 28, 2017 at 8:39 AM, arberqoku notifications@github.com wrote:

Everything is running on ubuntu 16.04.

I have tried plenty of commands: 1v1 game between NPCs with visualizer: ''./bin/HFO --offense-npcs=1 --defense-npcs=1 --no-sync" 1v1 game no visualizer: ''./bin/HFO --offense-npcs=1 --defense-npcs=1 --headless" in order to replay the .rcg file. It gets interesting when I try to connect an agent ("./bin/HFO --offense-agents=1 --offense-npcs=2 --defense-npcs=2 --no-sync"), because the NPCs are visible and constantly turn back and forth while waiting for the agent to connect. But then, as soon as the agent connects (game begins) everything stops and only the logger remains active in the terminal.

[image: screenshot from 2017-10-28 15-18-52] https://user-images.githubusercontent.com/24175839/32134750-3ec8876e-bbf4-11e7-874a-fa7848e01cc6.png

Also tried running a headless game, and then replaying the rcg file through the command "./bin/soccerwindow2 -l log/20171028152915-base_left_0-vs-base_right_0.rcg". After parsing the whole file I get the following message:

[image: screenshot from 2017-10-28 15-31-53] https://user-images.githubusercontent.com/24175839/32134820-7fc530a4-bbf5-11e7-84f8-0d3f3500ead2.png

Somehow it shows data size = 0..

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/LARG/HFO/issues/48#issuecomment-340191592, or mute the thread https://github.com/notifications/unsubscribe-auth/AZsckauit25C__rDdFws0zWzhSxvl1rEks5swy6dgaJpZM4PvcUZ .

rinuboney commented 6 years ago

I also have the same problem as described by @psFournier and @arberqoku. I'm also using Ubuntu 16.04. Any updates?

Reiku95 commented 5 years ago

It's a rcssmonitor(and soccerwindow2) bug. Reinstall Ubuntu and set your location to New York or switch to an English locale. REPORTING a language bug

JoaoPIST commented 5 years ago

A workaround is to prepend LANG=C before executing soccerwindow2 (or HFO non-headless).