Announcement

Collapse
No announcement yet.

Child blueprint not saving values

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Child blueprint not saving values

    Hey
    I'm working on my game and I noticed something.
    I have a main blueprint character, and I created a child out of it, and for some reason the Child BP doesn't save the marked boolean after I go out and come in the engine it just restarts the value of the Main blueprint Character boolean
    any idea how i can change it so it would save the boolean value?
    Marketplace Assets: Lowpoly Medieval pack 1 - Low Poly Survival Pack

    other: Youtube - My 3D Models - Facebook - Free UE4 Projects

    #2
    anyone? i really need help with it i cant keep woirk on the game without it
    Marketplace Assets: Lowpoly Medieval pack 1 - Low Poly Survival Pack

    other: Youtube - My 3D Models - Facebook - Free UE4 Projects

    Comment


      #3
      If you exit the game and go to the editor and exit the editor and go into the game, all variables and such are reset to whatever defaults they start with. If you want to have the child save that information, you would have to script it to save the data when exiting and load that same data when spawned.

      Another way to get around the save/load thing is to store the data in a blueprint that does not get reset until the game processing has terminated. That would be the GameInstance blueprint, I believe.

      Comment


        #4
        i dont think you understood me, its not like the varibles are npt working in game, but the boםlean in the details tab is keep restarting to the same Boolean (Wave 1) and not stay for example in (Wave 2 or Wave 3)

        Click image for larger version

Name:	גדשגדשגדש.png
Views:	1
Size:	19.7 KB
ID:	1124413
        Marketplace Assets: Lowpoly Medieval pack 1 - Low Poly Survival Pack

        other: Youtube - My 3D Models - Facebook - Free UE4 Projects

        Comment


          #5
          This is an old bug that completely stops some blueprint related work flow.
          If it is a small project you have, and you can replicate it happening, I suggest you create a bug report on answerhub, with repro steps and providing the project.

          Comment


            #6
            for right now my terrible work around for this level placed blueprint child not saving it's info is I take all the child BP's in the level and set their changes via the Level Blueprint so it's happening once I hit play...it sucks...kinda just waiting for this to get fixed....
            Last edited by President; 03-07-2017, 12:43 PM.

            Streams: www.Twitch.tv/BlinkTheory
            Patreon: www.Patreon.com/BlinkTheory

            Comment


              #7
              If you post your parent blueprint we might be able to get to the bottom of this but perhaps somewhere in your parent you are setting the Wave info and enemy hp and it is overriding any details you put in the editor/child? What is in your construction script on Parent/Child?

              Comment


                #8
                I've had this bug before. It's infuriating. Also one that clears all structs (which started happening after I used structs to fill in a lot of data..).

                I've read it's related to renaming parents but I'm unsure. Since reading that I avoid renaming anything, and no problems since.

                Sorry this doesn't really help, it's an annoying bug..

                Comment


                  #9
                  Well thanks i think i will have to find another way
                  Thanks again
                  Marketplace Assets: Lowpoly Medieval pack 1 - Low Poly Survival Pack

                  other: Youtube - My 3D Models - Facebook - Free UE4 Projects

                  Comment

                  Working...
                  X