lua format - General Discussion and Assistance - CHDK Forum supplierdeeply

lua format

  • 4 Replies
  • 3740 Views
lua format
« on: 28 / January / 2012, 11:15:50 »
Advertisements
i have to ask probably the stupidest question here:
how do i save a lua script ?

i have tried many times to:
copy a script, open notepad and paste, then "save as" .lua file

however, every time i right click to check it, it is still in txt format (e.g.: filename.lua.txt)
i have chosen "all files" and unicode to save. what went wrong?

thanks

Re: lua format
« Reply #1 on: 28 / January / 2012, 11:40:47 »
i have to ask probably the stupidest question here:
how do i save a lua script ?

i have tried many times to:
copy a script, open notepad and paste, then "save as" .lua file

however, every time i right click to check it, it is still in txt format (e.g.: filename.lua.txt)
i have chosen "all files" and unicode to save. what went wrong?

thanks
Just rename it.  You might want to also download a real programming editor - google Notepad++

« Last Edit: 28 / January / 2012, 13:36:24 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: lua format
« Reply #2 on: 28 / January / 2012, 17:05:36 »

Re: lua format
« Reply #3 on: 29 / January / 2012, 06:00:12 »
Dont get me wrong, but if something is stupid, that's definitely not Windows...
I have Windows set up to hide known extensions.
Just opened notepad, File->Save As, selected "All files" in the dropdown list, selected "ANSI" (Unicode will not work in CHDK), than in the filename field typed "test.lua" without quotes and pressed Save.
And got my test.lua file. What am I doing wrong?


*

Offline Pier

  • ***
  • 128
Re: lua format
« Reply #4 on: 29 / January / 2012, 06:15:11 »
After you made copy/paste in Notepad and Save as, before click to save with file name given, just delete the extension (.txt) and type (.lua)
That's all.Work on my WinXP Pro SP3.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal