This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2010-06-01 16:54:35

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Questions for NXIII

It did not work. It does not accept the meathod.


You can now reach me on Twitter @johnnydean1_

Offline

 

#27 2010-06-01 17:36:53

Zorbak42
Scratcher
Registered: 2009-01-27
Posts: 100+

Re: Questions for NXIII

johnnydean1 wrote:

It did not work. It does not accept the meathod.

Try getting rid of the t1 in your temp vars. If it doesn't work, what's the error message?

Offline

 

#28 2010-06-01 17:39:01

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Questions for NXIII

Unknown Variable t1


You can now reach me on Twitter @johnnydean1_

Offline

 

#29 2010-06-02 15:56:03

Zorbak42
Scratcher
Registered: 2009-01-27
Posts: 100+

Re: Questions for NXIII

I'm not sure what that means, but I tried it and it worked. At least I think, I'm not entirely sure what the purpose of the block is, but it seems to work. method:
getVarfromMesh: t1
    | t2 t3 t4 |
    (t2 _ self ownerThatIsA: ScratchStageMorph) ifNil: [^ 0].
    t2 scratchServer
        ifNotNil:
            [t3 _ t2 scratchServer sensorValueFor: t1.
            t3 ifNotNil: [^ t3]].
    'tilt' = t1 ifTrue: [^ WeDoPlugin tilt].
    'distance' = t1 ifTrue: [^ WeDoPlugin distance].
    t4 _ t2 sensorBoard.
    t4 tryToOpenPort ifFalse: [^ 0].
    ^ t4 sensor: (self indexForSensorName: t1)
block spec:
('get %v from mesh' #- #getVarFromMesh:)
Hope it works!

Offline

 

#30 2010-06-02 16:33:47

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Questions for NXIII

I had a go at it, I stuck my IP in there insted of scratch server. It didn't glow red, just gave me the syntax error.

ScratchSpriteMorph  as yet unclassified |

Code:

| t1t1 t2 t3 t4 |
t1 _ 'a variable'.
  (t2 _ self ownerThatIsA: ScratchStageMorph) ifNil: [^ 0].
    t2 Nothing more expected ->192.168.1.4
        ifNotNil:
            [t3 _ t2 192.168.1.4 sensorValueFor: t1.
            t3 ifNotNil: [^ t3]].
    'tilt' = t1 ifTrue: [^ WeDoPlugin tilt].
    'distance' = t1 ifTrue: [^ WeDoPlugin distance].
    t4 _ t2 sensorBoard.
    t4 tryToOpenPort ifFalse: [^ 0].
    ^ t4 sensor: (self indexForSensorName: t1)

Last edited by markyparky56 (2010-06-02 16:35:20)


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#31 2010-06-02 17:16:07

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Questions for NXIII

I know. Its stupid, it works fine on Panther, but not on a mod  sad


You can now reach me on Twitter @johnnydean1_

Offline

 

#32 2010-06-03 07:50:37

Zorbak42
Scratcher
Registered: 2009-01-27
Posts: 100+

Re: Questions for NXIII

The one I made didn't glow red, it seemed to work. It didn't do anything, though I wasn't connected to mesh and didn't have any variables when I tried it.

Offline

 

#33 2010-06-03 11:49:55

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Questions for NXIII

Your one does not show a error, but does not work either.


You can now reach me on Twitter @johnnydean1_

Offline

 

#34 2010-06-03 14:40:26

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: Questions for NXIII

johnnydean1 wrote:

I know. Its stupid, it works fine on Panther, but not on a mod  sad

Panther is a mod....


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#35 2010-06-03 15:41:33

Zorbak42
Scratcher
Registered: 2009-01-27
Posts: 100+

Re: Questions for NXIII

oh, okay. weird. maybe some of Panther's stuff that is used in it have been edited.

Offline

 

#36 2010-06-04 16:29:32

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: Questions for NXIII

Do help screen files have to be gifs, or can they be pngs?  Thanks!


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#37 2010-06-04 16:49:22

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Questions for NXIII

bharvey wrote:

Do help screen files have to be gifs, or can they be pngs?  Thanks!

These filetypes:
hlp gif png jpg bmp
(copied from the method which collects the help files)


nXIII

Offline

 

#38 2010-06-05 11:02:21

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Questions for NXIII

johnnydean1 wrote:

Your one does not show a error, but does not work either.

Who are you talking to?

Zorbak42 wrote:

oh, okay. weird. maybe some of Panther's stuff that is used in it have been edited.

A lot of things have been changed in Panther.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#39 2010-06-05 19:22:28

Zorbak42
Scratcher
Registered: 2009-01-27
Posts: 100+

Re: Questions for NXIII

JD1 was talking to me, MP56. Yes, a lot of things have changed, but I meant something specific to things in the code for JD1's custom block.

Offline

 

#40 2010-06-06 13:13:58

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Questions for NXIII

Zorbak42 wrote:

JD1 was talking to me, MP56. Yes, a lot of things have changed, but I meant something specific to things in the code for JD1's custom block.

Strange... aren't variables shared anyway?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#41 2010-06-08 03:14:38

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: Questions for NXIII

How do you pronounce "nXIII"?  (The logo looks like "n to the 13th power" but that seems like quite a mouthful.)


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#42 2010-06-08 12:16:01

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Questions for NXIII

bharvey wrote:

How do you pronounce "nXIII"?  (The logo looks like "n to the 13th power" but that seems like quite a mouthful.)

I normaly think of it like n-X-3


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#43 2010-06-08 12:43:08

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Questions for NXIII

I pronounce it N-X-I-I-I
as in 3 of the letter I


You can now reach me on Twitter @johnnydean1_

Offline

 

#44 2010-06-08 13:43:38

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Questions for NXIII

bharvey wrote:

How do you pronounce "nXIII"?  (The logo looks like "n to the 13th power" but that seems like quite a mouthful.)

m... er... I mostly think it, not say it, so I don't really know. It IS n to the thirteenth power, but that IS a bit too long. I've seen Sep spell it en-ex-triple-eye, and some just n13, that kind of works, in dropbox I just use "n".


nXIII

Offline

 

Board footer