questions regarding save menu + loading a saved game

  • #20, by afrlmeSaturday, 18. July 2015, 17:42 9 years ago
    You can get the language table names too. http://wiki.visionaire-tracker.net/wiki/Scripting#getTextStr

    os.date() should return something like: dd/mm/yyyy - hh:mm:ss.ms. or the other way around - I forget. Although it is possible to input custom values as you have done. smile

    Imperator

    7278 Posts


  • #21, by sebastianSaturday, 18. July 2015, 18:07 9 years ago
    i know that i have to search in the language table. but this is a book of seven seal for me ^^. Do i have to iterate through the whole table to get the right name?
    The problem is i dont know how i can access the "sceneName" correctly because its not an object or button, etc.


    PS:
    os.date("%d.%m.%y %H:%M Uhr") 
    

    does work fine to format it in a more readable string smile

    Thread Captain

    2346 Posts

  • #22, by afrlmeSaturday, 18. July 2015, 18:18 9 years ago
    err... SceneName? grin

    This example should return the name based on current language...
    game.CurrentScene:getTextStr(VSceneName)
    

    & this example should return the name of the specified language...
    game.CurrentScene:getTextStr(VSceneName, Languages["English"]:getId().id)
    


    Let me know if it works.

    Imperator

    7278 Posts

  • #23, by sebastianSaturday, 18. July 2015, 18:23 9 years ago
    https://i.imgflip.com/ode6u.jpg
    works

    Thread Captain

    2346 Posts