Error after packaging on Mac OS X

Hi everyone,

I just tried packaging the “Reflections” content demo with UE4 using Mac OS X 10.9.2

It looks like the package was successful, but when I try to run the packaged game, I get the following error message:

Game name case not detected for 'UE4Game'. The engine ini should contain an entry [URL]GameName with the name of the game in the correct case.

What does this mean?

ya, I can’t seem to build anything either. Same error but there are no docs that I can find to talk about how to build something for OS X.

Hey Guys -

Currently when you select File > Package > Mac you need to pass in arguments for non-code projects, or if you are using pak files. To do so open Terminal and enter the following :

Open -a ProjectName.app --args ../../../ProjectName/ProjectName.uproject -pak

This will launch the Packaged Game.

Nick Bullard-Bradley | Engine QA | Epic Games Inc.

I still get the same error:

open UE4Game.app --args …/…/…/ContentExamples/Content/Paks/ContentExamples-MacNoEditor.pak -pak

Game name case not detected for
‘UE4Game’. The engine ini should
contain an entry [URL]GameName with
the name of the game in the correct
case.

I should note that the .ini files are empty. Is there something I need to add to those to get this to work?

thanks - the command works with the .uproject -pak part

Has anyone figured this out? I get the same error.

read above - it works when you launch it from the terminal and with the arguments specified.

I tried and I still get the same error.

I entered this:

Open -a UE4Game.app --args /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/test/MacNoEditor/ContentExamples/Content/Paks/ContentExamples-MacNoEditor.pak

and I get

2092-screenshot+2014-03-22+22.58.12.png

Instead of path to the .pak file, use path to .uproject file and also add -pak param, like in NickBB’s post. This should do the trick.

Thanks, Michael. I am now typing this…

Open -a /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/Content/build/MacNoEditor/Engine/Binaries/Mac/UE4Game.app --args /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/OculusTest.uproject -pak

and I get this error:
LSOpenURLsWithRole() failed for the application /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/Content/build/MacNoEditor/Engine/Binaries/Mac/UE4Game.app with error -10810.

2136-screenshot+2014-03-23+09.39.45.png

I don’t know what can it be :frowning: Could you click Show Details in this window to show the crash log, copy the log to a text file and attach here? Thanks.

I know I must be missing something obvious. I started from scratch with the first person template and tried this:

Open -a UE4Game.app --args /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/OculusTest.uproject -pak

Now I get this error:

2142-screenshot+2014-03-23+10.21.05.png

Thanks and really appreciate the help.

For what it’s worth, I was able to reproduce this on my home Mac. I’m very sorry, but I don’t have any ideas what can be wrong and at the moment I have no way to debug this. We will investigate this first thing tomorrow.

Just to clear something up with what I posted earlier. The .uproject it’s looking for is not the one in Documents/Unreal Projects/MyPjectName/MyProject.uproject. So it’s not an absolute path that you need to pass, its relative to the the UE4Game.app, as it’s stored in the .pak file.

In your MacNoEditor Folder that gets created you have Engine and ProjectName folder.
In the image below, (i used Reflections) the right finder shows a packaged project with User Pak file disabled.
As you can see there is another copy of the .uproject here, which is what the UE4Game.app is looking for.
When using Pak file, this gets stored inside it the .pak file.

Try launching with the following command

Open -a /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/Content/build/MacNoEditor/Engine/Binaries/Mac/UE4Game.app --args ../../../OculusTest/OculusTest.uproject -pak

Let me know if this gets your game running

Hello Nick,
Your command,

Open -a /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/Content/build/MacNoEditor/Engine/Binaries/Mac/UE4Game.app --args …/…/…/OculusTest/OculusTest.uproject -pak

Is exactly what I tried, but I get this error:

LSOpenURLsWithRole() failed for the application /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/Content/build/MacNoEditor/Engine/Binaries/Mac/UE4Game.app with error -10810.

Could you check to see if /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/Content/build/MacNoEditor/Engine/Binaries/Mac/UE4Game.app has the executable bit set?

In a terminal window, change directory to /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/Content/build/MacNoEditor/Engine/Binaries/Mac
Then run ls -l and see if the UE4Game.app has the x in the permissions.

If it doesn’t, then running chmod +x UE4Game.app should fix the problem. If so, then it is a bug on our side where we are not properly setting the flags.

Hello

it does have the executable bit set…

-MacBook-Pro-2:Mac dalecarman$ ls -la
total 16
drwxr-xr-x 4 dalecarman staff 136 Mar 23 09:30 .
drwxr-xr-x 4 dalecarman staff 136 Mar 23 09:32 …
-rw-r–r–@ 1 dalecarman staff 6148 Mar 23 10:17 .DS_Store
drwxr-xr-x 3 dalecarman staff 102 Mar 23 09:29 UE4Game.app