GodotSteam for Godot Engine
Steam API for the Godot game engine (version 3.0 - 3.1). For the Windows, Linux, and Mac platforms.
Documentation is available here: https://gramps.github.io/GodotSteam/
Alternately, there is the project's Wiki page here: https://github.com/Gramps/GodotSteam/wiki
You can also check out the Search Help section inside Godot Engine after compiling it with GodotSteam.
You can download pre-compiled versions (currently v3.0.1) of this repo here: https://github.com/Gramps/GodotSteam/releases
Version 3.0.1 Changes
- Added: MacOS C++ rule back in for compiling
- Added: all missing Steam Utils functions (except depreciated or non-relevant functions)
- Added: additional ENUMS for Steam Utils
- Added: missing failure conditions for some Steam Utils functions
- Changed: output for getFriendGamePlayed to show game information even if no valid lobby
- Changed: order of previous Steam Utils functions to be alphabetical with new ones
- Changed: gamepad_text_input_dismissed callback
- Fixed: lobby_message bug, thanks to pull request from Frostings
- None... so far
- Download this repository and unpack it.
- Download and unpack the Steamworks SDK; this requires a Steam developer account.
- Download and unpack the Godot source; preferably 3.0.6 or 3.1.
- Move the following to godotsteam/sdk/:
- The repo's directory contents should now look like this:
godotsteam/sdk/public/* godotsteam/sdk/redistributable_bin/* godotsteam/SCsub godotsteam/config.py godotsteam/godotsteam.cpp godotsteam/godotsteam.h godotsteam/register_types.cpp godotsteam/register_types.h
- Now move the "godotsteam" directory into the "modules" directory of the unpacked Godot Engine source.
- Recompile for your platform:
- Windows ( http://docs.godotengine.org/en/stable/reference/compiling_for_windows.html )
- Linux ( http://docs.godotengine.org/en/stable/reference/compiling_for_x11.html )
- If using Ubuntu 16.10 or higher and having issues with PIE security in GCC, use LINKFLAGS='-no-pie' to get an executable instead of a shared library.
- OSX ( http://docs.godotengine.org/en/stable/reference/compiling_for_osx.html )
- When creating templates for this, please refer to this post for assistance as the documentation is a bit lacking ( http://steamcommunity.com/app/404790/discussions/0/364042703865087202/ ).
- When recompiling the engine is finished, copy the shared library (steam_api) from sdk/redistributable_bin/ folders to the Godot binary location (by default in the godot source /bin/ file but you can move them to a new folder). It should look like this:
- Linux 32/64-bit
libsteam_api.so ./godot.linux.tools.32 or ./godot.linux.tools.64
libsteam_api.dylib ./godot.osx.tools.32 or ./godot.osx.tools.64
- Windows 32-bit
- Windows 64-bit
- Your game must ship with the executable, Steam API DLL/SO/DyLIB, and steam_appid.txt to function. Lack of the Steam API DLL/SO/DyLib (for your respective OS) or the steam_appid.txt will cause it fail and crash.
- NOTE: For OSX, the libsteam_api.dylib and steam_appid.txt must be in the Content/MacOS/ folder in your application zip or the game will crash.
From here you should be able to call various functions of Steamworks. You should be able to look up the functions in Godot itself under the search section. In addition, you should be able to read the Steamworks API documentation to see what all is available and cross-reference with GodotSteam.