visual shell-loader (localstore) + other games (localstore)

0 favourites
  • 4 posts
From the Asset Store
This music pack covers differents situations for visual novels, anime games and many more!
  • Hello.

    Imagine the situation, I made an application - a visual shell-loader of the game.

    From the visual shell-loader using nw.js, I can open the exe of any game if I know the path to it, but there is a problem:

    How do I find saves and send them to the wrapper app? For example, I collected coins in game number 5, cool, but I want to have brief game statistics in the shell application, next to the start button, I want to show how many coins the player has already collected. The question is - how can I find the necessary saves on every computer of thousands of people? Or how can I send data from the game to the shell application and then read it?

  • Nw.js can read from and write to disk. Your game will write the relevant information to the local drive, and your wrapper app can read from there.

    Cloud solutions would probably be preferable in this type of application though.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Nw.js can read from and write to disk. Your game will write the relevant information to the local drive, and your wrapper app can read from there.

    Cloud solutions would probably be preferable in this type of application though.

    Thanks, yes cloud save is better, but I'm looking for a backup option.

    Do you understand how to combine localstoge + other games (localstoge) + nw.js? Can you take a screenshot of the code? I know how to work with localstoge, but how to write or read the save through nw.js?

  • construct.net/en/make-games/manuals/construct-3/plugin-reference/nw-js

    Write text file

    Write a text file to the user's local system. If the file does not exist, it is created. If the file already exists, its content is overwritten.

    ReadFile(path)

    Open the given file and return its text content as a string. Note that each time this expression is used the file is opened and read from disk. Therefore if the expression is used twice, the file is opened and read twice, which can impact performance. If necessary first read the file to a variable, then reference the variable multiple times.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)