greenheartgames / greenworks

a node.js plugin to integrate nw.js/electron games with steamworks
MIT License
1.48k stars 152 forks source link

Support for binary cloud files #246

Open Usnul opened 5 years ago

Usnul commented 5 years ago

Hey, I'm loving greenworks.

Are there any plans to provide a binary interface. I'm currently having to convert my data to base64 in order to push it into the cloud, feels a bit awkward, since I can see that greenworks converts string to c_str under the hood, which I assume is just a bunch of bytes (chars).

Specifically I'm thinking of js ArrayBuffer class or Uint8Array

TheRealDannyyy commented 4 years ago

You might want to check out Steam Auto-Cloud for binary files. Should work out of the box using their web interface. (https://partner.steamgames.com/doc/features/cloud)

Usnul commented 4 years ago

Thanks Danny, thanks for the suggestion! I wanted to use an API to side-step potential multiple-writer issues and data corruption resulting from that. Just in case someone manages to launch multiple copies of the game on the same machine.