Posts: 3,432
Joined: Sep 2010
Reputation:
57
2013-03-25, 12:40
(This post was last modified: 2013-03-25, 12:42 by Angelscry.)
Do not use shortcuts and start directly the games executable file.
BTW, what is the command line you are using into your script to start your .lnk files?
Posts: 22
Joined: Jan 2013
Reputation:
0
Seem to have hit a snag... It wont work with steam games (.url). Seems like it doesn't wait for the program to exit before resuming XBMC... I'll toy with it some more
Posts: 22
Joined: Jan 2013
Reputation:
0
Something more I wanted to add...
This seems like a problem that would be common to anyone who uses XBMC as a gaming center next to a media center, with advanced launcher. But i found it quite time-consuming to piece all this information together.
Basically, if you run in true fullscreen mode you get issues with XBMC staying minimized after the game exits. This is common for ALL programs i launched with advanced launcher. Not to mention that most emulators will throw up directx errors, save for the officially supported ones on the advanced launcher wiki (not criticizing, just stating, i realize it's impossible to offer support for EVERY SINGLE emulator out there). Trying to run emulators from a scripted .bat launcher (if you want to script xbmc maximization after exit) simply results in ALL emulators having directX errors. So long story short; true fullscreen is problematic for file launchers. Which is really what you want if you have a mixed bag of games and want some level of organisation for browsing them (getting dumped into a pool of thousands of games is... overwhelming).
On the other hand if you use the maximized window instead of true fullscreen it solves most of these issues, but introduces a few new ones. Like the XBMC window not returning to 1080p resolution after you exit something that ran in a resolution other than 1080p natively (like most scummvm, dosbox or generally older games do). Or worse, power-consumption and system resource draw of XBMC running in a maximized window behind the fullscreen app. For people running SLI/X-FIRE high end gfx card, the power-consumption is significant (upto 150+ watts overhead...per card!), more importantly, XBMC significantly reduces performance in modern games (upto 40% in my case with an HD6970 gfx card).
The only solution (that i have found) is to suspend/pause XBMC when launching the emulator/files launcher, and that seems to take some creative scripting (or really intensive, persistent googling).
I think the Advanced Launcher wiki does an awesome job at trying to document and simplify all these matters, but the problem is that it mostly only addresses straight forward cases where nothing, the basic setup with no and/ifs or buts. However, I think that most serious gamers (who would bother building a gaming HTPC) have a very varied collection of games, ranging from commodore roms to sega, to classic PC games, to the latest PC games running on a myriad of launchers, like origin, ubilauncher, steam, etc etc... and it all kind of has to combine into a structured package that's easy to navigate, and nice to look at... because that's really the point of XBMC isn't it?
So what I'm saying is...
Wouldn't it be worth it to document all this somewhere? I mean other than on the release topic, buried under pages of text?
I realize it's not an "out of the box" solution, and that a lot of users will find it too time-consuming/complex to bother, but maybe with a little documentation and some packaging these scripts could work for anyone?
Or am i really the only person having this/these problem(s)? O.o
Posts: 2
Joined: Apr 2013
Reputation:
0
Just install XBMC launcher and it will take care of all of your focus issues with a fully customisable windows interface.
Posts: 12
Joined: Dec 2014
Reputation:
0
2015-08-10, 12:07
(This post was last modified: 2015-08-10, 12:33 by biobier.)
Sorry to bring up this old thread again but I also like to use advanced launcher due to rom collection broweser looks not as I like it to have with Aeaon Nox skin. AL looks much better.
I've written a small console application which will suspend a process, start another one (game) and after the game is not running kodi will be resumed again. Call is like
D:\Emulation\HtpcGameLauncherCon.exe /p:kodi "D:\Emulation\WinGames\Bastion.lnk"
Seettings in AL are:
Application: D:\Emulation\HtpcGameLauncherCon.exe
Parameter: /p:kodi "D:\Emulation\WinGames\Bastion.lnk"
(Also tried "/p:kodi "D:\Emulation\WinGames\Bastion.lnk"" whithout luck)
Running this from CMD works fine but AL (or more a CMD window) gives me an error message that /p:kodi "D:\Emulation\WinGames\Bastion.lnk" can't be found. It seems to me that AL does not start the application with parameters but more just the parameters.
In the log it looks correct:
12:03:02 T:5912 NOTICE: plugin.program.advanced.launcher: Load launchers.xml file
12:03:02 T:5912 NOTICE: plugin.program.advanced.launcher: Initialisierung
12:03:02 T:5912 NOTICE: plugin.program.advanced.launcher: Anwendung: D:\Emulation\HtpcGameLauncherCon.exe
12:03:02 T:5912 NOTICE: plugin.program.advanced.launcher: Parameter: /p:kodi "D:\Emulation\WinGames\Bastion.lnk"
What do I need to set in in parameter to get Kodi+AL execute a command like this? D:\Emulation\HtpcGameLauncherCon.exe /p:kodi "D:\Emulation\WinGames\Bastion.lnk"
Posts: 12
Joined: Dec 2014
Reputation:
0
Ok I could figure out that disable the .lnk support did the trick. If any one likes to get the tool let me know and I will put it on github.