Announcement

Collapse
No announcement yet.

How to save Text box (parent) name with limited text number on the other Text box (child) ? (BP)

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

    How to save Text box (parent) name with limited text number on the other Text box (child) ? (BP)

    Hi all !

    Question is:

    How to save Text box (parent) name with limited text number on the other Text box (child) ?

    So from the beggining child sends me to the level with parent - where I save the name for the parent and child at the same time. If I quit the game and

    reload game its saves on a childs text box - the name I've wrote down on the parents text box

    Without multiplayer, engine version is 16.0.0 or higher

    Code I've done with blueprints didn't worked for me (attached screens).

    Please any help to save the text information from one level widget to another ! I will donate 10$ if I will find an answer - Thanks !

    Click image for larger version

Name:	001.png
Views:	1
Size:	54.6 KB
ID:	1226125

    Parent:

    Click image for larger version

Name:	Parent_001.png
Views:	1
Size:	367.6 KB
ID:	1226126

    Click image for larger version

Name:	Parent_002.png
Views:	1
Size:	249.7 KB
ID:	1226127

    Click image for larger version

Name:	Parent_003.png
Views:	1
Size:	335.5 KB
ID:	1226128

    Child:

    Click image for larger version

Name:	Child_001.png
Views:	1
Size:	355.5 KB
ID:	1226129

    Click image for larger version

Name:	Child_002.png
Views:	1
Size:	201.1 KB
ID:	1226130

    Click image for larger version

Name:	Child_003.png
Views:	1
Size:	341.9 KB
ID:	1226131

    Click image for larger version

Name:	Child_004.png
Views:	1
Size:	271.2 KB
ID:	1226132
    Last edited by DeFRaGZoR; 08-01-2017, 08:54 PM.

    #2
    I found a treat https://answers.unrealengine.com/que...-blueprin.html where Efrye explains almost the same problem on the screens. Today I will try to create a widget class of parent text box and just output it on a screen of a child after game has been loaded from a save.

    1. So first I will create a widget class of the parent text box without save button and put it on the widget of ModelSelectWidget where save button gonna appear like a part of ModelSelectWidget

    2. Inside the ModelSelectWidget - on a begin play event I will create InputWidget -> set variable Input Widget -> create OutputWidget -> add to viewport.

    3. Character screen widget gonna be with the same parent text box widget, but the widget gonna be bounded to the InputWidget with the saved text.

    After I will push save and play button It's gonna send me to the character screen widget and inside the InputWidget there gonna be the text saved from the Parent

    4. And the same gonna be with the Child Loadout widget as with Character widget, but after closing the game and reloading of it.

    Comment


      #3
      previous solution - doesnt helped at all, the only one I took from it is a conception of 1 widget instead of 3

      Changes:

      1. Changed text box lenght bp code

      2. I've put parent text box and child text box as one widget (Text still dosent saving into the text field, but print string says that text is updated and loaded)

      3. And I belive its should some bound code inside of bind function of the new NameTextBoxWidget, but I dont know what it is.

      Comment


        #4
        I found another https://answers.unrealengine.com/que...er-name-1.html by JaroMast

        1. Create UI Widget with Edit field and button to confirm.

        2. Create String variable in yours player class, lets name it PlayerName and make it public

        3. In UI Widget after pushing button get player and set PlayerName to value of Edit Field.

        with https://docs.unrealengine.com/latest...art/index.html help

        If it doesnt worked today I will stop this system and do something like Login Password multiplayer system instead

        Comment


          #5
          I just realized that there is no big deal of naming the model inside offline menu, so maybe I will skip it till Login Password system

          Comment


            #6
            I found a perfect solution: Blueprint Implementing Local Multiplayer - Live Training - Unreal Engine

            https://www.youtube.com/watch?v=ZOc9fV6Sap4

            https://forums.unrealengine.com/showthread.php?127674

            and download page: https://forums.unrealengine.com/show...792#post620792

            Comment

            Working...
            X