Continuing the slow crawl to release, I've spent time looking for loose ends
Script parameters changes:
http://chdk.setepontos.com/index.php?topic=12121.0- There is no error checking when parsing the script parameters (the current system does not have any either). This should probably be fixed.
This would be valuable, especially with the more sophisticated options now available, I've had errors that weren't obvious in the rawop scripts. I'm not sure what the appropriate response to errors would be though: Add a warning message like the compatibility one, put something in the console?
Long file name thread support
http://chdk.setepontos.com/index.php?topic=10833.0There was discussion about the menu option to enabled / disable CHDK LFN support: Should it stay in release? Should script have a way of selecting long vs short?
There is also some unresolved (?) issues with length limits.
Another thing I'd like to do is document compatibility:
Script* Should be generally compatible, with @chdk_version handling most API changes
* 1.4 Lua API is different. Return values changed for get_raw get_video_button, get_focus_ok, save_config_file, load_config_file, set_mf. Some other functions also accept either boolean or number when they previously expected one or the other, but this shouldn't affect most scripts.
* Mode map changes (
http://chdk.setepontos.com/index.php?topic=12163.msg119906#msg119906) mean some CHDK mode numbers have changed, and some names have been removed. Shouldn't affect common ones like M, P, AUTO
* LFN support affects Lua file / directory functions.
* slight change in shoot hook behavior, only become "active" is hook was set, previously would have done so for an very short time if not set.
CFG files* Generally compatible, (? AFAIK)
* We didn't move to new cfg filenames, 1.4 will use existing 1.3.
* conf.disable_lfn_parser is the only conf setting I'm aware of being added, conf.script_vars removed.
* set_config_value backward compatibility (even to 1.2 numbers) should still work.
* palette changes might impact color settings?
Modules1.3 modules should be assumed to be incompatible with 1.4. Also modules now come in multiple ABI and CPU target flavors, which must match the core.
PTPNo protocol changes.
edit:
However, PTP scripts don't have @chdk_version and default to 1.4 behavior, so may need to be updated. I need to check if chdkptp is affected.