blocos bug

2 views
Skip to first unread message

brett

unread,
Nov 12, 2009, 1:08:50 PM11/12/09
to br-...@googlegroups.com
I'm having troubles opening Blocos files that have more than 1 motor
selected in the commands. As an example, I assembled blocks to create a
simple program that would turn on 2 motors, wait 2 seconds, and then
shut them off. The generated logo code shows:

to start
ab, on
wait 20
ab, off
end


When I save the file, the file shows both motors in the code:

<?xml version="1.0" ?><blocks><block type="startblock"><prop name="y"
type="int">10</prop><prop name="x" type="int">10</prop><prop
name="layer" type="int">1</prop><prop name="selected"
type="bool">False</prop></block><block type="onblock"><prop name="y"
type="int">49</prop><prop name="x" type="int">10</prop><prop
name="layer" type="int">2</prop><prop name="selected"
type="bool">False</prop><prop name="motorsid"
type="string">ab</prop></block><block type="waitblock"><prop name="y"
type="int">88</prop><prop name="x" type="int">10</prop><prop
name="layer" type="int">3</prop><prop name="selected"
type="bool">False</prop></block><block type="timeblock"><prop name="y"
type="int">97</prop><prop name="x" type="int">83</prop><prop
name="layer" type="int">4</prop><prop name="selected"
type="bool">False</prop><prop name="number"
type="int">20</prop></block><block type="offblock"><prop name="y"
type="int">128</prop><prop name="x" type="int">10</prop><prop
name="layer" type="int">6</prop><prop name="selected"
type="bool">True</prop><prop name="motorsid"
type="string">ab</prop></block></blocks>


But when I try to open the file again in Blocos, the "ON" block only
show motor "a" and the "OFF" block only shows motor "a". I have noticed
the same thing with the Clockwise block. Here is the generated logo
code from the above file when it is re-opened in Blocos.

to start
a, on
wait 20
a, off
end


If I only select a single motor, such as motor "B", it re-opens as motor
"B", so the problem only happens when more than 1 motor is selected. I
am using Revision 103 of Blocos.



Brett


Lucas Tanure

unread,
Nov 12, 2009, 6:58:44 PM11/12/09
to br-...@googlegroups.com
Hi Brett,
The bug is fixed. New 104 version at trunk folder. And I would like to say: " Thank you, very much!!"
You're the only user who give us some feedback. Please , keep asking.



Lucas A. Tanure Alves
Centro de Tecnologia da Informação Renato Archer
Equipe de Desenvolvimento Gogo Board Brasil
+55 (19) 88176559
Reply all
Reply to author
Forward
0 new messages