edited November 2018 in ORK Support
Heya GiL!

We're currently putting our main menu (mostly custom stuff!) into Rune Fencer, but we ran into a snag.

We want our save slots to visually have info about that auto save slot; the Player's HP, the name of the Area, the 'Completion Rate' (this would be an ORK variable value in the save), and the Game Time.

Something we're having trouble with is finding some more information on how to access the save data and use it in our custom menu. Is there any way to inspect the data of the save without loading the game?


If there's no workaround there, maybe what we could do is make a separate script that works in the background and saves the data we need whenever the game is saved.

If that's the case, is there any way code-wise that we can check which one of the current Auto Save Slots is being used? Is there a good way code-wise to determine whether a slot is empty or full?

I know there's an ORK event step for checking the slot (Check Auto Save Slot), so we figured there must be a code equivalent.


Post edited by Kirb on
Tactics RPG Grid Battle System for ORK
---------------------------------------
Personal Twitter: https://twitter.com/AMO_Crate
I make RFI! https://twitter.com/NootboxGames
  • edited November 2018
    Using this will get you the file info text of the save file for index:
    GUIContent content = ORK.SaveGame.GetFileInfo(index);
    Auto save slots are index -2 and below, you can calculate the correct index like this:
    int autoSaveIndex = SaveGameHandler.AUTOSAVE_INDEX - index;
    The currently used auto save slot is stored in (you don't have to do the calculation here, as it already stores the correct index):
    ORK.Game.AutoSaveSlot

    The file info already allows you to add stuff like the player's name, the current area or game time, for everything else, you can use text codes, e.g. store the info you need into global variables and add them via text code to the file info. For stuff like player's HP, you'd have to first store the HP into a float variable before saving.
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Thanks Gil! We managed to work it out!
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    Personal Twitter: https://twitter.com/AMO_Crate
    I make RFI! https://twitter.com/NootboxGames
Sign In or Register to comment.