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"

Hot reload blueprint reinstancing issue

I've found a bug on 4.16 that seems to be a regression with relation to hot reload. These are the steps to reproduce it:

  • Create an empty C++ project

  • Create in C++ a UCLASS that extends APlayerController

  • Create in C++ a UCLASS that extends AGameModeBase

  • Compile

  • Create a Blueprint object that extends your C++ Game Mode class

  • Set the default player controller for that blueprint object as your own APlayerController subclass. Save

  • Create a level and set that game mode as the default game mode for that world. Save

  • Go back to C++, and add a UPROPERTY (can be anything) to both classes you created

  • Hit compile on the editor

  • When the code finished compiling and hot reloading, check the blueprint game mode class. The default player controller will be set to None instead of your C++ PlayerController subclass

This only happens if both the game mode and player controller changed their properties (needing to be reinstanced) in the same compilation

Product Version: UE 4.16
more ▼

asked Jun 15 '17 at 02:23 PM in Bug Reports

avatar image

16 6

avatar image jfaztk Jun 30 '17 at 02:41 AM

humble bump

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

1 answer: sort voted first

Hi waneck,

Sorry for not looking at this sooner. I was able to reproduce the issue in 4.16.2, as well as in 4.15.3, so I don't believe it is a regression. I was able to find an existing ticket (UE-37694) that may be talking about what is going on here. In order to verify that is the case, could you provide the exact names that you are using for the new APlayerController and AGameModeBase classes that you are creating at the beginning of your repro steps?

If the name of your AGameModeBase class would come before the name of your APlayerController class alphabetically, could you please try the same repro with names that would have the APlayerController class come first alphabetically and see if you get the same result?


more ▼

answered Jul 26 '17 at 05:59 PM

avatar image Mellnik Sep 21 '18 at 07:42 PM

I have the same issue in 4.20. After hot-reloading, it says "failed to resolve archetype object". Once that happens the blueprint is somehow corrupt and I have to rollback. Appears to be unfixable for me.

(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