Announcement

Collapse
No announcement yet.

Open the Steam Service using console command

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Open the Steam Service using console command

    Hi.
    I want know how to do this. Instead press Shift+Tab open the Steam service using a Console Command.
    Open an external url will help too.
    Can you help me?

    Thank you.
    Last edited by Humberto Milanez; 04-13-2017, 10:43 AM.

    #2
    This requires programming to create a blueprint node that can do so.

    This documentation talks about the Game Overlay.
    https://partner.steamgames.com/docum...n/game_overlay

    You don't need any callbacks or call results from steam to trigger them, so if you follow this guide, you should get an idea on how to create a blueprint node to bring the steam overlay, and to set the steam web browser to a specific url.
    https://wiki.unrealengine.com/Steam_workshop

    Look at First Step with Steam.
    I'd do some changes to prevent crashes.
    From
    Code:
    if (SteamAPI_Init())
    {
      const char* name = SteamFriends()->GetPersonaName();
      GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Red, name);
    }
    to
    Code:
    if (SteamFriends() != nullptr) //Check that the Steam Pointers are initialized previously
    {
      FString SteamName = SteamFriends()->GetPersonaName();
      UE_LOG(LogSteamworks, Log, TEXT("Steam Name of User: %s"), *SteamName);
    }
    I read somewhere that SteamAPI_Init() will try to recreate steam when you read it, so just checking the steam pointers are populateed should be enough. I think.
    UE_LOG doesnt depend on the editor and is much better to print logs of what you are doing.

    From the Steam API, what you are looking for is this
    Code:
    SteamFriends()->ActivateGameOverlay("Community");     //const char *pchDialog     //Check the Steam Api for more Options.
    Or
    Code:
    SteamFriends()->ActivateGameOverlayToWebPage("https://www.unrealengine.com");       //const char *pchURL
    How to create a blueprint Library.
    https://wiki.unrealengine.com/Bluepr...re_With_Others

    If you want to pause the game when the steam overlay comes up, it's more complicated, and involves more programming, but luckily for you, I struggled with that for a month and a half, and after I won, I wrote a throrough guide on how to achieve this.
    https://wiki.unrealengine.com/Pause_...Overlay_Active

    Hope this helps.
    Musical Range VR | Musical Range Trailer | Pausing Game On Steam Overlay | Aperture Tag

    Comment


      #3
      Motanum , Thanks and please have patience with me.
      Where I find this classes to modify?

      Thank you.

      Comment


        #4
        Hi,

        So, you basically first step, is to learn how to do add code to your ue4 game.
        https://docs.unrealengine.com/latest.../QuickStart/2/

        Once you have that, and the code compile, then you have 2 options. The most simple one, is to create a blueprint Function library.
        https://docs.unrealengine.com/latest...tionLibraries/

        Learn how to create a simple blue print node. Maybe a int++;, that will take a int variable type, and increment it by 1. What you think can do.

        Then, with that, you gotta go ahead and read this guide until the Look at First Step with Steam section. So you get the Steamworks stuff working and running in your game.
        https://wiki.unrealengine.com/Steam_workshop

        With that, you just need to include the steam_api.h in your blueprint library cpp class
        Code:
        #include "ThirdParty/Steamworks/Steamv132/sdk/public/steam/steam_api.h"
        So you can make use of the Steam api calls.

        With that done, then you can create your own blueprint node. Something like
        Code:
        UFUNCTION(BlueprintPure, Category = "Steamworks")
        bool UYourBlueprintlibrary::ActivateSteamOverlayToURL(FString FullURL) {
        	if (SteamUser() != nullptr)
        	{
        		SteamFriends()->ActivateGameOverlayToWebPage(*FullURL); 
                        return true;
        	}
                
                //Steam not initialized
        	return false;
        }
        Musical Range VR | Musical Range Trailer | Pausing Game On Steam Overlay | Aperture Tag

        Comment

        Working...
        X