Ninja Bear Studio Plugins Help

Save and Load

If you are using Reputations in your project, then you probably need to save and load the player's memberships.

This mechanism was designed using multiple layers, so you can perform the entire save and load operations with the Faction Manager, or use parts of it with your own save system.

Faction Save Game

The Faction System provides the NinjaFactionSaveGame class, which can be used to serialize and deserialize membership information from a Faction Manager component.

This means you can create a dedicated Faction Save File using Unreal Engine's default save game mechanism.

Saving Memberships

You can save all Memberships into a save file by calling the Save Factions function in the Save Game object, passing the Faction Component that should be saved.

Save Memberships

Loading Memberships

You can load all Memberships from a save file by calling the Load Factions function in the Save Game Object, passing the Faction Component that should receive them.

Load Memberships

Other Save Systems

You can also integrate the save mechanism with other save systems. In that case you need to look into the following functions provided by the Faction Manager:

Function

Description

GetFactionRecordForSerialization

Provides a consolidated Record of the Faction component.

GetMembershipRecordsForSerialization

Provides a list of Membership Records from the component.

AddFactionFromMembership

Adds a Faction/Reputation from a Membership.

Last modified: 15 September 2024