You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
William Quinn b526b2787d Update README with known issues. 2 years ago
GAMES_THAT_REQUIRE_ADMIN.md Version 2.3, added admin rights capabilities. 2 years ago
OLauncher.ahk 2.4-r4 // Fix tray always showing N/A for GameEXE. 2 years ago
OLauncher.example.ini Update all documentation, official bump to 2.0 2 years ago
README.md Update README with known issues. 2 years ago
icon.ico Add icon and credits. 2 years ago

README.md

OLauncher

Usage

Command Line

OLauncher.exe "<path to Origin>" "<Origin.exe>" "<path to Origin Game>" "<Game.exe>" "<RunAsAdmin>" "<CloseOriginAfter>"

  • <path to Origin> is the install directory where Origin resides, usually C:\Program Files (x86)\Origin
  • <Origin.exe> is usually Origin.exe. This won’t change unless EA changes Origin’s executable name.
  • <path to Origin Game> is the install directory where the game you want to run resides.
    • As an example, let’s say Mass Effect Andromeda, which is installed to D:\Games\Origin Games\Mass Effect Andromeda
  • <Game.exe> is the game executable.
    • In Mass Effect Andromeda’s case, it would be MassEffectAndromeda.exe.
  • <RunAsAdmin> is either 0 or 1.
    • 0 means that OLauncher will not attempt to run as an administrator.
    • 1 means that OLauncher will attempt to run as an administrator.
    • If you run OLauncher as admin, OLauncher will automatically overwrite the saved INI in the directory. This is because OLauncher does not read the command line arguments again after running as admin, so it stores all values before restarting. For more info on running with INI files, check the INI File section below.
  • <CloseOriginAfter> is either 0 or 1.
    • 0 means keep Origin open after closing the game.
    • 1 means close Origin after closing the game.

Examples

  • Launching Mass Effect Andromeda, do not run as an admin and close Origin when done:

OLauncher.exe "C:\Program Files (x86)\Origin" "Origin.exe" "D:\Games\Origin Games\Mass Effect Andromeda" "MassEffectAndromeda.exe" 0 1

  • Launching the original Mass Effect, run as an admin and close Origin when done:

OLauncher.exe "C:\Program Files (x86)\Origin" "Origin.exe" "D:\Games\Origin Games\Mass Effect\Binaries" "MassEffect.exe" 1 1

INI File

OLauncher supports launching through an INI file as well. If you run OLauncher.exe without any command line arguments, OLauncher will generate an INI in the directory where it was run. From there, you can fill out the game details and save the file. Running OLauncher.exe again with the INI beside it will launch whatever is found in the INI.

OLauncher’s INI that is created is named after the EXE file, so you can have multiple EXE files that run multiple INI files.

For example:

  • OLauncher.exe would create OLauncher.exe.ini and read from it.
  • OLauncher-masseffect.exe would create OLauncher-masseffect.exe.ini and read from it.

This allows you to have multiple EXEs and INIs in one directory.

About the Script

OLauncher is a script that allows you to launch Origin games from within the Steam client. Launching games through this script is automated, from automatically starting Origin to launching the game that is listed within the OLauncher.ini file. Once the game is shutdown, the script will ask if you would like to keep Origin running or shut it down as well.

Running Origin games through this script should allow the Steam overlay to work, though not guaranteed.

Issues

  • If you have this script in Steam as a non-Steam game and set the script to launch your game as an administrator, Steam will not show you are playing a game.
    • Resolution: Launch Steam as an administrator. There’s nothing I can do to fix this.

Disclaimer

By using this script in any way, you agree to the following disclaimer:

I am, in no way shape or form, related to or involved in Origin, EA, Electronic Arts, or any similar entity. Origin is Copyright © 2017 Electronic Arts Inc.

I am not responsible for your use of this script. I am also not responsible if this script works as intended, blows up your computer, eats your lunch, fails to do what you expect, or becomes sentient. I am not obligated in any way to support the use of this script, or give support to you for this script.

Credits

The icon used in the compiled EXE was created by Pixel Buddha and can be found by going to https://www.flaticon.com/free-icon/gamepad_214304.