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"

Blueprint TRASHCLASS issue on project load

I'm not even sure how best to explain this one. I'm having this problem within a couple of my classes, but I'll detail out one example of it

I have a blueprint called DefaultCombatant, one of the child blueprints off that is DefaultCharacter, from there, I have a child blueprint called Mystic.

Under Mystic, I have an ability called Cure Continue, with an input pin of DefaultCombatant that calls to a function (that is in DefaultCombatant and overridden in DefaultCharacter) called Heal.

If I compile DefaultCombatant, then compile DefaultCharacter, the warning goes away and everything works fine. However, everytime I close and open the project, the problem comes back.

You can see the exact warnings I'm getting in the image below (which prevents the Heal function from being called.

As an additional note, this all started happening when I created DefaultCombatant and reparented DefaultCharacter to it.

alt text

Product Version: UE 4.10
img.png (107.3 kB)
more ▼

asked Jan 05 '16 at 04:03 AM in Blueprint Scripting

avatar image

Fearsome Queso
8 2 5

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

1 answer: sort voted first

You shouldn't re-parent dependent classes.

If possible, rebuild your classes from scratch with the correct parent types from the beginning.

Re-parenting can be dangerous, usually its better to keep the old version, make it depreciated and then rebuild a new class.

more ▼

answered Jan 05 '16 at 09:45 AM

avatar image

887 57 16 52

avatar image Fearsome Queso Jan 05 '16 at 02:29 PM

I was really afraid that's what the recommended solution was going to be. I'll work on that over the next couple of days and see if it fixes the issue.

I appreciate the response!

avatar image Fearsome Queso Jan 09 '16 at 07:37 PM

I made all new blueprints from scratch, but it's still giving me the exact same problem as above.

avatar image DevilsD Jan 09 '16 at 11:08 PM

I remember having a similar problem in 4.8 but it wasnt due to a Reparent and i cant remember how i fixed it, i think i recreated the classes like i suggested.

So your class hierarchy is now DefaultCombatant as the base class and DefaultCharacter inherits from that and then Mystic inherits from DefaultCharacter.

Try implementing the function as an Interface member, that will do the trick for sure, or if possible change the reference to the exact class type.

avatar image Fearsome Queso Jan 10 '16 at 01:50 AM

Okay, so I took your idea of using an interface and reworked some code. I can compile things now, and the issues don't return when I reload the editor.

While it doesn't solve the technical issue I have, it does let me move forward, so that works.

Thank you!

(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