Re: FB: The Estim Tower
Posted: Sun Jul 15, 2018 11:22 am
I seem to have the same problem as some others when trying to use the automatic volume increase version. I get the error "Cannot convert NaN to java.lang.Integer" when I enter calibration.
Have tried to debug and make different kind of modifications, but nothing seems to work. What I have concluded so far is that it fails on this line of code:
In this context:
If I modify the code like this it works (code makes no sense, but it give sound and no error message):
It is not enough to just do the parseInt, I need to also first assign it "50". This leads me to believe there is something wrong with the contents of the variable "audLevel". If it was just the wrong type, a typecast with parseInt would have been enough, but there must be something fishy with the contents, a carriage return sign embedded in it or something.
I also tried modifying it like this:
And it do not work. So the audLevel variable must be fishy already when this part of the code is entered.
I don´t know programming well enough to continue, one would like to read or print the contents of the "audLevel" to figure out what is happening. I hope my findings so far can help someone else to track down the fault.
As reference I run Java 8-171, and GuideMe 3.6.
Have tried to debug and make different kind of modifications, but nothing seems to work. What I have concluded so far is that it fails on this line of code:
Code: Select all
overRide.setAudio("AAaudio/calibrate.mp3","","","","","","","",audLevel)}
Code: Select all
var audLevel = parseInt(scriptVars.get("audLevel"));
scriptVars.put("audLevel", ""+audLevel);
{
overRide.setAudio("AAaudio/calibrate.mp3","","","","","","","",audLevel)}
}
Code: Select all
var audLevel = parseInt(scriptVars.get("audLevel"));
scriptVars.put("audLevel", ""+audLevel);
scriptVars.put("audLevel", "50");
var audLevel = parseInt(scriptVars.get("audLevel"));
{
overRide.setAudio("AAaudio/calibrate.mp3","","","","","","","",audLevel)}
}
I also tried modifying it like this:
Code: Select all
var audLevel = parseInt(scriptVars.get("audLevel"));
{
overRide.setAudio("AAaudio/calibrate.mp3","","","","","","","",audLevel)}
}
I don´t know programming well enough to continue, one would like to read or print the contents of the "audLevel" to figure out what is happening. I hope my findings so far can help someone else to track down the fault.
As reference I run Java 8-171, and GuideMe 3.6.