Save Blueprint Library - Main

This is the CSW Autosave Blueprint Library class that comes with the plugin. Most of the functions exposed to blueprints are here. In Blueprints, these functions can be called from anywhere.

CSW::Save Game To Slot (Compressed)

Save any SaveGameObject into a compressed file. Location of the save file: Project/Saved/SaveGames.

Inputs

In
Exec

Save Game Object
Save Game Object Reference

The SaveGameObject, it can be created using the CreateSaveGameObject() function.

Slot Name
String

Name of the save game slot to load from.

User Index
Integer

For some platforms, master user index to identify the user doing the loading.

Outputs

Out
Exec

Return Value
Boolean

The boolean result so we know if the Save was successful or not. It usually fails when the SlotName is empty.

CSW::Load Game From Slot (Compressed)

Load a game from a compressed save File. It doesn't work if you try to load a game from an UNcompressed file.

Inputs

In
Exec

Save Game Object
Save Game Object Reference

SaveGameObject of the same type of the one that was saved (Caution: the game will crash if it's not of the same type).

Slot Name
String

Name of the save game slot to load from.

User Index
Integer

For some platforms, master user index to identify the user doing the loading.

Outputs

Out
Exec

Return Value
Save Game Object Reference

A Save Game Object reference with the loaded data.

CSW::Auto Fill Save Game Object

Auto Fill the SaveGameObject, it needs an already Created "AutoSaveObject". Use CreateSaveGame() Node to create one.
Auto Fill means that the AutoSaveObject will be populated with all the actors that have the UCSWAutoSaveComponent of all the maps that are currently loaded.
Use SaveGameToSlot() to actually save the SaveGameObject into a file.

Inputs

In
Exec

Auto Save Game Object
CSWAuto Save And Load Game Object Object Reference

The UCSWAutoSaveObject reference, it can be created using the CreateSaveGameObject() node.

Outputs

Out
Exec

Return Value
CSWAuto Save And Load Game Object Object Reference

The UCSWAutoSaveObject filled with all the actors data from all the maps loaded.

CSW::Auto Load Actors Data From Save

Auto Load the Game and updates the data for all the actors (and components) that were saved.
If an actor was saved and don't exist in the world anymore, the actors will be recreated (if the option is enabled in the CSWAutoSaveComponent).
This method loads the data for all the maps that are currently loaded (it supports level streaming).
Use LoadGameFromSlot() to obtain an AutoSaveObject from file (and use the AutoSaveObject as an input of this function).

Inputs

In
Exec

Auto Save Game Object
CSWAuto Save And Load Game Object Object Reference

The UCSWAutoSaveObject reference, needs to carry data from saved Actors.

Outputs

Out
Exec

Return Value
Boolean

Whether if the Load was successful or Not.

CSW::Does Save Game Exist

Check if there's a save game file with the specified name. Works for compressed files too.

Inputs

In
Exec

Slot Name
String

Name of save game slot.

User Index
Integer

For some platforms, master user index to identify the user doing the saving.

Save Is Compressed
Boolean

Was the Game saved using compression? Very important as compressed files have a suffix signature.

Outputs

Out
Exec

Return Value
Boolean

CSW::Delete Game In Slot

Delete the file for the corresponding slot. Works for compressed files too.

Inputs

In
Exec

Slot Name
String

Name of save game slot.

User Index
Integer

For some platforms, master user index to identify the user doing the saving.

Save Is Compressed
Boolean

Was the Game saved using compression? Very important as compressed files have a suffix signature.

Outputs

Out
Exec

Return Value
Boolean

Updated: