Cool but though im 12 i don't have animation that bad just look at the nitrome sprite resources, no misjudgements, as soon as the summer is over and im in britain again ill do it:)<switch to costume[ smile5 ] >
Last edited by maciej (2009-08-20 07:16:19)
Offline
this is very helpful! thankyou! can you send the .exe file to friends, and then they be able to run it straight off. or would they need to do some other stuff for it to work?
Offline
JSO wrote:
Hi all,
I discovered a new way to run Scratch projects from an executable file. The executable can be ran everywhere, also on computers without Scratch installed. The EXE can be ran in presentation mode immediately.
I have not created another tool for this - I used a (hidden) Windows application. That means you'll have to do some settings yourselves, but I'll try to explain as good as possible.
It should work for every windows version newer then Windows 95 - because of the long filenames...
How-to
1> Click start, then "Run..."
Type in "iexpress" and click "OK".
You should see the old-fashioned "IExpress Wizard" window.
2> Select "Create new Self Extraction Directive file."
and click "next".
3> As "Package Purpose",
select "Extract files and run an installation command"
and click "next"
4> As "Package title",
you can type anything you want - I used "Scratch Project".
This field doesn't really matters because we will hide all upcoming windows so the user is not annoyed by Windows 95 style installation messages, instead the Scratch project should open. Click "Next" again.
5> Select "No prompt", click "next",
select "Do not display a license" and click "Next" again.
6> Now we'll have to add all necessary files to the package,
do this by click "Add" browsing for a file, and Click open.
You can only open one file each time you click "Add"
First, the really-necessary Scratch application files should be added.
Browse for the Scratch installation folder (usually C:\Program Files\Scratch") and add the following files:
Scratch.exe
Scratch.image
Scratch.ini
ScratchPlugin.dll
Mpeg3Plugin.dll
UnicodePlugin.dll
Click "Add" again, Now browse for your scratch project and click "Open".
In this example, it's called project.sb .
Now you added All the required files to the installer package, so click "Next" to continue.
7> As "Install program", we are going to fill in the Scratch application.
Fill in
Scratch.exe "scratch.image" presentation "project.sb"
in "Install Program". (the first text box)
Replace project.sb with the name of your project. (so if your project is named "racing game.sb", fill in
Scratch.exe "scratch.image" presentation "racing game.sb"
Leave "Post Install Command" (the second text field) as it is: "<none>" and Click "Next".
8> In the "Show Window" step, you should select "hidden". That way the unpacking program will not be shown. Click "Next", again...
10> In "Package name and options", click browse and save your final EXE file. I named it like my project - project.EXE
Check both options:
- Hide File Extracting Progress Animation from user (We wan't the project to show up, no ugly 12-years-old animation )
- Store file using Long File Name inside package (Scratch uses long filenames - It won't work without this option checked - I tried it out.)
And Click "Next" again
11> Select "No Restart" we are not running a real installer so a restart is not required.
12> The "Save Self Extraction Directive" allows you to store the settings you made. It is not necessary, so when you're finished, click "Next".
13> Click next one last time to start creating the package. You'll see a DOS window, and a message when it's finished.
Now browse to your PROJECT.EXE (!) en watch it being a complete application
The only bad thing is you cannot hide the scripts at the end. But uhm... Maybe Jens could do a little hack ?
Joren
Thank-you, thank-you, thank-you! You're right it is too bad you can't hide scripts at the end but I'll survive.
THANK-YOU! It works.
Offline
markyparky56 wrote:
this is very helpful! thankyou! can you send the .exe file to friends, and then they be able to run it straight off. or would they need to do some other stuff for it to work?
So long as they have Windows (above but not 95 like JSO said) it will work.
Offline
cowper-jt wrote:
JSO wrote:
Hi all,
I discovered a new way to run Scratch projects from an executable file. The executable can be ran everywhere, also on computers without Scratch installed. The EXE can be ran in presentation mode immediately.
I have not created another tool for this - I used a (hidden) Windows application. That means you'll have to do some settings yourselves, but I'll try to explain as good as possible.
It should work for every windows version newer then Windows 95 - because of the long filenames...
How-to
1> Click start, then "Run..."
Type in "iexpress" and click "OK".
You should see the old-fashioned "IExpress Wizard" window.
2> Select "Create new Self Extraction Directive file."
and click "next".
3> As "Package Purpose",
select "Extract files and run an installation command"
and click "next"
4> As "Package title",
you can type anything you want - I used "Scratch Project".
This field doesn't really matters because we will hide all upcoming windows so the user is not annoyed by Windows 95 style installation messages, instead the Scratch project should open. Click "Next" again.
5> Select "No prompt", click "next",
select "Do not display a license" and click "Next" again.
6> Now we'll have to add all necessary files to the package,
do this by click "Add" browsing for a file, and Click open.
You can only open one file each time you click "Add"
First, the really-necessary Scratch application files should be added.
Browse for the Scratch installation folder (usually C:\Program Files\Scratch") and add the following files:
Scratch.exe
Scratch.image
Scratch.ini
ScratchPlugin.dll
Mpeg3Plugin.dll
UnicodePlugin.dll
Click "Add" again, Now browse for your scratch project and click "Open".
In this example, it's called project.sb .
Now you added All the required files to the installer package, so click "Next" to continue.
7> As "Install program", we are going to fill in the Scratch application.
Fill in
Scratch.exe "scratch.image" presentation "project.sb"
in "Install Program". (the first text box)
Replace project.sb with the name of your project. (so if your project is named "racing game.sb", fill in
Scratch.exe "scratch.image" presentation "racing game.sb"
Leave "Post Install Command" (the second text field) as it is: "<none>" and Click "Next".
8> In the "Show Window" step, you should select "hidden". That way the unpacking program will not be shown. Click "Next", again...
10> In "Package name and options", click browse and save your final EXE file. I named it like my project - project.EXE
Check both options:
- Hide File Extracting Progress Animation from user (We wan't the project to show up, no ugly 12-years-old animation )
- Store file using Long File Name inside package (Scratch uses long filenames - It won't work without this option checked - I tried it out.)
And Click "Next" again
11> Select "No Restart" we are not running a real installer so a restart is not required.
12> The "Save Self Extraction Directive" allows you to store the settings you made. It is not necessary, so when you're finished, click "Next".
13> Click next one last time to start creating the package. You'll see a DOS window, and a message when it's finished.
Now browse to your PROJECT.EXE (!) en watch it being a complete application
The only bad thing is you cannot hide the scripts at the end. But uhm... Maybe Jens could do a little hack ?
JorenThank-you, thank-you, thank-you! You're right it is too bad you can't hide scripts at the end but I'll survive.
THANK-YOU! It works.
Hey? You guys? You know you can just press alt+f4?
Offline
greatpopcorn wrote:
cowper-jt wrote:
JSO wrote:
Hi all,
I discovered a new way to run Scratch projects from an executable file. The executable can be ran everywhere, also on computers without Scratch installed. The EXE can be ran in presentation mode immediately.
I have not created another tool for this - I used a (hidden) Windows application. That means you'll have to do some settings yourselves, but I'll try to explain as good as possible.
It should work for every windows version newer then Windows 95 - because of the long filenames...
How-to
1> Click start, then "Run..."
Type in "iexpress" and click "OK".
You should see the old-fashioned "IExpress Wizard" window.
2> Select "Create new Self Extraction Directive file."
and click "next".
3> As "Package Purpose",
select "Extract files and run an installation command"
and click "next"
4> As "Package title",
you can type anything you want - I used "Scratch Project".
This field doesn't really matters because we will hide all upcoming windows so the user is not annoyed by Windows 95 style installation messages, instead the Scratch project should open. Click "Next" again.
5> Select "No prompt", click "next",
select "Do not display a license" and click "Next" again.
6> Now we'll have to add all necessary files to the package,
do this by click "Add" browsing for a file, and Click open.
You can only open one file each time you click "Add"
First, the really-necessary Scratch application files should be added.
Browse for the Scratch installation folder (usually C:\Program Files\Scratch") and add the following files:
Scratch.exe
Scratch.image
Scratch.ini
ScratchPlugin.dll
Mpeg3Plugin.dll
UnicodePlugin.dll
Click "Add" again, Now browse for your scratch project and click "Open".
In this example, it's called project.sb .
Now you added All the required files to the installer package, so click "Next" to continue.
7> As "Install program", we are going to fill in the Scratch application.
Fill in
Scratch.exe "scratch.image" presentation "project.sb"
in "Install Program". (the first text box)
Replace project.sb with the name of your project. (so if your project is named "racing game.sb", fill in
Scratch.exe "scratch.image" presentation "racing game.sb"
Leave "Post Install Command" (the second text field) as it is: "<none>" and Click "Next".
8> In the "Show Window" step, you should select "hidden". That way the unpacking program will not be shown. Click "Next", again...
10> In "Package name and options", click browse and save your final EXE file. I named it like my project - project.EXE
Check both options:
- Hide File Extracting Progress Animation from user (We wan't the project to show up, no ugly 12-years-old animation )
- Store file using Long File Name inside package (Scratch uses long filenames - It won't work without this option checked - I tried it out.)
And Click "Next" again
11> Select "No Restart" we are not running a real installer so a restart is not required.
12> The "Save Self Extraction Directive" allows you to store the settings you made. It is not necessary, so when you're finished, click "Next".
13> Click next one last time to start creating the package. You'll see a DOS window, and a message when it's finished.
Now browse to your PROJECT.EXE (!) en watch it being a complete application
The only bad thing is you cannot hide the scripts at the end. But uhm... Maybe Jens could do a little hack ?
JorenThank-you, thank-you, thank-you! You're right it is too bad you can't hide scripts at the end but I'll survive.
THANK-YOU! It works.Hey? You guys? You know you can just press alt+f4?
Yes but the point of the EXE is to give it to a friend who doesn't have Scratch. But you do have a point but are your friends going to use ALT+F4?
Offline
What does Alt+F4 do? For me it says 'are you sure you want to quit?'
Offline
fire219 wrote:
It made the EXE, but it ran as regular Scratch
same with me
Offline
Mozaz wrote:
What's the point of an .exe?
Is it just so that you can run it without having the scratch program or am I missing someting?
You're right, the point of .exe is so it runs without having to install scratch.
Offline
MathWizz wrote:
Wait, does this mean that it is possible to turn Scratch into a simple Scratch.exe? WOW!
* necropost
Offline
I don't understand what I need to type in for step seven.
7> As "Install program", we are going to fill in the Scratch application.
Fill in
Scratch.exe "scratch.image" presentation "project.sb"
in "Install Program". (the first text box)
So I put in all of this:
Scratch.exe "scratch.image" presentation "project.sb"
Everything else went great but when I opened the exe I got: Could not read:project.sb.
Offline
I get an error: "could not read [file name]"
Offline
Bump big time
/\
|
|
|
<change y by( ALOT! )>
Last edited by Jakey22 (2010-04-20 20:09:59)
Offline
Or you can just download BYOB 2.0.2 and compile it there.
[excess smileys removed by Moderator]
WAFFLES
Last edited by Paddle2See (2010-11-10 19:58:43)
Offline
Mozaz wrote:
What's the point of an .exe?
Is it just so that you can run it without having the scratch program or am I missing someting?
From what I think, the point of converting a scratch application into an .exe file, is too allow others to view your project(/s) quicker. Instead of downloading scratch and then a project, you can just bundle those two things for convenience.
Offline
Without EXE's computers would be pretty borring, not being able to do anything and all.
Offline
Awesome!
Offline
Jens wrote:
Haha, very clever, JSO! will it run under Vista without admin rights? I'll update an image for you once the source code gets released...
It worked for me.
Offline
JSO wrote:
That probably means you spelled the project filename wrong. Did you replace "project.sb" with "thenameofyourproject.sb" ?
I followed that and I got the same thing as him!!!!!!!!!!!!!!!!!!!!!!!!!!!
Offline