Jump to content


Photo

Xbmc Media Center


  • Please log in to reply
88 replies to this topic

#31 sebt3

sebt3

    homebrew player (P. & C.)

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1897 posts
  • Gender:Male
  • Location:QC

Posted 06 November 2010 - 01:34 AM

Why does it ask for my root password the first time I run?

It's asking *your* password because the script have detected you didn't have the loopback up and wanted to make sure network is there.

Any chance you can map commands to the game buttons? Like on an xbox controller?

D-pad + enter or space work well imho.

#32 urjaman

urjaman

    "I Know. We're going for a ride."

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 680 posts
  • Gender:Male
  • Location:Finland

Posted 06 November 2010 - 01:49 AM

^ You made it use gksu or somethign? -_-

/sbin/ifconfig is listed as NOPASSWD in /etc/sudoers.d/50_openpandora so AFAIK you can safely say sudo ifconfig <blah> in a script...

Pseudo-edit: Read man sudo. Use sudo -n ifconfig lo up 127.0.0.1 - this way it will just fail (printing an error message that can be read from the pnd log) instead of halting the script for a password if the configuration is changed.
If you're paranoid, you can check the return value and handle it the UI way if this way fails (I wouldnt see the need).

#33 sebt3

sebt3

    homebrew player (P. & C.)

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1897 posts
  • Gender:Male
  • Location:QC

Posted 06 November 2010 - 02:07 AM

^ You made it use gksu or somethign? -_-

/sbin/ifconfig is listed as NOPASSWD in /etc/sudoers.d/50_openpandora so AFAIK you can safely say sudo ifconfig <blah> in a script...

Pseudo-edit: Read man sudo. Use sudo -n ifconfig lo up 127.0.0.1 - this way it will just fail (printing an error message that can be read from the pnd log) instead of halting the script for a password if the configuration is changed.
If you're paranoid, you can check the return value and handle it the UI way if this way fails (I wouldnt see the need).

I though gksudo would follow the same rules as sudo. Sorry about that.

EDIT : if that bother you until I upload a new version, you can overwrite it :
... appdata/xbmc/scripts/pre_script.sh
creating an empty file here will disable this
Spoiler

Edited by sebt3, 06 November 2010 - 02:12 AM.


#34 urjaman

urjaman

    "I Know. We're going for a ride."

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 680 posts
  • Gender:Male
  • Location:Finland

Posted 06 November 2010 - 05:20 AM

I didnt even test the new xbmc as I'm doing other stuff at the moment. Truth to be told I would have expected gksudo to skip the request if password isnt needed, but then who knows... Just read the replies and went "oh crap this is halfly/in some weird way my fault..." ...

#35 HackModford

HackModford

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 779 posts
  • Gender:Male

Posted 11 November 2010 - 02:17 PM

Is there really no hope of launching PNDs with this?

I'd like to use it as an alternative to minimenu

#36 sebt3

sebt3

    homebrew player (P. & C.)

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1897 posts
  • Gender:Male
  • Location:QC

Posted 11 November 2010 - 03:16 PM

Is there really no hope of launching PNDs with this?

I'd like to use it as an alternative to minimenu

Try unpacking this in .../pandora/appdata/xbmc/.xbmc/addons.
Here is a bit more documentation :
http://wiki.xbmc.org...?title=Programs
http://www.xbmc4xbox...s_to_.xbe_files
http://wiki.xbmc.org...plugins_in_XBMC

The original release thread : http://forum.xbmc.or...ead.php?t=35739
Website : http://code.google.c.../xbmc-launcher/

Please report your findings here.
BTW : the code is written in python and look very hackable.

#37 HackModford

HackModford

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 779 posts
  • Gender:Male

Posted 11 November 2010 - 05:25 PM

Okay I'll mess around with it... but I have a feeling it won't just launch a pnd... but we'll see ;)

Also something like this is what I would imagine my pandora setup to look lik 8)
Posted Image

Edit: Was reading the documentation... what arguments are needed to make a pnd run from a terminal?

Edited by HackModford, 11 November 2010 - 05:27 PM.


#38 HackModford

HackModford

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 779 posts
  • Gender:Male

Posted 11 November 2010 - 10:47 PM

I followed these instructions

Installation:
1. unzip the file into Plugins/Program directory.
2. (linux users only): create a symlink for /usr/lib/libcurl.so.4 named /usr/lib/libcurl.so (run: "sudo ln -sf /usr/lib/libcurl.so.4 /usr/lib/libcurl.so" in terminal)
3. Run XBMC:
3.1. Switch to MC360 Skin (or some other skin that has "Programs" Section)
3.2. Go to Games -> Applications -> Add Source -> Browse -> Program Plugins
3.3. Select Launcher and Click "OK"
3.4. Click OK Again.
3.5. Right Click on "Launcher" Icon
3.6. Choose "Add to Favorites"
3.7. Switch back to PMIII Skin.
3.8. Click on the Arrow in the bottom right corner
3.9. Choose "Launcher"

Including the symlink one (I ran the terminal line they gave)

Launcher appears in programs now. But when I select it nothing happens.

Edit:

AndaleTheGreat,
The whole process of yours were wrong.
I'm sorry I didn't explain the process so well.

- The Launcher Plugin is capable to run many applications, so there is no need to replicate it and rename it.

- If you already has the Launcher plugin under programs, you do not need to do steps 3.1,3.2.3.3 and 3.4.

- once you have "Launcher" plugin in the Programs section, you can run it or add it to your favorites (using context-menu-> Add to Favorites)

- The first execution of the Plugin forces you to add an application to launch, you can add more applications later using context-menu -> Add new Launcher.
- The Scan of the files is used only on "File Launcher" applications.
you do not need to create a file launcher if you want to launch a single program without any parameters.

- If you'll create a file launcher, the scan process will add all of the files in a specific directory with specific extension to the list of the files that can be run with the launcher.
I'll give an example:
let's say I have an application called "C:\MAME\MAME.EXE" that can launch some games called "puyo.zip", "bobble.zip", etc. in "c:\mame\roms\" folder.
using arguments -joy for joystick control.

1. I'll create a file launcher.
2. Set the application to be "C:\MAME\MAME.EXE"
3. Set the application arguments to be "-joy"
4. Set the file path to be "C:\MAME\ROMS"
5. Set the extension to be "zip"
6. Set the title to be "MAME"

When I'll click on the MAME launcher it will scan C:\MAME\ROMS folder and add all of the files named "*.zip" to the list.
When I'll choose one of the files, for example: puyo.zip from the list, it will launch:
"C:\MAME\MAME.EXE" -joy "C:\MAME\ROMS\puyo.zip"

I hope this explanation is better.

That's a better explanation on how to use it. So it appears I am unable to actually run the plugin. Because I get nothing when I select it.

Edited by HackModford, 11 November 2010 - 11:20 PM.


#39 sebt3

sebt3

    homebrew player (P. & C.)

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1897 posts
  • Gender:Male
  • Location:QC

Posted 12 November 2010 - 12:51 AM

Yep I dd my own test, and it seems that python plugins aren't working :(

I knew the snake didn't like me I may have cheated too much with it

So at least for now, you cannot use this as a launcher.

Sorry :(

Edited by sebt3, 12 November 2010 - 12:51 AM.


#40 HackModford

HackModford

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 779 posts
  • Gender:Male

Posted 12 November 2010 - 02:57 AM

Yep... there was another one called executor. I was actually able to download the plugin from xbmc but it wouldn't launch either.

Now doesn't xbmc have some kind of native way to launch .xbe's? Can't you change it to launch pnd's?

Or is launching python scripts going to be working sometime in the future?

I checked the log and found a line that says

T:120108342 M:162017280 DEBUG: ADDON: cpluff: 'Could not return information about unknown plug-in plugin.program.executor

Which is the plugin I installed.

Edited by HackModford, 12 November 2010 - 03:05 AM.


#41 HackModford

HackModford

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 779 posts
  • Gender:Male

Posted 12 November 2010 - 05:11 PM

Here's a skin I found that's supposed to be optimized for touchscreens. I'm gonna keep looking and will post what I find here...

http://forum.xbmc.or...ead.php?t=57940


Now this looks great! This skin is called 7TFT and is optimized for small screens!
http://7tft.wordpres...hots-7tft-skin/
Posted Image

Posted Image

Posted Image

Or even one of my favorite skins. called elipsis
http://www.teamblack...etails.php?id=3
Posted Image

Edited by HackModford, 12 November 2010 - 05:28 PM.


#42 sebt3

sebt3

    homebrew player (P. & C.)

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1897 posts
  • Gender:Male
  • Location:QC

Posted 13 November 2010 - 12:03 AM

I've uploaded a new version.
Changes :
- fix the startup-script, it shouldn't bother you with your password anymore.
- applied patches from angstrom
- fixed the install (created a symlink :lol: )

The good news is : python plug-ins are now working. Xbmc allow you to download them and that is also working :)

(download at the usual place)

#43 HackModford

HackModford

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 779 posts
  • Gender:Male

Posted 13 November 2010 - 03:26 AM

I can confirm that the python scripts are working!

Thank You sebt3

where is this developer fund I can donate to?

Now I just need to figure out how to make it run pnd's...

#44 Screeny

Screeny

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 109 posts
  • Gender:Male
  • Location:Bingen, Germany

Posted 13 November 2010 - 11:26 AM

How did you get XMBC working? After I launched this PND file, nothing happens. :o
I was asked if I want to set the CPU clock to 700 mhz, I accept this and...yeah...nothing.
/pandora/appdata/xmbc/.wh..wh.orph is empty too. What do I wrong?

Edited by Screeny, 13 November 2010 - 12:02 PM.


#45 HackModford

HackModford

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 779 posts
  • Gender:Male

Posted 13 November 2010 - 02:24 PM

Try redownloading

are you in minimenu?