Making scripting support optional - page 7 - General Discussion and Assistance - CHDK Forum

Making scripting support optional

  • 83 Replies
  • 33620 Views
*

Offline hwntw

  • ***
  • 159
Re: Making scripting support optional
« Reply #60 on: 09 / January / 2011, 06:14:27 »
Advertisements
All build options except TextReader- OFF
Ixus 95 build 1038, CHDK size 1541166 bytes, free memory 731000 bytes
I call that a success

As above, with PTP ON, build size the same. PTP CL works, except ptpcam --chdk= crash.
CHDKDE ptpgui.exe does not work with this build- because LUA/uBasic are disabled?

Colin
« Last Edit: 09 / January / 2011, 08:03:39 by hwntw »
Ixus 300HS S100


Windows 10

*

Online reyalp

  • ******
  • 14111
Re: Making scripting support optional
« Reply #61 on: 09 / January / 2011, 14:44:29 »
All build options except TextReader- OFF
Ixus 95 build 1038, CHDK size 1541166 bytes, free memory 731000 bytes
I call that a success

As above, with PTP ON, build size the same. PTP CL works, except ptpcam --chdk= crash.
CHDKDE ptpgui.exe does not work with this build- because LUA/uBasic are disabled?

Colin
Yes, currently lua is required for any useful CHDK PTP functionality other than upload and download. ptpgui will not work I think.

When you say --chdk= crashes, do you mean ptpcam crashes, or the camera. Also, what are you passing after the = ?
Don't forget what the H stands for.

*

Online reyalp

  • ******
  • 14111
Re: Making scripting support optional
« Reply #62 on: 09 / January / 2011, 15:17:53 »
Another bug, found by MSL in chdkde

http://tools.assembla.com/chdkde/changeset/549

Old badpixel.lua created bad_tmp.bin and renamed on success. Scriptless just creates bad_tmp.bin, and never renames.

CHDKDE fix isn't great, because if badpixel creation fails (2 consecutive shots give different numbers), badpixel is still created. Could remove it I guess.

Also, it looks like scriptless fails to set  conf.save_raw = 255 for the second shot, meaning the comparison will always just use the first number anyway. Will look into fixing this later.

 :(

« Last Edit: 09 / January / 2011, 21:11:25 by reyalp »
Don't forget what the H stands for.

*

Offline hwntw

  • ***
  • 159
Re: Making scripting support optional
« Reply #63 on: 09 / January / 2011, 16:00:14 »
All build options except TextReader- OFF
Ixus 95 build 1038, CHDK size 1541166 bytes, free memory 731000 bytes
I call that a success

As above, with PTP ON, build size the same. PTP CL works, except ptpcam --chdk= crash.
CHDKDE ptpgui.exe does not work with this build- because LUA/uBasic are disabled?

Colin
Yes, currently lua is required for any useful CHDK PTP functionality other than upload and download. ptpgui will not work I think.

When you say --chdk= crashes, do you mean ptpcam crashes, or the camera. Also, what are you passing after the = ?
Hello,
The camera crashes when ptpcam --chdk is executed. I assume this needs LUA, whereas ptpcam -o or -L (which work) do not. The Equals Sign is poor syntax by me, I just meant "crash[es]" and "=" is otiose.

Colin
Ixus 300HS S100


Windows 10


*

Online reyalp

  • ******
  • 14111
Re: Making scripting support optional
« Reply #64 on: 09 / January / 2011, 16:15:51 »
The camera crashes when ptpcam --chdk is executed.
Just running ptpcam --chdk does not execute any lua, so something else is wrong.

I can connect to the camera and upload/download with CHDK PTP if scripting is disabled.
Don't forget what the H stands for.

*

Offline hwntw

  • ***
  • 159
Re: Making scripting support optional
« Reply #65 on: 09 / January / 2011, 16:51:26 »
Hello,
I shall rerun my testing and check CL ptpcam on a build with PTP only, enabled.
I am unsure where my ptpcam came from [?]. I compiled a copy of the DE version, but without noting which is which.
I better start again with a pukka ptpcam and a new CHDKUS build 1038

Colin

PS for the exmem thingy on my Ixus 95, I search for ExMem.AllocCacheable using the Primary.Bin loaded in a disassembler, right?
Ixus 300HS S100


Windows 10

*

Online reyalp

  • ******
  • 14111
Re: Making scripting support optional
« Reply #66 on: 09 / January / 2011, 17:12:20 »
Hello,
I shall rerun my testing and check CL ptpcam on a build with PTP only, enabled.
I am unsure where my ptpcam came from [?]. I compiled a copy of the DE version, but without noting which is which.
I better start again with a pukka ptpcam and a new CHDKUS build 1038
Recent CHDKDE ptpcam should be fine, and AFAIK chdkshell will build it for you.
Quote
PS for the exmem thingy on my Ixus 95, I search for ExMem.AllocCacheable using the Primary.Bin loaded in a disassembler, right?
Yes, but be aware that is not the actual function you are looking for, it is a signpost to find the function. The function is likely to be several calls away. Compare with ones that have already been found to verify you have the correct function.

FWIW, there is absolutely no need mess with the exmem stuff without lua enabled. With 700k free, you have enough memory for normal CHDK features, and having more free won't make anything work better. Also, please pay careful attention to the exmem testing thread. The entire thing is an experiment, and the only reason to use it right now is if you are interested in increasing our knowledge by participating in the experiment. That mean hacking the code to figure out exactly how it all works.

If we work out how to use it consistently without problems, that could be useful down the road, but it doesn't appear to be there yet.
Don't forget what the H stands for.

*

Offline hwntw

  • ***
  • 159
Re: Making scripting support optional
« Reply #67 on: 09 / January / 2011, 18:04:12 »
Hello,
I shall rerun my testing and check CL ptpcam on a build with PTP only, enabled.
I am unsure where my ptpcam came from [?]. I compiled a copy of the DE version, but without noting which is which.
I better start again with a pukka ptpcam and a new CHDKUS build 1038
Recent CHDKDE ptpcam should be fine, and AFAIK chdkshell will build it for you.
Quote
PS for the exmem thingy on my Ixus 95, I search for ExMem.AllocCacheable using the Primary.Bin loaded in a disassembler, right?
Yes, but be aware that is not the actual function you are looking for, it is a signpost to find the function. The function is likely to be several calls away. Compare with ones that have already been found to verify you have the correct function.

FWIW, there is absolutely no need mess with the exmem stuff without lua enabled. With 700k free, you have enough memory for normal CHDK features, and having more free won't make anything work better. Also, please pay careful attention to the exmem testing thread. The entire thing is an experiment, and the only reason to use it right now is if you are interested in increasing our knowledge by participating in the experiment. That mean hacking the code to figure out exactly how it all works.

If we work out how to use it consistently without problems, that could be useful down the road, but it doesn't appear to be there yet.
Hello,
Exmem: fair enough- I found an address, but I shall take your advice and leave well alone.
PTP: I shall continue as above, tomorrow (GMT).

Colin
Ixus 300HS S100


Windows 10


Re: Making scripting support optional
« Reply #68 on: 09 / January / 2011, 18:25:50 »

I am unsure where my ptpcam came from [?].

Maybe I gave it to you ?

*

Online reyalp

  • ******
  • 14111
Re: Making scripting support optional
« Reply #69 on: 09 / January / 2011, 21:10:27 »
Fixed scriptless badpixel creation in changeset 1038
This is a quick fix, it can be cleaned up a lot if we don't support the script any more. No reason to do funky stuff with conf.save_raw
Don't forget what the H stands for.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal