Quinto game in SBE

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

Quinto game in SBE

Steve Moffitt
Hi Bill --
The game works fine in my image.
1) The first thing I would look at is when the debugger comes up I  
would select the second line from the top of the list that is shown  
in the top pane of the debugger. When you do that the debugger opens  
and will have the offending message highlighted. I would select the  
object that is getting that message and cmd-i ( or ctl-i ) which  
brings up an inspector which will show you if you really have  
aSBECell or not. If you are not getting the right object there is  
probably something in the code that you did not copy correctly. Did  
you type the instructions in ?
2) same steps as one.

By the way the code for the examples can be downloaded from  
squeaksource.com

Steve
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Quinto game in SBE

onierstrasz

You can also grab all the example code in ascii from the book's web  
site (since copying and pasting from PDF does not work reliably).

https://www.iam.unibe.ch/scg/svn_repos/SqueakByExample/examples.txt

Just taking the already-working example from squeaksource is too much  
like cheating ... ;-)

Oscar

On Sep 19, 2007, at 17:49, Steve Moffitt wrote:

> By the way the code for the examples can be downloaded from  
> squeaksource.com

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Quinto game in SBE

onierstrasz

I just noticed that the example code extraction was buggy.  It is  
fixed now, and all the code from the Quinto chapter is now in the  
ascii example file.

Oscar

On Sep 19, 2007, at 18:22, Oscar Nierstrasz wrote:

>
> You can also grab all the example code in ascii from the book's web  
> site (since copying and pasting from PDF does not work reliably).
>
> https://www.iam.unibe.ch/scg/svn_repos/SqueakByExample/examples.txt
>
> Just taking the already-working example from squeaksource is too  
> much like cheating ... ;-)
>
> Oscar
>
> On Sep 19, 2007, at 17:49, Steve Moffitt wrote:
>
>> By the way the code for the examples can be downloaded from  
>> squeaksource.com
>


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Quinto game in SBE

Bill Kerr
In reply to this post by Steve Moffitt
thanks for suggestions

turns out that my problem was that I was using an old 3.8 image

I learnt from the book how to file out and file in - as soon as I tested my code in the 3.9 image it worked fine!

A friend sent me some other information from the bugs site pointing out a bug in SimpleSwitchMorph in earlier versions:
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://bugs.squeak.org/print_bug_page.php?bug_id=3530" target="_blank"> http://bugs.squeak.org/print_bug_page.php?bug_id=3530

 Summary:        0003530: SimpleSwitchMorph does not actually implement
switch functionality

--
Bill Kerr
http://billkerr2.blogspot.com/


On 9/20/07, Steve Moffitt <[hidden email]> wrote:
Hi Bill --
The game works fine in my image.
1) The first thing I would look at is when the debugger comes up I
would select the second line from the top of the list that is shown
in the top pane of the debugger. When you do that the debugger opens
and will have the offending message highlighted. I would select the
object that is getting that message and cmd-i ( or ctl-i ) which
brings up an inspector which will show you if you really have
aSBECell or not. If you are not getting the right object there is
probably something in the code that you did not copy correctly. Did
you type the instructions in ?
2) same steps as one.

By the way the code for the examples can be downloaded from
squeaksource.com

Steve
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Quinto game in SBE

dcorking
Bill Kerr wrote:

> Problems:
> 1) the final line of the SBECell initialize method:
> self turnOff
> triggers a MessageNotUnderstood error
> doesNotUnderstand: #turnOff

...

> turns out that my problem was that I was using an old 3.8 image
>
> I learnt from the book how to file out and file in - as soon as I tested my
> code in the 3.9 image it worked fine!
>
>  A friend sent me some other information from the bugs site pointing out a
> bug in SimpleSwitchMorph in earlier versions:
>  http://bugs.squeak.org/print_bug_page.php?bug_id=3530
>
>  Summary:        0003530: SimpleSwitchMorph does not actually implement
> switch functionality

In 2007,  many people's introduction to Squeak may be with an image
derived from 3.8 (*).  So I wonder if the book should not mention this
patch prominently at the start of the First Application chapter.

By the way, I probably learned a lot about Squeak by wrestling with
this for a while this weekend without access to internet or a 3.9
image :)

David

(*) such as Croquet SDK, OLPC Etoys ...
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: [croquet-dev] Re: Quinto game in SBE

Andreas.Raab
Hi David -

If you can find a bit of time to assemble a set of patches which will
make those examples work, I'd be happy to fold them into the system to
make sure these examples work out of the box.

Cheers,
   - Andreas

David Corking wrote:

> Bill Kerr wrote:
>
>> Problems:
>> 1) the final line of the SBECell initialize method:
>> self turnOff
>> triggers a MessageNotUnderstood error
>> doesNotUnderstand: #turnOff
>
> ...
>
>> turns out that my problem was that I was using an old 3.8 image
>>
>> I learnt from the book how to file out and file in - as soon as I tested my
>> code in the 3.9 image it worked fine!
>>
>>  A friend sent me some other information from the bugs site pointing out a
>> bug in SimpleSwitchMorph in earlier versions:
>>  http://bugs.squeak.org/print_bug_page.php?bug_id=3530
>>
>>  Summary:        0003530: SimpleSwitchMorph does not actually implement
>> switch functionality
>
> In 2007,  many people's introduction to Squeak may be with an image
> derived from 3.8 (*).  So I wonder if the book should not mention this
> patch prominently at the start of the First Application chapter.
>
> By the way, I probably learned a lot about Squeak by wrestling with
> this for a while this weekend without access to internet or a 3.9
> image :)
>
> David
>
> (*) such as Croquet SDK, OLPC Etoys ...
>
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Quinto game in SBE

onierstrasz
In reply to this post by dcorking

Hi David,

I made a note to underline this for the next edition.  It *is* stated  
prominently at the beginning of the Quick Start chapter, but I guess  
the chapters should be more independent of each other for the Quicker  
Starters!

Thanks for the feedback!

Oscar

On Sep 24, 2007, at 19:10, David Corking wrote:

> In 2007,  many people's introduction to Squeak may be with an image
> derived from 3.8 (*).  So I wonder if the book should not mention this
> patch prominently at the start of the First Application chapter.
>
> By the way, I probably learned a lot about Squeak by wrestling with
> this for a while this weekend without access to internet or a 3.9
> image :)
>

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Quinto game in SBE

Bert Freudenberg
In reply to this post by Andreas.Raab
Likewise for OLPC.

- Bert -


On Sep 24, 2007, at 19:14 , Andreas Raab wrote:

> Hi David -
>
> If you can find a bit of time to assemble a set of patches which  
> will make those examples work, I'd be happy to fold them into the  
> system to make sure these examples work out of the box.
>
> Cheers,
>   - Andreas
>
> David Corking wrote:
>> Bill Kerr wrote:
>>> Problems:
>>> 1) the final line of the SBECell initialize method:
>>> self turnOff
>>> triggers a MessageNotUnderstood error
>>> doesNotUnderstand: #turnOff
>> ...
>>> turns out that my problem was that I was using an old 3.8 image
>>>
>>> I learnt from the book how to file out and file in - as soon as I  
>>> tested my
>>> code in the 3.9 image it worked fine!
>>>
>>>  A friend sent me some other information from the bugs site  
>>> pointing out a
>>> bug in SimpleSwitchMorph in earlier versions:
>>>  http://bugs.squeak.org/print_bug_page.php?bug_id=3530
>>>
>>>  Summary:        0003530: SimpleSwitchMorph does not actually  
>>> implement
>>> switch functionality
>> In 2007,  many people's introduction to Squeak may be with an image
>> derived from 3.8 (*).  So I wonder if the book should not mention  
>> this
>> patch prominently at the start of the First Application chapter.
>> By the way, I probably learned a lot about Squeak by wrestling with
>> this for a while this weekend without access to internet or a 3.9
>> image :)
>> David
>> (*) such as Croquet SDK, OLPC Etoys ...


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Quinto game in SBE

dcorking
In reply to this post by onierstrasz
On 9/24/07, Oscar Nierstrasz  wrote:

> I made a note to underline this for the next edition.  It *is* stated
> prominently at the beginning of the Quick Start chapter, but I guess
> the chapters should be more independent of each other for the Quicker
> Starters!

Yes I did see that, but to be honest I thought I was more likely to be
at fault than the image forks I was playing with (and I didn't have
internet access to try >= 3.9 image at the time) !    Since the 3.8
forks have become as mainstream as 'mainstream' then a footnote where
the dependency arises will be a nice extra touch.

On the other hand, the issue shows a real, if small, benefit of a
production fork tracking mainstream where compatible.

Andreas wrote:
> If you can find a bit of time to assemble a set of patches which will
> make those examples work, I'd be happy to fold them into the system to
> make sure these examples work out of the box.

Bert wrote:
> Likewise for OLPC.

I was under the impression that Marcus's changeset was likely to be an
adequate patch.
http://bugs.squeak.org/file_download.php?file_id=1399&type=bug
However, I will try it against the OLPC and Croquet images on my
desktop and report back.

I will need to read more of SBE to learn not to use 'diff' and 'patch' :)

David
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Re: Quinto game in SBE

Scott Wallace-2
In reply to this post by Bert Freudenberg
The olpc etoys image now contains the compatibility code, as update  
1666simpleSwitchMorph-apb for etoys2.2.

For the moment, the TestCase subclass included with Andrew's fileout  
is omitted, since SUnit is absent from the olpc and Squeakland plug-
in images.  In due course we'll get that SimpleSwitchMorphTest code  
into the development version of the olpc code base, however.

   -- Scott


On Sep 24, 2007, at 12:48 PM, Bert Freudenberg wrote:

> Likewise for OLPC.
>
> - Bert -
>
>
> On Sep 24, 2007, at 19:14 , Andreas Raab wrote:
>
>> Hi David -
>>
>> If you can find a bit of time to assemble a set of patches which  
>> will make those examples work, I'd be happy to fold them into the  
>> system to make sure these examples work out of the box.
>>
>> Cheers,
>>   - Andreas
>>
>> David Corking wrote:
>>> Bill Kerr wrote:
>>>> Problems:
>>>> 1) the final line of the SBECell initialize method:
>>>> self turnOff
>>>> triggers a MessageNotUnderstood error
>>>> doesNotUnderstand: #turnOff
>>> ...
>>>> turns out that my problem was that I was using an old 3.8 image
>>>>
>>>> I learnt from the book how to file out and file in - as soon as  
>>>> I tested my
>>>> code in the 3.9 image it worked fine!
>>>>
>>>>  A friend sent me some other information from the bugs site  
>>>> pointing out a
>>>> bug in SimpleSwitchMorph in earlier versions:
>>>>  http://bugs.squeak.org/print_bug_page.php?bug_id=3530
>>>>
>>>>  Summary:        0003530: SimpleSwitchMorph does not actually  
>>>> implement
>>>> switch functionality
>>> In 2007,  many people's introduction to Squeak may be with an image
>>> derived from 3.8 (*).  So I wonder if the book should not mention  
>>> this
>>> patch prominently at the start of the First Application chapter.
>>> By the way, I probably learned a lot about Squeak by wrestling with
>>> this for a while this weekend without access to internet or a 3.9
>>> image :)
>>> David
>>> (*) such as Croquet SDK, OLPC Etoys ...
>
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: [croquet-dev] Re: Quinto game in SBE

dcorking
In reply to this post by Andreas.Raab
Andreas, I am following up on an old thread,

> > Bill Kerr wrote:

> >>  A friend sent me some other information from the bugs site pointing out a
> >> bug in SimpleSwitchMorph in earlier versions:
> >>  http://bugs.squeak.org/print_bug_page.php?bug_id=3530
> >>
> >>  Summary:        0003530: SimpleSwitchMorph does not actually implement
> >> switch functionality

On 9/24/07, Andreas Raab wrote:

> Hi David -
>
> If you can find a bit of time to assemble a set of patches which will
> make those examples work, I'd be happy to fold them into the system to
> make sure these examples work out of the box.

I tested Marcus Denker's original changeset SwitchMorphEnh.2.cs at
http://bugs.squeak.org/file_download.php?file_id=1399&type=bug
in a Croquet SDK image
Croquet.1.0.18.9
from the Wisconsin Croquet Collaborative.

If works great and the example First Application in Squeak By Example
is perfectly playable as it should be.  Hope that helps.

Would you like me to test against any other images?

David
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: [croquet-dev] Re: Quinto game in SBE

Andreas.Raab
David Corking wrote:
> I tested Marcus Denker's original changeset SwitchMorphEnh.2.cs at
> http://bugs.squeak.org/file_download.php?file_id=1399&type=bug
> in a Croquet SDK image
> Croquet.1.0.18.9
>>from the Wisconsin Croquet Collaborative.
>
> If works great and the example First Application in Squeak By Example
> is perfectly playable as it should be.  Hope that helps.

It will, thanks!

> Would you like me to test against any other images?

It may be useful to see if it works for the OLPC line of images as well.

Cheers,
   - Andreas
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: [croquet-dev] Re: Quinto game in SBE

Scott Wallace-2
The SwitchMorph code for compatibility with Squeak by Example was  
pushed to the olpc update stream last month.

Cheers,

   -- Scott


On Oct 3, 2007, at 5:32 PM, Andreas Raab wrote:

> David Corking wrote:
>> I tested Marcus Denker's original changeset SwitchMorphEnh.2.cs at
>> http://bugs.squeak.org/file_download.php?file_id=1399&type=bug
>> in a Croquet SDK image
>> Croquet.1.0.18.9
>>> from the Wisconsin Croquet Collaborative.
>> If works great and the example First Application in Squeak By Example
>> is perfectly playable as it should be.  Hope that helps.
>
> It will, thanks!
>
>> Would you like me to test against any other images?
>
> It may be useful to see if it works for the OLPC line of images as  
> well.
>
> Cheers,
>   - Andreas
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners