Dear all,
we just uploaded our script (partly posted below) to the web application toconduct a follow up test with our subjects. The scripts work flawlessly when werun them offline but in the online version our script produces this error:
Error /myaccount/scripts/XXXX/Gesamt_WZ_zuerst/Gesamt_WZ_zuerst.iqx.picture.Cuepraesentieren
Unable toinitialize item number 0. Verify the item exists and is correctly defined.
Does anyoneknow, why this error occurs and how to fix it?
Code of thebatch file:
<batch>
/file ="VP_Code.iqx"
/file = "Instruktionen.iqx"
/file = "WZ_Bedingung.iqx"
/file = "ZZ_Bedingung.iqx"
/file = "Mailliste.iqx"
</batch>
Code of the script:
<itemBilderWZCue1>
/1="1_1.jpg"
/2="2_1.jpg"
/3="3_1.jpg"
/4="4_1.jpg"
/5="5_1.jpg"
/6="6_1.jpg"
/7="7_1.jpg"
/8="8_1.jpg"
/9="9_1.jpg"
/10="10_1.jpg"
/11="11_1.jpg"
/12="12_1.jpg"
/13="13_1.jpg"
/14= "14_1.jpg"
/15= "15_1.jpg"
</item>
<item BilderWZCue2>
/1= "1_2.jpg"
/2= "2_2.jpg"
/3= "3_2.jpg"
/4= "4_2.jpg"
/5= "5_2.jpg"
/6= "6_2.jpg"
/7= "7_2.jpg"
/8= "8_2.jpg"
/9= "9_2.jpg"
/10= "10_2.jpg"
/11= "11_2.jpg"
/12= "12_2.jpg"
/13= "13_2.jpg"
/14= "14_2.jpg"
/15= "15_2.jpg"
</item>
<item BilderDis>
/1= "1_2.jpg"
/2= "2_2.jpg"
/3= "3_2.jpg"
/4= "4_2.jpg"
/5= "5_2.jpg"
/6= "6_2.jpg"
/7= "7_2.jpg"
/8= "8_2.jpg"
/9= "9_2.jpg"
/10= "10_2.jpg"
/11= "11_2.jpg"
/12= "12_2.jpg"
/13= "13_2.jpg"
/14= "14_2.jpg"
/15= "15_2.jpg"
</item>
<picture BilderWZCue1>
/items = BilderWZCue1
/select = noreplace
/position =(20 ,40)
/ size =(300,300)
</picture>
Position derAntwortmöglichkeiten: vertikale Positionen randomisiert variiert
<list randomvpos>
/items = (10%, 35%, 60%, 85%)
/selectionrate = always
</list>
<picture korrekteAntwort>
/items = BilderWZCue2
/select = picture.BilderWZCue1.currentindex
/vposition = values.korrektvpos
/ size = (300,300)
/ hposition = 60
</picture>
<counter picselector>
/select = noreplacenorepeat(1,2,3,4,5,6,7,8,9,10,11,12,13,14)
/selectionrate = always
/allowrepeats = false
</counter>
<picture Distraktor2>
/items = BilderDis
/select = picselector
/vposition = values.distraktor2vpos
/ size = (300,300)
/ hposition = 60
</picture>
<picture Distraktor3>
/items = BilderDis
/select = picselector
/vposition = values.distraktor3vpos
/ size = (300,300)
/ hposition = 60
</picture>
<picture Distraktor4>
/items = BilderDis
/select = picselector
/vposition = values.distraktor4vpos
/ size = (300,300)
/ hposition = 60
</picture>
<list Liste1>
</list>
<pictureCuepräsentieren>
/items = BilderWZCue1
/select = list.Liste1
/position = (20 ,50)
/size = (300,300)
</picture>
<item Auswahlmglkt>
/1 ="1."
/2 ="2."
/3 ="3."
/4 ="4."
</item>
<itemText>
/1 ="Wähle den zugehörigen Paarling aus!"
</item>
<counter picselector2>
/select = sequence(1,2,3,4)
/selectionrate =always
</counter>
<text 1>
/items = Auswahlmglkt
/select = picselector2
/ position = (50,10)
/ fontstyle = ("Arial",40)
</text>
<text 2>
/items = Auswahlmglkt
/select = picselector2
/ position = (50,35)
/ fontstyle = ("Arial",40)
</text>
<text 3>
/items = Auswahlmglkt
/select = picselector2
/ position = (50,60)
/ fontstyle = ("Arial",40)
</text>
<text 4>
/items = Auswahlmglkt
/select = picselector2
/ position = (50,85)
/ fontstyle = ("Arial",40)
</text>
<text Text>
/items = Text
/ select = noreplace
/ fontstyle = ("Arial", 30)
/position = (20,10)
</text>
<trial Präsentation>
/stimulustimes = [0=BilderWZCue1]
/timeout = 0
/recorddata = false
</trial>
<values>
/ korrektvpos = 0
/distraktor2vpos = 0
/distraktor3vpos = 0
/distraktor4vpos = 0
/korrektetaste = 0
</values>
<trial Präsentation2>
/ontrialbegin =[item.BilderDis.removeitem(picture.BilderWZCue1.currentindex)]
/ontrialbegin = [list.Liste1.appenditem(picture.BilderWZCue1.currentindex)]
/ ontrialbegin = [
values.korrektvpos =list.randomvpos.nextvalue;
values.distraktor2vpos =list.randomvpos.nextvalue;
values.distraktor3vpos =list.randomvpos.nextvalue;
values.distraktor4vpos =list.randomvpos.nextvalue;
]
/ ontrialbegin = [
if (values.korrektvpos == 10%)values.korrektetaste = 2
else if (values.korrektvpos ==35%) values.korrektetaste = 3
else if (values.korrektvpos ==60%) values.korrektetaste = 4
else if (values.korrektvpos ==85%) values.korrektetaste = 5
]
/stimulustimes= [0=Cuepräsentieren, korrekteAntwort, Distraktor2, Distraktor3, Distraktor4,1, 2, 3, 4, Text]
/ inputdevice = keyboard
/ validresponse = ("1", "2", "3","4")
/ iscorrectresponse = [trial.Präsentation2.response ==values.korrektetaste]
/ontrialend = [item.BilderDis.reset()]
/ontrialend = [list.Liste1.reset()]
</trial>
<blockBlock1>
/ preinstructions= (Instruktion1)
/trials =[1-15 = sequence(Präsentation, Präsentation2)]
</block>
<pageInstruktion1>
Nun folgendie Kombinationen aus Wort und Zeichen.
</page>