1.4 script compatiblity - page 5 - General Discussion and Assistance - CHDK Forum

1.4 script compatiblity

  • 44 Replies
  • 15173 Views
*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: 1.4 script compatiblity
« Reply #40 on: 06 / January / 2015, 16:54:59 »
Advertisements
No, I have my own script folder.

I had made an update (1.3 => 1.4) incl. CHDK/MODULES and CHDK/LUALIB. The Script menu displays '--NO SCRIPT--' and the warning message.

msl
CHDK-DE:  CHDK-DE links

*

Offline dvip

  • ****
  • 451
Re: 1.4 script compatiblity
« Reply #41 on: 06 / January / 2015, 20:40:52 »
I like that you can display something like this:

@chdk_version 1.4     == 1.4.0.0

But, is there something like this:

@chdk_version == null

So it doesn't display any warning message at all.
I find the warning message annoying. Sorry  :-[
However, I do know it is useful when you share scripts with others... for legacy code... and so on.

For my own scripts I don't think I need any warning message. That extra space on the screen is nice for displaying an extra @param or text.
If it can't be done, please don't worry, I understand :)



*

Offline reyalp

  • ******
  • 14079
Re: 1.4 script compatiblity
« Reply #42 on: 06 / January / 2015, 22:00:23 »
So it doesn't display any warning message at all.
I find the warning message annoying. Sorry  :-[
You should not see a warning if the version is compatible with the current version. So with 1.4, you won't see a warning if you set 1.4 or 1.3. If in the future 1.5 is backwards compatible, you won't see a warning there either.
Don't forget what the H stands for.

*

Offline dvip

  • ****
  • 451
Re: 1.4 script compatiblity
« Reply #43 on: 06 / January / 2015, 22:44:05 »
Loaded 1.4.0-3894 and I don't see a warning  at all :)
Thanks reyalp!




*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: 1.4 script compatiblity
« Reply #44 on: 06 / January / 2015, 22:47:54 »
I like that you can display something like this:

@chdk_version 1.4     == 1.4.0.0

But, is there something like this:

@chdk_version == null

So it doesn't display any warning message at all.
I find the warning message annoying. Sorry  :-[
However, I do know it is useful when you share scripts with others... for legacy code... and so on.

For my own scripts I don't think I need any warning message. That extra space on the screen is nice for displaying an extra @param or text.
If it can't be done, please don't worry, I understand :)

Just add '@chdk_version 1.3' to your scripts and the warning (in orange text) will go away. If you plan on using the new 1.4 features then add '@chdk_version 1.4'. The version check will be back-ported to the 1.3 branch soon so you will be notified if you try and use a 1.4 script.

It's a reminder to add this line to your scripts - I know it's a bit tedious if you have a lot of scripts; but it was felt it was a good feature for future compatibility and enhancement.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

 

Related Topics