I created a free open source addon Steamworks Plus as a companion addon to Ashley's nice new Steamworks addon https://www.construct.net/en/make-games/addons/1105/steamworks-webview2
Right now it just adds a few features as proof of concept, but I hope it is a good framework to allow the community to expand the available Steamworks features with C3 and webview2. I added a few new ACEs to work with Steamworks leaderboards.
I don't suggest using it for production yet, however I do invite addon devs in the community to help add to the functionality. I have some details on development on the github repo. It does require JS and C++ to add functionality, but with a little help from ChatGPT I was able to revive some of my old and moldy C++ skills to get it working, so you can too!
Repo is here: github.com/MikalDev/cf_steamworks_plus
PRs and collaborators welcome.
A big thanks to Ashley for providing the source for the original addon, this companion addon was entirely based on the framework that he developed. I also want to thank Scirra for their philosophy of creating a nice JS SDK for addons and C++ addons for the wrapper. From looking at C3 addons, developing addons, looking at the C3 engine code, writing our game using the scripting interface with TS/JS I have sharpened and grown my dev skills. I appreciate the (controlled) access to the engine and the push to use new tech like webview2 and new web technology. As possible, I look forward to more documented SDK access, including more editor SDK access to add new features in editor too.
Some notes:
- Ashley, I welcome a review if I implemented this in the way you imagined. In general it is pretty straightforward, except for some of the data passing.
- In terms of passing data between addon and wrapper, it looks like they are just 3 types, bool, number (double on wrapper side) and string. To pass more complicated data structures, so far I am passing a JSON string back from the wrapper.
- Some of the commands require handles which cannot be passed back, so I keep them as statics in the wrapper (global now, but should be private in the class). Following command can use the handle to access further commands. For example set current leaderboard (gets handle and stores), update current leaderboard, uses previous handle.
- I need to do more testing with using webview2 remote preview to make this development easier / smoother.
- I need to figure out ways to debug the DLL.