Skip to content

Instantly share code, notes, and snippets.

@pakeke-constructor
Created February 2, 2022 05:18
Show Gist options
  • Save pakeke-constructor/51c0a539b432faf243ddac1843367c01 to your computer and use it in GitHub Desktop.
Save pakeke-constructor/51c0a539b432faf243ddac1843367c01 to your computer and use it in GitHub Desktop.

LOVE2D quick setup guide for luasteam

Take a quick skim through the setup guide. Download the .SO files or .dll files that are required for your OS.

You should be using this link for luasteam, and this link for the SteamWorks SDK.

Put the files at the root of your game directory. (Or anywhere else where LuaJIT can find them)

Make sure they are named appropriately!!!

NOTE FOR WINDOWS:

For windows 64 bit, you will need both steam_api64.dll AND steam_api64.lib. (same goes for 32 bit windows)


Now, get the appid of your game. For example:
steampowered.com/app/1705610/PushOps Here, 1705610 is the appid.

Create a txt file at the base directory of your LOVE game. Call it steam_appid.txt, and paste the appid in there, nothing else.

Now, open up steam, log in to the account you are releasing the game on, and check that the game appears in your library. (If the game isn't in your library, it won't work.) Keep steam open when running the game.

Finally, you should be able to set stuff up!

Steam = require("luasteam")

Steam.init() -- initializes steam SDK

... -- do whatever you want, give achievements, etc

Steam.shutdown() -- shuts down steam SDK

All the rest of the info you need can be found on luasteam's docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment