- newbie tips to create first scritp - how to import chdk library - General Discussion and Assistance - CHDK Forum

- newbie tips to create first scritp - how to import chdk library

  • 2 Replies
  • 3944 Views
Advertisements
Good morning everyone.

I'm here for a simple question.
I'm developing my own lua script for my Canon A2000.
CHDK loaded and fully functional.

Now, what i do is: i launch SciTe the Lua editor from Lua website and write my script, but to run it i've to copy it on my SD card then put my SD card on the camera and launch it.

This take a lot of time and for very simple syntax errors i've to switch SD card thousands of times :P

so i was wondering if there's a way to export/import the chdk lib like #include <file.lib> in C :D
so that i dont have to load my script in the camera to check if it's correct.

i've tried editing my script directly in the camera via USB cable, but windows doesnt allow me to see any file but images in this mode.

thank you very much for any tips.

Best Regards,
Tom.
« Last Edit: 26 / April / 2010, 07:26:25 by ProjectHaxor »

*

Offline reyalp

  • ******
  • 14121
Re: - newbie tips to create first scritp - how to import chdk library
« Reply #1 on: 26 / April / 2010, 23:47:16 »
Unfortunately, there isn't.  However, you can fake it by making dummy functions that correspond to the camera functions.  I started writing an emulator for the camera API lua (using a lua build from the CHDK source, called hostlua see http://chdk.setepontos.com/index.php/topic,2509.msg26731.html#msg26731 ), but it has been stalled due to lack of time. See this thread http://chdk.setepontos.com/index.php/topic,2929.0.html for some early code and related discussion.

Note that hostlua does NOT include the camera functions, which obviously require the camera. It just behaves a bit more like the lua on the camera.
Don't forget what the H stands for.

Re: - newbie tips to create first scritp - how to import chdk library
« Reply #2 on: 27 / April / 2010, 04:03:42 »
Thank you very much for you answer reyalp, i will check your emulator and for now i'll use some dummy functions.

bye bye

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal