PDA

View Full Version : Plugin creation help


EssEll
2008-12-02, 14:14
Hey
I'm just starting out and trying to make a plugin for myself on xbox, but I don't know where to start. All I want to do just now is list all of the files in a local directory (E:\Pics\), but can't figure out how to do that at all.
I know how to do some stuff after this (I think) but if someone could help me get started off I'dd really appreaciate it.
Thanx in advance

Nuka1195
2008-12-02, 15:51
look at the plugin maker script in xbmc-scripting svn. you can get it with the svn installer from the sticky

EssEll
2008-12-02, 16:43
aright, thanx man, I'll go have a look now, and hopefully be able to figure it out

EssEll
2008-12-02, 17:20
don't mean to annoy ppl, but I've tried running that script, and it creates a video plugin, but when I try to run this plugin it just says no items, and returns to the plugin menu. but theres 2 videos in the folder its used, and its just a local folder, not a multipath.

Nuka1195
2008-12-02, 19:28
need more info, works fine here

EssEll
2008-12-02, 20:17
OK, I tried it again just to make sure.

I created a folder - E:\Vids which has 2 files in it, 1.avi and 2.avi, and I made it a source
When I run the plugin from program plugins I choose videos and select the source, then it creates the plugin

now I go to videos > video plugins, and select the plugin. It comes up for a second as "Loading directory - 0 items retrieved" and then closes, leaving me back in the plugin options instead of with a list of the (2) files. Am i doing something wrong?

Nuka1195
2008-12-02, 20:50
doesn't sound like it.

check your log and check the scripts debug window. "I" on the keyboard

EssEll
2008-12-02, 21:08
I'll try the debug log in just a minute, but first - I'm doing it on xbox - does that make a difference to it, or should this still work on xbox?

Nuka1195
2008-12-02, 21:15
yes it should, i tested on windows, but xbox always works. make sure you are upto date xbmc.

EssEll
2008-12-02, 21:25
OK, kewl, thanx for quick reply

I got the debug log, and upped the bit regarding the vids (its been on for a while, and the past few results were teh same things which is why I trimmed it.

http://pastebin.com/m42de56ce