The Squeak MUD

Boris Gaertner Boris.Gaertner at gmx.net
Thu Mar 10 10:59:35 UTC 2005


"Blake" <blake at kingdomrpg.com> wrote:

> It installs under 3.7 but it won't initialize. I found this startup code:
> 
> | server |
> server := NebraskaServer new.
> server startListeningOnPort: 9091.
> (NebraskaServerMorph new server: server) openInWorld.
> 
> I tracked down the error from new, to initialize, to this code:
> 
> self extent: 800 at 600 depth:16
> 
> Then to extent:
> 
> world extent: newExtent.
> 
The correct way to create an instance of NebraskaServer is either

  NebraskaServer serveWorld: World

or

  NebraskaServer serveWorld: World onPort: <aPortNumber>

These initialize the instance, but a simple NebraskaServer  new  does not.


To open a NebraskaServerMorph, it is seemingly sufficient to
write:

 NebrasaServerMorph serveWorld: World onPort: 9091.

This creates a server, registers it with the current world and
opens the morph. The morph in turn obtains the server
from the current world. A bit tricky, but it works.

Hope this helps
Boris



More information about the Squeak-dev mailing list