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

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

  • 12 Replies
  • 9237 Views
Advertisements
I've been trying to save scripts from pastebin with no success.

Downloading the file directly doesn't work. it just failed to load.
if i copy and paste the text from PASTEBIN in notepad and save as txt, doesn't work either.

what's the proper way for saving th script?

ELPH 300HS (IXUS 220)
EOS Rebel T3 (not T3i)
EOS 7D
SD770 IS
SX40 HS
SD1300 IS

*

Offline whim

  • ******
  • 2044
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Saving scripts from PASTEBIN.com in txt, failed to load. how to save?
« Reply #1 on: 05 / December / 2011, 07:55:41 »
Use an editor that can handle (and show) both Linux-style (LF) and DOS (CR+LF) line endings (ex. Notepad++)
Note that almost all files in CHDK source use LF-only style.

hth,

wim


Re: Saving scripts from PASTEBIN.com in txt, failed to load. how to save?
« Reply #2 on: 05 / December / 2011, 08:24:30 »
what's the proper way for saving th script?
A little more details about what does not work would be helpful here.  Are you having problems making and editing script files on your PC, are you having trouble transferring them to your camera or do the scripts fail to run once you load them on your camera ?

If the problem is running them on your camera,  be aware that the file extension of the script is important if you are trying to save LUA scripts.  It needs to be .LUA.  Anything else is considered by CHDK to be a uBASIC script.  Trying to run LUA as uBASIC does not work.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline fe50

  • ******
  • 3139
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Saving scripts from PASTEBIN.com in txt, failed to load. how to save?
« Reply #3 on: 05 / December / 2011, 09:19:28 »
if i copy and paste the text from PASTEBIN in notepad and save as txt, doesn't work either.
what's the proper way for saving th script?
Select ANSI coding, NOT UTF8 or Unicode...

Edit:
I suggest to use pastebin's "RAW" link, then copy & paste the script content into the editor.
« Last Edit: 05 / December / 2011, 09:23:48 by fe50 »


Re: Saving scripts from PASTEBIN.com in txt, failed to load. how to save?
« Reply #4 on: 05 / December / 2011, 09:22:02 »
its a LUA script located in PASTEBIN.com. all i'm doing is saving the file.

it has the lua extension on the file, but it fails to load.

the question is, how do i transfer the text content and make it a LUA script, since
the original TXT is not in LUA format.
ELPH 300HS (IXUS 220)
EOS Rebel T3 (not T3i)
EOS 7D
SD770 IS
SX40 HS
SD1300 IS

Re: Saving scripts from PASTEBIN.com in txt, failed to load. how to save?
« Reply #5 on: 05 / December / 2011, 09:24:54 »
I pasted the content in Notepad++(ANSI) and saved as LUA.
is not working. failed lo load.
ELPH 300HS (IXUS 220)
EOS Rebel T3 (not T3i)
EOS 7D
SD770 IS
SX40 HS
SD1300 IS

*

Offline fe50

  • ******
  • 3139
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Saving scripts from PASTEBIN.com in txt, failed to load. how to save?
« Reply #6 on: 05 / December / 2011, 09:27:06 »
is not working. failed lo load.
Do you get an error message or what else happens ?

Re: Saving scripts from PASTEBIN.com in txt, failed to load. how to save?
« Reply #7 on: 05 / December / 2011, 09:33:15 »
SystemEventInit failed. press shutter to stop.

that's it.
ELPH 300HS (IXUS 220)
EOS Rebel T3 (not T3i)
EOS 7D
SD770 IS
SX40 HS
SD1300 IS


Re: Saving scripts from PASTEBIN.com in txt, failed to load. how to save?
« Reply #8 on: 05 / December / 2011, 09:39:56 »
Sounds like its loading okay and then crashing.   What script are you using ?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Saving scripts from PASTEBIN.com in txt, failed to load. how to save?
« Reply #9 on: 05 / December / 2011, 09:44:23 »
http://pastebin.com/Nm5r9V7p

i have that same script with some modifications made by other user and the other script works
fine.

i'm saving the script in the wrong way.
« Last Edit: 05 / December / 2011, 09:46:59 by Alejandro »
ELPH 300HS (IXUS 220)
EOS Rebel T3 (not T3i)
EOS 7D
SD770 IS
SX40 HS
SD1300 IS

 

Related Topics