Info

Statistics

  • Download count2,954 total downloads
  • Latest download count 75 downloads of latest version
  • Average download count2 downloads per day average

Owners

Description

Expose more Greenworks Steam cloud APIs to nw.js and Electron (1.11.0: supports Greenworks v0.18.0 for NW.js v0.92.0, Steamworks SDK 1.60)

Example Files

Example project for release 1.0.0, showing most of the API calls. Use steam_appid.txt with '480' to test out this project.

Add Get Friend Avatar example

Discussion

  • 61 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • Version 1.4.0

    It looks like there is some kind of conflict in the latest version of the plugin.

    When launched normally in the editor window (Preview button), it gives an error.

    Exception in 'greenworks' handler 'load': TypeError: Cannot read properties of null (reading 'isSteamRunningOnSteamDeck')

    at GreenworksDOMHandler._Load (a14447cc-e0cf-40ff-9f2b-aa57bc8182b3:137:49)

    at a14447cc-e0cf-40ff-9f2b-aa57bc8182b3:25:30

    at RuntimeInterface._OnEventFromRuntime (domSide.js:32:114)

    at RuntimeInterface._OnMessageFromRuntime (domSide.js:30:377)

    at _messageChannelPort.onmessage (domSide.js:13:68)

    _OnEventFromRuntime domSide.js:32

    Uncaught (in promise) TypeError: Cannot read properties of null (reading 'isSteamRunningOnSteamDeck')

  • What about for webview2?

  • addons 1.4.1,-1.4.0 This seems to be buggy with some projects. When opening the game in the test browser, there will be a black screen. or it may also error with c3 v358-366beta version

    • Can you try again and make sure you are using 1.4.1? I just tried with 1.4.1 and it looked ok. If there is still an error, open the dev console and send the details of the error.

  • 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.

  • Note: when importing the plugin into the project, version 0.86 of NW.JS is mentioned, whereas I took the version of July 2024 for version 0.89. A typing error?

  • any chance this is compatible with construct 2? and if not, would it be "easy" to convert it to a c2addon?

  • Overlay is not working in Linux. Is there a way to fix this?

  • After upgrading to version 1.5.0, I'm getting artifacts left behind from the overlay popups in the offscreen areas such as when using letterbox scaling or monitors with various aspect ratios outside the viewport.

    Also, would it be possible to add workshop support and an option for overlay to open to the game page (useful for demos with a “Buy Now” button on the main menu)?

  • Hi Mikal, thank you so much for this addon. It's incredibly helpful.

    btw is it possible to open a link on overlay? I need to open the developer's page on overlay. This page : store.steampowered.com/developer/noobzilla

    edit : i found this wiki : github.com/greenheartgames/greenworks/wiki/Steam-Info-APIs

  • Hi, .js files in folder c3runtime missing line with C3 definition

    -> const C3 = self.C3;

    "use strict";

    {

    const C3 = self.C3;

    C3.Plugins.open_Greengrinds...

    without it I get error:

    Uncaught TypeError: Cannot read properties of undefined

  • Load more comments (40 replies)