Change and remove items from Basichome | Page 4

Discussion in 'Black & White 1080p' started by aj1405, August 27, 2008.

  1. z3r0_burn

    z3r0_burn Portal Member

    Joined:
    December 8, 2008
    Messages:
    31
    Likes Received:
    0
    Gender:
    Male
    Occupation:
    IT Support Specialist
    Location:
    Minneapolis, MN, USA
    Ratings:
    +0 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    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
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. SilentException
    • Team MediaPortal

    SilentException Retired Team Member

    Joined:
    October 27, 2008
    Messages:
    2,617
    Likes Received:
    1,125
    Gender:
    Male
    Location:
    Rijeka, Croatia
    Ratings:
    +1,129 / 0
    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!
     
  4. z3r0_burn

    z3r0_burn Portal Member

    Joined:
    December 8, 2008
    Messages:
    31
    Likes Received:
    0
    Gender:
    Male
    Occupation:
    IT Support Specialist
    Location:
    Minneapolis, MN, USA
    Ratings:
    +0 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    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.
     
  5. z3r0_burn

    z3r0_burn Portal Member

    Joined:
    December 8, 2008
    Messages:
    31
    Likes Received:
    0
    Gender:
    Male
    Occupation:
    IT Support Specialist
    Location:
    Minneapolis, MN, USA
    Ratings:
    +0 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    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
     
  6. fmarcia

    fmarcia Portal Member

    Joined:
    April 20, 2008
    Messages:
    76
    Likes Received:
    6
    Location:
    Boussy Saint Antoine
    Ratings:
    +6 / 0
    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).
     
  7. z3r0_burn

    z3r0_burn Portal Member

    Joined:
    December 8, 2008
    Messages:
    31
    Likes Received:
    0
    Gender:
    Male
    Occupation:
    IT Support Specialist
    Location:
    Minneapolis, MN, USA
    Ratings:
    +0 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    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
     
  8. ltooz_audis

    ltooz_audis Portal Member

    Joined:
    March 12, 2009
    Messages:
    23
    Likes Received:
    0
    Occupation:
    Engineer
    Location:
    Fremont, CA
    Ratings:
    +0 / 0
    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,
     
  9. aj1405

    aj1405 Portal Pro

    Joined:
    September 30, 2007
    Messages:
    443
    Likes Received:
    151
    Gender:
    Male
    Ratings:
    +154 / 0
    Home Country:
    Norway Norway
    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>
     
    • Like Like x 1
  10. ltooz_audis

    ltooz_audis Portal Member

    Joined:
    March 12, 2009
    Messages:
    23
    Likes Received:
    0
    Occupation:
    Engineer
    Location:
    Fremont, CA
    Ratings:
    +0 / 0
    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....


    [​IMG]

    :D:D:D:D
     
  11. ltooz_audis

    ltooz_audis Portal Member

    Joined:
    March 12, 2009
    Messages:
    23
    Likes Received:
    0
    Occupation:
    Engineer
    Location:
    Fremont, CA
    Ratings:
    +0 / 0
    Home Country:
    United States of America United States of America
    Got it tonight.
    [​IMG]

    games
    [​IMG]

    [​IMG]

    [​IMG]

    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
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!