Change and remove items from Basichome (1 Viewer)

z3r0_burn

Portal Member
December 8, 2008
31
0
Minneapolis, MN, USA
Home Country
United States of America United States of America
Thanks for the help in fixing the script but now it pukes on the filename of the templates.

"C:\Program Files\Team MediaPortal\MediaPortal\skin\BasicHomer.py"
Traceback (most recent call last):
File "C:\Program Files\Team MediaPortal\MediaPortal\skin\BasicHomer.py", line 235, in <module>
myTemplate = open(template)
File "C:\Python30\lib\io.py", line 278, in __new__
return open(*args, **kwargs)
File "C:\Python30\lib\io.py", line 222, in open
closefd)
File "C:\Python30\lib\io.py", line 615, in __init__
_fileio._FileIO.__init__(self, name, mode, closefd)
IOError: [Errno 2] No such file or directory: 'basichome.3.tpl'

I have made sure the filename and source code have the same capitalization but that did not help at all.

Thanks in advance
 

SilentException

Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    why don't you just install python2.6? :) works fine there..

    btw i miss 4x3 layout.. and some new plugins.. might add it all later..

    thanx for the menu generator fmarcia!
     

    z3r0_burn

    Portal Member
    December 8, 2008
    31
    0
    Minneapolis, MN, USA
    Home Country
    United States of America United States of America
    why don't you just install python2.6?

    Because it was not stated that an OLD version of Python was required to run the script. I will test that tonight and report back. I guess the script has some requirements that should be listed with it or be updated to handle the changes in Python 3.
     

    z3r0_burn

    Portal Member
    December 8, 2008
    31
    0
    Minneapolis, MN, USA
    Home Country
    United States of America United States of America
    why don't you just install python2.6? :) works fine there..

    I uninstalled Python 3.0 and installed Python 2.6.1 but I am still getting the same error:
    IOError: [Errno 2] No such file or directory: 'basichome.3.tpl'

    Is there some other requirement besides just Python 2.6 that I need to know about?

    :D
     

    fmarcia

    Portal Member
    April 20, 2008
    76
    6
    Boussy Saint Antoine
    Home Country
    France France
    You need 3 files:
    - BasicHomer.py, the python script,
    - BasicHome.2.tpl, the template for 2 rows,
    - BasicHome.3.tpl, the template for 3 rows.

    First, check all these files are in the same folder.

    There is no more requirement.

    If you're using a case-sensitive file system, you can try to rename BasicHome.#.tpl to basichome.#.tpl (I tested it and use it on a win32 platform, so it's not a issue for me).
     

    z3r0_burn

    Portal Member
    December 8, 2008
    31
    0
    Minneapolis, MN, USA
    Home Country
    United States of America United States of America
    All the files are in the same I had already tried to check the capitalisation of the files and that did not change anything. I was able to get it to work after moving it to another system for testing. I use "c:\test" for anything I need to troubleshoot and it worked fine so I tried it in "c:\test 1" with the same failures. I think its because Python is a UNIX based language and it does not like spaces in pathname.

    THANKS for all the help
     

    ltooz_audis

    Portal Member
    March 12, 2009
    23
    0
    Fremont, CA
    Home Country
    United States of America United States of America
    Hello all,
    After trying all the skins, and my family likes this one the most. My kids think it's clean, easy to read and has all the functions they need. I modified the 2 rows basic home, replaced TV & TV series with Weather & Pictures and they work great, thank you. There are 2 more buttons I want to replace with is Radio & the blank one. I want to replace Radio with Games & the blank one with HOME MOVIES.

    Games: My kids love to play NFSIII & MULAN (they are both in ISO form, they're default mounted with Daemon tools), I want to put NFSIII & MULAN icon in games and when they click it, it will play the game.

    HOME MOVIES: I have all the movies of my kids in MKV format and they're all in 1 folder "HOME MOVIES". I know I can go to videos and select the folder, but I want to make a short cut to go straight to "HOME MOVIES" folder on this 2 rows basichome.

    SHUTDOWN PC: I also like to have a shutdown button on basichome so my kids can click it and shutdown the PC.

    Please show me how to achieve these tasks.

    Thanks,
     

    aj1405

    Portal Pro
    September 30, 2007
    443
    302
    Home Country
    Norway Norway
    Hello all,
    After trying all the skins, and my family likes this one the most. My kids think it's clean, easy to read and has all the functions they need. I modified the 2 rows basic home, replaced TV & TV series with Weather & Pictures and they work great, thank you. There are 2 more buttons I want to replace with is Radio & the blank one. I want to replace Radio with Games & the blank one with HOME MOVIES.

    Games: My kids love to play NFSIII & MULAN (they are both in ISO form, they're default mounted with Daemon tools), I want to put NFSIII & MULAN icon in games and when they click it, it will play the game.

    HOME MOVIES: I have all the movies of my kids in MKV format and they're all in 1 folder "HOME MOVIES". I know I can go to videos and select the folder, but I want to make a short cut to go straight to "HOME MOVIES" folder on this 2 rows basichome.

    SHUTDOWN PC: I also like to have a shutdown button on basichome so my kids can click it and shutdown the PC.

    Please show me how to achieve these tasks.

    Thanks,

    Games:
    You can create a new games menu with the "Game menu" plugin.
    You then need a plugin to start the games. Have a look at the MultiShortcut plugin.

    Home movies:
    I don't think this possibility exist in MediaPortal at the moment.
    You could use the Moving Pictures and Video plugin; each displaying different movies. This will achieve your goal.

    Shutdown:
    Try replacing the <hyperlink>132</hyperlink> tag with <action>99</action>
     

    ltooz_audis

    Portal Member
    March 12, 2009
    23
    0
    Fremont, CA
    Home Country
    United States of America United States of America
    AJ1405,
    Thank you... I played with the basichome last night and I got one of the game on the screen. I think I'm getting a hang of this a little bit now. Yes, I'll look for the Game Menu plug in to see if I can do it. We do love this skin, I think it's better the way it is with moving pictures also, the plug-in for moving pictures actually are too busy looking for us. The white banner with icons are much easier to read, some of the moving pictures background do make the icons harder to see.

    Kindergarden icon will execute the batch file that mounts the cd.iso, the kids can play, when they're done with it, close it, and the MP comes back with the basic home screen....


    bwbasichome.jpg


    :D:D:D:D
     

    ltooz_audis

    Portal Member
    March 12, 2009
    23
    0
    Fremont, CA
    Home Country
    United States of America United States of America
    Got it tonight.
    2rows_shutdown1.jpg


    games
    2rows_games.jpg


    2rows_game.jpg


    2rows_gameplay.jpg


    Shutdown works great except it doesn't display hover_xx pictures and "shutdown" text for some reason, please check the codes to see what's I'm missing. I have 2 icon pictures for shutdown.
    This is the 8th button in the 2rows basichome.
    "
    <control>
    <description>8 - Button</description>
    <type>button</type>
    <id>9</id>
    <posX>940</posX>
    <posY>580</posY>
    <width>300</width>
    <height>180</height>
    <textureFocus>shutdown.png</textureFocus>
    <textureNoFocus>shutdown1.png</textureNoFocus>
    <hyperlink>7842</hyperlink>
    <label></label>
    <onleft>8</onleft>
    <onup>5</onup>
    </control>
    <!--<control>
    <description>8 - Icon</description>
    <type>image</type>
    <id>1</id>
    <posX>1025</posX>
    <posY>590</posY>
    <width>130</width>
    <height>130</height>
    <texture>shutdown1.jpeg</texture>
    </control>
    <control>
    <description>8 - Text</description>
    <type>label</type>
    <id>1</id>
    <posX>940</posX>
    <posY>720</posY>
    <width>300</width>
    <height>40</height>
    <label>Shutdown</label>
    <align>center</align>
    </control>
    <control>
    <description>8 - Image</description>
    <type>image</type>
    <id>1</id>
    <posX>1300</posX>
    <posY>260</posY>
    <width>580</width>
    <height>580</height>
    <texture>shutdown1.png</texture>
    <animation effect="fade" time="1000">VisibleChange</animation>
    <visible>Control.HasFocus(9)</visible>
    </control>-->
    </controls>
    </window>


    Thanks,
    :D:D:D:D:D
     

    Users who are viewing this thread

    Top Bottom