Pages: 1
Topic closed
To start off:
-Scratch2Exe is based on Scratch 1.3.1
-So Scratch 1.4+ projects won't work correctly (if they use the new blocks)
So here are instructions on how to make Scratch2Exe work with Scratch 1.4:
1. Locate the installation directory of Scratch2Exe (for me it's c:/program files/chirp)
2.make a backup of the folder "kit" (make a copy, call it "kit backup")
3.open the folder "kit" (the original, not the copy)
4.replace "runtime.image" with the scratch 1.4 image file (and rename it to runtime.image)
5.replace all the *.dll files with the ones from your scratch 1.4 installation
6.step deleted
7. make a scratch 1.4 project (that uses one of the new blocks)
8.compile the project with scratch2exe
9.see if it works
(note that when you close out of presentation mode, you can see the scripts)
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
Last edited by gershmer (2009-07-16 16:27:30)
Offline
You know, this could work but it you can. Look at the code in the first runtime.image and look for the code that puts Scratch in presentation mode, then look at the 1.3.1 version and look for a difference then set that difference on the 1.4 version of runtime.image and then it should close Scratch.
Offline
Magnie wrote:
You know, this could work but it you can. Look at the code in the first runtime.image and look for the code that puts Scratch in presentation mode, then look at the 1.3.1 version and look for a difference then set that difference on the 1.4 version of runtime.image and then it should close Scratch.
![]()
How would I open up the source if the 1.3.1 runtime.image? It's always in presentation mode! How would I get into a walkback? (and then do Preferences enableProgrammerFacilities)
Offline
Get Squeak and open it in Squeak.
Offline
Magnie wrote:
Get Squeak and open it in Squeak.
![]()
Actually, you just need a squeak vm (which i have)
So: here's what I see (when runtime.image is opened without running a project):
I see an edited version of Scratch 1.3.1 (see the title bar in the pic)
I can shift-click extras and exit user mode (to get to the world menu)
I can pop open the world menu (to open the source)
Here is the browser in which all the source code is stored:
Any ideas where the presentation mode might be?
Last edited by gershmer (2009-07-16 18:26:06)
Offline
I'm not sure.
(Only if there was a search tool.
)
Offline
@Magnie:
Why do all your posts end in smilies?
And...
there might be a search tool...
I'll have to do some research...
Here's what I found:
http://wiki.squeak.org/squeak/4 wrote:
There are several tools available for browsing around the code.
Whole-System Search
There are two ways to do whole-system search. First is the Method Finder. Open it, learn it, use it – it allows you to search for methods by name, and even by the values the method produces.
Second, all text windows have two ways to search raw method text available on the context menus.
1. There is "method source with it", which finds all methods that contain a string anywhere within their source. This tool is useful as a last resort when other approaches fail.
2. There is "method strings with it", which searches the string literals of all methods and returns a list of matches. This tool is useful for finding the code responsible for a menu or a window, or finding the code that is printing out some status message on Transcript.
Last edited by gershmer (2009-07-16 21:24:37)
Offline
Cause I always show my emotions or just that it's good or bad.
(lol)
Well, search Views or Presentation/or with " mode" with possibillity #2.
Last edited by Magnie (2009-07-16 22:29:19)
Offline
Magnie wrote:
search
Umm.. I just ran into a problem...
In the version of squeak scratch is written in (2.8, and there is no way to change this, unless you manually copy the code into a newer version of squeak), there is no Method Finder! (I checked online, there isn't.)
Offline
gershmer wrote:
Magnie wrote:
Get Squeak and open it in Squeak.
![]()
Actually, you just need a squeak vm (which i have)
So: here's what I see (when runtime.image is opened without running a project):
I see an edited version of Scratch 1.3.1 (see the title bar in the pic)
http://www.gershmer.net/runtimeimage/runtime1.jpeg
I can shift-click extras and exit user mode (to get to the world menu)
http://www.gershmer.net/runtimeimage/runtime2.jpeg
I can pop open the world menu (to open the source)
http://www.gershmer.net/runtimeimage/runtime3.jpeg
Here is the browser in which all the source code is stored:
http://www.gershmer.net/runtimeimage/runtime4.jpeg
Any ideas where the presentation mode might be?
I know what that is! Its scratch clone hack!
Offline
dav09 wrote:
I know what that is! Its scratch clone hack!
What? It's Jens' edit of a Scratch 1.3.1 Image to create a Scratch2Exe File.
Offline
gershmer wrote:
dav09 wrote:
I know what that is! Its scratch clone hack!
What? It's Jens' edit of a Scratch 1.3.1 Image to create a Scratch2Exe File.
jend didnt make that! jens made BYOB. I know its the clone hack from the screen shots!
Offline
Dav09 it's the Scratch2Exe.
Offline
I know where it is - I changed it for my DiscScratchr program too. So...
Jens Chirps image used 'if presentationFlag' so only when Chirp was started with the -presentation parameter, it would exit when you go out presentation mode. I did it without any flags - there will never be a situation your modified image should not exit when going out presentation mode. I think that applies to you too.
So, go to:
Scratch-UI-Panes > ScratchFrameMorph > presentation mode > exitPresentationMode
Then, replace everything (ok almost everything, not the notes - notes are good xD) with
^SmallTalk quitPrimitive
That's it. Do not try it out before you save your image, it exits
But uhm - there is no 1.4 source released so what will you do? I was unable to cause a walkback in Scratch 1.4
Offline
Magnie wrote:
Dav09 it's the Scratch2Exe.
really? I think it looks very like 1.2 clone hack
Offline
JSO wrote:
I know where it is - I changed it for my DiscScratchr program too. So...
Jens Chirps image used 'if presentationFlag' so only when Chirp was started with the -presentation parameter, it would exit when you go out presentation mode. I did it without any flags - there will never be a situation your modified image should not exit when going out presentation mode. I think that applies to you too.
So, go to:
Scratch-UI-Panes > ScratchFrameMorph > presentation mode > exitPresentationMode
Then, replace everything (ok almost everything, not the notes - notes are good xD) with
^SmallTalk quitPrimitive
That's it. Do not try it out before you save your image, it exits![]()
But uhm - there is no 1.4 source released so what will you do? I was unable to cause a walkback in Scratch 1.4![]()
I figured out how to cause a walkback!
So here's what you do:
In the default cat sprite, make another costume to be a single pixel (the colour doesn't matter).
Then, set the sprite to be 54000% in size.
Now, just switch to the cat costume...
You will see a red walkback window entitled 'space is low'
And It works!
Offline
Dav09: It is just try it.
JSO: Thanks for your help.
Gershmer: Smart.
Offline
Magnie wrote:
Dav09: It is just try it.
![]()
JSO: Thanks for your help.![]()
Gershmer: Smart.![]()
I would really like to thank JSO, too.
ps. the part about me may be sigged (in forum talk that's "made your signature")
Aww... dang it! You can't sig quotes on the scratch forums.
Last edited by gershmer (2009-07-20 20:08:16)
Offline
I knew it had to do with something in view modes.
JSO: Wana help me make "Scratch in Text?" It's Scratch in text you have to type in the code instead of Dragging and dropping blacks. It will be like scratch, where you type in the code or in actual Scratch you drag n drop the blocks.
Offline
2 Things.
1) Where can I get Scratch2Exe?
2) Where can I get the Scratch 1.4 source code, since it is in your signature?

Offline
terminator68 wrote:
2 Things.
1) Where can I get Scratch2Exe?
2) Where can I get the Scratch 1.4 source code, since it is in your signature?
Gosh. I though this thread died.
1.http://chirp.scratchr.org/scratch2exe.html <<Now has been updated to Scratch 1.4, no need for the instructions in this thread
2.http://info.scratch.mit.edu/Source_Code <<Scratch 1.4 Source
Offline
it looked like clone hack first... but now i know its not! sorry
Offline
Topic closed
Pages: 1