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

#26 2011-12-28 11:45:20

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Konnected: A new Scratch mod!

nickbrickmaster wrote:

TRocket wrote:

- added konnect menu
- changed title
- added 6 new sensing blocks
- that's all really...
hope you like it  big_smile
download the scratch source and replace these files:
http://www.sendspace.com/filegroup/pK34 … 9yN84t1zRg

I already started, sorry. can you just post the code and blockspecs? I'm sorry for being such a hassle.

i'll try and give you the changesets


http://i.imgur.com/1QqnHxQ.png

Offline

 

#27 2011-12-28 11:46:53

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Konnected: A new Scratch mod!

change set 1 and 2

Last edited by TRocket (2011-12-28 11:51:44)


http://i.imgur.com/1QqnHxQ.png

Offline

 

#28 2011-12-28 11:52:45

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Konnected: A new Scratch mod!

TRocket wrote:

change set 1 and 2

I meant like, in the [ code ] box.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#29 2011-12-28 11:58:24

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Konnected: A new Scratch mod!

scriptablescratchmoph class block specs

Code:

    'sensing'
            ('start hosting mesh'            -    startMeshHost)
            ('stop hosting mesh'                -    stopMeshHost)
            ('ip address'                        r       getIp)

scriptablescratchmorph sensing ops:

Code:

getIp
    | t1 t2 t3 |
    Socket initializeNetwork.
    t1 _ NetNameResolver localHostAddress.
    t2 _ nil.
    t3 _ NetNameResolver stringFromAddress: t1.
    (t2 notNil and: [t2 ~= t1])
        ifTrue: [t3 _ t3 , String cr , 'Internet:   ' , (NetNameResolver stringFromAddress: t2)].
    ^ t3

Code:

stopMeshHost

    | t1 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
t1    exitScratchSession.

Code:

startMeshHost

    | t1 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
t1    quietlyStartHostingScratchSession.

continued on next post...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#30 2011-12-28 12:09:27

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Konnected: A new Scratch mod!

UPDATE:

I found code for movieblocks and will be resurrecting them if they work!


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#31 2011-12-28 12:09:36

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Konnected: A new Scratch mod!

scratchframemorph:

Code:

quietlyStartHostingScratchSession
    "Start running the Scratch server, allowing Scratch and other applications to interact with this Scratch remotely."

    | server |
    workPane scratchServer ifNil: [
        server _ ScratchServer new.
        server stage: workPane.
        workPane scratchServer: server].

    workPane scratchServer startHosting.

Code:

quietlyEnableRemoteSensors
    "Start running the Scratch server, allowing Scratch and other applications to interact with this Scratch remotely."

    | server |
    workPane scratchServer ifNil: [
        server _ ScratchServer new userName: 'Scratch'.
        server stage: workPane.
        workPane scratchServer: server].

    workPane scratchServer startHosting.

scriptablespritemorph blockspecs:

Code:

('quiely enable remote sensor connections'    -    quietlyEnableRemoteSensors)
            ('enable remote sensor connections'    -    enableRemoteSensors)
            -
            ('hosting mesh?'                    b    isHostingMesh)

scriptablespritemorph sensing ops:

Code:

quietlyEnableRemoteSensors
    | t1 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
    t1 quietlyEnableRemoteSensors.

Code:

enableRemoteSensors
    | t1 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
    t1 enableRemoteSensors.

Code:

isHostingMesh
    | t1 t2 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
    (t2 _ t1 workPane scratchServer) ifNil: [^ false].
    ^ t2 isHosting

this is the same as above but for the stage:
scriptablestagemorph blockspecs:

Code:

('quiely enable remote sensor connections'    -    quietlyEnableRemoteSensors)
            ('enable remote sensor connections'    -    enableRemoteSensors)
            -
            ('hosting mesh?'                    b    isHostingMesh)

scriptablestagemorph sensing ops:

Code:

quietlyEnableRemoteSensors
    | t1 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
    t1 quietlyEnableRemoteSensors.

Code:

enableRemoteSensors
    | t1 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
    t1 enableRemoteSensors.

Code:

isHostingMesh
    | t1 t2 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
    (t2 _ t1 workPane scratchServer) ifNil: [^ false].
    ^ t2 isHosting

continued in next post...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#32 2011-12-28 12:13:49

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Konnected: A new Scratch mod!

scratchframemorph initalize:
added (Konnect        konnectMenu:)

Code:

createMenuPanel
    "Create and add a panel containing the menus and close button."

    | menuSpecs m |
    "create panel"
    menuPanel _ AlignmentMorph new
        color: Color transparent;
        centering: #center;
        inset: 0;
        height: 0.    "will grow as needed"

    self addShortcutButtonsTo: menuPanel.

    "menuSpecs defines the menus"
    menuSpecs _ #(
        "name            selector"
        (File            fileMenu:)
        (Edit            editMenu:)
        (Help            helpMenu:)
        (Konnect        konnectMenu:)
    ).

    menuSpecs do: [:spec |
        m _ ScratchMenuTitleMorph new
            contents: (spec at: 1) localized;
            target: self selector: (spec at: 2).
        menuPanel addMorphBack: m.
        #konnetMenu: = (spec at: 2) ifFalse: [
            menuPanel addMorphBack: (Morph new color: Color transparent; extent: 12@5)]].

    topPane addMorph: menuPanel.

scratchframemorph menubuttonactions:
new method

Code:

konnectMenu: aMenuTitleMorph

    | menu |
    menu _ CustomMenu new.
    menu add: 'enable remote sensor connection' action: #enableRemoteSensors.
    menu addLine.
     self addServerCommandsTo: menu.
    menu addLine.
    "menu add: 'test' action: #launchHelpPage."
    "menu add: 'Help Screens' action: #launchAllHelpScreens".
    "menu addLine."
    "menu add: 'About konnected' action: #aboutScratch."
    menu add: 'what is this menu?' action: #launchHelpPage.

    menu localize.

    #(1 2 3) do: [:n |
        menu labels at: n put:
            ((menu labels at: n) copyFrom: 1 to: (menu labels at: n) size - 1), ScratchTranslator ellipsesSuffix].

    menu invokeOn: self at: aMenuTitleMorph bottomLeft + (0@10).

http://i.imgur.com/1QqnHxQ.png

Offline

 

#33 2011-12-28 12:49:53

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Konnected: A new Scratch mod!

You are simply amazing at Squeak.  big_smile
I'm glad to have someone like you on the team.
I'll post some screenshots and more info later.

Last edited by nickbrickmaster (2011-12-28 12:50:33)


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#34 2011-12-28 12:51:23

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Konnected: A new Scratch mod!

nickbrickmaster wrote:

You are simply amazing at Squeak.  big_smile
I'm glad to have someone like you on the team.
I'll post some screenshots and more info later.

thanks  big_smile


http://i.imgur.com/1QqnHxQ.png

Offline

 

#35 2011-12-28 13:08:38

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Konnected: A new Scratch mod!

Hey nice idea nbm, I may try it once it is released!
Edit: I could be a BETA or ALPHA tester  smile

Last edited by slinger (2011-12-28 13:09:00)


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#36 2011-12-28 13:11:57

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Konnected: A new Scratch mod!

TRocket wrote:

nickbrickmaster wrote:

You are simply amazing at Squeak.  big_smile
I'm glad to have someone like you on the team.
I'll post some screenshots and more info later.

thanks  big_smile

2 things quick:
1. Can I make it that enabling remote sensor connections does not enable mesh?
2. Could you make a |join mesh ip ""| block?
3. I edited the file menu and even after I took the edit away, it says Message not understood: action: if you could help...


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#37 2011-12-28 13:38:07

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Konnected: A new Scratch mod!

disable remote sensor connections:
scratchFrameMorph:
newmethod

Code:

disableRemoteSensors

workPane scratchServer shutDown.

scratchFrameMorph konnect menu:
from "new" to "endnew"

Code:

konnectMenu: aMenuTitleMorph

    | menu |
    menu _ CustomMenu new.
    menu add: 'enable remote sensor connection' action: #enableRemoteSensors.
"new"
    menu add: 'disable remote sensor connections' action: #disableRemoteSensors.
"endnew"
    menu addLine.
     self addServerCommandsTo: menu.
    menu addLine.
    "menu add: 'test' action: #launchHelpPage."
    "menu add: 'Help Screens' action: #launchAllHelpScreens".
    "menu addLine."
    "menu add: 'About konnected' action: #aboutScratch."
    menu add: 'what is this menu?' action: #launchHelpPage.

    menu localize.

    #(1 2 3) do: [:n |
        menu labels at: n put:
            ((menu labels at: n) copyFrom: 1 to: (menu labels at: n) size - 1), ScratchTranslator ellipsesSuffix].

    menu invokeOn: self at: aMenuTitleMorph bottomLeft + (0@10).

scriptablescratchmorph sensing ops:
new method

Code:

stopRemoteSensors

    | t1 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
t1    disableRemoteSensors.

scriptablescratchmorph block specs from "new" to "newend"

Code:

blockSpecs
    "Answer a collection of block specifications for the blocks that are common to all objects. Block specificatons (Arrays) are interspersed with category names (Strings). A block specification is an Array of the form: (<block spec string> <block type> <selector> [optional initial argument values]).

    Explanation of flags:
        -    no flags
        b    boolean reporter
        c    c-shaped block containing a sequence of commands (always special form)
        r    reporter
        s    special form command with its own evaluation rule
        t    timed command, like wait or glide
        E    message event hat
        K    key event hat
        M    mouse-click event hat
        S    start event hat
        W    when <condition> hat (obsolete)"

    | blocks |
    blocks _ #(
        'control'
            ('when %m clicked'                S    -)
            ('when %k key pressed'            K    -)
            ('when %m clicked'                M    -)
            -
            ('wait %n secs'                    t    wait:elapsed:from: 1)
            -
            ('forever'                        c    doForever)
            ('repeat %n'                        c    doRepeat 10)
            -
            ('broadcast %e'                    -    broadcast:)
            ('broadcast %e and wait'            s    doBroadcastAndWait)
            ('when I receive %e'            E    -)
            -
            ('forever if %b'                    c    doForeverIf)
            ('if %b'                            c    doIf)
            ('if %b'                            c    doIfElse)
            ('wait until %b'                    s    doWaitUntil)
            ('repeat until %b'                c    doUntil)
            -
            ('stop script'                    s    doReturn)
            ('stop all'                        -    stopAll)
        'sensing'
"new"
            ('disable remote sensors'            -    stopRemoteSensors)

            

"newend"
            ('start hosting mesh'            -    startMeshHost)
            ('stop hosting mesh'                -    stopMeshHost)
            ('ip address'                        r       getIp)
        'operators'
            ('%n + %n'                        r    + - -)
            ('%n - %n'                        r    - - -)
            ('%n * %n'                        r    * - -)
            ('%n / %n'                        r    / - -)
            -
            ('pick random %n to %n'        r    randomFrom:to: 1 10)
            -
            ('%s < %s'                        b    < '' '')
            ('%s = %s'                        b    = '' '')
            ('%s > %s'                        b    > '' '')
            -
            ('%b and %b'                    b    &)
            ('%b or %b'                        b    |)
            ('not %b'                        b    not)
            -
            ('join %s %s'                    r    concatenate:with: 'hello ' 'world')
            ('letter %n of %s'                r    letter:of: 1 'world')
            ('length of %s'                    r    stringLength: 'world')
            -
            ('%n mod %n'                    r    \\ - -)
            ('round %n'                        r    rounded -)
            -
            ('%f of %n'                        r    computeFunction:of: 'sqrt' 10)
        'sound'
            ('play sound %S'                -    playSound:)
            ('play sound %S until done'        s    doPlaySoundAndWait)
            ('stop all sounds'                -    stopAllSounds)
            -
            ('play drum %D for %n beats'    t     drum:duration:elapsed:from: 48 0.2)
            ('rest for %n beats'                t     rest:elapsed:from: 0.2)
            -
            ('play note %N for %n beats'    t    noteOn:duration:elapsed:from: 60 0.5)
            ('set instrument to %I'            -     midiInstrument: 1)
            -
            ('change volume by %n'        -     changeVolumeBy: -10)
            ('set volume to %n%'            -     setVolumeTo: 100)
            ('volume'                        r     volume)
            -
            ('change tempo by %n'            -     changeTempoBy: 20)
            ('set tempo to %n bpm'            -     setTempoTo: 60)
            ('tempo'                            r     tempo)
        'motor'
            ('motor on for %n secs'            t    motorOnFor:elapsed:from: 1)
            ('motor on'                        -    allMotorsOn)
            ('motor off'                        -    allMotorsOff)
            ('motor power %n'                -    startMotorPower: 100)
            ('motor direction %W'            -    setMotorDirection: 'this way')
        'variables'
            ('show variable %v'                -    showVariable:)
            ('hide variable %v'                -    hideVariable:)
        'list'
            ('add %s to %L'                    -    append:toList: 'thing')
            -
            ('delete %y of %L'                -    deleteLine:ofList: 1)
            ('insert %s at %i of %L'            -    insert:at:ofList: 'thing' 1)
            ('replace item %i of %L with %s'        -    setLine:ofList:to: 1 'list' 'thing')
            -
            ('item %i of %L'                    r    getLine:ofList: 1)
            ('length of %L'                    r    lineCountOfList:)
            ('%L contains %s'                b    list:contains: 'list' 'thing')
    ).

    ^ blocks, self obsoleteBlockSpecs

new block and menu item

Last edited by TRocket (2011-12-28 13:42:45)


http://i.imgur.com/1QqnHxQ.png

Offline

 

#38 2011-12-28 13:39:50

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Konnected: A new Scratch mod!

nickbrickmaster wrote:

TRocket wrote:

nickbrickmaster wrote:

You are simply amazing at Squeak.  big_smile
I'm glad to have someone like you on the team.
I'll post some screenshots and more info later.

thanks  big_smile

2 things quick:
1. Can I make it that enabling remote sensor connections does not enable mesh?
2. Could you make a |join mesh ip ""| block?
3. I edited the file menu and even after I took the edit away, it says Message not understood: action: if you could help...

1. i think remote sensors and mesh are the same thing  hmm
2.i'll try
3.not sure, what did you change?

try clicking changes -> restore recent changes from the world menu

Last edited by TRocket (2011-12-28 14:08:39)


http://i.imgur.com/1QqnHxQ.png

Offline

 

#39 2011-12-28 14:03:38

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Konnected: A new Scratch mod!

join mesh on ip:
scriptablescratchmorph sensing ops:
new method

Code:

joinMesh: ip
    | newserv serv |
    (serv _ self ownerThatIsA: ScratchFrameMorph) ifNil: [^ ''].
    newserv _ ScratchServer new.
    newserv stage: serv workPane.
    serv workPane scratchServer: newserv.
    ip size = 0 ifTrue: [^ '']."no ip"
    newserv _ serv workPane scratchServer joinSessionAt: ip

scriptable scratch morph blockspecs:
from "new" to "newend"

Code:

blockSpecs
    "Answer a collection of block specifications for the blocks that are common to all objects. Block specificatons (Arrays) are interspersed with category names (Strings). A block specification is an Array of the form: (<block spec string> <block type> <selector> [optional initial argument values]).

    Explanation of flags:
        -    no flags
        b    boolean reporter
        c    c-shaped block containing a sequence of commands (always special form)
        r    reporter
        s    special form command with its own evaluation rule
        t    timed command, like wait or glide
        E    message event hat
        K    key event hat
        M    mouse-click event hat
        S    start event hat
        W    when <condition> hat (obsolete)"

    | blocks |
    blocks _ #(
        'control'
            ('when %m clicked'                S    -)
            ('when %k key pressed'            K    -)
            ('when %m clicked'                M    -)
            -
            ('wait %n secs'                    t    wait:elapsed:from: 1)
            -
            ('forever'                        c    doForever)
            ('repeat %n'                        c    doRepeat 10)
            -
            ('broadcast %e'                    -    broadcast:)
            ('broadcast %e and wait'            s    doBroadcastAndWait)
            ('when I receive %e'            E    -)
            -
            ('forever if %b'                    c    doForeverIf)
            ('if %b'                            c    doIf)
            ('if %b'                            c    doIfElse)
            ('wait until %b'                    s    doWaitUntil)
            ('repeat until %b'                c    doUntil)
            -
            ('stop script'                    s    doReturn)
            ('stop all'                        -    stopAll)
        'sensing'

            ('disable remote sensors'            -    stopRemoteSensors)
"new"
            ('join mesh on  ip:%s'            -    joinMesh:)

"newend"
            ('start hosting mesh'            -    startMeshHost)
            ('stop hosting mesh'                -    stopMeshHost)
            ('ip address'                        r       getIp)
        'operators'
            ('%n + %n'                        r    + - -)
            ('%n - %n'                        r    - - -)
            ('%n * %n'                        r    * - -)
            ('%n / %n'                        r    / - -)
            -
            ('pick random %n to %n'        r    randomFrom:to: 1 10)
            -
            ('%s < %s'                        b    < '' '')
            ('%s = %s'                        b    = '' '')
            ('%s > %s'                        b    > '' '')
            -
            ('%b and %b'                    b    &)
            ('%b or %b'                        b    |)
            ('not %b'                        b    not)
            -
            ('join %s %s'                    r    concatenate:with: 'hello ' 'world')
            ('letter %n of %s'                r    letter:of: 1 'world')
            ('length of %s'                    r    stringLength: 'world')
            -
            ('%n mod %n'                    r    \\ - -)
            ('round %n'                        r    rounded -)
            -
            ('%f of %n'                        r    computeFunction:of: 'sqrt' 10)
        'sound'
            ('play sound %S'                -    playSound:)
            ('play sound %S until done'        s    doPlaySoundAndWait)
            ('stop all sounds'                -    stopAllSounds)
            -
            ('play drum %D for %n beats'    t     drum:duration:elapsed:from: 48 0.2)
            ('rest for %n beats'                t     rest:elapsed:from: 0.2)
            -
            ('play note %N for %n beats'    t    noteOn:duration:elapsed:from: 60 0.5)
            ('set instrument to %I'            -     midiInstrument: 1)
            -
            ('change volume by %n'        -     changeVolumeBy: -10)
            ('set volume to %n%'            -     setVolumeTo: 100)
            ('volume'                        r     volume)
            -
            ('change tempo by %n'            -     changeTempoBy: 20)
            ('set tempo to %n bpm'            -     setTempoTo: 60)
            ('tempo'                            r     tempo)
        'motor'
            ('motor on for %n secs'            t    motorOnFor:elapsed:from: 1)
            ('motor on'                        -    allMotorsOn)
            ('motor off'                        -    allMotorsOff)
            ('motor power %n'                -    startMotorPower: 100)
            ('motor direction %W'            -    setMotorDirection: 'this way')
        'variables'
            ('show variable %v'                -    showVariable:)
            ('hide variable %v'                -    hideVariable:)
        'list'
            ('add %s to %L'                    -    append:toList: 'thing')
            -
            ('delete %y of %L'                -    deleteLine:ofList: 1)
            ('insert %s at %i of %L'            -    insert:at:ofList: 'thing' 1)
            ('replace item %i of %L with %s'        -    setLine:ofList:to: 1 'list' 'thing')
            -
            ('item %i of %L'                    r    getLine:ofList: 1)
            ('length of %L'                    r    lineCountOfList:)
            ('%L contains %s'                b    list:contains: 'list' 'thing')
    ).

    ^ blocks, self obsoleteBlockSpecs

http://i.imgur.com/1QqnHxQ.png

Offline

 

#40 2011-12-28 14:29:18

cocolover76
Scratcher
Registered: 2011-10-09
Posts: 500+

Re: Konnected: A new Scratch mod!

TRocket wrote:

- added konnect menu
- changed title
- added 6 new sensing blocks
- that's all really...
hope you like it  big_smile
download the scratch source and replace these files:
http://www.sendspace.com/filegroup/pK34 … 9yN84t1zRg

Guess I'm not using it then.


http://i.imgur.com/HfEPZ.gifhttp://i.imgur.com/pvKb6.png

Offline

 

#41 2011-12-28 14:58:35

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Konnected: A new Scratch mod!

I'll try to restore it, and I can probably fix the remote sensor connections.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#42 2011-12-28 15:17:32

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Konnected: A new Scratch mod!

TRocket wrote:

nickbrickmaster wrote:

TRocket wrote:


thanks  big_smile

2 things quick:
1. Can I make it that enabling remote sensor connections does not enable mesh?
2. Could you make a |join mesh ip ""| block?
3. I edited the file menu and even after I took the edit away, it says Message not understood: action: if you could help...

1. i think remote sensors and mesh are the same thing  hmm
2.i'll try
3.not sure, what did you change?

try clicking changes -> restore recent changes from the world menu

No, Mesh is 2 scratch programs connecting together. Remote sensor connections is what allows Python/Java/ActionScript to connect.
And no, I probably can't fix it.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#43 2011-12-28 16:08:38

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Konnected: A new Scratch mod!

nickbrickmaster wrote:

TRocket wrote:

nickbrickmaster wrote:


2 things quick:
1. Can I make it that enabling remote sensor connections does not enable mesh?
2. Could you make a |join mesh ip ""| block?
3. I edited the file menu and even after I took the edit away, it says Message not understood: action: if you could help...

1. i think remote sensors and mesh are the same thing  hmm
2.i'll try
3.not sure, what did you change?

try clicking changes -> restore recent changes from the world menu

No, Mesh is 2 scratch programs connecting together. Remote sensor connections is what allows Python/Java/ActionScript to connect.
And no, I probably can't fix it.

they both seem to use the same server  hmm  what do you want me to do?


http://i.imgur.com/1QqnHxQ.png

Offline

 

#44 2011-12-28 17:28:59

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Konnected: A new Scratch mod!

TRocket wrote:

nickbrickmaster wrote:

TRocket wrote:


1. i think remote sensors and mesh are the same thing  hmm
2.i'll try
3.not sure, what did you change?

try clicking changes -> restore recent changes from the world menu

No, Mesh is 2 scratch programs connecting together. Remote sensor connections is what allows Python/Java/ActionScript to connect.
And no, I probably can't fix it.

they both seem to use the same server  hmm  what do you want me to do?

I guess they do. sorry. Nothing then.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#45 2011-12-28 17:43:18

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Konnected: A new Scratch mod!

nickbrickmaster wrote:

TRocket wrote:

nickbrickmaster wrote:


2 things quick:
1. Can I make it that enabling remote sensor connections does not enable mesh?
2. Could you make a |join mesh ip ""| block?
3. I edited the file menu and even after I took the edit away, it says Message not understood: action: if you could help...

1. i think remote sensors and mesh are the same thing  hmm
2.i'll try
3.not sure, what did you change?

try clicking changes -> restore recent changes from the world menu

No, Mesh is 2 scratch programs connecting together. Remote sensor connections is what allows Python/Java/ActionScript to connect.
And no, I probably can't fix it.

Remote sensor connections shares broadcasts and variables outside of scratch.  Mesh is connecting two scratch projects USING remote server connections.  You can have remote sensor connections without mesh, but not vice-versa.


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#46 2011-12-28 17:53:33

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Konnected: A new Scratch mod!

gbear605 wrote:

nickbrickmaster wrote:

TRocket wrote:


1. i think remote sensors and mesh are the same thing  hmm
2.i'll try
3.not sure, what did you change?

try clicking changes -> restore recent changes from the world menu

No, Mesh is 2 scratch programs connecting together. Remote sensor connections is what allows Python/Java/ActionScript to connect.
And no, I probably can't fix it.

Remote sensor connections shares broadcasts and variables outside of scratch.  Mesh is connecting two scratch projects USING remote server connections.  You can have remote sensor connections without mesh, but not vice-versa.

Ok. Thanks.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#47 2011-12-29 02:15:26

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Konnected: A new Scratch mod!

nickbrickmaster wrote:

gbear605 wrote:

nickbrickmaster wrote:


No, Mesh is 2 scratch programs connecting together. Remote sensor connections is what allows Python/Java/ActionScript to connect.
And no, I probably can't fix it.

Remote sensor connections shares broadcasts and variables outside of scratch.  Mesh is connecting two scratch projects USING remote server connections.  You can have remote sensor connections without mesh, but not vice-versa.

Ok. Thanks.

i'll try and get this working then...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#48 2011-12-29 08:23:55

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: Konnected: A new Scratch mod!

TRocket wrote:

ZeroLuck wrote:

TRocket wrote:

ok 184 lines of code and javadoc:
[...]

You are new to Java, aren't you?
Because it looks so  wink

used it a bit for four years , what's wrong with it?

The code is not very good  hmm
An example:
You connected a Socket in constructor...


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#49 2011-12-29 08:41:31

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Konnected: A new Scratch mod!

ZeroLuck wrote:

TRocket wrote:

ZeroLuck wrote:


You are new to Java, aren't you?
Because it looks so  wink

used it a bit for four years , what's wrong with it?

The code is not very good  hmm
An example:
You connected a Socket in constructor...

i made it to be simple to use since most people using scratch and java aren't as good/don't know it at all


http://i.imgur.com/1QqnHxQ.png

Offline

 

#50 2011-12-29 10:08:57

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Konnected: A new Scratch mod!

its already easy to connect to python


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

Board footer