This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » 中文
  •  » 要怎把Scratch的檔案轉成exe執行檔啊!

#1 2009-09-26 06:21:28

happy52123
Scratcher
Registered: 2009-09-26
Posts: 2

要怎把Scratch的檔案轉成exe執行檔啊!

我做好遊戲想把Scratch轉成執行檔
可是上網找了好久都找不到怎麼轉
可以請其他人告訴我嗎

Offline

 

#2 2009-09-26 09:55:44

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: 要怎把Scratch的檔案轉成exe執行檔啊!

Offline

 

#3 2009-09-27 03:17:33

happy52123
Scratcher
Registered: 2009-09-26
Posts: 2

Re: 要怎把Scratch的檔案轉成exe執行檔啊!

請各位給我中文我不是美國人
我是台灣人!
我是台灣人!
台灣當選!
ok
[以上的話用台語講比較有力]

Offline

 

#4 2009-09-27 03:33:44

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: 要怎把Scratch的檔案轉成exe執行檔啊!

我建議大家看英文(若你懂),因為 Google 把它翻譯得很糟糕。

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  big_smile  )
- 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  big_smile

The only bad thing is you cannot hide the scripts at the end. But uhm... Maybe Jens could do a little hack ?  smile

Joren

JSO說:

大家好,

我發現一種新的方式來運行Scratch項目從一個可執行文件。該可執行文件可以到處跑,也沒有Scratch的計算機上安裝。 EXE的,可以在演示模式下運行,立即。

我沒有創造了另一個工具,這一點-我用了(隱藏)Windows應用程序。這意味著你必須做一些設置自己,但我會盡力解釋盡可能好。

它應該為每一個Windows版本更新後的Windows 95 -因為長文件名...

操作方法

1> 單擊開始,然後“Run...”
輸入“iexpress”,然後點擊“OK”。
您應該看到的老式“IExpress Wizard”窗口。

2> 選擇“Create new Self Extraction Directive file.”
並點擊“next”。

3> 作為“Package Purpose”,
選擇“Extract files and run an installation command”
並點擊“next”

4> 作為“Package title”,
您可以輸入您想要的任何-我用“Scratch Project”。
        此字段也沒有所謂,因為我們會隱藏所有即將舉行的窗口,以便用戶不會討厭安裝的Windows 95風格的消息,而不是Scratch項目應公開。點擊“Next”了。

5> 選擇“No prompt”,點擊“next”,
選擇“Do not display a license”,並點擊“Next”了。

6> 現在我們將不得不添加所有必要的文件包,
這可以通過點擊“Add”瀏覽一個文件,然後單擊打開。
您只能打開一個文件,每次單擊“Add”

首先,真正的必要Scratch應用程序文件應增加。
瀏覽Scratch安裝文件夾(通常是C:\Program Files\Scratch),並添加下列文件:

Scratch.exe
Scratch.image
Scratch.ini
ScratchPlugin.dll
Mpeg3Plugin.dll
UnicodePlugin.dll

單擊“Add”了,現在從頭開始瀏覽你的Scratch項目,點擊“Open”。
在這個例子中,它被稱為project.sb。

現在,您將所有必需的文件到安裝程序包,因此點擊“Next”繼續。

7> 作為“Install program”,我們要填寫申請Scratch。
填寫
Scratch.exe "scratch.image" presentation "project.sb"
在“Install Program”。 (第一個文本框)

替換project.sb的名稱與您的項目。 (所以如果你的項目被命名為“racing game.sb”,填寫
Scratch.exe "scratch.image" presentation "racing game.sb"

給“Post Install Command”(第二個文本字段),因為它是:“<none>”,點擊“Next”。

8> 在“Show Window”的步驟,你應該選擇“hidden”。這樣的解壓縮程序將不會顯示。點擊“Next”,再...

10> 在“Package name and options”,單擊瀏覽並保存最終EXE文件。我命名它就像我的項目- project.EXE

選中兩種選擇:
-Hide File Extracting Progress Animation from user(111,111我們的項目顯示,沒有醜陋的12歲了動畫  big_smile  )
-Store file using Long File Name inside package(Scratch使用長文件名-它不會工作沒有選中此選項-我嘗試這樣做。)

並點擊“Next”再

11> 選擇“No Restart”我們不是一個真正的安裝運行所以不需要重新啟動。

12> “Save Self Extraction Directive”允許您存儲您所做的設置。沒有必要,所以當你完成後,點擊“Next”。

13> 點擊next最後一次開始創建包。你會看到一個DOS窗口,一消息時,已經結束了。

現在,瀏覽到您的PROJECT.EXE(!)en看著它是一個完整的應用程序  big_smile 

唯一的缺點在於,你不能隱藏的腳本在最後。但uhm...Jens也許可以做一些黑客?  smile 

Joren

Last edited by mathematics (2009-09-27 03:47:27)

Offline

 

#5 2009-09-30 01:56:02

ccysm
Scratcher
Registered: 2007-08-10
Posts: 28

Re: 要怎把Scratch的檔案轉成exe執行檔啊!

http://scratch.mit.edu/forums/viewtopic.php?id=12970
有人發過了,建議先爬一下文再發問。

Offline

 

#6 2010-07-16 09:45:06

apple0516
Scratcher
Registered: 2009-05-08
Posts: 3

Re: 要怎把Scratch的檔案轉成exe執行檔啊!

如何把Scratch的檔案轉成隱藏腳本的exe執行檔?
並且支援到最新版本

Last edited by apple0516 (2010-07-16 09:50:56)

Offline

 

#7 2010-07-16 11:12:43

w_x
Scratcher
Registered: 2010-07-13
Posts: 17

Re: 要怎把Scratch的檔案轉成exe執行檔啊!

用scratch2EXE,在网上搜一下就有下载的!安装后在桌面用 ChirpCompiler打开你的.sb文件然后选择一个.ICO(图标文件)等一会就可以在“我的文档”里见到一个.exe了!
安装文件是这个ChirpCompiler-setup.exe 大小2638M!

Offline

 
  • Index
  •  » 中文
  •  » 要怎把Scratch的檔案轉成exe執行檔啊!

Board footer