Various expansions to Steamworks SDK support in GameMaker: Studio / GMS2. (now merged into the official extension)
Quick links: documentation · sample project · donate
A native extension for GameMaker (GMS1, GMS2, GMS2.3+) that implements various Steam API features not covered by the built-in functions - most importantly, P2P networking, lobbies, and matchmaking.
steam_gml_update
once per step (required for steam events to dispatch).If all is well, upon running the game you'll see Steamworks.gml initialized successfully.
in the CompileForm.
Steamworks.gml failed to link with Steam API.
means that either the Steam client is not running, or you have specified an incorrect App ID.
Steamworks.gml binary is not loaded.
means that the DLL/DyLib/SO could not be loaded, usually due to the native extension file missing or being otherwise inaccessible.
Note: If you are grabbing the sample project straight from this repository, you will need to compile it first using Visual Studio (Windows) or via included .sh scripts (Mac, Linux). Sample project page has pre-compiled binaries.
Download or clone the repository.
Create a steamworks_sdk_135a
directory and place Steamworks SDK 1.35a there (for GMS1).
Create a steamworks_sdk_142
directory and place Steamworks SDK 1.42 there (for GMS2).
For both directories, Readme.txt
should be directly inside the directory (steamworks_sdk_135a/Readme.txt
) - no subdirectories!
Windows:
x86
, switch configuration (also in toolbar) to GMS1 Release
, and pick menu:Build➜Build Solution.GMS2 Release
configuration.GMS2 Release
configuration and x64
platform.Note: If you are adding new functions, you'll generally want to set up GmxGen to avoid adding them to extensions by hand. Once set up (extract GmxGen.exe
next to vcxproj
file), GmxGen will be ran automatically in post-build step.
Linux:
build_linux_gms1.sh
. You'll need cpp:i386, gcc:i386, and g++:i386 installed.build_linux_gms2.sh
.Mac:
build_mac_gms2.sh
.Note: Due to Apple's recent notarization changes, native extensions will no longer load when running from IDE on VM, as both application and all of its dependencies must be signed with same certificate.
Author: Vadim "YellowAfterlife" Dyachenko
License: MIT https://opensource.org/licenses/mit-license.php