<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mygamingtalk.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Debugging_tips</id>
	<title>Debugging tips - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mygamingtalk.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Debugging_tips"/>
	<link rel="alternate" type="text/html" href="https://mygamingtalk.com/wiki/index.php?title=Debugging_tips&amp;action=history"/>
	<updated>2026-04-17T12:26:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://mygamingtalk.com/wiki/index.php?title=Debugging_tips&amp;diff=1673&amp;oldid=prev</id>
		<title>Palota at 13:54, 12 June 2023</title>
		<link rel="alternate" type="text/html" href="https://mygamingtalk.com/wiki/index.php?title=Debugging_tips&amp;diff=1673&amp;oldid=prev"/>
		<updated>2023-06-12T13:54:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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 13:54, 12 June 2023&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-l45&quot;&gt;Line 45:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 45:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;  /bot dbg_scriptgoals&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;  /bot dbg_scriptgoals&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&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;The 2nd way is to edit the game autoexec file i.e.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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;The 2nd way is to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;create or &lt;/ins&gt;edit the game autoexec file i.e.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&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;  ~\et\scripts\&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;et_autoexec&lt;/del&gt;.gm&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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;  ~\et\scripts\&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;et_autoexec_user&lt;/ins&gt;.gm&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&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;  ~\rtcw\scripts\&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;rtcw_autoexec&lt;/del&gt;.gm&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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;  ~\rtcw\scripts\&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;rtcw_autoexec_user&lt;/ins&gt;.gm&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;  ~\d3\scripts\d3_autoexec.gm&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;  ~\d3\scripts\d3_autoexec.gm&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;  ~\q4\scripts\q4_autoexec.gm&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;  ~\q4\scripts\q4_autoexec.gm&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Palota</name></author>
	</entry>
	<entry>
		<id>https://mygamingtalk.com/wiki/index.php?title=Debugging_tips&amp;diff=1393&amp;oldid=prev</id>
		<title>Palota: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://mygamingtalk.com/wiki/index.php?title=Debugging_tips&amp;diff=1393&amp;oldid=prev"/>
		<updated>2023-02-13T07:02:31Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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 07:02, 13 February 2023&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>Palota</name></author>
	</entry>
	<entry>
		<id>https://mygamingtalk.com/wiki/index.php?title=Debugging_tips&amp;diff=1392&amp;oldid=prev</id>
		<title>Palota: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://mygamingtalk.com/wiki/index.php?title=Debugging_tips&amp;diff=1392&amp;oldid=prev"/>
		<updated>2021-07-13T19:05:44Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{process header&lt;br /&gt;
 | title    = Debugging Tips&lt;br /&gt;
 | section  =&lt;br /&gt;
 | previous = [[Omni-Bot_Map_Scripting | Omni-Bot_Map_Scripting]] &lt;br /&gt;
 | next     = &lt;br /&gt;
 | shortcut =&lt;br /&gt;
 | notes    =&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Finding Basic Script Errors ==&lt;br /&gt;
&lt;br /&gt;
The biggest problem with scripting is that we are all human &amp;amp; we make mistakes (errors).&lt;br /&gt;
&lt;br /&gt;
There are 2 main ways to find out if your script has errors:&lt;br /&gt;
&lt;br /&gt;
The 1st way is to use the inbuilt debugger in notepad++ (CTRL+F9), this lists the 1st error it finds in the script.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 2nd way is to run the map &amp;amp; open the console, this also lists the 1st error it finds in the script &amp;amp; prints the error in red with the aproximate line in brackets (123).  The console will also list any incorrect goal names you have used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Full Debugging ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By Default the &amp;quot;debug flags&amp;quot; are set to false as they are not needed when playing with omni-bot.&lt;br /&gt;
&lt;br /&gt;
Note: If Map.Debug is true, then all debug flags (except DEBUG_SCRIPT_GOALS_FILTER) are ignored and all debug messages are printed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 1st flag is &amp;quot;DEBUG_MAP_SCRIPTS&amp;quot;. This will print the messages when &amp;quot;Util.MapDebugPrint&amp;quot; is used.&lt;br /&gt;
&lt;br /&gt;
The 2nd flag is &amp;quot;DEBUG_GOAL_AVAILABILITY&amp;quot;. This will also print in console a list of all currently available goals when &amp;quot;Util.MapDebugPrint&amp;quot; is used and the second parameter of &amp;quot;Util.MapDebugPrint&amp;quot; is not true.&lt;br /&gt;
&lt;br /&gt;
The 3rd flag is &amp;quot;DEBUG_SCRIPT_GOALS&amp;quot;. This will print error messages when &amp;quot;Util.ScriptDebugPrint&amp;quot; is used. These messages can be filtered by DEBUG_SCRIPT_GOALS_FILTER.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are 2 ways to enable/disable these.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The 1st is via the console&lt;br /&gt;
&lt;br /&gt;
 /bot dbg_mapscripts&lt;br /&gt;
 /bot dbg_goalavailability&lt;br /&gt;
 /bot dbg_scriptgoals&lt;br /&gt;
&lt;br /&gt;
The 2nd way is to edit the game autoexec file i.e.&lt;br /&gt;
&lt;br /&gt;
 ~\et\scripts\et_autoexec.gm&lt;br /&gt;
 ~\rtcw\scripts\rtcw_autoexec.gm&lt;br /&gt;
 ~\d3\scripts\d3_autoexec.gm&lt;br /&gt;
 ~\q4\scripts\q4_autoexec.gm&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the statements from false to true so they look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
// global debug flags&lt;br /&gt;
global DEBUG_MAP_SCRIPTS = true;&lt;br /&gt;
global DEBUG_GOAL_AVAILABILITY = true;&lt;br /&gt;
global DEBUG_SCRIPT_GOALS = true;&lt;br /&gt;
DEBUG_SCRIPT_GOALS_FILTER[&amp;quot;pathfailed&amp;quot;] = 1;&lt;br /&gt;
DEBUG_SCRIPT_GOALS_FILTER[&amp;quot;timedout&amp;quot;] = 1;&lt;br /&gt;
DEBUG_SCRIPT_GOALS_FILTER[&amp;quot;disabled&amp;quot;] = 1;&lt;br /&gt;
DEBUG_SCRIPT_GOALS_FILTER[&amp;quot;regiontrigger&amp;quot;] = 1;&lt;br /&gt;
DEBUG_SCRIPT_GOALS_FILTER[&amp;quot;initialized&amp;quot;] = 1;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Palota</name></author>
	</entry>
</feed>