Little Problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Little Problem

Kelly-10
Hey there,
 
I have something that is just baffling me. Maybe it is just due to lack of experience but I hope someone can help me out.
 
I have a script to draw a square. It works fine if I start it myself by setting it to ticking. However I have created a button to fire the script and when I press it is draws a triangle!! I have been trying to work out what I have been doing wrong for hours and I am just baffled. Have I made some rookie mistake?? Thanks
 
Regards
 
Kelly
 
 
 

screenGrab.jpg (59K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Little Problem

Scott Wallace
Hi, Kelly,

Hmm... I exactly replicated the scripts you depicted, hoping to
reproduce the phenomenon you report, but I couldn't -- it would not
misbehave!   My experience was that the square gets drawn whether I
initiate action by hitting a "button to fire the script" which I'd
torn off or by manually "running" the script, and I never once got a
triangle instead...

So it would seem that whatever is misbehaving for you is caused by
factors not visible in the screen-shot you sent.  Maybe you have more
than one "pencil" object and some of the "pencil" tiles in you script
refer to another copy of it, or maybe you have some other unseen and
forgotten script from some earlier effort which is somehow having an
effect on what's happening.

In any case, to make progress on this I think we need to get an
actual copy of your project -- so please, if you would, email us your
project.  If it's of modest size, you could email it to the
Squeakland list, else just email it privately to me.

We'll get to the bottom of this!

Cheers,

   -- Scott


At 10:43 PM +0000 2/28/06, Kelly wrote:

>Hey there,
>
>I have something that is just baffling me. Maybe it is just due to
>lack of experience but I hope someone can help me out.
>
>I have a script to draw a square. It works fine if I start it myself
>by setting it to ticking. However I have created a button to fire
>the script and when I press it is draws a triangle!! I have been
>trying to work out what I have been doing wrong for hours and I am
>just baffled. Have I made some rookie mistake?? Thanks
>
>Regards
>
>Kelly
>
>Content-Disposition: attachment; filename="screenGrab.jpg"
>
>_______________________________________________
>Squeakland mailing list
_______________________________________________
Squeakland mailing list
[hidden email]
http://squeakland.org/mailman/listinfo/squeakland
Reply | Threaded
Open this post in threaded view
|

Re: Little Problem

Randy Heiland
Two other suggestions, fwiw - perhaps useful for future "debugging":

- on the menu halo of the button, the last item is 'open underlying
scriptor'
- on the top row of a script, there is an empty square icon which lets you
toggle between tiles and text display of your script (in text mode, you'll
have a scrollbar for longer scripts).  In the past, I've had situations
where a tile might show that it's operating on one sketch when, in fact,
it's operating on a different named sketch (what Scott was alluding to).
Then when I would toggle back to tile display, the tile(s) would be
"corrected" to reflect what was in the text.

--Randy

> -----Original Message-----
> From: [hidden email] [mailto:squeakland-
> [hidden email]] On Behalf Of Scott Wallace
> Sent: Wednesday, March 01, 2006 2:10 AM
> To: Kelly
> Cc: [hidden email]
> Subject: Re: [Squeakland] Little Problem
>
> Hi, Kelly,
>
> Hmm... I exactly replicated the scripts you depicted, hoping to
> reproduce the phenomenon you report, but I couldn't -- it would not
> misbehave!   My experience was that the square gets drawn whether I
> initiate action by hitting a "button to fire the script" which I'd
> torn off or by manually "running" the script, and I never once got a
> triangle instead...
>
> So it would seem that whatever is misbehaving for you is caused by
> factors not visible in the screen-shot you sent.  Maybe you have more
> than one "pencil" object and some of the "pencil" tiles in you script
> refer to another copy of it, or maybe you have some other unseen and
> forgotten script from some earlier effort which is somehow having an
> effect on what's happening.
>
> In any case, to make progress on this I think we need to get an
> actual copy of your project -- so please, if you would, email us your
> project.  If it's of modest size, you could email it to the
> Squeakland list, else just email it privately to me.
>
> We'll get to the bottom of this!
>
> Cheers,
>
>    -- Scott
>
>
> At 10:43 PM +0000 2/28/06, Kelly wrote:
> >Hey there,
> >
> >I have something that is just baffling me. Maybe it is just due to
> >lack of experience but I hope someone can help me out.
> >
> >I have a script to draw a square. It works fine if I start it myself
> >by setting it to ticking. However I have created a button to fire
> >the script and when I press it is draws a triangle!! I have been
> >trying to work out what I have been doing wrong for hours and I am
> >just baffled. Have I made some rookie mistake?? Thanks
> >
> >Regards
> >
> >Kelly
> >
> >Content-Disposition: attachment; filename="screenGrab.jpg"
> >
> >_______________________________________________
> >Squeakland mailing list
> _______________________________________________
> Squeakland mailing list
> [hidden email]
> http://squeakland.org/mailman/listinfo/squeakland

_______________________________________________
Squeakland mailing list
[hidden email]
http://squeakland.org/mailman/listinfo/squeakland
Reply | Threaded
Open this post in threaded view
|

Re: Little Problem

Kelly-10
Yes I do have a triangle script also but it also misbehaves in the same way. Draws a triangle when I manually start the script but with the button firing the script it only draws a line!!
 
I do however have previous scripts that could be, as someone suggested interfering somehow.
I will investigate further, perhaps after sleeping on it I will see what I have been doing wrong.
 
In the meantime I have attached my project.
 
I would (and probably still will) start over with a fresh project. But since this is part of my honours project for Uni it gives me something interesting to write about. Besides I am just curious to see why??
 
In the meantime I have attached my project. Thanks for all your help.
 
Regards
 
Kelly

 
On 01/03/06, Randy Heiland <[hidden email]> wrote:
Two other suggestions, fwiw - perhaps useful for future "debugging":

- on the menu halo of the button, the last item is 'open underlying
scriptor'
- on the top row of a script, there is an empty square icon which lets you
toggle between tiles and text display of your script (in text mode, you'll
have a scrollbar for longer scripts).  In the past, I've had situations
where a tile might show that it's operating on one sketch when, in fact,
it's operating on a different named sketch (what Scott was alluding to).
Then when I would toggle back to tile display, the tile(s) would be
"corrected" to reflect what was in the text.

--Randy

> -----Original Message-----
> From: [hidden email] [mailto: [hidden email]
> [hidden email]] On Behalf Of Scott Wallace
> Sent: Wednesday, March 01, 2006 2:10 AM
> To: Kelly
> Cc: [hidden email]
> Subject: Re: [Squeakland] Little Problem
>
> Hi, Kelly,
>
> Hmm... I exactly replicated the scripts you depicted, hoping to
> reproduce the phenomenon you report, but I couldn't -- it would not
> misbehave!   My experience was that the square gets drawn whether I
> initiate action by hitting a "button to fire the script" which I'd
> torn off or by manually "running" the script, and I never once got a
> triangle instead...
>
> So it would seem that whatever is misbehaving for you is caused by
> factors not visible in the screen-shot you sent.  Maybe you have more
> than one "pencil" object and some of the "pencil" tiles in you script
> refer to another copy of it, or maybe you have some other unseen and
> forgotten script from some earlier effort which is somehow having an
> effect on what's happening.
>
> In any case, to make progress on this I think we need to get an
> actual copy of your project -- so please, if you would, email us your
> project.  If it's of modest size, you could email it to the
> Squeakland list, else just email it privately to me.
>
> We'll get to the bottom of this!
>
> Cheers,
>
>    -- Scott
>
>
> At 10:43 PM +0000 2/28/06, Kelly wrote:
> >Hey there,
> >
> >I have something that is just baffling me. Maybe it is just due to
> >lack of experience but I hope someone can help me out.
> >
> >I have a script to draw a square. It works fine if I start it myself
> >by setting it to ticking. However I have created a button to fire
> >the script and when I press it is draws a triangle!! I have been
> >trying to work out what I have been doing wrong for hours and I am
> >just baffled. Have I made some rookie mistake?? Thanks
> >
> >Regards
> >
> >Kelly
> >
> >Content-Disposition: attachment; filename="screenGrab.jpg"
> >
> >_______________________________________________
> >Squeakland mailing list
> _______________________________________________
> Squeakland mailing list
> [hidden email]
> http://squeakland.org/mailman/listinfo/squeakland



drawingShapes.004.pr (51K) Download Attachment