Forum rules - please read before posting.

How to save in a slot not visible

Hi everyone,
AC 1.70.0 + Unity 2019.2.17f1 on a 2d game.

I'd like to make this improvement in my game: In main menu I want to create a "Continue" button (easy) to load a saved game. My issue is on how to save this game: I need it saves on action (like Action/Save) but not in a slot, only on file that could be loaded from a action in Continue button.

I can't use autosave because my game is out and to make it now could break the players' savings.

We try, with SaveSystem.Savegame to save with a new ID but, in this case, it makes visible all the slots.
Here how it's the Save Menu: https://drive.google.com/file/d/1aQovhOhIVRPpJcOyrrhLWGYLpwWqA12C/view?usp=sharing

We can create a script, but we need some tricks on how, if possible.

Thank you.

Comments

  • Access is blocked on the image - can you post to imgur or make it public?

    it makes visible all the slots.

    What do you mean by this? That the save becomes visible in lists, and you don't want it to?

    You could try replacing your single SavesList with a separate SavesList element for each slot. If you check Fixed Save ID only?, you can limit that element's display to only a single slot, so that it won't ever show the ID you don't want it to.

  • Hi Chris, sorry, here the correct link: https://drive.google.com/file/d/1aQovhOhIVRPpJcOyrrhLWGYLpwWqA12C/view?usp=sharing with all permissions.

    "What do you mean by this? That the save becomes visible in lists, and you don't want it to?" Exactly.

  • A SavesList without Fixed Save ID only? checked will list as many saves at it can fit. Try making one for each slot and checking the option in each.

  • Thank you Chris, I'll try asap.

  • One other thought: have you tried saving to a negative slot ID? The SavesList element will only display non-negative saves.

  • Hi Chris,
    I tried with Fixed Save ID only, but, probably, I made some errors.
    Here the correct Save Menu with the "standard" savelist element (no Fixed save ID): https://drive.google.com/file/d/103Tkg7kTD_P5UdVVE1UZS9e_UVGjF4Kk/view?usp=sharing

    Then I tried with Fixed Save ID only.
    Here the passages and the results:
    1. I duplicate my Save Menu and renamed it as Save_backup to have a copy. Then I came back to Save Menu and changed the savelist elements, duplicating the element and renaming as SaveList_0, 1 and so on. In every slot I checked Fixed Save ID only? and changed the ID to display, from 0 to 9 (as the SaveList elements).
    And I linked newly the element of my Unity Menu.
    https://drive.google.com/file/d/10eRy4OgPgT_axkc_7BHJBAZ7mO9JFrhq/view?usp=sharing

    1. But this is the result: https://drive.google.com/file/d/1AcMoxnpiNkjaAxxRGPeKO1SZlFLzeU6v/view?usp=sharing
      I see all the empty slots and, at the end, a New Save. Also the images of the prior saving disappeared. If I click on the slots with SaveGame word, nothing happens (the game doesn't save). But if I click on New Save, it saves (I can see because of the word "Game correctly saved") but nothing happens to the menu: no images, no labels, the identical menu. Clicking on New Save caused the it saves but, on load menu (actually it has the standard savelist element, with no Fixed Save ID) it changes all the slot with the same saving.

    I tried also to uncheckd "Is Visible" for every SaveList elements, but the slots remains in the menu, and the only slot with New Save word disappears.

    Here also my Unity Menu settings: https://drive.google.com/file/d/1l06W68LQM3l9zhwKXczh7wzcajmxtdWg/view?usp=sharing

    Where am I doing wrong?

    Thank you very much.

  • It would depend on what the IDs of the old saves were, since those slots are now linked to specific values.

    But perhaps this is the wrong approach.

    I shall look into how this might be done more naturally - perhaps by allowing negative values for save IDs, which can then only be accessed through Actions.

  • Hi Chris,
    we tried with a negative value for save ID. The good news is that it can save a file with negative ID (and this doen'st interfer with slot or other savings), but the bad news is that we can't load it. We tried with continuegame, but it seems to have a check on ID (and takes only positives). And then we tried also with loadgame, but, also in this case, it takes only positive ones.

  • Yes - it'll need an update to AC to allow for it. I intend to include this as part of v1.72.0.

  • ok, thank you Chris.

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.