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"

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.

Product Version: UE 4.17
Tags:
more ▼

asked Feb 21 '18 at 05:27 AM in Packaging & Deployment

avatar image

PACCAP
35 1 3 8

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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:

https://answers.unrealengine.com/questions/420635/patching-doesnt-include-code-changeschange.html

https://answers.unrealengine.com/questions/478199/what-is-the-correct-way-to-patch-with-patch-obb-ex.html

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

maybe a

more ▼

answered Feb 28 '18 at 11:46 AM

avatar image

AmphDev
1.5k 15 9 33

avatar image PACCAP Mar 05 '18 at 04:00 AM

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. :P

(comments are locked)
10|2000 characters needed characters left
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