Custom Game Instance dont work in Shipping Build
i have a small Problem. In my game i made a custom game instance. This instance is in C++. Then i made from this instance a BlueprintInstance to save values in. This values i use to load at the Level changing.
In the Editor or the standalone mode all works perfect. But if i build a packaged game and Play it, nothing is saved and loaded.
I changed the game instance under Project Settings->modes and maps (?). In the DefaultEngine.ini it is changed lik this:
What's wrong? Why does it work in Editor and standalone but not in the packaged build? Can anyone help me out with this?
asked Apr 26 '16 at 01:55 PM in Packaging & Deployment
So far I have been unable to reproduce the issue that you described. However, I did have a chance to discuss the issue with a coworker and he brought me back to my original suspicion that either the GameInstance or the Character were not loaded yet when the attempt was made to transfer data from one to the other. The Engine does not guarantee the order in which elements will be loaded when the game begin, and the fact that adding a brief delay allows everything to work for you seems to point in this direction.
In the setup that I was testing, it seems like the various elements of the game were all loading in an order that allowed me to get by without a delay, but any time you are referring to another Blueprint or class at the very beginning of the game, it is usually a good idea to provide a brief delay to make sure everything is fully loaded.
answered May 18 '16 at 04:15 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here