Page 7 of 7

Re: [Closed Beta Feedback Thread] - Estim Experiment Day 2

Posted: Thu Jul 16, 2020 11:14 am
by modnar
volumestart: See skipintro::eval - I guess this was supposed to be "volstart"

Code: Select all

      {
        "eval": {
          "script": "volumne = volumestart"
        }
      },
Secondly, It seems the start page is loading 0 into volcalibrate

Code: Select all

volcalibrate = storagevolcalibrate;
But your init script has the following:

Code: Select all

var storagevolcalibrate = teaseStorage.getItem('storagevolcalibrate') || 0;
But later on inside the init script

Code: Select all

var volcalibrate=40;
So by time I've gone through start, and gone to calibration, the set volume is 0 because of being 0 from the storage value from the start page.

Hope this helps.

Regarding the property errors, maybe you could wrap the eval inside "if (Sound.get('estim')) {"

Re: [Closed Beta Feedback Thread] - Estim Experiment Day 2

Posted: Thu Jul 16, 2020 12:19 pm
by boundupone
modnar wrote: Thu Jul 16, 2020 11:14 am volumestart: See skipintro::eval - I guess this was supposed to be "volstart"

Code: Select all

      {
        "eval": {
          "script": "volumne = volumestart"
        }
      },
Secondly, It seems the start page is loading 0 into volcalibrate

Code: Select all

volcalibrate = storagevolcalibrate;
But your init script has the following:

Code: Select all

var storagevolcalibrate = teaseStorage.getItem('storagevolcalibrate') || 0;
But later on inside the init script

Code: Select all

var volcalibrate=40;
So by time I've gone through start, and gone to calibration, the set volume is 0 because of being 0 from the storage value from the start page.

Hope this helps.

Regarding the property errors, maybe you could wrap the eval inside "if (Sound.get('estim')) {"
Thanks, I have now changed them from 0 to 40 to see if this resolves the problems. Strange this never was mentioned before publishing. I wonder if there is a difference between test and live environments?

Re: [Closed Beta Feedback Thread] - Estim Experiment Day 2

Posted: Thu Jul 16, 2020 1:08 pm
by modnar
I think the problem is, if you first started it and went directly into the settings page then it would've stored your volume settings. In theory what code was there makes sense and is the expected result given the path taken.

I can confirm that loading -> calibrate on a new session is now working.

I still am getting

Code: Select all

TypeError: Cannot read property 'setVolume' of undefined
When progressing sometimes. I don't think it seems to effect anything right now. The only solution would be to check it exists before hand. "if (Sound.get('estim')){..."

I am looking forward to having a proper go with this soon, great job from what I can see so far!