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

#1 2008-03-14 07:24:35

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Distributing Scratch Projects as Exe (sort of…)

I have just uploaded a little experimental prototype of a utility that lets you turn a Scratch Project into a "stand-alone" executable for Windows. You can
read about it here: http://www.chirp.scratchr.org/blog/?p=10, the technically trivial details are explained here: http://www.chirp.scratchr.org/blog/?page_id=8 and the download link is there: http://www.chirp.scratchr.org/blog/?page_id=5 (at the bottom).


Jens Mönig

Offline

 

#2 2008-03-14 09:06:58

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

Another wonderful tool!  Unfortunatly, I was unable to get it to work under Vista Home Premium. 

The installation went well, two shortcuts showed up on my desktop, one called NSIS and the other ChirpCompiler.  I ran ChirpCompiler and it asked all the right questions, allowing me to identify the Scratch file and the icon (I chose Cancel on the icon).  A folder then opened in the Scratch2exe/exe directory but there was no file there.  I searched my entire hard drive with the thought that maybe it was hiding somewhere else, but I was unable to locate it.  I then repeated the process running ChirpCompiler as Administrator with the same negative results.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2008-03-14 09:15:16

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

Thanks for testing it, Paddle2See!

Hmm, I tested it under XP and ME, and was afraid that it wouldn't work under Vista for whatever reasons...
If you didn't have NSIS installed before you might try restarting Windows for the settings to take effect (NSIS appends some paths and registry entries). I'm unsure about this, could you maybe try this and then tell me if it worked?

Thanks!


Jens Mönig

Offline

 

#4 2008-03-14 10:31:12

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

Did a reboot, tried again, same negative results  sad

Does it usually take a bit of time before the EXE folder is shown?  Mine is displaying right away, very quickly.

What are you using for a TEMP folder, maybe I should check and see if I have directory at the path you are using.  Are there any other PATH dependencies I should know about?


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#5 2008-03-15 10:17:09

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

Oops, seems like something is seriously wrong with this. I'll get in touch next week...

In the meantime, can anyone please tell me if it works for them on XP or some other Windows version, because it's kind of hard trying to find a bug you can't recreate.

Thanks!


Jens Mönig

Offline

 

#6 2008-03-16 12:45:56

S65
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: Distributing Scratch Projects as Exe (sort of…)

yeah, I have the same problem as Paddle2See here, and I'm on XP.

Offline

 

#7 2008-03-16 13:50:36

goch
Scratcher
Registered: 2007-06-06
Posts: 21

Re: Distributing Scratch Projects as Exe (sort of…)

It works on Windows XP.

Offline

 

#8 2008-03-16 15:40:39

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

Ok, thanks S65 and goch! I'm investigating into this...


Jens Mönig

Offline

 

#9 2008-03-16 16:09:31

S65
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: Distributing Scratch Projects as Exe (sort of…)

wait, I think I found part of the problem. The /exe folder is Read-Only.

Offline

 

#10 2008-03-16 17:11:35

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

S65 wrote:

wait, I think I found part of the problem. The /exe folder is Read-Only.

You're right...I changed the properties on mine but it did not help.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#11 2008-03-16 19:32:38

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Re: Distributing Scratch Projects as Exe (sort of…)

I can't even get past step 2; it won't recognize my icon files!


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

#12 2008-03-17 03:45:01

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

I believe I just found and fixed the problem.

Could you please download it again and let me know if it works for you now? Thanks!


Jens Mönig

Offline

 

#13 2008-03-17 05:42:41

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

Jens wrote:

I believe I just found and fixed the problem.

Could you please download it again and let me know if it works for you now? Thanks!

Sorry, I am seeing the same problem.  I uninstalled Scratch2exe then reinstalled from the Blog.  I ran the program several times but the exe directory remained empty.

What is the end product of the program?  If I start with a scratch project called FooBar.sb, will I end up with FooBar.exe?


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#14 2008-03-17 06:11:47

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

Thanks again, Paddle2See. I just googled you and sent you an e-mail asking you to team up with me to fix this for good. If the e-mail doesn't reach you just holler....


Jens Mönig

Offline

 

#15 2008-03-17 15:36:55

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Re: Distributing Scratch Projects as Exe (sort of…)

Whoops, it was recognising my ico files, I was just looking in the wrong place.

I am having the same problem as Paddle2See.


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

#16 2008-03-19 14:16:54

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

Good news: Scratch2Exe now works on all Windows systems!

Please uninstall your current versions. You can also uninstall NSIS because the new version doesn't require it anymore. Download it from the links in the first post again and have fun turning your Scratch projects into exe-files.

Many thanks to Paddle2See for patiently helping me get it right in countless e-mails halfway across the globe! The idea and the technology used for this tool may be trivial, debugging it, however, was not. We learned a lot in the process, our next project will be to hack Vista  wink  and start a company by the name of "UpTheCreek" (just kidding)...


Jens Mönig

Offline

 

#17 2008-03-19 17:10:23

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

My thanks to you, Jens!  You have provided yet another valuable tool to the Scratch community.  You get my vote as Scractch Citizen of the Year (somebody with artistic talent please insert suitable award here)!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#18 2008-03-19 20:13:09

sausagestand
Scratcher
Registered: 2007-08-30
Posts: 34

Re: Distributing Scratch Projects as Exe (sort of…)

how do you make icon files O_O

Offline

 

#19 2008-03-20 01:18:07

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

sausagestand: You can create Windows icon files with any icon editor. There are many freeware icon editors on the web, just google them.


Jens Mönig

Offline

 

#20 2008-03-20 16:13:38

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Re: Distributing Scratch Projects as Exe (sort of…)

Still doesn't work for me.

I choose a project and then icon. A blank prompt window pops up only for a second - then a window appears saying, "Complier Error Code: 1". The Explorer window doesn't open at all.


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

#21 2008-03-21 16:48:15

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

relyt12101: If that happens you probably either have an apostrophe in a filename or in a folder name, or your icon is unsupported. What's the name of your project, and where is it located on your hard drive? Does it compile if you cancel on the icon?


Jens Mönig

Offline

 

#22 2008-03-21 17:52:36

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Re: Distributing Scratch Projects as Exe (sort of…)

It's not the icon because when I cancel it on the icon it still shows the error.

I tried it first with the file coloring.sb and then again with Pi Day.sb. They are both located in C:/Program Files/Scratch/Projects.


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

#23 2008-03-22 04:30:30

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

Hmmm.... I'll be looking into this. Does anyone else encounter this problem?


Jens Mönig

Offline

 

#24 2008-03-22 05:04:06

ihaveamac
Scratcher
Registered: 2007-09-22
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

It works when I don't choose an icon, but when I choose an icon I made, it says Compile Error Code: 1.


~ihaveamac - visit ihaveamac.net

Offline

 

#25 2008-03-22 09:23:17

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Distributing Scratch Projects as Exe (sort of…)

Icon files are a bit tricky, because you can store several graphical pages in them. Try files with a single icon, don't overdo (32x32 pixels @ 8 bpp should be fine), or edit the template in the src folder. You can also edit the icon in the exe-files using an external resource editor.


Jens Mönig

Offline

 

Board footer