Hi, I’m developing a renderfarm plugin for Datasmith that starts many instances of unreal (4.21), and because of various other bugs it’s become clear that I can’t use UE4Editor-Cmd.exe to run it without a gui. I’ve worked around the issue for now, and have everything from my script working in the gui, but I need a way to close Unreal after the script has finished. My problem is that I can’t seem to get the execute_console_command function to work at all.
Am I doing this wrong? All of the following fail to produce anything for me:
unreal.SystemLibrary.execute_console_command(unreal.EditorLevelLibrary.get_editor_world(), 'QUIT_EDITOR')
unreal.SystemLibrary.execute_console_command(unreal.EditorLevelLibrary.get_all_level_actors()[0], 'QUIT_EDITOR')
unreal.SystemLibrary.execute_console_command(unreal.EditorLevelLibrary.get_editor_world(), 'DumpConsoleCommands')
unreal.SystemLibrary.execute_console_command(unreal.EditorLevelLibrary.get_editor_world(), 'rhi.DumpMemory')