[DEV] LEAP Motion Addon
#1
Hi all.

I'm a newb XMBC developer but have a good amount of programming experience.

I have a class project to create an addon linking LEAP motion with the XMBC.

Am I going to have to restart the application every time I make a change to the code?

Any hints, tips, or tricks, for setting up my Dev environment?

Thanks in advance!
Reply
#2
How do I view my errors when developing an addon?
Reply
#3
python errors will be logged to the xbmc.log file.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#4
Hi all,

I copied the leap motion module into my addon directory and imported it into my main addon script.

When I try running the addon the entire xmbc application kills.



Is there anything else I could try?

Other place to import from or anything?

Thanks.
NIck
Reply
#5
just start by searching what have already been done on the subject.
Reply
#6
(2013-10-28, 18:23)nickthemagicman Wrote: Hi all.

I'm a newb XMBC developer but have a good amount of programming experience.

I have a class project to create an addon linking LEAP motion with the XMBC.

Am I going to have to restart the application every time I make a change to the code?

you'll either need to find a way to restart your addon,
which i assume might be difficult since it'll probably will be running continuously in the background
or you'll have to restart xbmc indeed.
(2013-10-28, 18:23)nickthemagicman Wrote: Any hints, tips, or tricks, for setting up my Dev environment?

there's not much involved other than the text editor of your choice
and keeping an eye on the xbmc.log file for any errors.

in case you haven't come across our wiki help page, here it is:
http://wiki.xbmc.org/index.php?title=Add-on_development
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#7
(2013-10-28, 20:21)nickthemagicman Wrote: Hi all,

I copied the leap motion module into my addon directory and imported it into my main addon script.

When I try running the addon the entire xmbc application kills.



Is there anything else I could try?

Other place to import from or anything?

Thanks.
NIck

it's hard to tell without seeing the actual code you're using
or a link to the module in question.

we need a Debug Log for starters, as we don't have a clue which os or what xbmc version you're using.
does xbmc create a crashlog? can you do a backtrace?
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#8
i've merged all your posts into a single thread.
might be easier to keep things centralized.

in case your addon will run on linux,
i'd be more than willing to do some testing when you're finished :-)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#9
My two cents:

I'm using Windows 7.

1. SublimeText 2 as a text editor. Its nice and simple.
2. Baretail for tracking the errors in the xbmc.log (you can set highlighting rules to highlight script errors)
3. For editing the code of a service I found the easiest thing was to create a little .bat file that closes XBMC, waits a second or three, then reloads it.
4. Set XBMC to launch into the window you need. With this, the gap between a code change and testing was only about 10 seconds.
5. Github
Reply
#10
Hey yall,

I posted a few months ago and got busy with other projects and haven't thought about my leap project in a while.

I just wanted to say thanks for helpin a noob out.

The log file helped a massive amount.


I'll most more about our project in the days to come but we should be nearing a complete leap motion add-on!

Ronie I would be honored to shoot it your way for testing!

I'll post Git Info this weekend as it gets more tangible.
Reply

Logout Mark Read Team Forum Stats Members Help
[DEV] LEAP Motion Addon0