

<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.zeroy.com/index.php?action=history&amp;feed=atom&amp;title=Call_of_Duty_5%3A_Script_Debugging</id>
	<title>Call of Duty 5: Script Debugging - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.zeroy.com/index.php?action=history&amp;feed=atom&amp;title=Call_of_Duty_5%3A_Script_Debugging"/>
	<link rel="alternate" type="text/html" href="https://wiki.zeroy.com/index.php?title=Call_of_Duty_5:_Script_Debugging&amp;action=history"/>
	<updated>2026-05-07T08:19:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.zeroy.com/index.php?title=Call_of_Duty_5:_Script_Debugging&amp;diff=5767&amp;oldid=prev</id>
		<title>Zeroy: Protected &quot;Call of Duty 5: Script Debugging&quot; [edit=autoconfirmed:move=autoconfirmed]</title>
		<link rel="alternate" type="text/html" href="https://wiki.zeroy.com/index.php?title=Call_of_Duty_5:_Script_Debugging&amp;diff=5767&amp;oldid=prev"/>
		<updated>2009-07-30T11:13:42Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/index.php?title=Call_of_Duty_5:_Script_Debugging&quot; title=&quot;Call of Duty 5: Script Debugging&quot;&gt;Call of Duty 5: Script Debugging&lt;/a&gt;&amp;quot; [edit=autoconfirmed:move=autoconfirmed]&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:13, 30 July 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Zeroy</name></author>
	</entry>
	<entry>
		<id>https://wiki.zeroy.com/index.php?title=Call_of_Duty_5:_Script_Debugging&amp;diff=5738&amp;oldid=prev</id>
		<title>CoDEmanX: New page: center If you&#039;ve encountered a message similar to the one in the image, you&#039;ve run into a problem with your script.  You can fail-safe your script through various...</title>
		<link rel="alternate" type="text/html" href="https://wiki.zeroy.com/index.php?title=Call_of_Duty_5:_Script_Debugging&amp;diff=5738&amp;oldid=prev"/>
		<updated>2009-07-29T14:05:16Z</updated>

		<summary type="html">&lt;p&gt;New page: &lt;a href=&quot;/index.php?title=File:ScriptError.jpg&quot; title=&quot;File:ScriptError.jpg&quot;&gt;center&lt;/a&gt; If you&amp;#039;ve encountered a message similar to the one in the image, you&amp;#039;ve run into a problem with your script.  You can fail-safe your script through various...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Image:ScriptError.jpg|center]]&lt;br /&gt;
If you&amp;#039;ve encountered a message similar to the one in the image, you&amp;#039;ve run into a problem with your script.&lt;br /&gt;
&lt;br /&gt;
You can fail-safe your script through various ways and/or use debug script functions to report any errors as you work on your map/mod.&lt;br /&gt;
&lt;br /&gt;
=Dvars=&lt;br /&gt;
If you&amp;#039;ve run into an error but the engine error message is vague or does not specificy an exact script line, you may have &amp;#039;&amp;#039;&amp;#039;Developer&amp;#039;&amp;#039;&amp;#039; set to &amp;#039;&amp;#039;&amp;#039;0&amp;#039;&amp;#039;&amp;#039; (by default). Be sure to set &amp;#039;&amp;#039;&amp;#039;Developer&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; before you launch your map.&lt;br /&gt;
&lt;br /&gt;
You may also want to set &amp;#039;&amp;#039;&amp;#039;Developer_Script&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; too, it is 0 by default. This will read any script between &amp;lt;code&amp;gt;/#   #/&amp;lt;/code&amp;gt; -- it is explained below through examples.&lt;br /&gt;
&lt;br /&gt;
=Logfile=&lt;br /&gt;
You may want to have a digital text copy of the engine error, which is where a Logfile comes in hand.&amp;lt;br&amp;gt;&lt;br /&gt;
Also, you may run into nasty errors that freeze/crash the game depending on how servely bugged your script is, and may not get a chance to view the error within the game. A Logfile will generate a digital copy of the error report in a text file for your convenience when you can&amp;#039;t view the error in-game.&lt;br /&gt;
&lt;br /&gt;
You can set it by command line:&lt;br /&gt;
 +set &amp;#039;&amp;#039;&amp;#039;logfile&amp;#039;&amp;#039;&amp;#039; #&lt;br /&gt;
You can set it via the console:&lt;br /&gt;
 /&amp;#039;&amp;#039;&amp;#039;logfile&amp;#039;&amp;#039;&amp;#039; #&lt;br /&gt;
&lt;br /&gt;
{| border = &amp;quot;1&amp;quot;&lt;br /&gt;
!Value&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;0&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|Disable&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|Async Write&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|Sync Every Write&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Defined vs Undefined=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Asserts=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Developer Script=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Common Tips=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources: [http://wiki.treyarch.com/wiki/Scripting_Debugging Treyarch&amp;#039;s Wiki]&lt;br /&gt;
&lt;br /&gt;
[[Category:Call of Duty 5]]&lt;br /&gt;
[[Category:Scripting]]&lt;br /&gt;
[[Category:Debugging]]&lt;br /&gt;
[[Category:Modding]]&lt;/div&gt;</summary>
		<author><name>CoDEmanX</name></author>
	</entry>
</feed>