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

#1 2009-06-30 06:07:48

Hong1818
Scratcher
Registered: 2009-06-30
Posts: 33

How to hide the source code for the modified Scratch??

I am new and I would like to know after I modified the Scratch Source code, how can I hide the source code so that I can let others using it without seeing the source code?

Is it from the Extra button there that we can set so that others cannot right click and use the exit user mode ??

Thank you very much in advance for your reply!!

Offline

 

#2 2009-06-30 06:20:29

Mike_W
Scratcher
Registered: 2009-02-05
Posts: 100+

Re: How to hide the source code for the modified Scratch??

You might try scratch to exe that makes everything one executable. Never looked at that issue with it - so I'm not sure

Offline

 

#3 2009-06-30 08:51:07

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: How to hide the source code for the modified Scratch??

I don't think that you are allowed to hide the source of your edited version of Scratch. You have to release your own source I think.  But, some help of a license-expert might be useful...


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#4 2009-06-30 21:44:43

Hong1818
Scratcher
Registered: 2009-06-30
Posts: 33

Re: How to hide the source code for the modified Scratch??

I  found that there is some information to solve my problem.
http://squeak.preeminent.org/tut2007/html/index.html

The section 6 is talking about hiden the unwanted object and user cannot get the source code directly by clicking the world. Am i right?

i have one more question,
how to change the icon logo of exe file from Squeak to mine one?
because it looks more professional to have my own logo.

Thanks a lot

Offline

 

#5 2009-07-01 05:24:46

onedudeuk
Scratcher
Registered: 2009-01-11
Posts: 100+

Re: How to hide the source code for the modified Scratch??

You shouldn't, because all scratch projects are licensed under Creative Commons, and so are open source


http://i.imgur.com/1FaX3.gif
http://i.imgur.com/yu0s1.gif

Offline

 

#6 2009-07-02 02:34:47

Hong1818
Scratcher
Registered: 2009-06-30
Posts: 33

Re: How to hide the source code for the modified Scratch??

Thank you for your reply, i have another question,
Can we enter the user mode directly when open the scratch project,
so that the user cannot open the the world menu easily?

thanks.

Offline

 

#7 2009-07-02 04:35:05

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: How to hide the source code for the modified Scratch??

It depends on what image you are using...

If it is based upon the official Scratch Source Code, (Shift- ?)Click on Extras and click "Save image in user mode"

Otherwise, look for where the menus are defined, and search for the Extras menu. Then scroll down. You will see the 'developper' items only appear when some flag is true. Make them appear at any time, and you're set.

And if you would be hacking 1.4... Tell me how because I haven't found a bug yet xD


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#8 2009-07-03 04:34:59

Hong1818
Scratcher
Registered: 2009-06-30
Posts: 33

Re: How to hide the source code for the modified Scratch??

thank you,
when i re-open the saved image in user mode, it has a cat showing on the stage.
i don't want to show this cat to the end user, how can i delete or change it to other picture??

Offline

 

#9 2009-07-09 03:57:48

Hong1818
Scratcher
Registered: 2009-06-30
Posts: 33

Re: How to hide the source code for the modified Scratch??

would anyone answer me?
or i cannot change it?

Offline

 

#10 2009-07-16 17:56:21

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: How to hide the source code for the modified Scratch??

Hong1818 wrote:

I am new and I would like to know after I modified the Scratch Source code, how can I hide the source code so that I can let others using it without seeing the source code?

Is it from the Extra button there that we can set so that others cannot right click and use the exit user mode ??

Thank you very much in advance for your reply!!

JSO wrote:

Shift- ?)Click on Extras and click "Save image in user mode"

Even after that, the user can still shift-click on Extras, click exit user mode, open up the world menu, and view the source.


Here is my way that is a little more foolproof
This isn't perfect, but:

1. Open up a workspace
2.enter user mode (shift-click extras "Enter User Mode")
3. type Preferences disableProgrammerFacilities
4.select it, then press alt-d
5.Follow the Prompts and Save your new image file


The Problem is, with this, a workspace is still open, and you can't resave your image without the workspace open, since you just disabled programmer facilities.

So you have to worry about people doing this:

1.typing Preferences enableProgrammerFacilities into the open workspace
2.selecting it, then pressing alt -d
3.exiting user mode
4.opening the world menu
5.opening a system/class browser to view the source

Last edited by gershmer (2009-07-16 18:00:59)


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#11 2009-07-21 16:14:31

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: How to hide the source code for the modified Scratch??

JSO wrote:

I haven't found a bug yet xD

I found you one, feel free to spread it around.


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#12 2009-07-22 04:29:44

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: How to hide the source code for the modified Scratch??

gershmer wrote:

JSO wrote:

I haven't found a bug yet xD

I found you one, feel free to spread it around.

Thanks to your tip, I already made myself an IMAGE with a "Developers" Menu next to File Edit Help etc. It is way easier xD


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#13 2009-07-23 12:13:44

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: How to hide the source code for the modified Scratch??

Mike_W wrote:

You might try scratch to exe that makes everything one executable. Never looked at that issue with it - so I'm not sure

I think he means the source of the actual spin off of scratch, not the project.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#14 2009-07-23 12:19:40

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: How to hide the source code for the modified Scratch??

Hong1818 wrote:

I  found that there is some information to solve my problem.
http://squeak.preeminent.org/tut2007/html/index.html

The section 6 is talking about hiden the unwanted object and user cannot get the source code directly by clicking the world. Am i right?

i have one more question,
how to change the icon logo of exe file from Squeak to mine one?
because it looks more professional to have my own logo.

Thanks a lot

Use a resource hacker. You see, the program stores the icon inside it, in binary format.
Resource hackers find these, and allow you to change them.
The one I use is Reshack.
Using this, Cursor, Icon, Bitmap, GIF, AVI, and JPG resource images can be viewed. WAV and MIDI audio resources can be played. Menus, Dialogs, MessageTables, StringTables, Accelerators, Delphi Forms, and VersionInfo resources can be viewed as decompiled resource scripts. Menus and Dialogs can also be viewed as they would appear in a running application.

You can then change any of these.
Be careful, though, as modifying executables is risky;
that being said, if you stick to just the icons, you're safe.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#15 2009-07-25 19:32:57

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: How to hide the source code for the modified Scratch??

JSO wrote:

gershmer wrote:

JSO wrote:

I haven't found a bug yet xD

I found you one, feel free to spread it around.

Thanks to your tip, I already made myself an IMAGE with a "Developers" Menu next to File Edit Help etc. It is way easier xD

Can you host the image to a website and give me the link so I can get this?

Last edited by gershmer (2009-07-26 08:49:37)


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#16 2009-07-26 23:49:30

Hong1818
Scratcher
Registered: 2009-06-30
Posts: 33

Re: How to hide the source code for the modified Scratch??

YES...it's work!! i can change the icon easily...and the program looks more professional...XD
thx billyedward.

Offline

 

#17 2009-07-27 04:37:09

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: How to hide the source code for the modified Scratch??

gershmer wrote:

Hong1818 wrote:

I am new and I would like to know after I modified the Scratch Source code, how can I hide the source code so that I can let others using it without seeing the source code?

Is it from the Extra button there that we can set so that others cannot right click and use the exit user mode ??

Thank you very much in advance for your reply!!

JSO wrote:

Shift- ?)Click on Extras and click "Save image in user mode"

Even after that, the user can still shift-click on Extras, click exit user mode, open up the world menu, and view the source.


Here is my way that is a little more foolproof
This isn't perfect, but:

1. Open up a workspace
2.enter user mode (shift-click extras "Enter User Mode")
3. type Preferences disableProgrammerFacilities
4.select it, then press alt-d
5.Follow the Prompts and Save your new image file


The Problem is, with this, a workspace is still open, and you can't resave your image without the workspace open, since you just disabled programmer facilities.

So you have to worry about people doing this:

1.typing Preferences enableProgrammerFacilities into the open workspace
2.selecting it, then pressing alt -d
3.exiting user mode
4.opening the world menu
5.opening a system/class browser to view the source

This code will close the workspace:

Code:

    World submorphs do: [:t1 | (t1 isKindOf: SystemWindow)
            ifTrue: [t1 delete]].

.
Simply paste it above the save code, and 'do it' for the entire code block.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#18 2009-07-27 04:42:13

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: How to hide the source code for the modified Scratch??

Another thing you can do is delete the 'exit user mode' item in the extras menu. Go to Scratch-UI-Panes > ScratchFrameMorph > extra menu > extrasMenu.
Then delete the line of code that looks like this:

Code:

 ifTrue: [t1 add: 'exit user mode' action: #fillScreenOff]

Now, you can still edit the image, but you must save it in developer mode.
But the main part is, you can't switch out of user mode!


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#19 2009-07-29 04:14:13

songhead95
Scratcher
Registered: 2008-03-19
Posts: 100+

Re: How to hide the source code for the modified Scratch??

if you really need to then do

Code:

 ScratchFrameMorph new openInWorld; SaveImageForEndUser

from a workspace after you disabled error messages and took out the menu

Offline

 

#20 2009-07-29 16:25:23

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: How to hide the source code for the modified Scratch??

songhead95 wrote:

if you really need to then do

Code:

 ScratchFrameMorph new openInWorld; SaveImageForEndUser

from a workspace after you disabled error messages and took out the menu

True; but this only works for the open-source version. I am now onto moving Streak to 1.4, so I don't have that at my disposal. I must agree, though, that if you are using open-source, this is easiest. And again, to hide the actual code, see my posts above.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

Board footer