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"

Crash: Objects have the same fully qualified name but different paths

My situation is as follows:

I have a custom Character class (PWNCharacter extended from ACharacter) and a CharacterStats class (PWNCharacterStats extended from UObject).

CharacterStats is marked as Blueprintable and I've created a Blueprint called "PWNCharacterStatsBP". I've also created a Blueprint of my Character (PWNCharacterBP). The idea is to allow designers to customize a CharacterStats Blueprint and assign it to a character.

To give some more details, In PWNCharacter.h I declare the following:

 // Character Stats
 public:
     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PWNCharacter", meta = (AllowPrivateAccess = "true"))
     TSubclassOf<class UPWNCharacterStats> CharacterStatsClass;
 
 protected:
     UPROPERTY()
     UPWNCharacterStats* CharacterStats;

And in PWNCharacter.cpp I create an instance of PWNCharacterStats class as follows:

 // Sets default values
 APWNCharacter::APWNCharacter()
 {    
     // Other stuff above
 
     // Stats - Provide a default value for the class to spawn
     CharacterStatsClass = UPWNCharacterStats::StaticClass();
 }
 
 void APWNCharacter::OnConstruction(const FTransform & Transform)
 {
     Super::OnConstruction(Transform);
     
     // Spawn CharacterStats
     CharacterStats = NewObject<UPWNCharacterStats>(this, CharacterStatsClass, TEXT("CharacterStats"));
 }

So now in the Editor, on my PWNCharacterBP I assign the PWNCharacterStatsBP to the CharacterStatsClass variable, and as soon as I do that the engine crashes with the following:

 Objects have the same fully qualified name but different paths.
     New Object: PWNCharacterStatsBP_C /Engine/Transient.World_3:PersistentLevel.PWNCharacterBP_C_1.CharacterStats
     Existing Object: PWNCharacterStats /Engine/Transient.World_3:PersistentLevel.PWNCharacterBP_C_1.CharacterStats

Any ideas what's happening here? I've already tried: Deleting Intermediate folder and regenerating VS files Moving the Blueprints to different folders * Deleting the Blueprints and recreating them

Product Version: UE 4.17
Tags:
more ▼

asked Aug 23 '17 at 01:15 AM in Bug Reports

avatar image

staticvoidlol
2.6k 95 41 111

avatar image AlekseyIlin Dec 25 '17 at 11:01 AM

Has anyone found a solution to this?

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

2 answers: sort voted first

Its bug which is fixed in 4.18.1 Bug

more ▼

answered Feb 23 '18 at 10:58 AM

avatar image

nitin.parmar
15 1 3

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

Not fixed, still happening in 4.22

more ▼

answered Aug 09 '19 at 05:05 PM

avatar image

DEV7591
1 1 2

(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