Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Steamworks.gml example

Sample project for Steam-based networking for GameMaker. · By YellowAfterlife

Sandboxie Runner won't connect to alternate Steam account

A topic by Ethereums created Jan 04, 2021 Views: 1,110 Replies: 7
Viewing posts 1 to 5

I installed Sandboxie on my PC

I ran Steam regularly and logged into my main account

I ran Steam in Sandboxie and logged into my alternate (second) account

I then ran the example from GMS2 regularly (works, can create lobbies/press shift+tab, etc)

I then copied the parameter string to my clipboard:

W://windows/Runner.exe -debug_steamapi -game X:/SteamworksGmlExample_24BF7CD3_VM\SteamworksGmlExample.win

I ran that command in my Steam Sandboxie, it spawned another game runner

However, this game runner is refusing to connect to my alternate Steam account. I can't press shift+tab to view Steam, can't create lobbies or refresh lobbies. But I can clearly see the runner and Steam are both running in the same Sandbox environment:


Any ideas on why the sandbox game isn't connecting to my second steam client?

Developer

Someone asked this before and I couldn’t reproduce

https://github.com/YAL-GameMaker/steamworks.gml/issues/5

The good news are that the issue is not specific to this extension (or maybe even GameMaker) and has something to do with Steam in Sandboxie in general.

(8 edits)

So basically I've got a separate Steam installation on another folder on my Desktop, that's the one I launch with Sandboxie.

I made a shortcut to that, and ensured it runs as administrator and placed "-initbootstrap" in the target.

I then ran the shortcut:


And then after I logged into Steam (second account), I ran the second version of the game like so:


I'm also clicking "Run as UAC Administrator" for everything I'm running in Sandboxie.

Unfortunately even after all that, it's still not working. Second game client does not want to connect to Steam.

Are we sure at this point that it's not the runner/GameMaker doing something that's not allowing it to connect to Steam? Maybe it has something to do with the Steam App ID? I couldn't find out where to type it in in GMS2:


Are my game options fine?

Also my Steam SDK version:

And my GMS2 IDE/Runtime versions:


Developer

That seems normal, aside of using SDK 1.35a instead of the recommended 1.42

Hey, I'm having the same issue. Any chance you ever got it sorted?

(1 edit)

Also bumping this topic since I'm having the same issues listed above. I've tried all recommended fixes on both this page and the github issue.

steam_gml_is_available() returns true on both instances, but steam_gml_is_ready() returns false in the Sandboxie instance.

Alright, so... I did end up getting it working eventually but unfortunately I'm not even sure why it does now. The things I tried:

  • Toggling Admin access on the Sandboxie Steam instance
  • Replacing Sandboxie Plus with Sandboxie Classic
  • Toggling x64 Bit Executable in GMS 2
  • Toggling Sandboxed File System in GMS 2
  • Toggling Alternative Steam Launcher in GMS 2

Hope any of these (or any combination of these) helps.

(+1)

I have tried all of these methods and am still unable to get it to work. It works just file with exported builds, but I can not get the runner to work :/