Quantcast
Channel: Steamworks - Documentation
Viewing all articles
Browse latest Browse all 9

Steamworks::Initialize

$
0
0
This function initializes the Steamworks library and enables all Steamworks features.  After calling this function, the Steam overlay will be available in your game by pressing the shift+tab keys.

Syntax

  • bool Initialize()

Returns

If Steamworks was successfully initialized true is returned, otherwise false is returned.

Comments

To initialize Steam your game must have a Steam app id.  If you do not have a Steam app id and want to test Steamworks in your application, you can put a text file in the same directory, name it "steam_appid.txt", and add a single line of text inside the file using the default test app id 480.  To obtain your own app id, your game must be approved in Steam Greenlight.

If you are distributing your game somewhere other than Steam, simply omit the call to this function in your non-Steam builds.

The Steam overlay is available in-game by pressing the shift+tab keys together.  Note that the Steam overlay will not work when the game is launched from Leadwerks editor, though Steam initialization will be successful.

Attached Image: overlay.jpg

Viewing all articles
Browse latest Browse all 9

Trending Articles