Engine crashes when loading 2d texture from save

I saved a 2d texture to my save game file, I then tried to load it but the engine crashed.

The variable in save game:

Saving the 2d texture to save game:

Loading the 2d texture from save game:

When the engine tries to load the 2d texture, it all closes and crashes.
Tried it a few times, does it every time.
Tried deleting my save and intermediate files in my documents > unreal projects > my project.

It’s still crashing, this is how I save and load everything and it is only this the engine does not want to load.

thanks.

Hello ,

I see that you are having an issue saving a Texture. I have a few questions that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed set of steps to reproduce this issue on our end?
  3. Does this crash occur with every texture that you try or a specific one?
  4. Does this crash occur when trying to save any other variable types?
  5. When you say that the engine does not want to load, do you mean that you cannot open the project at all or that it crashes on Play in Editor?
  1. Yes I can.

  2. Set up a save file in your save game place (save slot and the texture 2d variable).

Event construct, load the image if a save already exists.

Set up a button which will change the picture and then send to the save slot.

Run the game and change the picture, close game, restart game - it then crashes.
(using technique in my pictures above)

3 Yes in my text project i used a different picture.

4 Every other save works normally.

5 Yeah, if i load the level where it loads the save on event construct then it will crash.

have you tried using the boolean from save game to slot to check ifits actually saving?

Ramas Victory Plugin (google ramas extra bp nodes plugin) has some great nodes for saving images.

yes it did save, it’s just crashing on load, I would like to try to get vanilla working first thanks :slight_smile:

I went to look at using the bind option and noticed it wanted a slate brush, so I converted it all to that:

http://i.imgur.com/s3sMg30.png

http://i.imgur.com/ZSO5bUP.png

http://i.imgur.com/XIV3AmV.png

But it still crashes.

Okay I’ve got it working :slight_smile:

This my solution:

Cast to the save game and set it directly.

http://i.imgur.com/R2ijzDu.png

Then bind the picture, getting it directly from the save:

http://i.imgur.com/OTQEgsn.png