<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://agiwiki.sierrahelp.com//index.php?action=history&amp;feed=atom&amp;title=Script_Buffer_Overflow_Error</id>
	<title>Script Buffer Overflow Error - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://agiwiki.sierrahelp.com//index.php?action=history&amp;feed=atom&amp;title=Script_Buffer_Overflow_Error"/>
	<link rel="alternate" type="text/html" href="http://agiwiki.sierrahelp.com//index.php?title=Script_Buffer_Overflow_Error&amp;action=history"/>
	<updated>2026-09-02T15:59:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>http://agiwiki.sierrahelp.com//index.php?title=Script_Buffer_Overflow_Error&amp;diff=20007&amp;oldid=prev</id>
		<title>Andrew Branscom at 14:55, 8 April 2025</title>
		<link rel="alternate" type="text/html" href="http://agiwiki.sierrahelp.com//index.php?title=Script_Buffer_Overflow_Error&amp;diff=20007&amp;oldid=prev"/>
		<updated>2025-04-08T14:55:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:55, 8 April 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A &amp;#039;&amp;#039;&amp;#039;script buffer overflow error&amp;#039;&amp;#039;&amp;#039; occurs when the script buffer has run out of room. The error message looks like the following:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A &amp;#039;&amp;#039;&amp;#039;script buffer overflow error&amp;#039;&amp;#039;&amp;#039; occurs when the script buffer has run out of room. The error message looks like the following:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Image:scriptBufferOverflow.png&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;Image:scriptBufferOverflow.png&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;quot;&amp;#039;&amp;#039;Script buffer overflow. Maximum size = v18 Press ESC to quit.&amp;#039;&amp;#039;&amp;quot;, where &amp;quot;v18&amp;quot; is replaced with the value of v18 (see [[Special Variables|special variables]]).&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;quot;&amp;#039;&amp;#039;Script buffer overflow. Maximum size = v18 Press ESC to quit.&amp;#039;&amp;#039;&amp;quot;, where &amp;quot;v18&amp;quot; is replaced with the value of v18 (see [[Special Variables|special variables]]).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key collectr_mwAGI-mw_:diff::1.12:old-1001:rev-20007 --&gt;
&lt;/table&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
	<entry>
		<id>http://agiwiki.sierrahelp.com//index.php?title=Script_Buffer_Overflow_Error&amp;diff=1001&amp;oldid=prev</id>
		<title>Andrew Branscom: Created page with &quot;A &#039;&#039;&#039;script buffer overflow error&#039;&#039;&#039; occurs when the script buffer has run out of room. The error message looks like the following:  Image:scriptBufferOverflow.png  &quot;&#039;&#039;Script ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://agiwiki.sierrahelp.com//index.php?title=Script_Buffer_Overflow_Error&amp;diff=1001&amp;oldid=prev"/>
		<updated>2013-08-02T21:53:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;A &amp;#039;&amp;#039;&amp;#039;script buffer overflow error&amp;#039;&amp;#039;&amp;#039; occurs when the script buffer has run out of room. The error message looks like the following:  Image:scriptBufferOverflow.png  &amp;quot;&amp;#039;&amp;#039;Script ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A &amp;#039;&amp;#039;&amp;#039;script buffer overflow error&amp;#039;&amp;#039;&amp;#039; occurs when the script buffer has run out of room. The error message looks like the following:&lt;br /&gt;
&lt;br /&gt;
Image:scriptBufferOverflow.png&lt;br /&gt;
&lt;br /&gt;
&amp;quot;&amp;#039;&amp;#039;Script buffer overflow. Maximum size = v18 Press ESC to quit.&amp;#039;&amp;#039;&amp;quot;, where &amp;quot;v18&amp;quot; is replaced with the value of v18 (see [[Special Variables|special variables]]).&lt;br /&gt;
&lt;br /&gt;
Fortunately, there are ways to deal with a script buffer overflow. The simplest solution is to increase the script buffer size by issuing the script.size command at the beginning of [[logic 0]] before doing &amp;#039;&amp;#039;&amp;#039;anything&amp;#039;&amp;#039;&amp;#039; that might add to the script buffer (the &amp;lt;code&amp;gt;script.size&amp;lt;/code&amp;gt; command clears the script buffer, so bad things can happen if it isn&amp;#039;t empty when &amp;lt;code&amp;gt;script.size&amp;lt;/code&amp;gt; is called).&lt;br /&gt;
&lt;br /&gt;
Simply increasing the script buffer size may not stop the error, though. If the problem is that your code is repeatedly loading and discarding resources or overlaying pictures, increasing the script buffer size may simply make it take longer for the overflow to occur. In this case, a better approach is to figure out why the script buffer overflow is occurring in the first place. The [[Memory and Script]] article can help you do this.&lt;br /&gt;
&lt;br /&gt;
==Sources==&lt;br /&gt;
&lt;br /&gt;
* [[AGI Error Code Tutorial v.1.0 by Nick Sonneveld]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;/div&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
</feed>