GameInstance is not in the patch

When I produced patch for my android game, “Game Instance” not included in the patch.

I tested by adding new variable inside “GameInstance” and display that variable’s value.
After I updated the game from android phone, the variable’ value not displayed and game is crushed.

Also, I tested with “GameMode” and “GameState”, not only with variable but also with function, but result is same:game is crushed.

Is this normal? I mean, Unreal does not support changes to “GameInstance” ?
If so, everytime I make changes to “GameInstance”, users have to download the whole package which’s size is big(maybe bigger in the future).

P.S…my project is coded everything only in Blueprint, and changed to C++ when packaging.
P.S I also tested by adding new types of contents which are “3D Meshes”, “Paper 2d Spirites”, “Data Table”, “Enum”, “Object”, “Actor”, “Map”. But those are include inside the patch and working correctly.

Hey did you tried to do full rebuild / repack?

Because as i know patching do not support code changes. Code changing should be done manually!
Ref links:

Im not sure about this, but if you say when you redownload the whole package and it works… then its true…

maybe a

1 Like

Hello, I tried full rebuild but not work.

Some code changes are included in the patch, like changes in widgets’ events, actors’ variables n functions, etc…
But except those bp classes’ code : GameInstance, GameMode, GameState

I think, when system mounts the patch file, it needs to re-load those classes to make them work.
Other code changes are working bcoz the level is re-loaded, but this is just my opinion.

Yeah, when I make release package and redownload the whole package, it works, every changes are included. Well, for now, I will avoid changing those classes in the future patches, except when it’ll be necessary.

Anyway, thanks for the answer bcoz in these days, some questions drip into the abyss of forgotten. :stuck_out_tongue:

Did you find a solution to this that would force patches to include changes to GameInstance/GameModes/GameStates?

No I didnt.
I think it is impossible for GameInstance.
But for GameMode, GameState… “gameplay feature” in UE5 can make it possible

I’m afraid I cannot upgrade to UE5. I need a solution for UE4.26 source :frowning: