Ok, I have done some tests with the windows version of ASEBA studio (both versions 1.2.0 stable and newer 1.2.1) and I was able to reproduce your problem.
The VPL samples published on the site are not uploaded correctly by these Windows versions.
I have tried to create a VPL program from scratch and the content of the file does not match the content of the same sample produced with version 1.2.0 on LINUX.
Version 1.2.0 of ASEBA on LINUX and on Windows generates a different file format for VPL part.
The problem will not be present with the version 1.2.1. I have built the development version on LINUX and the VPL source code now is identical. The better thing to do is to update the sample file present in the Aseba site.
This is the new content of the file:
<!DOCTYPE aesl-source>
<network>
<!--list of global events-->
<!--list of constants-->
<!--show keywords state-->
<keywords flag="true"/>
<!--node thymio-II-->
<node name="thymio-II">var state = 0
var new_state = 0
call sound.system(-1)
call leds.temperature(0,0)
call leds.top(0,0,0)
call leds.circle(0,0,0,0,0,0,0,0)
onevent tap
call leds.top(32,0,0)
new_state = 1
if (state & 1) == 1 then
call leds.top(0,32,0)
end
if (state & 1) == 1 then
new_state = 0
end
state = new_state
call leds.temperature(((state>>0) & 1)*10+((state>>1) & 1)*22,((state>>2) & 1)*10+((state>>3) & 1)*22)
<toolsPlugins>
<ThymioVisualProgramming>
<vplroot>
<settings advanced-mode="true" color-scheme="0"/>
<buttonset action-name="color" event-name="tap" state="0" ab0="32" ab1="0" ab2="0"/>
<buttonset action-name="memory" event-name="tap" state="0" ab0="1" ab1="0" ab2="0" ab3="0"/>
<buttonset action-name="color" event-name="tap" state="1" ab0="0" ab1="32" ab2="0"/>
<buttonset action-name="memory" event-name="tap" state="1" ab0="0" ab1="0" ab2="0" ab3="0"/>
</vplroot>
</ThymioVisualProgramming>
</toolsPlugins>
</node>
</network>
Copy and paste this text into a .aesl file and try to open it from vpl.
As you can see the generated code is also a little bit optimized (so different than the previous code, but the behaviour is the same).