Create a simple space

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

Create a simple space

Matthew Schmidt-2
This is probably a silly question.

I've been trying for who knows how long to initialize a simple space. I need to develop some working prototypes and I've run into a brick wall. I've bought and read books on Squeak, and I can build simple things in Squeak... I'm in frustration city here!

Could someone give me a simple script for initializing a space with a floor and a light? Something I can paste into a workspace, accept, and do it?

That's all I need to get started... and I've been banging my head on this for months...

I don't doubt that this is like 3 lines of code and is likely trivial for one of our Squeak/Smalltalk gods...

Many, many thanks,

Matt
Reply | Threaded
Open this post in threaded view
|

Re: Create a simple space

Denis Crowdy
Matthew Schmidt wrote:

> This is probably a silly question.
>
> I've been trying for who knows how long to initialize a simple space. I
> need to develop some working prototypes and I've run into a brick wall.
> I've bought and read books on Squeak, and I can build simple things in
> Squeak... I'm in frustration city here!
>
> Could someone give me a simple script for initializing a space with a
> floor and a light? Something I can paste into a workspace, accept, and
> do it?
I'm new to it too, but had success with the tutorial series at:

http://www.dmu.com/crb/crb0.html

Try jumping to the "receiving classes" page, import the four classes as
discussed, then run the code suggested in a workspace.

I managed to get a simple world going which I can now modify - mucking
around with dragcubes with sound and music samples attached to them -
ludicrous amounts of fun!

Denis

--
Dr Denis Crowdy
Department of Contemporary Music Studies, Macquarie University
+61 2 9850 6787
http://www.dcms.mq.edu.au
http://www.motekulo.net    http://www.melanesianmusic.org

Reply | Threaded
Open this post in threaded view
|

Re: Create a simple space

Andreas.Raab
In reply to this post by Matthew Schmidt-2
Look at class SimpleWorld. Its initialize method is a script for setting
up an extremely simple world.

Cheers,
   - Andreas

Matthew Schmidt wrote:

> This is probably a silly question.
>
> I've been trying for who knows how long to initialize a simple space. I
> need to develop some working prototypes and I've run into a brick wall.
> I've bought and read books on Squeak, and I can build simple things in
> Squeak... I'm in frustration city here!
>
> Could someone give me a simple script for initializing a space with a
> floor and a light? Something I can paste into a workspace, accept, and
> do it?
>
> That's all I need to get started... and I've been banging my head on
> this for months...
>
> I don't doubt that this is like 3 lines of code and is likely trivial
> for one of our Squeak/Smalltalk gods...
>
> Many, many thanks,
>
> Matt
Reply | Threaded
Open this post in threaded view
|

Re: Create a simple space

Matthew Schmidt-2

Look at class SimpleWorld. Its initialize method is a script for setting
up an extremely simple world.

Vielen Dank für die Antwort, Andreas.

I've tried that multiple times... No matter what I do, I get an error (see screenshot below).

http://lh3.google.com/matthew.schmidt/RwQ-tmS80VI/AAAAAAAABUc/SbuxJ2tRLus/s800/Picture%201.png

Try jumping to the "receiving classes" page, import the four classes as
discussed, then run the code suggested in a workspace.

I have done this and I am able to run a world based on the tutorial. I can also manipulate that world. But I am unable to generalize from the examples. Too much cognitive load for me with the poor English, overcoming the technology hurdles, etc.

For what it's worth, I plan to document every step of the way on a blog. I believe this will be orders of magnitude more helpful than the DMU courses.

Thanks Again,

-Matt
Reply | Threaded
Open this post in threaded view
|

Re: Create a simple space

Andreas.Raab
Matthew Schmidt wrote:
> Vielen Dank für die Antwort, Andreas.

Nix zu danken.

> I've tried that multiple times... No matter what I do, I get an error
> (see screenshot below).
>
> http://lh3.google.com/matthew.schmidt/RwQ-tmS80VI/AAAAAAAABUc/SbuxJ2tRLus/s800/Picture%201.png

Yes, I see. The problem is that you are missing 90% of the setup code
that is required to get a Croquet world going. You need to create a
replicated island first, and then you need to put this stuff in there.
What I would recommend you do is to modify SimpleWorld itself or create
a copy of SimpleWorld (call it MySimpleWorld) and replace the use of
SimpleWorld in CroquetHarness>>setupMaster (first line) with
MySimpleWorld. This will allow you to do your experiments.

In any case, just executing this script in a workspace, without the
necessary environment to run in, can't work.

Cheers,
   - Andreas