There is one little problem on my copy of Scratch: It won't add the mesh commands!
I go to the browser, go to
Scratch-U1-Panes >> ScratchFrameMorph >> menu/button actions >> addServerCommandsTo:
And changed
addServerCommandsTo: menu
"Add Scratch server commands to the given menu."
| disable endCmd |
disable _ true. "make this true to disable this feature"
disable ifTrue: [^ self].
menu addLine.
(workPane scratchServer notNil and:
[workPane scratchServer sessionInProgress])
ifTrue: [
menu add: 'Show IP Address' action: #showNetworkAddress.
endCmd _ workPane scratchServer isHosting
ifTrue: ['Stop Hosting Mesh']
ifFalse: ['Leave Mesh'].
menu add: endCmd action: #exitScratchSession]
ifFalse: [
menu add: 'Host Mesh' action: #startHostingScratchSession.
menu add: 'Join Mesh' action: #joinScratchSession].to:
addServerCommandsTo: menu
"Add Scratch server commands to the given menu."
| disable endCmd |
disable _ false. "make this true to disable this feature"
disable ifTrue: [^ self].
menu addLine.
(workPane scratchServer notNil and:
[workPane scratchServer sessionInProgress])
ifTrue: [
menu add: 'Show IP Address' action: #showNetworkAddress.
endCmd _ workPane scratchServer isHosting
ifTrue: ['Stop Hosting Mesh']
ifFalse: ['Leave Mesh'].
menu add: endCmd action: #exitScratchSession]
ifFalse: [
menu add: 'Host Mesh' action: #startHostingScratchSession.
menu add: 'Join Mesh' action: #joinScratchSession].Help?!
Google it.
Offline
Even though this has to do with troubleshooting, it still should go in Advanced Topics, because there are more people who can help you there.
Offline
ScratchReallyROCKS wrote:
Even though this has to do with troubleshooting, it still should go in Advanced Topics, because there are more people who can help you there.
Yes, I was debating which one it should go in... you do have a point, though...
Google it.
Offline
I'll move this to AT for you
Offline
Did you right click and accept?
Then shift click share?
Offline
Jwosty wrote:
There is one little problem on my copy of Scratch: It won't add the mesh commands!
I go to the browser, go toCode:
Scratch-U1-Panes >> ScratchFrameMorph >> menu/button actions >> addServerCommandsTo:And changed
Code:
addServerCommandsTo: menu "Add Scratch server commands to the given menu." | disable endCmd | disable _ true. "make this true to disable this feature" disable ifTrue: [^ self]. menu addLine. (workPane scratchServer notNil and: [workPane scratchServer sessionInProgress]) ifTrue: [ menu add: 'Show IP Address' action: #showNetworkAddress. endCmd _ workPane scratchServer isHosting ifTrue: ['Stop Hosting Mesh'] ifFalse: ['Leave Mesh']. menu add: endCmd action: #exitScratchSession] ifFalse: [ menu add: 'Host Mesh' action: #startHostingScratchSession. menu add: 'Join Mesh' action: #joinScratchSession].to:
Code:
addServerCommandsTo: menu "Add Scratch server commands to the given menu." | disable endCmd | disable _ false. "make this true to disable this feature" disable ifTrue: [^ self]. menu addLine. (workPane scratchServer notNil and: [workPane scratchServer sessionInProgress]) ifTrue: [ menu add: 'Show IP Address' action: #showNetworkAddress. endCmd _ workPane scratchServer isHosting ifTrue: ['Stop Hosting Mesh'] ifFalse: ['Leave Mesh']. menu add: endCmd action: #exitScratchSession] ifFalse: [ menu add: 'Host Mesh' action: #startHostingScratchSession. menu add: 'Join Mesh' action: #joinScratchSession].Help?!
![]()
![]()
That's funny - On mine the code there is completely different! Try re-downloading scratch!
Offline
WindowsExplorer wrote:
Jwosty wrote:
There is one little problem on my copy of Scratch: It won't add the mesh commands!
I go to the browser, go toCode:
Scratch-U1-Panes >> ScratchFrameMorph >> menu/button actions >> addServerCommandsTo:And changed
Code:
addServerCommandsTo: menu "Add Scratch server commands to the given menu." | disable endCmd | disable _ true. "make this true to disable this feature" disable ifTrue: [^ self]. menu addLine. (workPane scratchServer notNil and: [workPane scratchServer sessionInProgress]) ifTrue: [ menu add: 'Show IP Address' action: #showNetworkAddress. endCmd _ workPane scratchServer isHosting ifTrue: ['Stop Hosting Mesh'] ifFalse: ['Leave Mesh']. menu add: endCmd action: #exitScratchSession] ifFalse: [ menu add: 'Host Mesh' action: #startHostingScratchSession. menu add: 'Join Mesh' action: #joinScratchSession].to:
Code:
addServerCommandsTo: menu "Add Scratch server commands to the given menu." | disable endCmd | disable _ false. "make this true to disable this feature" disable ifTrue: [^ self]. menu addLine. (workPane scratchServer notNil and: [workPane scratchServer sessionInProgress]) ifTrue: [ menu add: 'Show IP Address' action: #showNetworkAddress. endCmd _ workPane scratchServer isHosting ifTrue: ['Stop Hosting Mesh'] ifFalse: ['Leave Mesh']. menu add: endCmd action: #exitScratchSession] ifFalse: [ menu add: 'Host Mesh' action: #startHostingScratchSession. menu add: 'Join Mesh' action: #joinScratchSession].Help?!
![]()
![]()
That's funny - On mine the code there is completely different! Try re-downloading scratch!
the one they have is from the special source code download.
Offline
Here, just replace it with this:
addServerCommandsTo: t1
| t2 t3 |
t2 _ false.
t2 ifTrue: [^ self].
t1 addLine.
(workPane scratchServer notNil and: [workPane scratchServer sessionInProgress])
ifTrue:
[t1 add: 'Show IP Address' action: #showNetworkAddress.
t3 _ workPane scratchServer isHosting
ifTrue: ['Stop Hosting Mesh']
ifFalse: ['Leave Mesh'].
t1 add: t3 action: #exitScratchSession]
ifFalse:
[t1 add: 'Host Mesh' action: #startHostingScratchSession.
t1 add: 'Join Mesh' action: #joinScratchSession]
Offline
Um, anyone noticed the dates on this thread and this post?
Jwosty wrote:
Hmm... I tried it again for the billionth time, and it worked! That was odd...
![]()
Reporting for closing.
Offline
I didn't
last post?
Offline