Pages: 1
Topic closed
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
You might try scratch to exe that makes everything one executable. Never looked at that issue with it - so I'm not sure
Offline
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...
Offline
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
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
Offline
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
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)
Offline
JSO wrote:
I haven't found a bug yet xD
I found you one, feel free to spread it around.
Offline
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
Offline
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.
Offline
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.
Offline
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)
Offline
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:
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.
Offline
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:
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!
Offline
if you really need to then do
ScratchFrameMorph new openInWorld; SaveImageForEndUser
from a workspace after you disabled error messages and took out the menu
Offline
songhead95 wrote:
if you really need to then do
Code:
ScratchFrameMorph new openInWorld; SaveImageForEndUserfrom 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.
Offline
Topic closed
Pages: 1