PipeRift / SaveExtension

Provides UE4 with a save-game system with support for savegame tags, level streaming and more
Apache License 2.0
164 stars 60 forks source link

Blueprint property marked as SaveGame doesn't get saved #52

Closed DethRaid closed 4 years ago

DethRaid commented 4 years ago

Describe the bug When I load a game, the property marked as SaveGame on my blueprint actor doesn't get loaded - it has the value it had before I loaded the game, not the value it had when I saved the game

To Reproduce Steps to reproduce the behavior:

Logs My log is under NDA, but I can tell you that I don't see any messages from SaveExtensino in my log

Environment (please complete the following information):

DethRaid commented 4 years ago

Removing the ISaveGameInterface from my actor has no appreciable effect

Mephiztopheles commented 4 years ago

having a similar problem. Tried using the actorFilter, but didn't change a thing. None of the interface functions get called.

muit commented 4 years ago

Hi guys,

ISaveGameInterface doesn't have anything to do with the saving process. @Mephiztopheles if you want their events to be called you need to register the interface in the manager: image

@DethRaid was this blueprint included in the ActorFilter on the preset? Actors and Components that are not in the filter will be completely ignored.

Mephiztopheles commented 4 years ago

@muit I just mentioned the interface to say, that I tried it that way.

Do I need to implement on every actor the interface and register every object?

muit commented 4 years ago

Yeah I understand, maybe it wasnt the same issue in the end though. Not sure.

Oh, no absolutely not :) the interface is just a way to get notified when saving happens, but its not specific to the actor. See LifetimeComponent, its a simplification over the interface, and it auto-registers (its neat, try it).

Having this component and the interface carries a cost. So putting it on a player is fine, but I wouldn't put it on an actor that gets saved 5000 times haha

DethRaid commented 4 years ago

Hi guys,

ISaveGameInterface doesn't have anything to do with the saving process. @Mephiztopheles if you want their events to be called you need to register the interface in the manager: image

@DethRaid was this blueprint included in the ActorFilter on the preset? Actors and Components that are not in the filter will be completely ignored.

I definitely tried adding my Blueprint AActor-derived class to the ActorFilter but didn't get the results I wanted

If ISaveGameInterface isn't an interface about saving... what is it?

Mephiztopheles commented 4 years ago

and we still can't save (or load) the actors...

muit commented 4 years ago

We will soon release 1.4 with many fixes. SOme of them are related to this topics so feel free to let us know if it still happens :)