Greengrinds (Construct 3 Plugins)

  • 26
    This content is deleted
    Addon
    Greengrinds

    Expose more Greenworks Steam cloud APIs to NW.Js and Electron (1.4.0: Supports NW.Js 0.82.0, Steam SDK 1.58, Greenworks 0.15, Electron with efc).

You're viewing a single comment in a conversation. View all the comments
  • 3 Comments

  • Order by
  • Hi Mikal, thank you for this plugin!

    I'm trying to save my localStorage variables into a file to save on Steam cloud and load those too.

    do you have an tutorial for this?

    thank you

    • Sorry, no I do not have a tutorial for this.

      I think you would want to use:

      JSON object in C3 to store data and load data, see the C3 documentation on JSON object for more details.

      Save text to file {0} {1}

      Save text to file.

      Use the JSON expression ToCompactString as the text to save to the Steam file.

      Read text from file {0}

      Read text from file.

      On save text to file success -> let the user know that save was successful

      On save text to file error -> use the expression: SaveTextToFileLastErr to indicate error

      On read text from file success -> use the expression: ReadTextFromFileLastData to get the data. I suggest using a JSON object load and store data to/from. For example use JSON Parse action to load the JSON object from the ReadTextFromFileLastData and use the JSON expression ToCompactString as the text to save to the Steam file.

      On read text from file error -> use expression: ReadTextFromFileLastErr to show the error to the user.