Custom text for saved games

  • #1, by nikos papaTuesday, 11. April 2017, 11:43 3 years ago
    Hey there,

    Is there a way to set a custom save game text under the save slot.

    for example, i have a saved game on slot1 and the player wants to add a custom text underneath.

    how can i do that?

    Newbie

    25 Posts


  • #2, by afrlmeTuesday, 11. April 2017, 12:16 3 years ago
    Unfortunately that's not possible with the built in save system. If it saved the games into the actual slot you selected rather than the first empty available slot then it might be possible with a bit of Lua script to allow players to input a name that gets stored in an external file. Saves only get written into the slot the player selects if it's the first empty slot available or if a save already exists in the selected slot.

    https://i.gyazo.com/7b7b5e17f90b5ab17d1fa3fb9d5944ec.png

    You could of course make a custom save system using the autosave system instead of the regular save system but autosave does not generate thumbnails, so if you wanted those, you'd have to come up with a method of displaying them.

    Imperator

    6816 Posts

  • #3, by nikos papaTuesday, 11. April 2017, 12:41 3 years ago
    Ok, thank you very much for the answer, ok, then let me ask you another question.

    Can I add a default text on everysave? Like the date/time or scene name under the saveslot. ive seen it in a demo but i just CANT figure out how he did it.


    Newbie

    25 Posts

  • #4, by afrlmeTuesday, 11. April 2017, 13:20 3 years ago
    Ok, thank you very much for the answer, ok, then let me ask you another question.

    Can I add a default text on everysave? Like the date/time or scene name under the saveslot. ive seen it in a demo but i just CANT figure out how he did it.


    Go into the properties tab belonging to the menu type scene you have created for your save menu. Inside of that is an option with a dropdown menu called font used for savegames. Assign one of your fonts to that.

    Imperator

    6816 Posts

  • #5, by nikos papaTuesday, 11. April 2017, 13:26 3 years ago
    Thank you.

    Is it possible to change this text with lua or something?

    Newbie

    25 Posts

  • #6, by afrlmeTuesday, 11. April 2017, 14:31 3 years ago
    Thank you.

    Is it possible to change this text with lua or something?
    You mean the text that is displayed? No, I think it is written into the save game file data when you create or overwrite a save game. It's not possible to manipulate the save data as it's an encrypted archive of sorts containing various different files to do with different parts of the game data. i.e: general data, conditions & values, Lua variables.

    If the save system actually saved to the selected slot then you could have written custom data to external files (txt or dat or whatever) that you could read on scene load & print on the screen, but unfortunately that's not the case & because as you can see in the diagram I shared earlier, it would be hard to guess which save slot it actually got saved into because we can't actually check with Lua script or action part if queries if a save file exists in the save slots on either side of the save slot you have detected.

    Imperator

    6816 Posts

  • #7, by sebastianTuesday, 11. April 2017, 16:40 3 years ago
    i built a custom save system with the autosave functionality and naming each slot by myself. so yes its definitely possible. 

    its a lot of work becauee every info you want extra (texts mostly) has to be saved in a different file and loaded when needed to extract the before saved texts and apply them to value strings and display them as object text for a save slot. 

    Thread Captain

    2336 Posts

Write post