Children class defaults returned to parent values

Hello,

I remember seeing this bug appearing in these forums a year ago or so, but has there been any change to this?

Currently, I have a sort of a skill/spell-system implemented in my game. All the skills inherit a parent skill which includes some default skill variables such as cooldown, casttime, damage, range, projectile speed and so on. Whenever I specify the children class defaults in their blueprints everything works correctly until I save everything and close UE. Next time I’ll open the project, the values of these variables in children skills have been returned to the values of the parent skill.

What’s wrong? Why won’t these be saved… It’s kinda irritating to start modifying the project by turning all children class defaults back to the right values every time I open the project…

Hi ,

  • Does this occur in a clean, blank project with no additional content or is it limited to one project?
  • What steps can I take to reproduce this on my end?
  • Do you have any circular references in the blueprints where this is occurring?

Hello, I’ve got time to explore this issue further hopefully on next week. Mby then you can reproduce it on ur end :slight_smile: For now, all I can say is that the project is build on third person template

Is it true that you haven’t faced similar occasions, even though there have been many posts about this matter?

Hi ,

Have you been able to investigate further on this matter? I have not been able to reproduce this on my end thus far so additional information will be helpful to determine what may be causing this, specifically starting with the three questions above.

  1. I wasn’t able to reproduce the issue on a new clear blank project. The one this is occurring in, is created on top of the third person template. There I have a “SkillParent” blueprint, which contain some public float variables. Then I have 10+ children blueprints which inherit the parent one and modify these values on their class defaults. Sometimes they’ll reset to the “SkillParent” defaults after I have saved everything, closed the project and reopened it.
  2. I didn’t find a way to reproduce this issue… Tested with a blank project and a new third person template.
  3. I’m pretty sure that there isn’t.

Thoughts: I have a “spellbook” on my project which is an array (type: SkillParent). I’ve added there these children skills. Later on, I spawn the specific skills from the spellbook which contain the inherited children. After that, a function presented in the skill bp is called (children have specialized, in SkillParents bp this is empty). Could this have something to do with it? I find this quite usual way to do things though…

How about version control? We are using Gitlab (8 ppl working on the project). Could the files or meta files be modified somehow when pushing to branch?

I’m sorry that I can’t be much of a help. If you want to, I can send my project files to you, if that would reproduce the issue on your end.

Cheers,

At this point it may be best to send the project, you can either post it here or send me the project/link on the forums in a private message. I’ll be able to pull the information and take a look once those files have been linked.

Contacted you in the forums private messages. Let’s continue from there :slight_smile:

Hi ,

I received your message on the forums. While I sent this in a PM, I had intended on posting it here so we could continue working on this error:

  • Are there any specific steps I can take to reproduce this error consistently?
  • Any particular children it seems to happen more often in or variables that, when changed tend to revert to default values?

Hi ,

We have not heard from you in several days. I am marking this as answered for tracking purposes. If you are still experiencing this error, please comment with the requested information.