Saving scripts from PASTEBIN.com in txt, failed to load. how to save? - page 2 - Script Writing - CHDK Forum

Saving scripts from PASTEBIN.com in txt, failed to load. how to save?

  • 12 Replies
  • 11396 Views
*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Saving scripts from PASTEBIN.com in txt, failed to load. how to save?
« Reply #10 on: 05 / December / 2011, 09:45:36 »
Advertisements
SystemEventInit failed. press shutter to stop.
So it's not an issue of the script's file format or coding, the script is loaded & running.
The message is generated from within the script flow, typical error handling...

Do you by any chance use a script which requires Lua "native call support" ?

Due to security reasons, native call support is disabled by default from CHDK packages served by the autobuild server.
You can build your own CHDK package with native call support (e.g. with CHDK-Shell) or just use a CHDKDE build from http://forum.chdk-treff.de/download.php (with native calls enabled by default).
(delete the file  \CHDK\LANG\german.lng  for english language...)

Re: Saving scripts from PASTEBIN.com in txt, failed to load. how to save?
« Reply #11 on: 05 / December / 2011, 09:48:34 »
Native Call enabled.
all fine.
ELPH 300HS (IXUS 220)
EOS Rebel T3 (not T3i)
EOS 7D
SD770 IS
SX40 HS
SD1300 IS

*

Offline reyalp

  • ******
  • 14128
Re: Saving scripts from PASTEBIN.com in txt, failed to load. how to save?
« Reply #12 on: 05 / December / 2011, 22:58:13 »
SystemEventInit failed. press shutter to stop.
This is because recent cameras don't have SystemEventInit. System.Create does the equivalent.

edit:
See http://chdk.wikia.com/wiki/Event_Procedure#SystemEventInit_.2F_System.Create

An example of how to write a compatible script can be found in romlog.lua
« Last Edit: 05 / December / 2011, 23:00:32 by reyalp »
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal