Showing posts with label steam. Show all posts
Showing posts with label steam. Show all posts

Jan 4, 2018

Run 2 Steam Accounts on One Computer

Need an extra DD account for storage space or want to run 2 steam games at once? Sandboxie makes it easy.

Intro

Ever play a game and wish you could have a second account for extra space, use as AFK shop or be able to trade with someone without having to leave your game? Sandboxie makes it easy.

Sandboxie allows you to run a self contained copy of steam on your computer along side your main install. Sandboxie has many other uses but I found it to be very useful when needing to run my second DD account and my other computer was otherwise engaged.

This guide is designed to help walk you through the setup and be able to use another DD account, or any other game account, on the same computer as your main account.

DISCLAIMER: This may not work for all games.

NOTE: This guide was mostly put together by another player but he didn't care to be named. Will gladly give him all the credit for this when he doesn't mind being mentioned

Requirements

  • An extra steam account (this does not allow you to run your main account twice)
  • An extra copy of the game. Family share wont work since you can play both at once. I recommend buying extra copies of your favorite game when steam has its sales or through humblebundle.

Folder Setup and Game Copy

Creating a new folder and copying the game files over is typically recommended but you can use the existing folder to save space if needed. Skip to next section if you want to use your current folder.

  • Open up your Program Files directory where your Steam installation is (eg, C:\Program Files (x86)\)
  • Create a new folder, I named mine "SteamSand" to make it simple.
  • Now go into your normal Steam folder (eg, C:\Program Files (x86)\Steam\)
  • Copy the folder "SteamApps" and file "Steam.exe" and Paste them into your SteamSand folder (eg, C:\Program Files (x86)\SteamSand\)
  • Remember to COPY&PASTE, Do not MOVE. This can take a while depending on how many games you have installed. We'll leave this alone for now and come back later. 

Sandboxie Setup

  • Now, Download SandBoxie from their website SandBoxie.com
  • Install and Run SandBoxie
  • When it's open, At the top click "Sandbox" and "Create New Sandbox"
  • Name it whatever you want, I named mine "Steam" Then Click OK
  • Once you've clicked OK, You'll see the new sandbox appear in the list, Right click on it and click "Sandbox Settings"
  • In Settings, Click the + next to "Resource Access", Then the + next to "File Access", Now click "Full Access"
  • Now click the "Add" button and Browse to the previously created "SteamSand" folder. Click on your "SteamSand" folder and Click OK.
  • Click Apply and then OK
  • There will be a popup stating you changes configuration blahblahblah, Just click OK.

How to Run

  • Now go back to that "SteamSand" folder, Right click on "Steam.exe" and click "Run Sandboxed"
  • You'll get a popup which will have you chose which Sandbox to run it with. Click on your "Steam" sandbox and click OK. (You may need to select the UAC check box as well)
  • Steam will now open and prompt you to Login. Login with whatever account you want (Most likely your 2nd account)
  • Steam will automatically download all the missing files we didn't copy.
  • Done

Note: It is best to create a shortcut on your desktop to the "Steam.exe" file in your "SteamSand" folder and name it something like "Steam - Sandbox" as you will ALWAYS have to Right click -> Run Sandboxed.

Important Notes

There are several things to know about sandboxie that many have asked about since I wrote this originally.

  • Sandboxie is free to use for 1 extra account. If you want to make 2 or more accounts using sanboxie then you must pay for it.
  • You cannot host 2 private games on the same computer. You can join your main tavern with the second account and vice versa though.
  • If running in Windowed mode, your cursor may move outside the window. I have accidentally closed my main window before when running around a map shooting. To get around this, play full screen on your main account.
REFERENCE: https://steamcommunity.com/sharedfiles/filedetails/?id=311943358


Dec 14, 2017

Steam and Unity Questions

1)* Is there a way I can start a standalone build and use the Steam Overlay?
If you launch the game from a shortcut in your steam library which points to the standalone build in your output folder then the overlay will be injected as the game starts.
I think if you use "Build and Run" in Unity that might work too, but only if you've already played in the editor in that session. (Because SteamAPI.Init() gets called, which injects the overlay, then build and run spawns your game as a child process and the overlay gets automatically injected into it.)
2)* Should I be able to start the game from the Steam Library?
Only if you've uploaded your game to steam and it's being correct downloaded into your steamapps/common folder. Your launch parameters in the Steamworks backend may be incorrect as well. (Don't forget to publish the changes!)
3)* If yes, should the steam_appid.txt file be next to the .exe or do I only need that when starting the .exe manually?
The steam_appid.txt is only required when testing locally, it's generally not recommended to ship it on steam to customers.
4)* Again, if yes, is it important that I put the build in the steamapps/common/my_game folder, or can the build reside in my usual UnityProject/Builds folder?
So, If you use SteamAPI.RestartAppIfNecessary, without having a steam_appid.txt then your game is literally doing a complete shutdown with Application.Quit() and then steam relaunches it once it quits. This relaunch is literally the exact same thing as double clicking the game in your steam library, so it kind of depends how you want to work. If you're testing with the overlay then having your builds output to your steamapps/common folder and just launching from your regular steam library icon may be best. Otherwise one of the other options above might be better.

REFERENCE: https://github.com/rlabrecque/Steamworks.NET/issues/142

Visual Studio Keyboard Shortcuts

Playing with keyboard shortcuts is very interesting and reduce the headache of using the mouse again and again while programming with visu...