Is there a script call for loading a file?

● ARCHIVED · READ-ONLY
Started by Magusalfador 6 posts View original ↗
  1. Hi all!!

    I found that i can:
    $gameSystem.onBeforeSave();
    DataManager.saveGame(X);

    To save a game on a specified file, but is there a script call to load a specified file?

    I tried DataManager.loadGame(X); and it does weird things.

    Thanks!
  2. What "weird things"?

    Saving and loading are asynchronous, which means you issue the command then go on with what you're doing. At some point, execution of the command will be complete. You can't issue the command and expect that it will happen straight away.

    What exactly are you trying to do?
  3. @Shaz, by weird I mean some events run again, and they shouldnt. Like, they run I save the game, then reload and they run again. What Im trying to accomplish is simple, just load a file from an event, not from the menu.
  4. I found the answer in another thread, which you solved @Shaz . Ha.

    Thanks.

    RESOLVED
  5. lol - I have no recollection of such a thing :D

    Can you please report your first post and ask for the thread to be closed? That will bring it to the mods' attention and they'll take care of the rest.
  6. [closed]IgnoreMe[/closed]