Your code could easily have race conditions or other subtle timing bugs that could swap the order. Action set layers are intended for narrow use cases and a good practice is to apply and remove them only on specific game state changes. …
[docimg=action_set_layers_vehicle_1.png]action_set_layers_vehicle_1.png[/docimg] [code=cpp] void changeVehicle(EVehicleID myVehicle, bool entering) { InputActionSetHandle_t layerHandle; if(myVehicle == AUTOMATIC) { layerHandle = automaticHandle; //automatic transmission -- steer, gas, brake } else if(myVehicle == STICK_SHIFT) { layerHandle = stickShiftHandle; //manual transmission -- steer, gas, brake, clutch, shift gears, etc. } if(entering) { SteamInput()>ActivateActionSetLayer( controllerHandle1, layerHandle ); //apply the vehicle's action set layer when you get in it } else { SteamInput()>DeactivateActionSetLayer( controllerHandle1, layerHandle ); //remove the vehicle's action set layer when you get out of it } } [/code] In this game, players can use their weapon even when riding in a vehicle. …
This is only used internally by the API, and by a few select interfaces that support multi-user. [b]Returns:[/b] [apitype]ISteamClient::HSteamUser[/apitype] [subsection=GetPlayerSteamLevel]GetPlayerSteamLevel[/subsection] [code=cpp]int GetPlayerSteamLevel();[/code] Gets the Steam level of the user, as shown on their Steam community profile. [b]Returns:[/b] int The level of the current user. [subsection=GetSteamID]GetSteamID[/subsection] [code=cpp]CSteamID GetSteamID();[/code] Gets the Steam ID of the account currently logged into the Steam client. …
[section]Coming Soon[/section] After your store page has been approved, the controls will say "Approved For Release". Click "Post As Coming Soon" to view options and to make your page live for customers. There is no option on your store page for customers to purchase or play your game at this stage. …
Click "Release App" to proceed and view release details before confirming. Selecting "Publish Now" from the subsequent options will kick off your full release and will make your product immediately playable for customers. Your title will then appear in the store as fully released. …
[/h4] A: Yes, Advance Access is a Pre-Purchase incentive, so it can only be used during Pre-Purchase. [h4]Q: Can my game use Advance Access if it's the only Pre-Purchase incentive?[/h4] A: No, in order to use Advance Access, the Pre-Purchase incentive must contain additional value beyond just the Advance Access time period. …
[h4]Q: Will Steam grant advance access to other content in the package such as pre-order bonus DLCs and soundtracks? [/h4] A: Steam will enable access to all of the content that is contained within that Advance Access package, so if it’s a soundtrack and bonus DLC, then yes, those would be included at that time as well. …
[b]NOTE:[/b] This is a Service interface, methods in this interface should be called with the [code-inline]input_json[/code-inline] parameter. For more info on how to use the Steamworks Web API please see the [doclink=webapi_overview][/doclink]. …
Existing tags will not be removed unless they are specified in the [code-inline]remove_tags[/code-inline] parameter. [b]NOTE:[/b] This call requires a publisher API key to use this method. As such this API [b]MUST[/b] be called from a secure server, and can never be used directly by clients! …
[subsection=CreateSteamPipe]CreateSteamPipe[/subsection] [code=cpp]HSteamPipe CreateSteamPipe();[/code] Creates a communication pipe to the Steam client. NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling [b]Returns:[/b] [apitype]ISteamClient::HSteamPipe[/apitype] [subsection=GetIPCCallCount]GetIPCCallCount[/subsection] [code=cpp]uint32 GetIPCCallCount();[/code] Returns the number of IPC (Inter-Process Communication) calls made since the last time this function was called. …
[b]Returns:[/b] [apitype]steam_api::uint32[/apitype] [subsection=GetISteamApps]GetISteamApps[/subsection] [code=cpp]ISteamApps * GetISteamApps( HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char *pchVersion );[/code] [table] [tr][th]Name[/th][th]Type[/th][th]Description[/th][/tr] [tr][td][b]hSteamUser[/b][/td][td][apitype]ISteamClient::HSteamUser[/apitype][/td][td]The user handle to get the interface from.…
If you prefer to run it from the command line: [list] [*]On Windows, run [code-inline]windows-client/devkit-gui.exe[/code-inline] [*]On Linux, run [code-inline]devkit-gui.sh[/code-inline] from the top of the installation directory ( [code-inline]~/.steam/steam/steamapps/common/SteamOSDevkitClient/linux-client/[/code-inline] ). …
[list] [*][b]Local Folder[/b] - The base directory that contains all the files necessary for your game to run. [*][b]Upload filtering[/b] - The upload process uses rsync over ssh, and is meant to be fast for repeated uploads with few content changes. There are three options to control what gets uploaded: [b]Exclude only[/b] takes a space separated list of patterns to exclude from the upload. …
[subsection]Chat only view[/subsection] To help with dedicated moderation tasks, you can open any broadcast chat in it's own window. There are two ways to get to this view: [list] [*]By using this URL format: [code]https://steamcommunity.com/broadcast/chatonly/<steamID of the broadcaster>[/code] The SteamID used here is the 64-bit Steam ID. …
You can also see a concise list of moderators and users that have had moderation action taken against them by visiting this url: [code]https://steamcommunity.com/broadcast/moderators/<steamid of the broadcaster>[/code] …
[/td][/tr] [tr=k_ELaunchOptionType_Benchmark][td][b]k_ELaunchOptionType_Benchmark[/b][/td][td]9[/td][td]Runs game benchmark.[/td][/tr] [tr=k_ELaunchOptionType_Option1][td][b]k_ELaunchOptionType_Option1[/b][/td][td]10[/td][td]Generic run option, uses description field for game name.[/td][/tr] [tr=k_ELaunchOptionType_Option2][td][b]k_ELaunchOptionType_Option2[/b][/td][td]11[/td][td]Generic run option, uses description field for game name.[/td][/tr] [tr=k_ELaunchOptionType_Option3][td][b]k_ELaunchOptionType_Option3[/b][/td][td]12[/td][td]Generic run option, uses description field for game name.…
[subsection]Hosting events on Steam[/subsection] If you are looking for information on hosting a sale event on Steam, please see [doclink=store/promo/organizers][/doclink] [subsection]Getting Started With Sale Editor Tools[/subsection] The best place to start with familiarizing yourself with the sale page editing tools is this overview page here: [doclink=marketing/event_tools/sales/tools][/doclink] For more details on various topics within the sale page editors, please see the following documentation: [list] [*][doclink=marketing/event_tools/sales/groups][/doclink] [*][doclink=marketing/event_tools/sales/livestream][/doclink] [*][doclink=marketing/event_tools/sales/minimum][/doclink] [*][doclink=marketing/event_tools/sales/sections][/doclink] [/list] …
See [doclink=features/auth#encryptedapptickets][/doclink] for more information. To use these functions you must include the [code-inline]steamencryptedappticket.h[/code-inline] header, and link to the sdkencryptedappticket binary. …
[subsection=GetTicketAppID]SteamEncryptedAppTicket_GetTicketAppID[/subsection] [code=cpp]S_API AppId_t SteamEncryptedAppTicket_GetTicketAppID( uint8 *rgubTicketDecrypted, uint32 cubTicketDecrypted );[/code] [table] [tr][th]Name[/th][th]Type[/th][th]Description[/th][/tr] [tr][td][b]rgubTicketDecrypted[/b][/td][td]uint8 *[/td][td]The decrypted ticket to check.…
By selecting the packages that are editions of your game using Manage Editions, you can ensure they will appear above any other purchase options on your store page. At the bottom, you can upload an image to help customers compare editions. …
[/b] Please be sure to review the comparison image guidelines and best practices below. A new "Compare Editions" option will appear on your store page that customers can use to quickly and easily see the differences between the various editions of your game. …
[subsection=GetPlaybackStatus]GetPlaybackStatus[/subsection] [code=cpp]AudioPlayback_Status GetPlaybackStatus();[/code] Gets the current status of the Steam Music player. [b]Returns:[/b] [apitype]ISteamMusic::AudioPlayback_Status[/apitype] [subsection=GetVolume]GetVolume[/subsection] [code=cpp]float GetVolume();[/code] Gets the current volume of the Steam Music player. [b]Returns:[/b] float The volume is returned as a percentage between [b]0.0[/b] and [b]1.0[/b]. …
(Valve use only.) [b]Returns:[/b] [apitype]steam_api::EUniverse[/apitype] [subsection=GetCSERIPPort]GetCSERIPPort[/subsection] [code=cpp]bool GetCSERIPPort( uint32 *unIP, uint16 *usPort );[/code] [table] [tr][th]Name[/th][th]Type[/th][th]Description[/th][/tr] [tr][td][b]unIP[/b][/td][td][apitype]steam_api::uint32[/apitype] *[/td][td]Returns the IP that the client is connected to.…
[subsection=GetCurrentBatteryPower]GetCurrentBatteryPower[/subsection] [code=cpp]uint8 GetCurrentBatteryPower();[/code] Gets the current amount of battery power on the computer. …
For the sake of illustration, [code-inline]http://redirect/uri/here[/code-inline] will be used to represent the redirect URI. [Section=Getting Started]Getting Started[/Section] Steam's implementation is based upon [url=http://oauth.net/2/]OAuth 2.0[/url]. …
Unless others noted below, requests should be HTTP POST requests presented as form data and should set this header: [code]Content-Type: application/x-www-form-urlencoded[/code] [Section=RetrieveSteamID]Retrieving the User's SteamID[/Section] Once you have an OAuth token for a user, you can make a server to server call to securely get the SteamID for the user associated with that token by calling: [code]https://api.steampowered.com/ISteamUserOAuth/GetTokenDetails/v1/?…
[section=GetAccountList]GetAccountList[/section] [code=http]GET https://api.steampowered.com/IGameServersService/GetAccountList/v1/[/code] [table] [tr][th]Name[/th][th]Type[/th][th]Required[/th][th]Description[/th][/tr] [tr][td][b]key[/b][/td][td]string[/td][td]✔[/td][td]Steamworks Web API user authentication key.…
[/td][/tr] [tr][td][b]server_ips[/b][/td][td]string[/td][td]✔[/td][td][/td][/tr] [/table] Gets a list of server SteamIDs given a list of IPs [section=GetServerIPsBySteamID]GetServerIPsBySteamID[/section] [code=http]GET https://api.steampowered.com/IGameServersService/GetServerIPsBySteamID/v1/[/code] [table] [tr][th]Name[/th][th]Type[/th][th]Required[/th][th]Description[/th][/tr] [tr][td][b]key[/b][/td][td]string[/td][td]✔[/td][td]Steamworks Web API user authentication key.…
[docimg=getting_started_select_game_bp.png]getting_started_select_game_bp.png[/docimg] [callout=green,fixed][b]NOTE[/b]: Disclosure: In this example I'm picking my own game because I have full control of its Steam Input API integration and can use it to demonstrate certain features.[/callout] When the game's menu comes up, select "Manage Game" in the sidebar: [docimg=getting_started_manage_game.png]getting_started_manage_game.png[/docimg] [b]You Did Plug the Controller in, Right?[/b] If you don't have a controller plugged in, you will see a menu like this: [docimg=getting_started_manage_options.png]getting_started_manage_options.png[/docimg] Once you plug in the controller, you should see something like this: [docimg=getting_started_manage_controller_config.png]getting_started_manage_controller_config.png[/docimg] Select "Controller Configuration" to open up the controller configuration menu. …
[section=GetAppList]GetAppList[/section] [code=http]GET https://partner.steam-api.com/IStoreService/GetAppList/v1/[/code] [table] [tr][th]Name[/th][th]Type[/th][th]Required[/th][th]Description[/th][/tr] [tr][td][b]key[/b][/td][td]string[/td][td]✔[/td][td]Any web API key.…
[code-inline]if_modified_since[/code-inline] can be used to filter to only games that have been changed or added since a specific timestamp. …
[section=functions]Member Functions[/section] Member functions for [code-inline]ISteamVideo[/code-inline] are called through the global accessor function [code-inline]SteamVideo()[/code-inline]. [subsection=GetOPFSettings]GetOPFSettings[/subsection] [code=cpp]void GetOPFSettings( AppId_t unVideoAppID );[/code] [table] [tr][th]Name[/th][th]Type[/th][th]Description[/th][/tr] [tr][td][b]unVideoAppID[/b][/td][td][apitype]steam_api::AppId_t[/apitype][/td][td]The video app ID to get the OPF details of.…
[subsection=GetVideoURL]GetVideoURL[/subsection] [code=cpp]void GetVideoURL( AppId_t unVideoAppID );[/code] [table] [tr][th]Name[/th][th]Type[/th][th]Description[/th][/tr] [tr][td][b]unVideoAppID[/b][/td][td][apitype]steam_api::AppId_t[/apitype][/td][td]The video app ID to receive the video stream for.…
First, you'll need an item definition for the tool. Note that you'll probably want to remove the tags using the [code-inline]tags_to_remove_on_tool_use[/code-inline] property, otherwise you may get duplicate tags or tag categories on your item if multiple tools have been applied to it. …
[code] itemdefid: 500 type: tag_generator name: Tag Generator Paint tag_generator_name: paint_color tag_generator_values: red:33;blue:33;green:33;gold:1 itemdefid: 100 type: tag_tool name: Random Paint Can tag_generators: 500 tags_to_remove_on_tool_use: paint_color [/code] Then when a user applies the "Random Paint Can" tool to their "Hat" using the [api]ISteamInventory::ExchangeItems[/api] call, they have a 33% chance to get either "red," "green," or "blue" and a 1% chance to get "gold.…