Hi there
We have installed the new Parrot Sphinx 2.3 Simulator including some UE4 worlds to test it with. I want to run the simulation headless in hopes to increase the real-time behavior of the simulation to test the efficiency of an external navigation contol system.
The documentation specifically mentions a way to turn off the HMI renderings by passing a flag named --RenderOffScreen. However, when I pass this argument to any of the UE4 Simulations, it seems to just be ignored and the simulation starts with everything still rendering.
I then tried out some other options, as well as some other parrot-ue4-xxxx simulations and It wouldn’t change anything, unfortunately. For example, I tried to pass the -help and -list-levels flags to both parrot-ue4-empty and parrot-ue4-forest (since it is mentioned in the configuration docs) but the simulations all just start as if nothing happend and my command line input seems to be ignored.
The only thing that worked is sphinx --help but since this does not take care of the rendering it is not what I need. Below is a list of commands (all flags with single and double dashes respectively) I have tried out to no avail.
parrot-ue4-empty -help and parrot-ue4-empty --help
parrot-ue4-forest -help and parrot-ue4-forest --help
parrot-ue4-empty -RenderOffScreen and parrot-ue4-empty --RenderOffScreen
parrot-ue4-forest -RenderOffScreen and parrot-ue4-forest --RenderOffScreen
parrot-ue4-empty -list-levels and parrot-ue4-empty --list-levels
parrot-ue4-forest -list-levels and parrot-ue4-forest --list-levels
Is there something I am missing? Or do these features not work as expected? I would greatly appreciate any help on that matter.
Kind regards,
> $ cat $(which parrot-ue4-empty)
#!/bin/sh
app_user="$(id --name --user)"
if [ "${app_user}" = "root" ]; then
echo "Running $(basename $0) as root is forbidden."
echo "Please run as non-root user."
exit 1
fi
UE4_TRUE_SCRIPT_NAME=$(echo \"$0\" | xargs readlink -f)
UE4_PROJECT_ROOT=$(dirname "$UE4_TRUE_SCRIPT_NAME")
chmod +x "$UE4_PROJECT_ROOT/Empty/Binaries/Linux/UnrealApp"
"$UE4_PROJECT_ROOT/Empty/Binaries/Linux/UnrealApp" Empty "$@" -preferNvidia -nosound
The log of the second command is rather large, but the line mentioned above is found in it.
Since I am a new user I cannot upload the log file here, so I can share it per mail if it is required.
Also, something else I just found out it that it opens the UE4 Application first, immediately closes it and then outputs help or available levels. It’s something I only noticed at this point because as soon as I saw the application opnening I just immediately hit CTRL+C and it didn’t even get that far.
Moreover, I don’t know why the headless option was ignored before, but it seems to work after trying the logs
So at this point it works for me but I cannot provide any steps to reproduce the issues I have experienced before I opened this issue. However, I feel like it would be worth mentioning that the -help and -list-levels flag output a lot of unrelated stuff beforehand and it is easy to miss it.
For example, see the -list-levels output I get, and consider the fact that the application opens and closes alongside this whole procedure: