<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Making_Scratch_Crash_%281.4%29</id>
	<title>Making Scratch Crash (1.4) - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Making_Scratch_Crash_%281.4%29"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Making_Scratch_Crash_(1.4)&amp;action=history"/>
	<updated>2026-09-26T21:54:03Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Making_Scratch_Crash_(1.4)&amp;diff=1634&amp;oldid=prev</id>
		<title>Patarakin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Making_Scratch_Crash_(1.4)&amp;diff=1634&amp;oldid=prev"/>
		<updated>2022-07-21T08:33:12Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 11:33, 21 июля 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Making_Scratch_Crash_(1.4)&amp;diff=1633&amp;oldid=prev</id>
		<title>scratch&gt;TemplatesFTW: Automated edit: fixed 1 style guideline</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Making_Scratch_Crash_(1.4)&amp;diff=1633&amp;oldid=prev"/>
		<updated>2022-04-29T19:08:23Z</updated>

		<summary type="html">&lt;p&gt;Automated edit: fixed 1 style guideline&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{obsolete feature}}&lt;br /&gt;
{{other version|1.4|3.0|2.0}}&lt;br /&gt;
{{warning|This script will close Scratch without saving one&amp;#039;s work. Be sure to save before testing this.}}&lt;br /&gt;
&lt;br /&gt;
It is simple to make a [[project]] that closes when the [[Green Flag]] is clicked. This has been one way users try to [[Project Downloading#Locking Downloads|prevent]] [[remix]]ing, though it is actively discouraged by the [[Scratch Team]]. It has also not been successful, as you can open a remixed project without ever pressing the [[Green Flag]]. This is called &amp;#039;&amp;#039;&amp;#039;making Scratch crash&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Method 1: Variables ==&lt;br /&gt;
# Create a project.&lt;br /&gt;
# Make a [[Variable#Local Variables|local variable]] called &amp;quot;variable&amp;quot;.&lt;br /&gt;
# Add the following code to a sprite:&lt;br /&gt;
&amp;lt;scratchblocks version=&amp;quot;2.0&amp;quot;&amp;gt;&lt;br /&gt;
when gf clicked&lt;br /&gt;
hide&lt;br /&gt;
set [variable v] to [2]&lt;br /&gt;
forever&lt;br /&gt;
   set [variable v] to ((variable) * (variable))&lt;br /&gt;
   set [variable v] to ((variable) * (variable))&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks version=&amp;quot;2.0&amp;quot;&amp;gt;&lt;br /&gt;
when gf clicked&lt;br /&gt;
hide&lt;br /&gt;
set [variable v] to [2]&lt;br /&gt;
forever&lt;br /&gt;
   change [variable v] by ([10 ^ v] of (variable))&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks version=&amp;quot;2.0&amp;quot;&amp;gt;&lt;br /&gt;
when gf clicked&lt;br /&gt;
hide&lt;br /&gt;
set [variable v] to [12]&lt;br /&gt;
forever&lt;br /&gt;
 set [variable v] to ((variable) * (variable))&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Explanation ===&lt;br /&gt;
This [[script]] will fill [[Smalltalk|Squeak]]&amp;#039;s memory, and will force it to close. Squeak automatically crashes when a [[variable]] reaches a very high amount as it does not have the memory to maintain it. Since Scratch runs within the Squeak environment, Scratch closes when the Squeak environment closes. If a high RAM has been allotted to Scratch or if this is tested on Scratch 2.0, it may just say &amp;quot;Infinity&amp;quot;, and not close.&lt;br /&gt;
&lt;br /&gt;
== Method 2: Graphic Effects ==&lt;br /&gt;
# Get into the [[Scratch 1.4 Source Code]] and open the [[System Browser]].&lt;br /&gt;
# Add &amp;lt;code&amp;gt;&amp;#039;water ripple&amp;#039;&amp;lt;/code&amp;gt; near the rest of the graphic effect names in &amp;lt;code&amp;gt;Scratch-Objects &amp;gt;&amp;gt; ScriptableScratchMorph instance &amp;gt;&amp;gt; looks ops &amp;gt;&amp;gt; graphicEffectNames&amp;lt;/code&amp;gt;&lt;br /&gt;
# Save the changes and close the System Browser.&lt;br /&gt;
# Drag out a [[Set () Effect to () (block)|Set () Effect to ()]] block and choose &amp;quot;water ripple&amp;quot; from the dropdown and set the value to 1 or higher. When the block is clicked, it will crash Scratch. Note that Squeak doesn&amp;#039;t have enough memory to run the effect, so it crashes instead.&amp;lt;ref&amp;gt;[[projects:1504686]]&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;[[scratch:static/projects/rubiks cube guy238/1504686.sb]]{{dead link}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;scratchblocks version=&amp;quot;2.0&amp;quot;&amp;gt;&lt;br /&gt;
when gf clicked&lt;br /&gt;
set [water ripple v] effect to ((1)/(0))&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Method 3: Hacked Block ==&lt;br /&gt;
# Get into the [[Scratch 1.4 Source Code]] and open the [[System Browser]].&lt;br /&gt;
# In &amp;lt;code&amp;gt;Scratch-Objects &amp;gt;&amp;gt; ScriptableScratchMorph class &amp;gt;&amp;gt; block specs &amp;gt;&amp;gt; blockSpecs&amp;lt;/code&amp;gt; add &amp;lt;code&amp;gt;(&amp;#039;close Scratch&amp;#039; #- #closeScratch)&amp;lt;/code&amp;gt; at the end of the &amp;lt;code&amp;gt;&amp;#039;control&amp;#039;&amp;lt;/code&amp;gt; section&lt;br /&gt;
# Add the following in &amp;lt;code&amp;gt;Scratch-Objects &amp;gt;&amp;gt; ScriptableScratchMorph instance &amp;gt;&amp;gt; other ops&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;closeScratch&lt;br /&gt;
	Smalltalk snapshot: false andQuit: true&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Save both the changes and close the System Browser.&lt;br /&gt;
# Drag out the close Scratch block that was just made, and run the block. Instead of crashing, Scratch closes without a warning.&lt;br /&gt;
&amp;lt;scratchblocks version=&amp;quot;2.0&amp;quot;&amp;gt;&lt;br /&gt;
when gf clicked&lt;br /&gt;
close Scratch :: control&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Scratch Program Tutorials]]&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;/div&gt;</summary>
		<author><name>scratch&gt;TemplatesFTW</name></author>
	</entry>
</feed>