Forum rules - please read before posting.

Overriding save game labels

edited April 2021 in Technical Q&A

I would appreciate the addition of an EventManager.OnSaving(SaveFile saveFile) event which is fired just before the SaveFile is persisted to disk.
This would make it super easy to override (for example) the label of the SaveFile.

Comments

  • If you hook into OnFinishSaving, the SaveFile parameter's saveID value can be plugged into:

    AC.Kickstarter.saveSystem.RenameSaveByID (saveLabel, saveID);
    
  • I see. Since this will be done on every save (including autosaves), maybe it's worth having an event where the label can be set before the save rather than after the fact (perf wise)?

  • I wouldn't expect a performance hit - save labels are stored in the Options data, using PlayerPrefs, to avoid having to deserialize save files just to read them.

  • Ah, excellent 👍

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.