2012-03-22, 09:32
Hi,
I try to launche my steam games from advanced launcher but it doesn't work.
I tried fr500's batch files but xbmc just toggle to windowed then back to full screen and nothing else.
Fisrt i tried this :
then this:
The game ID of my Left4dead 2 game is : steam://rungameid/550
So, in the fist bat i replace all the url by this.
and in the second batch i just added 550 to arguments when creating launcher :
"%rom%" 550 gameoverlayui.exe
What is wrong ?
I use dharma, default confluence skin and windows xp.
Thanks
I try to launche my steam games from advanced launcher but it doesn't work.
I tried fr500's batch files but xbmc just toggle to windowed then back to full screen and nothing else.
Fisrt i tried this :
Quote:Ok here is my bat for steam games, works well, doesn't have the silly timeouts it used to.
Code:@echo off
REM pause XBMC and call for the game startup
pssuspend XBMC.exe
start steam://rungameid/26800
set process_1="braid.exe"
set ignore_result=INFO:
REM check if game has started
:1
set var=notrunning
for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %process_1%"`) do if not %%A==%ignore_result% set var=running
echo variable %var%
if %var% == notrunning goto :1
REM check if game is still running
:2
set var=notrunning
for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %process_1%"`) do if not %%A==%ignore_result% set var=running
echo variable %var%
if %var% == running goto :2
REM resume XBMC and close steam
if %var% == notrunning taskkill /F /IM steam.exe
pssuspend -r XBMC.exe
exit
All you have to do is replace the url on steam://rungameid/26800. You can find out the steam gameid you need to use by creating a desktop shortcut on steam
then this:
Quote:I have two generic scripts that will work for you. For both of them you need sysinternals tools installed and on your path, so get this file and extract them to your windows folder.
I extracted sysinternal tools to C:\WINDOWS.
Code:@echo off
REM *****************************************************************************************************
REM Usage:
REM call launcher_steam with 2 arguments, first argument is the steamid of the game, second argument
REM is the name of the process that must be tracked
REM ex: launcher_steam 40800 supermeatboy.exe
REM *****************************************************************************************************
REM pause XBMC
pssuspend XBMC.exe
REM start the game
start "GAME" "steam://rungameid/"%1
set process_1=%2
set ignore_result=INFO:
REM check if game has started
:1
set var=notrunning
for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %process_1%"`) do if not %%A==%ignore_result% set var=running
echo variable %var%
timeout 1
if %var% == notrunning goto :1
REM check if game is still running
:2
set var=notrunning
for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %process_1%"`) do if not %%A==%ignore_result% set var=running
echo variable %var%
timeout 1
if %var% == running goto :2
REM resume XBMC
pssuspend -r XBMC.exe
timeout 10
taskkill /IM steam.exe /f
All you need to do is create a REGULAR LAUNCHER for this script and in the arguments you put the steam AppID of the game you're gonna launch (more info on that below) and the name of the process that it must track (if you don't care about this use gameoverlayui.exe for all your games or modify the script to always track gameoverlayui.exe) to pause/unpause XBMC. It will also forcefully close steam after the game has ended. You can comment that out by putting a REM (REM taskkill /IM steam.exe /f)
(...)
To get AppID first create a desktop shortcut for your Game
The game ID of my Left4dead 2 game is : steam://rungameid/550
So, in the fist bat i replace all the url by this.
and in the second batch i just added 550 to arguments when creating launcher :
"%rom%" 550 gameoverlayui.exe
What is wrong ?
I use dharma, default confluence skin and windows xp.
Thanks