alright,
added following ubasic code:
get_zoom_steps - returns the possible zoomsteps (9 on a620, 129 on s3is for example)
get_nd_present - returns 0 if no ND present, 1 if ND present and real diaphragm NOT present, 2 if both ND & diaphragm present.
get_propset - returns 1 if propset 1,2 if propset is 2. propset 1 = digic II propsets, propset 2 = digic III propsets (see
PropertyCase - CHDK Wiki )
now it should be possible to build universal scripts.
also i changed the random seed so that it uses luminance, tickcount & battery voltage. this (the random code) will be changed though, as it is still not "random enough".
i uncommented the experimental code that made it possible to quickly change ev via up/down buttons. have to find a way to use that on A-series (as up/down on these cams sets macro & flash already!).
i hope jucifer will add the diff to his build. will also cleanup the code soon so hopefully it will get submitted to official trunk, or at least parts of my code.
built against revision 390 (latest).
will post all binaries later (it is compiling at the moment...) and will also update first post.
I did NOT delete or modify existing ubasic commands (thus my build wont break compatibility),
HOWEVER, it *might* be possible that existing scripts will not work (probably hanging/crashing the camera), this is due to how the parser parses the code. IF some of your scripts do not work with my build, please report, it will be fixed. it is just a matter of "sorting" the ubasic commands so the the parser doesnt get a "hiccup".
edit: if you use my builds and you have used one of jucifers builds before, i advise you to backup your *.cfg file, and if any problems occur, delete the one from sdcard. these problems (if at all) should not occur if you wait for jucifer to include my diff into his build.
this is having to do with how the *.cfg file is built/parsed (it is not a bug!).
edit2: attached s3is build for barney, in case ( i do hope so) he still is coming here sometime.
edit3: darn, when looking at the errors.txt there is at least one case of an error introduced by me, seems i forgot to add movie_state to a definition of some cam somewhere. unfortunately the error.txt doesnt tell me in WHICH camera model this occurs. i figure it must be one of those newly added. will find out later.
also i noticed the tx1 isnt in the makefile yet, so there is no build for that, sorry (why is that by the way...?).
all binaries can be found here:
zSHARE - 390_51_allbest_phyrephox.zipedit4: tx1 probably is in the MAKEFILE, not in the makefile.inc. anyways, changed the diff so it compiles for tx1 as well.
edit5: tx1 binaries in the archive now
edit6: updated first post with ALL newly introduced ubasic commands (forgot that one time), so now in the first post you have a complete listing of all new ubasic commands which make life easier. for example the "yet another intervalometer" script can be made universal using my build now (just a hint, jucifer

)