Millisecond Forums

" is not a valid setting

https://www.millisecond.com/forums/Topic29536.aspx

By jjlim1996 - 8/5/2020

Hi, I'm trying to combine a few scripts into one using the "include" function, and so far so good, until I hit a snag.

I keep getting: " is not a valid setting but I'm not sure what it means. I thought it was a stray " going around my code but they all came in pairs.

This is my main code for now.

<include>
/ file = "minutediscountingtask.iqx"
/ file = "synonymantonym.iqx"
/ file = "math1.iqx"
</include>

********************
summary data
********************
<summarydata>
/ columns = (computer.platform, script.startdate, script.starttime, script.subjectid, script.groupid, script.sessionid, script.elapsedtime,
script.completed,
parameters.immediateAmount, parameters.delayedAmount, values.ED50, values.k, expressions.meanRT,
parameters.taskduration, values.numcorrect_syn, values.numcorrect_ant, values.total_correct,
list.ACCoverall.itemcount,
expressions.propCorrect,

expressions.prop_diff1, expressions.propCorrect_diff1,
expressions.prop_diff2, expressions.propCorrect_diff2,
expressions.prop_diff3, expressions.propCorrect_diff3,
expressions.prop_diff4, expressions.propCorrect_diff4,
expressions.prop_diff5, expressions.propCorrect_diff5)
</summarydata>

<instruct>
/ fontstyle = ("Arial", 5%, false, false, false, false, 5, 1)
</instruct>

<text finish>
/ items = ("Thank you!")
/ fontstyle = ("Arial", 8%, true, false, false, false, 5, 1)
/ position = (50%, 50%)
/ size = (80%, 10%)
/ vjustify = center
/ valign = center
/ halign = center
</text>

**************************************************************************************************************
**************************************************************************************************************
    DEFAULTS
**************************************************************************************************************
**************************************************************************************************************
script requires Inquisit 6.1.0.0 or higher

<defaults>
/ canvasaspectratio = (4,3)
/ minimumversion = "6.1.0.0"
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txbgcolor = white
/ txcolor = (0, 0, 0)
/ inputdevice = mouse
</defaults>

********************
raw data
********************

<data>
/ columns = (build, computer.platform, date, time, subject, group, script.sessionid, blockcode, blocknum,
trialcode, trialnum,
parameters.immediateAmount, parameters.delayedAmount,
values.trialCount, values.choiceNo, values.index, values.indexAdjustment, values.delayChoice,
response, latency, values.ED50, values.k
parameters.taskduration,
stimulusitem, stimulusitem, values.choice1, values.choice2, values.choice3, values.choice4, values.choice5, values.correctchoice,
response, correct, latency, values.numcorrect_syn, values.numcorrect_ant, values.total_correct,
values.difficulty, values.solutionACC, values.mathproblem, values.correctsolution, values.presentedsolution, response, correct, latency,
list.ACC_1.itemcount, list.ACC_2.itemcount, list.ACC_3.itemcount, list.ACC_4.itemcount, list.ACC_5.itemcount)
</data>

****************************************************************************************************
general instruction expressions: adjust the instruction text depending on device used to run script
****************************************************************************************************
<expressions>
/ buttoninstruct1 = if (computer.touch && !computer.haskeyboard) {"response button";} else {"key";}
/ buttoninstruct2 = if (computer.touch && !computer.haskeyboard) {"Place your index finger over the SPACEBAR.";} else {"Place your index finger on the SPACEBAR.";}
/ buttoninstruct3 = if (computer.touch && !computer.haskeyboard) {"Tap";} else {"Click";}
</expressions>
By Dave - 8/6/2020

jjlim1996 - 8/6/2020
Hi, I'm trying to combine a few scripts into one using the "include" function, and so far so good, until I hit a snag.

I keep getting: " is not a valid setting but I'm not sure what it means. I thought it was a stray " going around my code but they all came in pairs.

This is my main code for now.

<include>
/ file = "minutediscountingtask.iqx"
/ file = "synonymantonym.iqx"
/ file = "math1.iqx"
</include>

********************
summary data
********************
<summarydata>
/ columns = (computer.platform, script.startdate, script.starttime, script.subjectid, script.groupid, script.sessionid, script.elapsedtime,
script.completed,
parameters.immediateAmount, parameters.delayedAmount, values.ED50, values.k, expressions.meanRT,
parameters.taskduration, values.numcorrect_syn, values.numcorrect_ant, values.total_correct,
list.ACCoverall.itemcount,
expressions.propCorrect,

expressions.prop_diff1, expressions.propCorrect_diff1,
expressions.prop_diff2, expressions.propCorrect_diff2,
expressions.prop_diff3, expressions.propCorrect_diff3,
expressions.prop_diff4, expressions.propCorrect_diff4,
expressions.prop_diff5, expressions.propCorrect_diff5)
</summarydata>

<instruct>
/ fontstyle = ("Arial", 5%, false, false, false, false, 5, 1)
</instruct>

<text finish>
/ items = ("Thank you!")
/ fontstyle = ("Arial", 8%, true, false, false, false, 5, 1)
/ position = (50%, 50%)
/ size = (80%, 10%)
/ vjustify = center
/ valign = center
/ halign = center
</text>

**************************************************************************************************************
**************************************************************************************************************
    DEFAULTS
**************************************************************************************************************
**************************************************************************************************************
script requires Inquisit 6.1.0.0 or higher

<defaults>
/ canvasaspectratio = (4,3)
/ minimumversion = "6.1.0.0"
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txbgcolor = white
/ txcolor = (0, 0, 0)
/ inputdevice = mouse
</defaults>

********************
raw data
********************

<data>
/ columns = (build, computer.platform, date, time, subject, group, script.sessionid, blockcode, blocknum,
trialcode, trialnum,
parameters.immediateAmount, parameters.delayedAmount,
values.trialCount, values.choiceNo, values.index, values.indexAdjustment, values.delayChoice,
response, latency, values.ED50, values.k
parameters.taskduration,
stimulusitem, stimulusitem, values.choice1, values.choice2, values.choice3, values.choice4, values.choice5, values.correctchoice,
response, correct, latency, values.numcorrect_syn, values.numcorrect_ant, values.total_correct,
values.difficulty, values.solutionACC, values.mathproblem, values.correctsolution, values.presentedsolution, response, correct, latency,
list.ACC_1.itemcount, list.ACC_2.itemcount, list.ACC_3.itemcount, list.ACC_4.itemcount, list.ACC_5.itemcount)
</data>

****************************************************************************************************
general instruction expressions: adjust the instruction text depending on device used to run script
****************************************************************************************************
<expressions>
/ buttoninstruct1 = if (computer.touch && !computer.haskeyboard) {"response button";} else {"key";}
/ buttoninstruct2 = if (computer.touch && !computer.haskeyboard) {"Place your index finger over the SPACEBAR.";} else {"Place your index finger on the SPACEBAR.";}
/ buttoninstruct3 = if (computer.touch && !computer.haskeyboard) {"Tap";} else {"Click";}
</expressions>

<defaults>
/ canvasaspectratio = (4,3)
/ minimumversion = "6.1.0.0"
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txbgcolor = white
/ txcolor = (0, 0, 0)
/ inputdevice = mouse
</defaults>

You've set the global inputdevice to mouse, but some things in the scripts you include (e.g.a trial) expects keyboard input. That's where the error likely comes from. You need to find those pieces of the code and set the /inputdevice to keyboard there.