Meteor_Intervalometer_with_Dark_Frame_Management HELP !

Ive Put that script on my sd card but when I open CDHK in the alt menu and run it I get an error..SO Happy someone replied Ive been driving myself bonkers trying to get it set up for the upcoming Meteorite showers and Comet ISON..The error I get is .started Ubasic:1UNK stmt****TERMINATED****I open a new text document file and copied and pasted the script to it...dragged that into the script file like i did the others...IDK what I could be doing wrong Ive Loaded the Accurate Involotmeter And the Lightning Oneand the Long exposure one for But have tried oh 20 time's to load this one and still wont workAny help here's a link to my very first timelapse using one of the scripts loaded onto sd card same way as I did the DIWDFMhttp://youtu.be/1ElS5Ru-kvw

I guess I should add that I'm shooting with a canon s 90here's a capture of a Sundog which we get Quite often here as an example of my shooting settingThis was shot using the sunset app Canons default prg no CHDK

Ive Put that script on my sd card but when I open CDHK in the alt menu and run it I get an error..SO Happy someone replied Ive been driving myself bonkers trying to get it set up for the upcoming Meteorite showers and Comet ISON..The error I get is .started Ubasic:1UNK stmt****TERMINATED****I open a new text document file and copied and pasted the script to it...dragged that into the script file like i did the others...IDK what I could be doing wrong

The other scripts you loaded are written in uBASIC. The meteor script is written in Lua and thus needs to be saved on your SD card with the file extension .lua ( e.g. meteor.lua - not meteor.bas).

-- check for native call interface: if (type(call_event_proc) ~= "function" ) then error("your CHDK does not support native calls") end

local bi=get_buildinfo()

if bi.os=="vxworks" then closeproc="CloseMShutter" openproc="OpenMShutter" if (call_event_proc("InitializeAdjustmentFunction") == -1) then error("InitAdjFunc failed") end elseif bi.os=="dryos" then closeproc="CloseMechaShutter" openproc="OpenMechaShutter" if (call_event_proc("Mecha.Create") == -1) then error("Mecha.Create failed") end else error("Unknown OS:" .. bi.os) end

-- close mechanical shutter function closeshutter() if (call_event_proc(closeproc) == -1) then print("closeshutter failed") end end

-- open mechanical shutter function openshutter() if (call_event_proc(openproc) == -1) then print("openshutter failed") end end

-- switch to record mode if necessary if ( get_mode() == false ) then print("switching to record mode") sleep(1000) set_record(1) while ( get_mode() == false) do sleep(100) end end

-- test for still photo rec mode: rec,vid=get_mode() if rec ~= true then error("Not in REC mode") elseif vid == true then error("Video not supported") end

-- make sure we are in P mode capmode=require("capmode") if ( capmode.get_name() ~= "P") then error("Not in Program mode!") end

-- check that flash is disabled if ( get_flash_mode() ~= 2) then error("Flash not disabled!") end

-- nasty hack to turn seconds into tv96 values tv96set=0 if (t>=10) then tv96set=-320 end if (t>=15) then tv96set=-384 end if (t>=20) then tv96set=-416 end if (t>=25) then tv96set=-448 end if (t>=30) then tv96set=-480 end

--[[ Exposure parameter controlled shoot: if argument dark==false, function stores Tv, Av, Sv from this shot and shoots a real photo. If dark==true, function overrides camera exposure parameters to match previously stored ones and shoots a dark frame. Obviously one must always call this function with false before it can be called with true.--]]function expcontrol_shoot(dark)

opened new filecopied ScriptSaved file as Meteorite.luaDragged this into my sd cardect Loaded scriptthis time I didnt get terminate and it said it was running the cript but it just flashed started and didnt do anything pressing shutterbutton fully no picture capture ..Maunual mode .Well I'm getting somewhere ...further than the last three days reading everything I can ..BTW Thanks this is Imortant to me to capture this comet for my Grandkids to see ..TY !