Release SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151) +---- Thread: Release SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) (/showthread.php?tid=165131) |
SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - tom66 - 2013-05-18 Here's the first release of an addon I've coded in the past few days to do something that I've wanted from XBMC for a while. Purpose Essentially this lets you play and launch any installed Steam game on your system. It also fetches artwork and logo images from the Steam server. No messing around with custom Advanced Launchers -- this handles everything automatically, and will fetch new games as they are added to your Steam account. It integrates into XBMC, unlike Big Picture. It's buggy, unlike Big Picture. Hopefully the last one will change. Features
Known Bugs (It is an Alpha release!)
TODOs
Set up In your Steam profile, you need to create a public profile URL. This is then used to download the games list you own. On first run, you will be asked for this URL. You can also change it at any time in the Settings dialog. Compatibility Currently Windows only. However, support for Linux will be coming very soon, and would be trivial to add. I just need to get Steam running on my Linux box to give it a try. OS X can be added by anyone who has a Mac or can tell me what the default command line path and format for Steam is. Download ZIP for XBMC: http://code.google.com/p/steambmc/downloads/detail?name=plugin.programs.steambmcdev-1.0.0.zip&can=2&q=#makechanges Source (GPLv2): http://code.google.com/p/steambmc/source/browse/#git%2Fplugin.programs.steambmcdev Standard disclaimer applies: this may kill you cat, burn down your house, yadadada, make proper backups and all that. It's alpha software, liable to frequent crashes. Feedback warmly welcomed... RE: [WIP] SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - zarooba - 2013-05-24 This is awesome, additional ideas: - Categories: support steam categories (rpg, free to play, etc) - Game trailers / pictures / achievements - Support game renaming (steam game titles don't sort well, ie: precipice of darkness 1,2,3 don't show in order, same with Price of Persia) - Support multi game titles (a single entry in steam game list can actually be multiple games. ie: Commander Keen pack, when clicked to start, will popup a window asking which Keen to start) - uplay games autplay (steam uplay restricted games, upon start, will start uplay, and then require additional click to start the game. Try to start the game from xbmc directly, by starting uplay, and the game within uplay) - detect installed games ... there are people with 500+ games, and they can't have all of them installed at the same time RE: [WIP] SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - tom66 - 2013-05-25 I think I need to modify the addon so everything is stored in a database, of sorts, and this is then updated. This would allow for easy renaming, removal, etc. As far as detecting installed games goes, this is difficult due to how Steam does not make this information easily available, however, the interim solution is to simply remove them from the database by selecting remove on each item (when that is added...) Thanks for the suggestions RE: [WIP] SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - cdizzel99 - 2013-05-25 This is very cool, just one question: 1. It seems that when you launch a game from within XBMC this starts Steam and then launches the game, when quitting the game I am then taken back to Steam big picture. I then have to exit Steam Big Picture to exit back to XBMC. Is this the expected response? If so then I would add a suggestion to quit from the game back to XBMC. Very excited to see this development started, just thinking recently about how cool it would be to do this from within XBMC. Thanks for the hard work. RE: [WIP] SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - cdizzel99 - 2013-05-25 I am able to launch the first three games in my list however once I get to Assassin's Creed 3 I always get a script failed. Maybe has to do with the apostrophe in the title. The following is from the log. 4:36:50 T:4384 NOTICE: The Elder Scrolls V: Skyrim 14:36:50 T:4384 NOTICE: ['208480'] 14:36:50 T:4384 NOTICE: <steamapi.SteamGame object at 0x149A4970> 14:36:50 T:4384 NOTICE: 219600 14:36:50 T:4384 NOTICE: NBA 2K13 14:36:50 T:4384 NOTICE: ['208480'] 14:36:50 T:4384 NOTICE: <steamapi.SteamGame object at 0x149A44B0> 14:36:50 T:4384 NOTICE: 12200 14:36:50 T:4384 NOTICE: Bully: Scholarship Edition 14:36:50 T:4384 NOTICE: ['208480'] 14:36:50 T:4384 NOTICE: <steamapi.SteamGame object at 0x149A4350> 14:36:50 T:4384 NOTICE: 208480 14:36:50 T:4384 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.UnicodeEncodeError'> Error Contents: 'ascii' codec can't encode character u'\u2019' in position 8: ordinal not in range(128) Traceback (most recent call last): File "C:\Users\Christopher\AppData\Roaming\XBMC\addons\plugin.programs.steambmcdev\default.py", line 122, in <module> print game, game.game_id, game.game_name, cmd['game_id'] File "<string>", line 7, in write UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 8: ordinal not in range(128) -->End of Python script error report<-- 14:36:50 T:4360 DEBUG: ------ Window Init (DialogKaiToast.xml) ------ 14:36:50 T:4384 INFO: Python script stopped 14:36:50 T:4384 DEBUG: Thread XBPyThread 4384 terminating RE: [WIP] SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - tom66 - 2013-05-25 (2013-05-25, 23:16)cdizzel99 Wrote: This is very cool, just one question: This may happen if Big Picture is the default Steam start up mode. On mine, when the game quits, it returns to XBMC. Please try with Big Picture disabled. Maybe I can add a command switch to disable Big Picture. Steam is launched because although you can launch a limited number of Steam games by executing the executable directly, it does not work with all due to the DRM that Steam uses. It calls steam.exe --applaunch [application id] to launch the game. This means if the Steam client is not already running that launching the app will start it, which may take some time and also launch Big Picture. I may be able to get around any limitations of this by starting Steam in the background quietly if it is not already running. I'll have a look at that bug. I think I need to add unicode support to SteamBMC as the apostrophe is probably not in the ascii charset. RE: [WIP] SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - Bstrdsmkr - 2013-05-26 Yeah encoding is a big scary in addon development. If you encode everything you get from the web to utf-8 you should be fine This is pretty damn impressive. Can you add an option to exit xbmc once the game launches? RE: [WIP] SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - tom66 - 2013-05-26 I'll consider adding that. Is there a good use case for that? The option should not be enabled by default though, as it may confuse users. New release coming shortly which fixes a lot of bugs. UTF-8 encoding is added where appropriate so there should be no more Unicode bugs. Also improves game launching with better error detect and initialises Steam when first run. RE: [WIP] SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - Bstrdsmkr - 2013-05-26 There is for me, some games have trouble with my gfx card if there's a full screen app running in the back ground (Xbmc) RE: [WIP] SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - tom66 - 2013-05-26 (2013-05-26, 04:51)Bstrdsmkr Wrote: There is for me, some games have trouble with my gfx card if there's a full screen app running in the back ground (Xbmc) Wouldn't minimising do it? If XBMC is minimised, the rendering should stop. RE: [WIP] SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - Bstrdsmkr - 2013-05-26 Usually, but sometimes it freezes when minimized. Services and etc still run too so I guess straight performance could be another use. RE: [WIP] SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - tom66 - 2013-05-26 There's a check in with the quit and minimise option added along with some other options, under the Games sub menu. If you're feeling brave, copy the contents of the steambmc repo into an addon zip and try it out. I want to get a few more changes together before releasing 1.0.5, which should include the sqlite3 database and Linux support. http://code.google.com/p/steambmc/source/detail?r=101ff8afac966873dcce9aac526ae55a80a19655 RE: [WIP] SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - Dark_Slayer - 2013-05-28 (2013-05-18, 02:28)tom66 Wrote: Here's the first release of an addon I've coded in the past few days to do something that I've wanted from XBMC for a while. Had you ever tried to use Rom Collection Browser? It's been around a while and maintained by malte. It's also in python I believe. Perhaps you two could collaborate. It's an addon originally targeted to emulators I believe, but you can make a simple PC games folder and let it scrape thegamesdb.net for artwork. He's added a "exit XBMC on launch" option called solo mode. You can add steam/origin game links to the PC games folder and use RCB to launch them. I've got a problem with my Origin game not launching when the mouse is unplugged, but otherwise it works for me RE: [WIP] SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - tom66 - 2013-05-28 So, does it combine Steam, Origin, etc. games all together into one app? Can it add them automatically? RE: [WIP] SteamBMC - Launch and play Steam games from XBMC (v1.0.0, buggy but works) - Dark_Slayer - 2013-05-28 (2013-05-28, 19:10)tom66 Wrote: So, does it combine Steam, Origin, etc. games all together into one app? Can it add them automatically? Yes and at startup All games into one addon (retroarch, project64, zsnes, mame, steam, origin, windows.exe, etc) It won't go looking for anything you recently added into steam, but you can force an import or set to import at startup some links |