Closed tonymrakovcic closed 3 months ago
adding -noturnkeyvariables to ue4 package seems to remove the problem, still not sure why it would be different on 2 comps
That's seems like an issue with Unreal's RunUAT.bat
or Unreal's support for TurnKey.
What ue4 package
does on Windows, it simply runs RunUAT.bat
subprocess. If said subprocess returns 0 while failing, ue4cli would just behave like if it succeed. There is no way to handle this case, it's not a bug with ue4cli.
The problem that OP encountered on his machine is most likely this one
Cross-referencing the details here with those in the linked forum thread, this does indeed appear to be an upstream Unreal Engine issue. Fortunately, it looks like this was fixed in Unreal Engine 5.3.0, and the fix is also trivial to backport to older versions of the engine: https://github.com/EpicGames/UnrealEngine/commit/9cbeb052b3b0d09ad895f5da946e08fb14c34b8f
Hello,
I am having a weird problem that I cannot really understand if it's a ue4cli problem, a UE problem or more specifically a UE5 problem I have 2 computers on which I package a plugin.
UE4 -> everything always works on both
UE5 -> on one computer everything works fine, on another, I get the wrong exit code for packaging.
This is a deliberate failed packaging because the problem only happens when the packaging fails (for any reason, let's say syntax error in the code)
The steps to reproduce, with the specific difference between computers:
Computer 1 Result
(Everything is fine, the packaging failed and we go on with our lives)
Computer 2 Result
(packaging failed, yet we get a exit code 0)
The main problem being the second computer process actually exits with exit code 0 I'm presuming because of the Turnkey sub process. Which in turn really messes up our CI process, since it basically breaks, and continues with the broken build since the CI isn't halted. I cannot seem to reproduce this in computer 1, google doesn't really help and I have not found any project or engine based setting regarding "turnkey" Both are windows 10, ue5 5.0.1 installed from the launcher, ue4cli-0.0.54
Do you have any idea or clue on what would make this different on 2 computers?