auto boot games / programs on startup

XBOX, but not XBMC4XBOX related discussion
User avatar
sixties keith
Posts: 524
Joined: Wed Aug 01, 2012 9:30 am
Has thanked: 24 times
Been thanked: 29 times

auto boot games / programs on startup

Post by sixties keith » Mon Jun 15, 2015 10:46 am

hi ive been working on a few xbox's and wanted abit of advice.

i want one to boot straight to a game (house of the dead 3 to be exact) if there a way to boot this straight to the game without xbmc ( and without the actual game in the drive) the reason is i am wanting to make a arcade machine for just this game

also could this be done with emulators - the likes of visionary or stand alone emulators such as mameox?

thanks for the help guys

sixties
Image

120gb hdd, vinyl magma skin, front lights, side strip lights, clear jewel mod with lights, ir dongle mod, hdd indicator. X3 with LCD many mods inc custom x3 jewel.

Geeba
Posts: 531
Joined: Wed Jul 04, 2012 11:32 am
Location: UK
Has thanked: 59 times
Been thanked: 31 times

Re: auto boot games / programs on startup

Post by Geeba » Mon Jun 15, 2015 12:09 pm

I guess you could copy the game to the HDD and then use a shortcut maker to point straight to it... I know it works with emulators and I guess the game .xbe is no different...

User avatar
spicemuseum
Posts: 906
Joined: Mon Jul 09, 2012 11:08 pm
Has thanked: 94 times
Been thanked: 75 times

Re: auto boot games / programs on startup

Post by spicemuseum » Mon Jun 15, 2015 1:18 pm

Yep, as Geeba says, the Team XBMC Shortcut mechanism can be (ab)used in precisely this way.
Follow this: http://www.xbmc4xbox.org.uk/wiki/Instal ... mmended.29

User avatar
sixties keith
Posts: 524
Joined: Wed Aug 01, 2012 9:30 am
Has thanked: 24 times
Been thanked: 29 times

Re: auto boot games / programs on startup

Post by sixties keith » Mon Jun 15, 2015 1:28 pm

thanks guys, i have the shortcut program on my computer so i'll give it a try.
Image

120gb hdd, vinyl magma skin, front lights, side strip lights, clear jewel mod with lights, ir dongle mod, hdd indicator. X3 with LCD many mods inc custom x3 jewel.

User avatar
xman
Posts: 1287
Joined: Wed Jul 04, 2012 2:30 pm
Location: Sydney, Australia
Has thanked: 55 times
Been thanked: 168 times

Re: auto boot games / programs on startup

Post by xman » Mon Jun 15, 2015 5:33 pm

There is an app called DirectX that will allow you to one-
Identify all the .xbe on the HDD and two-
Have it boot that .xbe on startup.
You load it in your C drive and it will boot prior to anything else once the bios splash screen has booted. It can be changed if you wish to boot just a default .xbe or you can have it boot different paths identified by what button on the controller you hold on startup meaning you could have up to nine .xbe paths set this way that could be 8 different games and XBMC should you wish. I have used this excellent app many times and just using the "find .xbe" mode, it is amazing just what you will find and you can test it in this mode as well. You will find it easy to use and you can get it at Eurasia. If you just want booting to one game as you suggested, just set that game as the default and don't touch any buttons on the controller and it will boot that game every time. However should you wish to boot something else, you just hold a button and it will boot that .xbe instead. I've used this app for booting different versions of XBMC when the one machine has a couple of versions on the same machine or if the one machine has one version of XBMC setup solely to play .avi files and I wanted it to be lean on RAM use and a copy of the same version of XBMC setup for more RAM intensive folders and have both versions using the same movie folder on the HDD as there source.

User avatar
spicemuseum
Posts: 906
Joined: Mon Jul 09, 2012 11:08 pm
Has thanked: 94 times
Been thanked: 75 times

Re: auto boot games / programs on startup

Post by spicemuseum » Mon Jun 15, 2015 8:14 pm

xman wrote:There is an app called DirectX that will allow you to one-
Identify all the .xbe on the HDD and two-
Have it boot that .xbe on startup.
You load it in your C drive and it will boot prior to anything else once the bios splash screen has booted...
Correct me if I'm mistaken, but I 've got a feeling that DirectX only works with hard modded machines...which may be fine for the OP, but worth checking !

User avatar
Dom DXecutioner
Posts: 585
Joined: Thu Jul 05, 2012 11:59 pm
Location: California
Has thanked: 249 times
Been thanked: 216 times
Contact:

Re: auto boot games / programs on startup

Post by Dom DXecutioner » Mon Jun 15, 2015 8:58 pm

spicemuseum wrote:Yep, as Geeba says, the Team XBMC Shortcut mechanism can be (ab)used in precisely this way.
Follow this: http://www.xbmc4xbox.org.uk/wiki/Instal ... mmended.29
As previously stated, the above referenced should accomplish what you're trying to do; give it a try and then let us know.
Image

User avatar
RunsilenT
Posts: 64
Joined: Wed Oct 01, 2014 4:42 pm
Location: Gateshead UK
Has thanked: 13 times
Been thanked: 6 times
Contact:

Re: auto boot games / programs on startup

Post by RunsilenT » Mon Jun 15, 2015 10:51 pm

Sixties Keith, Its possible to run Coinops from boot. If your going the arcade machine route I`d have to
recommend Hyperspin on a custom mini pc. Don`t get me wrong, I love the old black beast as much
as everyone but if your gonna go arcade machine, dont go wedgie, go Atomic wedgie!

User avatar
Dan Dar3
Posts: 1151
Joined: Sun Jul 08, 2012 4:09 pm
Has thanked: 248 times
Been thanked: 243 times
Contact:

Re: auto boot games / programs on startup

Post by Dan Dar3 » Tue Jun 16, 2015 12:36 am

All great suggestions, but if you still want to use XBMC4Xbox as the startup application because say you want to pop a controller in and jump into Recovery Mode (White + Y) and gain FTP access to transfer a new game or switch games or whatever...

Rip the game with DVD2Xbox into say F:\Games\House Of Dead 3

Hack XBMC4Xbox to provide a seamless game start:
  • Replace boot splash (Q:\media\splash.png) with a game related one
  • Craft a Q:\scrips\autoexec.py to start your game first thing:

    Code: Select all

    import xbmc
    xbmc.executebuiltin( "XBMC.RunXBE(%s)" % ("F:\\Games\\House Of Dead 3\\default.xbe") )
If it still shows XBMC4Xbox backgrounds and such before it runs your game, you could copy whichever skin or simply hack existing one as per below:
  • Rename Q:\skin\CHOSEN SKIN\media\ to something like media.removed (might need to do this while it's not running as the file is in use or switch temporarily to another skin so you can work on it) - to give it a black, no images look
  • Rename Q:\skin\CHOSEN SKIN\backgrounds to backgrounds.removed - black, no backgrounds look, or alternatively replace Q:\skin\CHOSEN SKIN\backgrounds\skindefault\skindefault.jpg with a game related image (this is for after the splash)
  • Change Q:\skin\CHOSEN SKIN\colors\default.xml to set all colors to FF000000 (black)
I'm sure if you want to go down this path and feel the whole skin thing might be a bit too much, I'm sure someone might offer to craft a "blank" skin for you to use ;-) at Dom DXecutioner

NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: auto boot games / programs on startup

Post by NOTTHESAME » Thu Jun 18, 2015 10:10 pm

Its maybe possible to edit start up to run the game then replace.the xbmc spalsh with your game or emulator splash image for the game

NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: auto boot games / programs on startup

Post by NOTTHESAME » Fri Jun 19, 2015 7:26 am

heres something else you can try which i think is just a simple way and not having to do much, just a idea/another way.
so i tired this out and you can get a skin, opened up start.xml i tired this on mosaic and replaced the script favourites code with this code for my sega genesis emulator

Code: Select all

<onfocus>RunXBE(E:\Emulators\Genesis\default.xbe)</onfocus>
it launched right up, all you would need to do is replace the image you want with the xbmc splash.png like dan dar was saying,

so it depends on what skin your using like confluence lite start up.xml open

Code: Select all

<control type="button" id="10">
			<description>trigger</description>
			<onfocus>ReplaceWindow(Home)</onfocus>
			<texturenofocus>-</texturenofocus>
			<texturefocus>-</texturefocus>
			<visible>!Skin.HasSetting(Use_Startup_Playlist)</visible>
		</control>
replace this

Code: Select all

<onfocus>ReplaceWindow(Home)</onfocus>
with

Code: Select all

<onfocus>RunXBE(E:\Emulators\Genesis\default.xbe)</onfocus>
but just insert your location for your game or emulator you want to launch.

again dan dar had a good idea now you can hold down the white and Y buttons to ftp and replace your game.

User avatar
sixties keith
Posts: 524
Joined: Wed Aug 01, 2012 9:30 am
Has thanked: 24 times
Been thanked: 29 times

Re: auto boot games / programs on startup

Post by sixties keith » Fri Jun 19, 2015 9:14 am

Thanks for all your helps guys, really didnt know there were so many options for this. really wana try that program out, having it boot different games via different buttons pressed on the controller seems a real bonus, however i wouldnt mind trying that code either

again thanks for all the help guys, once i start my project ill report back just waiting on a fella emailing me about the arcade joystick controller for the xbox :D
Image

120gb hdd, vinyl magma skin, front lights, side strip lights, clear jewel mod with lights, ir dongle mod, hdd indicator. X3 with LCD many mods inc custom x3 jewel.

User avatar
Gedeon
Posts: 23
Joined: Sun Jul 05, 2015 9:26 am
Location: Europe
Has thanked: 3 times
Been thanked: 1 time

Re: auto boot games / programs on startup

Post by Gedeon » Tue Jul 14, 2015 9:58 am

If it's TSOPed, flash the bios to start the game executable from the 2nd or 3rd place. If anything goes wrong, delete the game file or boot up with a recovery disk and make the necessary changes. This way your BIOS will always boot up the game if it's executable exists in the "boot sequence".

slt2010
Posts: 3
Joined: Mon Nov 07, 2016 10:02 am
Has thanked: 1 time
Been thanked: 1 time

Re: auto boot games / programs on startup

Post by slt2010 » Mon Nov 07, 2016 10:05 am

Dan Dar3 wrote:All great suggestions, but if you still want to use XBMC4Xbox as the startup application because say you want to pop a controller in and jump into Recovery Mode (White + Y) and gain FTP access to transfer a new game or switch games or whatever...

Rip the game with DVD2Xbox into say F:\Games\House Of Dead 3

Hack XBMC4Xbox to provide a seamless game start:
  • Replace boot splash (Q:\media\splash.png) with a game related one
  • Craft a Q:\scrips\autoexec.py to start your game first thing:

    Code: Select all

    import xbmc
    xbmc.executebuiltin( "XBMC.RunXBE(%s)" % ("F:\\Games\\House Of Dead 3\\default.xbe") )
If it still shows XBMC4Xbox backgrounds and such before it runs your game, you could copy whichever skin or simply hack existing one as per below:
  • Rename Q:\skin\CHOSEN SKIN\media\ to something like media.removed (might need to do this while it's not running as the file is in use or switch temporarily to another skin so you can work on it) - to give it a black, no images look
  • Rename Q:\skin\CHOSEN SKIN\backgrounds to backgrounds.removed - black, no backgrounds look, or alternatively replace Q:\skin\CHOSEN SKIN\backgrounds\skindefault\skindefault.jpg with a game related image (this is for after the splash)
  • Change Q:\skin\CHOSEN SKIN\colors\default.xml to set all colors to FF000000 (black)
I'm sure if you want to go down this path and feel the whole skin thing might be a bit too much, I'm sure someone might offer to craft a "blank" skin for you to use ;-) at Dom DXecutioner

how can you make it so it runs only once per boot/reboot? in my case it just cycles endlessly?

User avatar
Dan Dar3
Posts: 1151
Joined: Sun Jul 08, 2012 4:09 pm
Has thanked: 248 times
Been thanked: 243 times
Contact:

Re: auto boot games / programs on startup

Post by Dan Dar3 » Mon Nov 07, 2016 1:21 pm

@slt2010
Xbox only runs one program at a time so when you run XBMC4Xbox the second time coming back from the game it has no idea whether that is the first time or the second time. I guess you can have the script write into a file "hey, I ran this game today at whatever time, so when it comes back to me if it ran once today I won't run the game again and just continue as normal dashboard", but it gets complicated.

The easiest way I can think of is just ask and let the user choose I guess - to add a little spice would have been nice for Dialog.yesno() to have autoclose but that parameter doesn't seem to be implemented in XBMC4Xbox.

Code: Select all

import xbmc
import xbmcgui

dialog  = xbmcgui.Dialog();
answer  = dialog.yesno("Autoexec.py", "Do you want to launch the game?", "House of Dead 3")
if (answer) :
  xbmc.executebuiltin( "XBMC.RunXBE(%s)" % ("F:\\Games\\House Of Dead 3\\default.xbe") )   
or could use Dialog.ok() for a slightly more assertive approach, where you can easily press OK to continue and play the game or Back / B (red) to cancel the dialog and move on to the dashboard.

Code: Select all

import xbmc
import xbmcgui

answer = xbmcgui.Dialog().ok("Autoexec.py", "Launch the game:", "House of Dead 3")
if (answer) :
  xbmc.executebuiltin( "XBMC.RunXBE(%s)" % ("F:\\Games\\House Of Dead 3\\default.xbe") )   

slt2010
Posts: 3
Joined: Mon Nov 07, 2016 10:02 am
Has thanked: 1 time
Been thanked: 1 time

Re: auto boot games / programs on startup

Post by slt2010 » Tue Nov 08, 2016 12:34 am

thanks it works! im using this script to load the Iso loader on my tsop'd xbox

User avatar
Rocky5
Posts: 958
Joined: Sat Feb 08, 2014 5:27 am
Has thanked: 90 times
Been thanked: 248 times

Re: auto boot games / programs on startup

Post by Rocky5 » Tue Nov 08, 2016 3:18 am

@Dan Dar3 is it not "autoclosetime" in stead of "autoclose".

Code: Select all

import xbmc
import xbmcgui

dialog  = xbmcgui.Dialog();
answer  = dialog.yesno("Autoexec.py", "Do you want to launch the game?", "House of Dead 3", autoclosetime=5000)
if (answer) :
  xbmc.executebuiltin( "XBMC.RunXBE(%s)" % ("F:\\Games\\House Of Dead 3\\default.xbe") )   
Download Xbox Softmodding Tool & Extras Disc
XBMC4Kids Mod


Xbox Gamertag = Connxtion
PSN ID = JCRocky5

slt2010
Posts: 3
Joined: Mon Nov 07, 2016 10:02 am
Has thanked: 1 time
Been thanked: 1 time

Re: auto boot games / programs on startup

Post by slt2010 » Tue Nov 08, 2016 7:53 am

"autoclosetime" or "autoclose" dont work for me me i get script error im on XBMC4Xbox 3.5.3

User avatar
Rocky5
Posts: 958
Joined: Sat Feb 08, 2014 5:27 am
Has thanked: 90 times
Been thanked: 248 times

Re: auto boot games / programs on startup

Post by Rocky5 » Tue Nov 08, 2016 10:28 am

slt2010 wrote:"autoclosetime" or "autoclose" dont work for me me i get script error im on XBMC4Xbox 3.5.3
It's in the source code, try "autoCloseTime" I put it all lowercase but it may be case sensitive.
Download Xbox Softmodding Tool & Extras Disc
XBMC4Kids Mod


Xbox Gamertag = Connxtion
PSN ID = JCRocky5

User avatar
Dan Dar3
Posts: 1151
Joined: Sun Jul 08, 2012 4:09 pm
Has thanked: 248 times
Been thanked: 243 times
Contact:

Re: auto boot games / programs on startup

Post by Dan Dar3 » Tue Nov 08, 2016 1:43 pm

Rocky, I thought at first was a parameter name problem, then tried positional populating all the parameters and it complained about it (too many parameters).

The rule of thumb in the past was that enhancements are brought over into XBMC4Xbox as-is, getting creative with the naming would just confuse things for everyone (core developers, script and skin developers).

I think you found the `autoclose` functionality in the core dialog (`/xbmc4xbox/xbmc/dialogs/GUIDialogYesNo.cpp`), but it doesn't seem to be used from the Python implementation (`/xbmc4xbox/xbmc/lib/libPython/xbmcmodule/dialog.cpp`, Dialog_YesNo()).

If we want it we could look into creating a ticket and following it through implementation - I'll have a quick look at it in the next few days, if you want to do the same we can compare notes (whoever creates the ticket first please bring the link in this thread, thanks).

Post Reply