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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

When I try to save a boolean setting, it didn't work

Hello, In my Level Blueprint I used one boolean variable "tutorial done", and I need to save/load it, I tried to inspire me with some blueprint to do it but it doesn't work at all. And I don't know where is the problem... Thanks for any help

alt text alt text

Product Version: UE 4.12
screenshot_7.jpg (228.9 kB)
screenshot_8.jpg (237.4 kB)
more ▼

asked Nov 09 '16 at 02:45 PM in Blueprint Scripting

avatar image

1 2 2

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

1 answer: sort voted first

As far as I know, when you open a level, everything is just initialized again. Meaning that tutorial boolean will be reset to its default values as well. Unless you save that boolean somewhere that stays around even after using OpenLevel, that branch statement will always return false. Maybe you should look into using gamemode or whatever for that boolean.

more ▼

answered Nov 10 '16 at 05:11 AM

avatar image

815 30 25 104

avatar image Phantom_Dono Nov 10 '16 at 02:00 PM

ok I will see

avatar image Phantom_Dono Nov 10 '16 at 02:33 PM

I try to put the boolean in the save game blueprint like this:alt text

But It don't work and now I have this problem... I look some thread, but I don't find how to resolve it, How can I solve it? alt text

screenshot_10.jpg (69.0 kB)
screenshot_9.jpg (48.5 kB)
avatar image cridia Nov 11 '16 at 04:08 AM

It seems that your savegame variable never gets created; you are getting null pointers there. Could you post the entire chain again?

avatar image Phantom_Dono Nov 11 '16 at 12:26 PM

Normally, the savegame variable go to the savegame blueprint who was create, and when I go again in this nevel it must to load the save game, but I don't know why it don't save/load the savegame

alt textalt text

screenshot_12.jpg (194.4 kB)
screenshot_11.jpg (209.8 kB)
(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