Help - Search - Members - Calendar
Full Version: Add "homebrew" Button To Games Blade
Scenyx Entertainment Community > Xbox1 Forums > Software Forums > XBMC for Xbox Forums > XBMC Skinning > Official Team Blackbolt Skins Forum > Skin Mods
Popy
Hey Guys.

Found a way to activate the hidden "Game Trailers" button an modded it to "Homebrew" Button :-)

Here we go:

first open the "custom1112_GamesHome.xml" file an search for:

<!-- Game Trailers script not working due to website change. DO NOT DELETE CODE!!! - Blackbolt

then replace the following code (it ends with --> ):

<!-- Game Trailers script not working due to website change. DO NOT DELETE CODE!!! - Blackbolt
<control>
<description>Trailers Icon</description>
<type>image</type>
<posx>145</posx>
<posy>362</posy>
<width>30</width>
<height>30</height>
<texture>icon-trailer.png</texture>
<visible>!Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>icon</include>
</control>

<control>
<description>Trailer Icon Slide Left</description>
<type>image</type>
<posx>145</posx>
<posy>362</posy>
<width>30</width>
<height>30</height>
<texture>icon-trailer.png</texture>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>icon-effect</include>
</control>

<control>
<description>Trailers Button Shine</description>
<type>image</type>
<posx>170</posx>
<posy>361</posy>
<width>135</width>
<height>31</height>
<colordiffuse>10FFFFFF</colordiffuse>
<texture>button_shine.gif</texture>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>

<control>
<description>Trailers Push Button</description>
<type>button</type>
<id>9</id>
<posx>112</posx>
<posy>180</posy>
<width>281</width>
<height>270</height>
<onleft>1</onleft>
<onright>2</onright>
<onup>8</onup>
<ondown>10</ondown>
<texturefocus>homebutton-5a.png</texturefocus>
<texturenofocus>-</texturenofocus>
<pulseonselect>no</pulseonselect>
<onclick>XBMC.ActivateWindow(1117)</onclick>
<onclick>XBMC.RunScript(Q:\skin\MC360\extras\gametrailers.py)</onclick>
<visible>!Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>

<control>
<description>Trailer Button Shadow</description>
<type>image</type>
<posx>112</posx>
<posy>180</posy>
<width>281</width>
<height>270</height>
<texture>homebutton-5-shadow.png</texture>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>button-shadow</include>
</control>

<control>
<description>Trailers description 1</description>
<type>label</type>
<posx>390</posx>
<posy>205</posy>
<width>256</width>
<height>15</height>
<include>19089</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<visible>Control.HasFocus(9)</visible>
<animation effect="fade" delay="100" time="150">WindowOpen</animation>
</control>

<control>
<description>Trailers description 2</description>190831
<type>label</type>
<posx>390</posx>
<posy>230</posy>
<width>256</width>
<height>15</height>
<include>19090</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<visible>Control.HasFocus(9)</visible>
<animation effect="fade" delay="100" time="150">WindowOpen</animation>
</control>

<control>
<description>Trailers description 3</description>190831
<type>label</type>
<posx>390</posx>
<posy>255</posy>
<width>256</width>
<height>15</height>
<include>190901</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<visible>Control.HasFocus(9)</visible>
<animation effect="fade" delay="100" time="150">WindowOpen</animation>
</control>

<control>
<description>Extra Trailers description 4 (translator use only)</description>190831
<type>label</type>
<posx>390</posx>
<posy>280</posy>
<width>256</width>
<height>15</height>
<include>ExtraGameTrailerDesc</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<visible>Control.HasFocus(9)</visible>
<animation effect="fade" delay="100" time="150">WindowOpen</animation>
</control>

<control>
<description>Trailers Label</description>
<type>label</type>
<posx>187</posx>
<posy>362</posy>
<include>19035</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<align>left</align>
<visible>!Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>label</include>
</control>

<control>
<description>Trailers Label Slide Left</description>
<type>label</type>
<posx>187</posx>
<posy>362</posy>
<include>19035</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<align>left</align>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>label-effect</include>
</control>

<control>
<description>Button Seperator</description>
<type>image</type>
<posx>135</posx>
<posy>394</posy>
<width>235</width>
<height>1</height>
<texture>divider.png</texture>
<visible>!Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control> -->


with this one:

<!-- popy MOD - Homebrew -->

<control>
<description>Homebrew Icon</description>
<type>image</type>
<posx>145</posx>
<posy>362</posy>
<width>30</width>
<height>30</height>
<texture>icon-games.png</texture>
<visible>!Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>icon</include>
</control>

<control>
<description>Homebrew Icon Slide Left</description>
<type>image</type>
<posx>145</posx>
<posy>362</posy>
<width>30</width>
<height>30</height>
<texture>icon-games.png</texture>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>icon-effect</include>
</control>

<control>
<description>Homebrew Button Shine</description>
<type>image</type>
<posx>170</posx>
<posy>361</posy>
<width>135</width>
<height>31</height>
<colordiffuse>10FFFFFF</colordiffuse>
<texture>button_shine.gif</texture>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>

<control>
<description>Homebrew Push Button</description>
<type>button</type>
<id>9</id>
<posx>112</posx>
<posy>180</posy>
<width>281</width>
<height>270</height>
<onleft>1</onleft>
<onright>2</onright>
<onup>8</onup>
<ondown>10</ondown>
<texturefocus>homebutton-5a.png</texturefocus>
<texturenofocus>-</texturenofocus>
<pulseonselect>no</pulseonselect>
<onclick>XBMC.ActivateWindow(1,Homebrew)</onclick>
<visible>!Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>

<control>
<description>Homebrew Button Shadow</description>
<type>image</type>
<posx>112</posx>
<posy>180</posy>
<width>281</width>
<height>270</height>
<texture>homebutton-5-shadow.png</texture>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>button-shadow</include>
</control>

<control>
<description>Homebrew description 1</description>
<type>label</type>
<posx>390</posx>
<posy>205</posy>
<width>256</width>
<height>15</height>
<include>19089</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<visible>Control.HasFocus(9)</visible>
<animation effect="fade" delay="100" time="150">WindowOpen</animation>
</control>

<control>
<description>Homebrew description 2</description>190831
<type>label</type>
<posx>390</posx>
<posy>230</posy>
<width>256</width>
<height>15</height>
<include>19090</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<visible>Control.HasFocus(9)</visible>
<animation effect="fade" delay="100" time="150">WindowOpen</animation>
</control>

<control>
<description>Homebrew description 3</description>190831
<type>label</type>
<posx>390</posx>
<posy>255</posy>
<width>256</width>
<height>15</height>
<include>190901</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<visible>Control.HasFocus(9)</visible>
<animation effect="fade" delay="100" time="150">WindowOpen</animation>
</control>


<control>
<description>Homebrew Label</description>
<type>label</type>
<posx>187</posx>
<posy>362</posy>
<include>19035</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<align>left</align>
<visible>!Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>label</include>
</control>

<control>
<description>Homebrew Label Slide Left</description>
<type>label</type>
<posx>187</posx>
<posy>362</posy>
<include>19035</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<align>left</align>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>label-effect</include>
</control>

<control>
<description>Button Seperator</description>
<type>image</type>
<posx>135</posx>
<posy>394</posy>
<width>235</width>
<height>1</height>
<texture>divider.png</texture>
<visible>!Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>

<!-- pOpY MOD - Homebrew button -->



Labeling change in the "includes.xml" :

Search for: <include name="19035"><label>Game Trailers</label></include>
replace it with: <include name="19035"><label>Homebrew</label></include>



mod the Description in the "includes.xml"

search for:

<include name="19089"><label>Watch Trailers for up</label></include>
<include name="19090"><label>and coming games on</label></include>
<include name="190901"><label>all platforms.</label></include>
<include name="ExtraGameTrailerDesc"><label>-</label></include>

and replace it with something like that (thats GERMAN):

<include name="19089"><label>Verschiedene kleine</label></include>
<include name="19090"><label>selbstgemachte Spiele &</label></include>
<include name="190901"><label>Programme.</label></include>
<include name="ExtraGameTrailerDesc"><label>-</label></include>


Replace the original files with the modded files and reboot.

Have Fun
pOpY
incognegro
YOU R GOD!
Nagi
Please show a screen shot of what you have there
Popy
Here it is ;-)


homebrew IMG


Greets
Nagi
That is King S**T ... Good work. Why was it hidden in the first place??? but really that is cool you have opened up several other modes to be possible now. You can put several different changes in that same spot. Like Dashboards, Scripts, or something like that.. Hey can make one that links to scripts that would good stuff love.gif love.gif
Popy
It was hidden because the "Game Trailers" WebSite was offline ;-)

Lifes Good ;-)

Thank God for this amazing Skin!

Greets pOpY
Nagi
Hey I must have done something wrong with the screen I can not access the panel. I can see it but I cant get it scan over the part where it is. I need some help with that one.
sadalius
I seem to have the same problem, button shows up, but when I try to select it, it skips over homebrew and jumps to Open Tray.
EvilShindo
QUOTE(Popy @ Jun 9 2006, 09:39 PM) *



Thank God for this amazing Skin!



No, actually thank "Blackbolt" for this amazing skin biggrin.gif
he is a "skin god" after all. wink.gif
Popy
Hey.

Sorry i frorgot that!!!

You must correct the next ondown id from the gamesaves button like that (this is the ID Number of witch button is selected on the down key --> in our case the new Homebrew Button with id "9")


<control>
<description>Game Saves Push Button</description>
<type>button</type>
<id>8</id>
<posx>112</posx>
<posy>180</posy>
<width>281</width>
<height>270</height>
<onleft>1</onleft>
<onright>2</onright>
<onup>7</onup>
<ondown>9</ondown>
<texturefocus>homebutton-4a.png</texturefocus>
<texturenofocus>-</texturenofocus>
<pulseonselect>no</pulseonselect>
<onclick>XBMC.ActivateWindow(1119)</onclick>
<onclick>XBMC.RunScript(Q:\skin\MC360\extras\gamesavemanger.py)</onclick>
<visible>!Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>


an when you came from the Tray Button you must there correct the onup event like that:

<control>
<description>DVD Launch Button</description>
<type>button</type>
<id>10</id>
<posx>121</posx>
<posy>415</posy>
<width>492</width>
<height>71</height>
<include>19049</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<onleft>1</onleft>
<onright>2</onright>
<onup>9</onup>
<ondown>11</ondown>
<texturefocus>dvdtrayeject-focus.png</texturefocus>
<texturenofocus>dvdtrayeject-nofocus.png</texturenofocus>
<textoffsetx>70</textoffsetx>
<pulseonselect>no</pulseonselect>
<visible>![System.hasmediadvd] + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
<onclick>XBMC.EjectTray()</onclick>
</control>


Greets
pOpY
sadalius
Thanks pOpY, that activated the button for me. Can you point me to somewhere that I can learn how to get my homebrew to show up when I click my new homebrew button?
Popy
@sadalius:

If you want that a folder with Homebrew Games/applications are shown if you press homebrew button you must point the button to a bookmark in the xboxmediacenter.xml und the "myprograms" section.

Ill hope you have taken the code from me above then take a look at code block 4 of new code, it looks like that

<control>
<description>Homebrew Push Button</description>
<type>button</type>
<id>9</id>
<posx>112</posx>
<posy>180</posy>
<width>281</width>
<height>270</height>
<onleft>1</onleft>
<onright>2</onright>
<onup>8</onup>
<ondown>10</ondown>
<texturefocus>homebutton-5a.png</texturefocus>
<texturenofocus>-</texturenofocus>
<pulseonselect>no</pulseonselect>
<onclick>XBMC.ActivateWindow(1,Homebrew)</onclick>
<visible>!Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>

Look above i have bold the onlick event for you.
You could see: XBMC.ActivateWindow(1,Homebrew)

that command is a system command of XBMC and means that a new Window will be opened up!
As first parameter "1" = that the myprograms window pop up, and the second parameter ist the Bookmarkname of the xboxmediacenter.xml, in our case "Homebrew".

You should add a bookmark named "Homebrew" in your "myprograms" section in the xboxmediacenter.xml.
it should look like my "myprograms" section:

<myprograms>
<default>Games</default>
<bookmark>
<name>Programs</name>
<path>E:\Apps\</path>
<depth>1</depth>
</bookmark>
<bookmark>
<name>Games</name>
<path>F:\Games\</path>
<depth>1</depth>
</bookmark>
<bookmark>
<name>Emulators</name>
<path>F:\Emulatoren\</path>
<depth>2</depth>
</bookmark>
<bookmark>
<name>Homebrew</name>
<path>F:\Homebrew\</path>
<depth>1</depth>
</bookmark>

<bookmark>
<name>DVD-Spiel</name>
<path>D:\</path>
</bookmark>
</myprograms>

Here you can see that the "Homebrew" Bookmark Points to the Folder F:\Homebrew.

Ill hope you learned a bit :-)

Greets pOpY
sadalius
Thank you kindly Popy. I was expecting maybe a link to a section of the XBMC manual, but you went out of your way and I really appreciate it!!

Thanks a bunch!
Nagi
Please some one send my the modded games.xml I still cant get this to work at all I dont know what I am doing wrong her mad.gif e
Nagi
Never mind I am retared I got it know thanks. sweet I changed mine to launch dashboards for me. Thanks for the help
conners
anyway off making it launch a default.xbe instead of opening up a new window. Wanting it to launch dvd2xbox instead of going to applications.

CONNERS
Popy
You can launch a script like it was before:

<onclick>XBMC.RunScript(Q:\skin\MC360\extras\gametrailers.py)</onclick>

Here you can see how to modify the phyton script to launch your dvd2xbox from xbmc!

pOpY
conners
nice 1
ventline
QUOTE(conners @ Jun 11 2006, 11:40 AM) *

anyway off making it launch a default.xbe instead of opening up a new window. Wanting it to launch dvd2xbox instead of going to applications.

CONNERS


QUOTE(Popy @ Jun 11 2006, 11:48 AM) *

You can launch a script like it was before:

<onclick>XBMC.RunScript(Q:\skin\MC360\extras\gametrailers.py)</onclick>

Here you can see how to modify the phyton script to launch your dvd2xbox from xbmc!

pOpY


ok why use a script to do a onclick
<onclick>f:\apps\dvd2xbox\default.xbe)</onclick>
Aaries
Ok, so why doesn't this work?

<onclick>XBMC.RunScript(Q:XBMCscriptsXBMCScriptsInstaller.py)</onclick>

(I don't know why the slashes aren't showing up, but they're there).

That's the directory it's in and everything...I click on the button I added and nothing happens. The script works fine if I go into the "scripts" section and browse to it. I just wanted a 1-click access to it.

This is a screenshot of what I'm talking about:

IPB Image
Aaries
Here's the full section of code:

<control>
<description>Download Push Button</description>
<type>button</type>
<id>8</id>
<posx>77</posx>
<posy>180</posy>
<width>281</width>
<height>270</height>
<onleft>8</onleft>
<onright>2</onright>
<onup>7</onup>
<ondown>10</ondown>
<texturefocus>homebutton-4a.png</texturefocus>
<texturenofocus>-</texturenofocus>
<pulseonselect>no</pulseonselect>
<onclick>XBMC.RunScript(Q:\XBMC\skin\MC360\extras\Installer.py)</onclick>
<visible>!Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>


(Yes, I changed the directory to the suggested one...obviously it didn't help)
Nagi
Well you are missing one of the line. you have to have a line that says xbmc.Activatewindow and the window number. I was have the same problem. but I got scripts to run and dvd 2 xbox. I replace the games trailer button and the the video trailers button.. on media and on games
Aaries
Yeah, I've tried adding that line in, too with the same results. Do you know what window I should be opening? I tried opening 1117, Scripts, and another that I can't recall and if it works at all, it opens up that screen, but then nothing happens. Can you show me the code you used to get your script to run, please?
Aaries
pretty please? anyone?
EBear
Any idea on how the get the extra (4th) description text working?

Edit: Figured it out. (I feel stupid now, it was easy.)
sotu
QUOTE(sadalius @ Jun 10 2006, 05:54 AM) *

Thanks pOpY, that activated the button for me. Can you point me to somewhere that I can learn how to get my homebrew to show up when I click my new homebrew button?


With the new builds of xbmc that don't have the xbmc.xml you can make a bookmark by clicking your Homebrew button which will open your programs. Then to make a bookmark click the white button and Add Source name it Homebrew and now your button will open the homebrew folder.
futurecheeto
anyone know how to do this with the new MC360, September build?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.