Bert Freudenberg | 28 Aug 21:53

Re: Request: type as argument name

Am 28.08.2008 um 19:23 schrieb Waldemar Schwan:

> Well thats the point. I'm still trying to understand how to use  
> overlays and ghost.

Well, if you browse the instance variable refs to "ghost" you'll find  
it is sent #ghostFrames, which is only implemented by TGhostGroup.

So there you are, make that method "ghost: aGhostGroup".

- Bert -

> Am 28.08.2008 um 18:53 schrieb Bert Freudenberg:
>
>>
>> Am 28.08.2008 um 18:31 schrieb Waldemar Schwan:
>>
>>> Hello everyone.
>>>
>>> This is an request to the developer of Croquet.
>>>
>>> For me, developing in Smalltalk, it war allways a good hint when  
>>> arguments named like the expected type.
>>>
>>> example:
>>> 	add: aCharacter map at: aCharacter asciiValue+1 put: 1.
>>>
>>> Currently in Croquet there are some methods where this is not the  
>>> case like:
>>> 	TPortal>>ghost: g
(Continue reading)

Waldemar Schwan | 28 Aug 18:27

Request: type as argument name

Hello everyone.

This is an request to the developer of Croquet.

For me, developing in Smalltalk, it war allways a good hint when  
arguments named like the expected type.

example:
	add: aCharacter map at: aCharacter asciiValue+1 put: 1.

Currently in Croquet there are some methods where this is not the case  
like:
	TPortal>>ghost: g
		ghost := g.

It whould be great if you can change this in an later release.
For me small things like this makes life easyer and developing more  
fun because you spend less time searching for the right classes.

Cheers
	Waldemar

Waldemar Schwan | 28 Aug 15:24

How to use overlays?

Hello everyone.

I'm trying to generate a TPortal only visible to the user using the  
local machine, linking to an Island althow just localy avalible. To  
accomplish that I tryed to use an overlay containing the discribed  
TPortal, but I'm having some toubled setting up an Overlay.

Knows anybody a place to find an example about using overlays?

Thanks for any help.

	Waldemar

Waldemar Schwan | 23 Aug 11:40

connection troubles

Hello everyone. Youre where a great help so far enabling me to push my work further. Thanks a lot for that.

I have some connection troubles since I created my own Harness and made some changed to CroquetMaster. Sometimes I get an MessageNotUnterstand-Error

screenshot:

occuring in 

TRemoteController>>beServer
"Act as a server, e.g., a participant trusted to replicate an island."
| joinFacet serveFacet |
"Revoke the prior #recv/serve facets"
serveFacet := facets at: #serve ifAbsent:[nil].
serveFacet ifNotNil:[self revokeMessageFacet: serveFacet].

"Create a new #serve facet"
serveFacet := self addMessageFacet: #serve:from:.
facets at: #serve put: serveFacet.

joinFacet := facets at: #beServer.
connection outQueue nextPut: (TDatagram facet: joinFacet data: serveFacet).

I spend 3 days searching for the reasion, but because its happening randomliy, I'm completly stumbed.

My changed to CroquetMaster where: 
CroquetMaster>>setup

"harness := CroquetHarness new."
harness := CBHarness new.
[harness setupMaster.]
on: CBLoginError
do: [ :err |
Transcript show: err; cr.
self delete.
].
harness addOverlay: self.



CBHarness:
setupMaster
| sync world worldSpace wpc portalToLib toLibPostcard |


"MyWorld"
world := self createIsland: CBMyWorld named: 'Master'.
worldSpace := world future at: #masterSpace.
portalToLib := world future at: #portalToLib.

wpc := worldSpace future postcard.
toLibPostcard := portalToLib future postcard.

wpc whenResolved:[
self addIsland: world postcard: wpc value.
sync := viewPortal future postcardLink: wpc value.
sync whenResolved:[doRender := true]. "ready to render"
].



"Library"
"
lib := self createIsland: CBLibrary named: 'Library'.
libSpace := lib future at: #libSpace.
portalToMyWorld := lib future at:#portalToMyWorld.

lpc := libSpace future postcard.
lpc.
toMyWorldPostcard := portalToMyWorld future postcard.

toLibPostcard whenResolved: [
toMyWorldPostcard whenResolved: [
self addIsland: lib postcard: toMyWorldPostcard value.
portalToMyWorld future postcardLink: toLibPostcard value.
portalToLib future postcardLink: toMyWorldPostcard value.].].
"


createIsland: islandClass named: aString
"Create a new island. islandClass must be a class that is used to generate the contents of the TIsland. aString is a name for the router/island that allows another user to identify it. aBlock is executed upon completion and existence of the island. This is used to do additional setup with the island."
| p router controller id userController island space |

userController := CBUserController uniqueInstance.

id := islandClass islandID.

"if a controller for this island has already been registered, just use that"
allowControllerAliasing ifTrue:[
controller := controllers detect:[:cc| cc sessionID = id and:[cc island == nil]] ifNone:[nil].
controller ifNotNil:[^self createIsland: islandClass named: aString using: controller].
].

"Create the dispatcher for any local islands we'd like to host the router for"
dispatcher ifNil:[
dispatcher := TExampleDispatcher new.
dispatcher listenOn: 0. "wildcard port"
dispatcher autoCreate: false.
].
" <at> <at> <at> <at> FIXME: This is clearly not the way to do it <at> <at> <at> <at> "
router := CBRouter new.
false ifTrue:[router log: Transcript].

router addUser: userController localUser.

dispatcher addRouter: router id: id.

contactPoint ifNil:[contactPoint := TContactPoint new].
contactPoint addBroadcast:(TContact new 
address: dispatcher address port: dispatcher port 
id: id name: aString).

"Create the controller"
controller := CBIslandController new.
controller connectTo: dispatcher address port: dispatcher port sessionID: id.
self addController: controller.

p := controller login: userController localUser.
"p := controller login: 'bla' password: 'blub'."
p wait.
p result ifFalse: [ CBLoginError signal].

p := controller join. "receive messages"
p wait. "see above"
controller backDoor: (dispatcher routers at: id).
island := self createIsland: islandClass named: aString using: controller.
"space := island future at: #masterSpace."
"CBAccessController grantReadToAllIn: space."
^island


It whould be realy great if someone could give me a hint where to lock at, or explain whats going on behind the scenes.


Regards 
Waldemar
Waldemar Schwan | 20 Aug 10:00

Who to create textlabels inside Croquet dynamicly?

Hello everyone.

I'm working on visualizing a filesystem or at least some folders in  
Croquet. At the moment I've got TWindows for each file and a TCube for  
ech folder. The next step would be to habe a text label containing  
file or folder name for each folder / file.

I experimenten a bit on Anotaions and had a Look at TForm but I  
couldn't get it working. I seams to me that i have to create a Morphic  
World witch contains a Text so that I can put this World somehow  
insite of a TWindow. But I'm not quiet sure if this is a goot approach.

Is there a better way to get some simple textlines inside an Island,  
or do you know examples of displaying text? Couldn't find some for  
myself.

Thanks for any help.

Waldemar Schwan | 17 Aug 20:33

http://hedgehog.software.umn.edu:8888 down?

Hello everyone,

it seams to me, that http://hedgehog.software.umn.edu:8888/ is down. I  
can't update the Montychello repos.

When I enter  "http://hedgehog.software.umn.edu:8888/Homebase" in my  
Browser nothing happens.
I can ping hedgehog.software.umn.edu:8888.

Am I doing something wrong or issn't the server running corectly?

Greeting
	Waldemar

Matthew Fulmer | 14 Aug 01:40

bugs.squeak.org Croquet bugs

Hi. I'm sending this email on behalf of Ken Causey, the
bugs.squeak.org maintainer. The mantis tracker has a category
for Croquet bugs, and 604 issues filed under that category.
Several questions:

Is anybody still using bugs.squeak.org to track Croquet bugs?

If nobody is using it, should we delete it, or should we export
the database to another tracker, such as the cobalt tracker?

If somebody is still using it, who should Ken Causey, the
maintainer of bugs.squeak.org, consider to be the primary
contact for that portion of the issue tracker?

--

-- 
Matthew Fulmer -- http://mtfulmer.wordpress.com/

Phua Khai Fong | 12 Aug 14:37

Using GLLines in TUpdatingMesh


Hi,

I have a problem using the mode GLLines in a subclass of TUpdatingMesh.
There is an error when I use it and the debugger shows the error in the
below method :-

primCount: indexCount forMode: mode

    mode == GLTriangles ifTrue: [^ indexCount // 3].
    mode == GLQuads ifTrue: [^ indexCount // 4].
    mode == GLPoints ifTrue: [^ indexCount].
    mode == GLTriangleStrip ifTrue: [^ indexCount - 2].
    mode == GLTriangleFan ifTrue: [^ indexCount - 2].
    mode == GLLineStrip ifTrue: [^ indexCount - 1].

    "It's easy to add additional modes if necessary."
    self error: 'Unexpected mode'.
    ^ 0

The above method belongs to the OpenGL. I can add in another line :-

mode == GLLines ifTrue: [^indexCount // 2].

With the above line added, it works fine. My question is what can I do to
have the mode permanently there if I publish my work using the Monticello
package?
--

-- 
View this message in context: http://www.nabble.com/Using-GLLines-in-TUpdatingMesh-tp18943522p18943522.html
Sent from the Croquet - Dev mailing list archive at Nabble.com.

Embedded Tweak world and a simple 2D embedded Tweak app demo

Hi everybody,

you find more text and pictures on:
http://tweakingcroquet.blogspot.com/2008/08/simple-example-2d-tweak-embedded-app-in.html

The code: http://www.bisbis.de/croquet_embed_tweak/Croquet-Embed-Tweak-GK.10.mcz

I ported the concept of TMorphicWorld to Tweak with TEmbeddedTweakWorld. It was fairly straightforward, and there's no multi-hand support yet, but I'd like to hear your comments about it.

<at> David Faught: It's really an instance next to each replica - not (as in VNC) one app instance which's output is 'broadcast' everywhere.

Cheers,
Georg
P.Davidowitz | 8 Aug 01:36

Traits

Are 'Traits' to be avoided in Croquet development? And what about in
Squeak in general?

--

-- 
Paul Davidowitz
pdavidow <at> gmail.com

sathyas | 7 Aug 08:28

how to apply shadows


hi friends
  im sathya....i need help

  i had created object using maya.......also using Shadows & Textures.
  after i was imported to croquet...
  output is An object imported to croquet.....but without shadows
  so how to apply shadows 
help me..
thks

             
--

-- 
View this message in context: http://www.nabble.com/how-to-apply-shadows-tp18864813p18864813.html
Sent from the Croquet - Dev mailing list archive at Nabble.com.


Gmane