why only coding in scripts, not files? - Script Writing - CHDK Forum

why only coding in scripts, not files?

  • 5 Replies
  • 3128 Views
why only coding in scripts, not files?
« on: 15 / August / 2009, 10:25:29 »
Advertisements
i had a quick question that might sound a bit dumb, but i was wondering why is it that whenever i look through the forums or the chdk site or others for scripts i can find script coding, however i can almost never find the actual files, the build i get for my S5IS comes with some basic ones that dont really work an ive downloaded a few like intravolmeter and and most seem to be a ".bas" extension, however the most interesting scripts i tend to find only posting of the code alone, why is that? is there some sort of camera specific problem that we have to build the code ourselves everytime?

so without too much flaming as i have and will continue after posting this to search the forum, i ask for quick help on these questions:

1.) file dump of scripts, do they exists? where can i download scrips allready made without trolling the interwebs for hours,,
2.) if above not true do i simply copy and paste the coding found in each forum and paste it into notepad and save as a .bas or .lua whatever
   2a.) if so above, some scripts have a multiple sections of coding, do i put all in same file? i.e. http://chdk.wikia.com/wiki/UBASIC/Scripts:_Ultra_Intervalometer theres a section of coding, then stops, then another section of coding, is the first section an addendum that must be inserted somewhere into code?
   2b.)  if not above do i need aprogram to compile coding? VB? xcode?...


sections like 2a are the reason i get stumped at compiling the code given, the [admin: avoid swearing please] is allways like "heres the code, but no wait this code works, but oh yeah try this instead" its never a firm definite, finished  "heres the final code, thats it" which is why i was asking for question 1, does someone have or can someone post or can you email allready finished links of scripts that would work for the S5is? it seems like it would make sense to have a site or page similar to the http://mighty-hoernsche.de/ CHDK autobuild Download area where theres a listing of cameras you can click, then from there, theres a listing of scripts that will work on that camera, without the heres the script you build it yourself followed by the thousand flames of how he did it wrong and should do it this way, eff all that mess. you have to have the files on your camera, which means you have to had allready compiled them, cant you just upload them, or email them to me and ill post them on my server for everyone else to download?

oh yeah and, thanks in advance  :D

*

Offline Anaglyphic

  • ***
  • 129
  • Anaglyphic lives!
Re: why only coding in scripts, not files?
« Reply #1 on: 15 / August / 2009, 12:39:07 »
Since we cannot know all that there is to be known about anything,
 we ought to know a little about everything.
-- Blaise Pascal

*

Offline don

  • *
  • 11
Re: why only coding in scripts, not files?
« Reply #2 on: 15 / August / 2009, 12:52:33 »
 1.) file dump of scripts, do they exists? where can i download scrips allready made without trolling the interwebs for hours,,
Sometimes you can find a file and documentation together here on the forums,
http://chdk.setepontos.com/index.php/topic,2156.0.html




even at the wiki
http://chdk.wikia.com/wiki/UBASIC/Scripts
For 2 of my chdk cameras  the a610 and a640
The headline is "Older Scripts (Use at own trial/error)"
Not very encouraging!


There is no easy way to do scripts. It takes hours and hours of reading.
That has been my experence,
Don
   

*

Offline reyalp

  • ******
  • 14125
Re: why only coding in scripts, not files?
« Reply #3 on: 15 / August / 2009, 18:59:46 »
Yes the wiki and manuals are a mess.

There is a plan to include some standard scripts in the CHDK distribution (see sticky in the scripting forum). However, one of the problems is that different cameras have different features and limitations. Making a script work on all of them requires extra effort. Most people who write a script write it to work on their camera.
Don't forget what the H stands for.

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: why only coding in scripts, not files?
« Reply #4 on: 17 / August / 2009, 14:41:40 »
The big reason for the lack of proper script files is that wikia doesn't have a file repository, so cut&paste is pretty much the only way to publish scripts there. That's also why I don't put scripts there... problems due to copy&paste screwing things up are way too common.

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: why only coding in scripts, not files?
« Reply #5 on: 17 / August / 2009, 15:30:41 »
Many users - e.g. fe50 ;) - writes scripts for a special situation, a special case, only with the features & settings they need for this special intended use, without documentation, without sanity checks, without checking whether the script works under circumstances it wasn't designed for, and so on...

When you publish such a script, you also have to give support, answer lots of questions...all for a quick&dirty hack you wrote for a special situation, times ago...hmmm

For some scripts you have dozends of pages with additional informations, just downloading & running a script without reading & understanding these informations will bring most users in trouble...

There are some "standard" scripts like the FastMD which should be included into the CHDK packages...

BTW - a wise man once said: Don't forget what the H stands for.  ;)

 

Related Topics


SimplePortal © 2008-2014, SimplePortal