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"

No GameInstance in Standalone?

The past 2 days I've had some trouble with networking.

By now i narrowed it down to, what you see in the title.

I'm using a simple WidgetButton to fire this event: GetGameInstance -> Cast To MyGameInstance alt text When I playtest my Game in PlayInEditor(PIE) everything is working alright, and the Cast returns. However when i play in a Standalone setting, the Cast is returning the 'Cast Failed' node.

What am I missing?

Is it ok to have the game only run in PIE mode and i should just keep going?

Can I not access the GameInstance the way i am doing it?

Do i have to create a GameInstance manually if i want to use it in Standalone?

Product Version: UE 4.12
more ▼

asked Jul 08 '16 at 09:12 PM in Blueprint Scripting

avatar image

116 3 6 7

avatar image Flossing Oct 11 '16 at 08:26 AM

I am experiencing the same problem :|

avatar image Enlo Oct 11 '16 at 08:39 AM

Add a IsValid check before (!) the cast and see what happens. Or do a print of the class name. The bootstrap flow is actually different in PIE and Standalone. However, that should not matter when you try to access it from a button, since that is much later when everything is initialized anyway.

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

2 answers: sort voted first

I fixed the same issue by setting my game instance in the project settings back to the default value, running the game, then changing it back to my custom game instance and exporting. Hope that helps!

more ▼

answered Oct 11 '16 at 08:32 AM

avatar image

6 1 1

avatar image FilterGame Jul 03 '18 at 06:49 AM

I have same problem. Thank You. ^^

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

Is your custom game instance set in the project settings?

more ▼

answered Jul 09 '16 at 11:33 AM

avatar image

200 9 10 20

avatar image Heidi Jul 09 '16 at 02:31 PM

Yes it is

(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