Find uplay, Origin, Battle.net game ID

battle.netoriginpcubisoft-connect

Through this forum I found out that you can make uplay start a game with the following command. "C:\Program Files (x86)\Ubisoft\Ubisoft Game Launcher\Uplay.exe" "uplay://launch/410/0" This specific command wil launch Rayman Legends.

My guess is that the game ID for Rayman Legends is 410 and so this command should also work for other Uplay games. Is there a way to easily find out the uplay game ID's?

Update:

I am working on a system which can creates a game library of all games I own on steam, uplay, origin and battle.net (in the future I might want to add the windows store games). The library then starts the games using a commands. Here are some examples:

Uplay: (Explaned by @Experimental_Rocket)

"Uplay.exe" "uplay://launch/410/0"

Steam:

steam.exe -applaunch 280

I want to create this method instead of just creating shortcuts to installed games so that my library can include games that aren't installed. Do battle.net and origin have a similar system or might there be other ways to implement this?

Best Answer

Steam (just in case)

You can enable "Display Steam URL address bar when available" on Steam > Settings > Interface:

Steam Parameters

After that you will be able to see the game ID on the store page (in this case, 236870):

Hitman's Store Page

uPlay

If you have a game shortcut on your desktop or start menu, this will contain the uPlay Game ID on the "uplay://launch/ID/0" format (in this case 54).

AC3 id

Also you can search the game ID on Alex or Haoose GitHub repositories.

Origin

Origin have game ID's, but most of the time they are not used. You can still launch the game that you want with origin://launchgame/ID.

To get your game ID, head down to C:\ProgramData\Origin\LocalContent and search for a folder called like your game:

NFS:MW 2012 Folder

Open it up and there should be 3 files that start either with "DR" or "OBF-EAST":

OFB-46851 for NFS:MW 2012

Just add : between the last word and the numbers, that is your game ID (OFB-EAST:46851). Now just use that to launch your game:

origin://launchgame/OFB-EAST:46851

You can still launch the game from the main executable for certain games:

Origin Shortcut

Just to make sure add the path of the Origin executable at the end (useful for launching the game via Steam):

"E:\Origin\Need for Speed(TM) Most Wanted\NFS13.exe" "C:\Program Files (x86)\Origin\Origin.exe"

Battle.net

The Blizzard App also does not use ID's, but you can launch them via network protocols (recommended):

"C:\Program Files (x86)\Battle.net\Battle.net.exe" battlenet://GAME

If the app is running, you could just do:

battlenet://GAME

You need to set up the game that you want to launch on the URL:

World of Warcraft: WoW
Diablo III: D3
Starcraft II: SC2
Hearthstone: WTCG
Heroes of the Storm: Hero
Overwatch: Pro
Starcraft Remastered: S1
Destiny 2: DST2
Call of Duty: Black Ops 4: VIPR

They also can be launched via the "GameName Launcher.exe" file (for example, "Overwatch Launcher.exe") but that would require pressing play on Battle.net:

Overwatch Shortcut