playMaker

Author Topic: EasySave 3 Save Slots  (Read 4434 times)

LoneCipher

  • Playmaker Newbie
  • *
  • Posts: 31
EasySave 3 Save Slots
« on: May 13, 2024, 11:59:08 AM »
Hello all!
I'm looking to set up save slots to my game. My ideas are getting complicated, so I'm sure there's a simpler method that where I'm headed.
The idea was to use the save slot number as a global variable, and prefix to save and load keys. Each key would have "Slot1_" added using the build string action to every save and load call.
This means that I have to have states where I build these strings, and extra variables (slot number, key, key with slot number appended).

It would be easier if I could just use the save slot to point to another file, and leave all my keys alone. Is that a possibility?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: EasySave 3 Save Slots
« Reply #1 on: May 15, 2024, 06:19:45 AM »
Hi.
Turn on Override Default Settings and use 'Path' "Slot_1 / Slot_2 / ...
this will create separate save files.

Also place load save actions on 1 game object if there is a chance that you will build for console platforms.
(use send events to trigger load/save)

LoneCipher

  • Playmaker Newbie
  • *
  • Posts: 31
Re: EasySave 3 Save Slots
« Reply #2 on: May 15, 2024, 09:44:22 AM »
Thank you for the reply.
If I append the path setting to something like Slot1\SaveFile.es3 that will use a file at that location.
How would I append this programmatically? Would I need to build a string and use that as path?
Slot number + save file name with slot number being a global variable?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: EasySave 3 Save Slots
« Reply #3 on: May 16, 2024, 08:10:40 PM »
its best just to do direct files you can do SaveFile1 / SaveFile2
you can set the a global GameObject ( where you handle all Load / Save )
Then use Set Fsm String to set the Path for example, set variable Name as : currentSaveSlot
and use that for all load / save actions