Custom text for saved games

  • #1, z nikos papaTuesday, 11. April 2017, 11:43 hodinky 8 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?

    Bažant

    25 Posts


  • #2, z afrlmeTuesday, 11. April 2017, 12:16 hodinky 8 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.

    Imperátor

    7285 Posts

  • #3, z nikos papaTuesday, 11. April 2017, 12:41 hodinky 8 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.


    Bažant

    25 Posts

  • #4, z afrlmeTuesday, 11. April 2017, 13:20 hodinky 8 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.

    Imperátor

    7285 Posts

  • #5, z nikos papaTuesday, 11. April 2017, 13:26 hodinky 8 years ago
    Thank you.

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

    Bažant

    25 Posts

  • #6, z afrlmeTuesday, 11. April 2017, 14:31 hodinky 8 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.

    Imperátor

    7285 Posts

  • #7, z sebastianTuesday, 11. April 2017, 16:40 hodinky 8 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. 

    Kapitán

    2346 Posts