Based on SteamWrap by dukope: https://github.com/dukope/SteamWrapModified by Rob1221 and Denver2003With a lack of testers, some features may not perform as expected. Report any problems here.1. Either sign up to be a Steam partner (
https://partner.steamgames.com) or have a publisher grant you access to the game on Steamworks.
2. To add the extension to your game, you can either unzip and move the attached extension folder into engine-extensions in your workspace, or you can go to Settings > Extensions > Install Extension.
3. Inside the extension folder, open include.nmml and fill in your Steamworks app ID and your game name as listed in the iOS settings.
There is a bug that causes your Mac app name to be the iOS name and not the main project name.
Update: newer Stencyl versions may use the Mac App Store name so make sure that one is filled in as well.
4. On the Steamworks site, setup any leaderboards, stats, and achievements that you need. For achievements, you need to publish your changes before testing. To test without uploading your game to Steam, make sure your Steam client is running.
5. Add the extension blocks to your game (see below for block details).
Start SteamWrap with App ID: _____Put this block in "when created" of your first scene.
Set Steam Achievement _____Set/unlock an achievement.
Clear Steam Achievement _____Clear an achievement so it can be tested again. DISABLE BEFORE PUBLISHING TO STEAM.
Set Stat With ID _____ to _____Set a stat.
Store Steam StatsThis block is used to upload all set stats to Steam.
Upload Score: _____ With ID: _____Upload a score onto a leaderboard.
Steam is RunningThis can be useful if your Steam and non-Steam versions need to be different.
Player Owns GameI assume this is for piracy protection, but it could also be used to distinguish Steam and non-Steam versions.
Account ID of PlayerGet the player's account name.
Game LanguageGet the game's language that users set from Steam.
Cloud SavesWhile this extension does not use the API for cloud saves, you can tell Steam where the save files are located and that will allow you to use cloud saves. After setting your byte and file quotas in the Steam Cloud Settings and saving, you'll see options to configure your save file paths. Attached is an example of how I set up the paths for my game Isotiles so that cloud saving works on both PC and Mac. Linux should work as well if you know the path to the save files.
SteamWrap V4- Fixed compilation issue with latest Stencyl 3.5 builds
- Added 64-bit ndlls for Windows and Mac (Linux already had 64-bit)
SteamWrap V3- Added a block to get the game's language that users can set from Steam (PC and Mac)
SteamWrap V2- Reverted SDK update to fix Mac achievements