Skip to content

Commit 1911f1a

Browse files
[ueGear] Remote Control ObjectPath defaults to 5.5+
1 parent 4101139 commit 1911f1a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

release/scripts/mgear/uegear/bridge.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self, port=30010, host_address="127.0.0.1"):
4141
False # whether client is still executing a command.
4242
)
4343
self._commands_object_path = (
44-
"/Engine/PythonTypes.Default__PyUeGearCommands"
44+
"/ueGear/Python/ueGear/commands_PY.Default__PyUeGearCommands"
4545
)
4646
self._headers = {
4747
"Content-type": "application/json",
@@ -54,14 +54,15 @@ def pre_run(self):
5454
"""
5555
A pre run check that will try to retrieve the Engine version, if it fails it will change the object path.
5656
57-
This is due to UE 5.5 handling python packages differently.
57+
This is due to UE 5.4- and 5.5+ handling python packages differently.
5858
"""
5959
result = self.execute("get_unreal_version").get("ReturnValue", "")
6060
if result:
6161
print(f"[UEGear Remote Session] {result}")
6262
else:
63-
print(f"[UEGear Remote Session] Pre run failed, changing Object Path to 5.5+ structure")
64-
self._commands_object_path = "/ueGear/Python/ueGear/commands_PY.Default__PyUeGearCommands"
63+
print("[UEGear Remote Session] Please ignore the error message above.")
64+
print(f"[UEGear Remote Session] Pre run failed, changing Object Path to 5.3, 5.4 object path structure")
65+
self._commands_object_path = "/Engine/PythonTypes.Default__PyUeGearCommands"
6566

6667
result = self.execute("get_unreal_version").get("ReturnValue", "")
6768
if result:

0 commit comments

Comments
 (0)