x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

'GlobalShaderCache missing' error when launching packaged Mac game

Hello! I've been having this problem for a few days now, and despite all my searching, I can't find the solution to this issue.

I cook and package my project on MacOS 10.10.5, where it launches fine, but when I try to launch the game on another Mac running 10.11.4, I get the following error:

Contents/UE4/Engine/GlobalShaderCache-SF_METAL_SM4.bin' is missing. Your application is built to load COOKED content. No COOKED content was found; This usually means you did not cook content for this build. It also may indicate missing cooked data for a shader platform(e.g., OpenGL under Windows): Make sure your platform's packaging settings include this Targeted RHI. Alternatively build and run the UNCOOKED version instead.

Although launching the game with the -opengl command line argument on 10.11.4 allows it to launch, I need the game to be able to start up without having to manually do this.

  • I have full "rebuild enabled"

  • I have "cook everything" enabled

  • I have OpenGL 3 (SM4) enabled under Platforms -> Mac -> Targeted RHIs

  • I have OpenGL 3 (SM4) enabled under Platforms -> Mac -> Cached Shader Formats

This project was based off of the 2D side scroller template, and when I package the 2D side scroller template exactly how it comes on 10.10.5, I get the same error on 10.11.4

Any help would be much appreciated. Thanks!

Product Version: UE 4.11
Tags:
more ▼

asked Apr 20 '16 at 05:07 AM in Packaging & Deployment

avatar image

treysedate
0 1 2 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

The default RHI on 10.11 is Metal but if you are building your project on 10.10 you won't be able to compile Metal shaders, so they are omitted from the project. This leads to the problem you have encountered. You'll need to build your project on a 10.11 Mac with an up-to-date Xcode installed to get Metal working on 10.11 or you'll need to setup the game to launch with the '-opengl' command-line argument on launch so that it forces the older OpenGL renderer even on 10.11.

more ▼

answered Apr 20 '16 at 10:00 AM

avatar image

marksatt-pitbull STAFF
1k 31 4 44

avatar image treysedate Apr 20 '16 at 01:02 PM

Ah, that's good to know. Thanks for the quick response. Do I have to manually open terminal and launch the game with the '-opengl' command line argument every time, or is there a way to make that happen by default (through UE4, terminal, etc.)?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

watch this video it explains evrything and shows u how to fix!! https://www.youtube.com/watch?v=rVU_MHkkY3I

more ▼

answered Oct 15 '17 at 12:25 PM

avatar image

Marso_
1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question