Editable cfg file - Feature Requests - CHDK Forum supplierdeeply

Editable cfg file

  • 8 Replies
  • 2754 Views
*

Offline a710is

  • ****
  • 250
  • A710 IS
Editable cfg file
« on: 02 / December / 2007, 17:22:51 »
Advertisements
My CHDK doesn't currently save its settings anymore, but some of the settings are customized. It would be a bit unpleasant to delete the cfg file so how could it be decoded so we wouldn't lose every setting we've made?

*

Offline a710is

  • ****
  • 250
  • A710 IS
Re: Editable cfg file
« Reply #1 on: 03 / December / 2007, 02:22:15 »
Is there some software that would open the cfg?
anyway here's mine maybe somebody will be kind enough to look into it and fix the bug that stops stuff from being saved.
I went back to v125 now :(

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Editable cfg file
« Reply #2 on: 03 / December / 2007, 02:38:07 »
I went back to v125 now :(
So, the earlier version does not have the cfg-saving problem? Therefore it looks like a bug in the newer one. And cfg file is not not privy.

Did you try to backup your cfg-file, remove it from SD-card to make the CHDK to create it from the scratch? Does CHDK save changed settings in this case?
CHDK Developer.

*

Offline a710is

  • ****
  • 250
  • A710 IS
Re: Editable cfg file
« Reply #3 on: 03 / December / 2007, 02:41:35 »
no, I still wasn't able to save stuff but v125 doesn't have the extended shutter values, it only has the Tv bracketing which has it's default set to off.
on my camera v128 always starts with the shutter override set to 65s which is terrible.


*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Editable cfg file
« Reply #4 on: 03 / December / 2007, 03:11:23 »
Ok.
I've just tried your cfg-file with my A610. It does not save any new settings from new functionality of Fingalo's build. If I change any setting, which exists in my build, the changes saves normally.
If I delete your cfg-file, any changes saves.  :o

I'll look into the problem more deeply today...
CHDK Developer.

*

Offline a710is

  • ****
  • 250
  • A710 IS
Re: Editable cfg file
« Reply #5 on: 03 / December / 2007, 03:16:07 »
Thanks a lot!

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Editable cfg file
« Reply #6 on: 03 / December / 2007, 05:37:57 »
Fingalo
Ok. I've found a bug in the saving procedure for cfg-file. It does not truncate the file if it was longer.
In the conf_save() procedure 'O_TRUNC' flag should be added:
Code: [Select]
    fd = open(CONF_FILE, O_WRONLY|O_CREAT[color=red]|O_TRUNC[/color], 0777);

a710is
In your cfg-file there are duplicated records. CHDK saves changes into first record, but loads from the last. That's because it looks like unsaved.
Code: [Select]
LOADED    id=1,  size=4
LOADED    id=2,  size=4
LOADED    id=3,  size=4
LOADED    id=4,  size=4
LOADED    id=5,  size=40
LOADED    id=6,  size=100
LOADED    id=7,  size=4
LOADED    id=8,  size=4
LOADED    id=9,  size=4
LOADED    id=10,  size=4
LOADED    id=11,  size=4
LOADED    id=12,  size=4
LOADED    id=13,  size=4
LOADED    id=14,  size=4
LOADED    id=15,  size=4
LOADED    id=16,  size=4
LOADED    id=17,  size=4
LOADED    id=18,  size=4
LOADED    id=19,  size=4
LOADED    id=20,  size=4
LOADED    id=21,  size=4
LOADED    id=22,  size=4
LOADED    id=23,  size=4
LOADED    id=24,  size=4
LOADED    id=25,  size=4
LOADED    id=26,  size=4
LOADED    id=27,  size=2
LOADED    id=28,  size=2
LOADED    id=29,  size=2
LOADED    id=30,  size=2
LOADED    id=31,  size=2
LOADED    id=33,  size=4
LOADED    id=34,  size=4
LOADED    id=35,  size=4
LOADED    id=36,  size=4
LOADED    id=37,  size=4
LOADED    id=38,  size=100
LOADED    id=39,  size=4
LOADED    id=40,  size=4
LOADED    id=41,  size=4
LOADED    id=42,  size=4
LOADED    id=43,  size=4
LOADED    id=44,  size=4
LOADED    id=45,  size=100
LOADED    id=46,  size=4
LOADED    id=47,  size=4
LOADED    id=48,  size=2
LOADED    id=49,  size=4
LOADED    id=50,  size=4
LOADED    id=51,  size=4
LOADED    id=52,  size=4
LOADED    id=53,  size=4
LOADED    id=54,  size=4
LOADED    id=55,  size=2
LOADED    id=56,  size=4
LOADED    id=58,  size=4
LOADED    id=59,  size=4
LOADED    id=60,  size=4
LOADED    id=61,  size=4
LOADED    id=63,  size=4
LOADED    id=64,  size=100
LOADED    id=65,  size=4
LOADED    id=66,  size=100
LOADED    id=67,  size=4
LOADED    id=68,  size=4
LOADED    id=69,  size=100
LOADED    id=70,  size=4
LOADED    id=71,  size=4
LOADED    id=72,  size=2
[color=green]LOADED    id=98,  size=4
LOADED    id=97,  size=4
LOADED    id=96,  size=4
LOADED    id=95,  size=4
LOADED    id=94,  size=4
LOADED    id=99,  size=4
LOADED    id=100,  size=4
[/color]UNKNOWN   id=81,  size=4
UNKNOWN   id=82,  size=4
UNKNOWN   id=83,  size=4
UNKNOWN   id=84,  size=4
UNKNOWN   id=85,  size=4
UNKNOWN   id=86,  size=4
UNKNOWN   id=87,  size=4
UNKNOWN   id=88,  size=4
UNKNOWN   id=89,  size=4
[color=red]LOADED    id=98,  size=4
LOADED    id=97,  size=4
LOADED    id=96,  size=4
LOADED    id=95,  size=4
LOADED    id=94,  size=4
LOADED    id=99,  size=4
LOADED    id=100,  size=4
[/color]

Why did it happen? I don't know. Perhaps, it's due to migration between different builds (SDM to Fingalo's), which contain different numbers of config parameters.

PS. I've truncated your file and attached to this post. Please try it.
« Last Edit: 03 / December / 2007, 06:44:45 by GrAnd »
CHDK Developer.

*

Offline a710is

  • ****
  • 250
  • A710 IS
Re: Editable cfg file
« Reply #7 on: 03 / December / 2007, 06:20:47 »
yes, it is true, I have been using microfunguy's version but only Fingalo implemented the new shutter speeds so I switched to his.
also, I think that one of microfunguy's last versions was also based on Fingalo's
I think they should collaborate more over messenger or something and there should be a credits page around here so we know who did what and so that individual efforts are also acknowledged and appreciated.

I don't know the full history of CHDK but we should have it somewhere.


*

Offline a710is

  • ****
  • 250
  • A710 IS
Re: Editable cfg file
« Reply #8 on: 03 / December / 2007, 06:37:40 »
thanks GrAnd for the cfg I'll test it right away

edit: sure enough, it works. thanks again.
so I guess I should stick to Fingalo's version so that the problem wouldn't replicate
« Last Edit: 03 / December / 2007, 06:47:52 by a710is »

 

Related Topics