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"

Blueprints: Some modified variables of Custom Components will reset if changes are made to custom component parent classes

I'm working on a game with a variety of different units and skills, and skills are given to units in the following manner:

Skills are custom components, with "Skill" as a base class that inherits from Custom Component, which is inherited by "PassiveSkill", "TargetedSkill", etc. blueprints, which are then inherited by actual skills that are placed on units such as "Attack".

"TargetedSkill" handles much of the functionality that is shared between different skills, such as the range, power, and cost of the skill, whether it needs line of sight, if it has area of effect, etc.

I then place one of the skills (Let's use Attack as the example) onto a unit as a component. I then customize the skill by changing the default values on the component - Instead of 1 damage it does 3 damage; the max range is set from 1 to 2, the name of the skill is set to "Spear" and so on. Everything works great up to this point.

If I decide that I wanted to add a new variable to the parent class "Skill", some but not all of the customized values of the "Attack" component will reset to the default properties of "Attack". The max range might be reset to 1, and the custom name of the skill might revert from "Spear" back to "Attack", although the attack will still do 3 damage. There does not seem to be an obvious pattern as to which variables will revert back to default.

Product Version: UE 4.8
Tags:
more ▼

asked Jun 29 '15 at 04:26 PM in Bug Reports

avatar image

JoystickMonkey
98 4 8 13

avatar image Slavq Jun 29 '15 at 05:14 PM

Does it happen after packaging? It might be the same bug i'm experiencing HERE and HERE. I have similar class setup, "Skill" master class and children skills which are deriving/overwriting some default values. But it also resets variables from other classes (see more in my bug reports)

avatar image JoystickMonkey Jun 29 '15 at 05:40 PM

It does seem that there are similarities between these issues. My issue occurs when compiling one of the parent classes, although I haven't tried to package this project yet.

avatar image Adam Davis STAFF Jul 01 '15 at 06:03 PM

Hi JoystickMonkey,

What are the specific steps that you take that reproduce this on your end. Can you walk me through so I can try to reproduce this on my end? Additionally, does this occur in a blank project with no additional content?

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

1 answer: sort voted first

I've been working on a repro, but can't seem to get it to work. Will let you know if I get anything solid in the future. Thanks!

more ▼

answered Jul 01 '15 at 10:24 PM

avatar image

JoystickMonkey
98 4 8 13

(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