I also wanted to understand more from lua scripts. First, I wanted to deal with the data logging. I copied the most important things from rawopint. I hope that I was allowed to do so.
What I'm wondering, should not you put these functions into a generic module so everyone could use it?
One thing to watch out for is that the module current doesn't escape values written to the log, so values should not include , or "
I also find it interesting because the whole thing works on my PC in Notepad ++ in the CHDK LUA local.
I've tried to keep the "modules" in rawopint, fixedint etc as isolated as possible. log is probably the only one that doesn't depend on CHDK functions, but the others should be relatively easy to re-use in CHDK scripts.
Another thing I try to do in those scripts is isolate the menu values from main script logic.
I'm trying a script right now. After each recording, I make a log: write (). Sometimes the camera crashes. But if I took 10 shots and then crashes the camera, then there is always only the first line in the log file.
Started by KaLi
Started by cowboyway
General Help and Assistance on using CHDK stable releases
Started by waterwingz
« 1 2 »
Started by rikbeter
Started by xsgs111
General Discussion and Assistance