<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://df-21.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Creating_A_Batch_File</id>
	<title>Creating A Batch File - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://df-21.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Creating_A_Batch_File"/>
	<link rel="alternate" type="text/html" href="https://df-21.net/wiki/index.php?title=Creating_A_Batch_File&amp;action=history"/>
	<updated>2026-05-16T12:09:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://df-21.net/wiki/index.php?title=Creating_A_Batch_File&amp;diff=1285&amp;oldid=prev</id>
		<title>Df21admin at 19:13, 7 August 2024</title>
		<link rel="alternate" type="text/html" href="https://df-21.net/wiki/index.php?title=Creating_A_Batch_File&amp;diff=1285&amp;oldid=prev"/>
		<updated>2024-08-07T19:13:32Z</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 12:13, 7 August 2024&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 colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Here we will discuss batch file creation for Dark Forces missions. These are &#039;&#039;&#039;only&#039;&#039;&#039; required when making a mission that is supported by DOS or the Dark Forces Remaster versions. They are not needed to support &#039;&#039;&#039;The Force Engine.&#039;&#039;&#039;  You can skip this tutorial if that is the case.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;For this batch file example we will be using the mission &#039;&#039;&#039;Anchor Hed&#039;&#039;&#039; found [https://df-21.net/downloads/missions.php?viewid=48824574 here]&lt;/ins&gt;&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;&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;=== Batch File Details ===&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;=== Batch File Details ===&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;We&#039;ve talked [https://df-21.net/wiki/?title=Converting_Classic_Maps#4._Simple_Batch_File_Creation earlier]  about creating a batch file to start the mission. Now let&lt;/del&gt;&#039;s look at the details of what the batch file must contain. We need a uniform way to start all the missions. To do that we will create a batch file named &#039;&#039;&#039;anchor.bat&#039;&#039;&#039; ( or generally &#039;&#039;&#039;&amp;lt;missionname&amp;gt;.bat&#039;&#039;&#039; ) that will start our mission automatically.&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Let&lt;/ins&gt;&#039;s look at the details of what the batch file must contain. We need a uniform way to start all the missions. To do that we will create a batch file named &#039;&#039;&#039;anchor.bat&#039;&#039;&#039; ( or generally &#039;&#039;&#039;&amp;lt;missionname&amp;gt;.bat&#039;&#039;&#039; ) that will start our mission automatically.&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;&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;We start with this simple code in our batch file and go from there.&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;We start with this simple code in our batch file and go from there.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Df21admin</name></author>
	</entry>
	<entry>
		<id>https://df-21.net/wiki/index.php?title=Creating_A_Batch_File&amp;diff=1284&amp;oldid=prev</id>
		<title>Df21admin: /* 3. Combined Batch Script Example */</title>
		<link rel="alternate" type="text/html" href="https://df-21.net/wiki/index.php?title=Creating_A_Batch_File&amp;diff=1284&amp;oldid=prev"/>
		<updated>2024-08-07T19:08:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;3. Combined Batch Script Example&lt;/span&gt;&lt;/span&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 12:08, 7 August 2024&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-l62&quot;&gt;Line 62:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 62:&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;  exit&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;  exit&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;This is what it looks like for the mission &amp;#039;&amp;#039;&amp;#039;anchor.gob.&amp;#039;&amp;#039;&amp;#039; When you run &amp;#039;&amp;#039;&amp;#039;anchor.bat&amp;#039;&amp;#039;&amp;#039;  we will be able to run the missions in the remaster, tfe or dos.&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;This is what it looks like for the mission &amp;#039;&amp;#039;&amp;#039;anchor.gob.&amp;#039;&amp;#039;&amp;#039; When you run &amp;#039;&amp;#039;&amp;#039;anchor.bat&amp;#039;&amp;#039;&amp;#039;  we will be able to run the missions in the remaster, tfe or dos.&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;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;?title=&lt;/del&gt;File:Anchormap.png|center|thumb|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;728x728px&lt;/del&gt;]]&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;[[File:Anchormap.png|center|thumb|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;663x663px&lt;/ins&gt;]]&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;&amp;#039;&amp;#039;&amp;#039;Important:&amp;#039;&amp;#039;&amp;#039; When you save your &amp;#039;&amp;#039;&amp;#039;anchor.bat&amp;#039;&amp;#039;&amp;#039; make sure you &amp;#039;&amp;#039;&amp;#039;TEST IT !!&amp;#039;&amp;#039;&amp;#039; It is easy to make a typo and we don&amp;#039;t want players fail attempting to play the mission. Be absolutely sure your batch file works without problems! Don&amp;#039;t skip this step.&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;&amp;#039;&amp;#039;&amp;#039;Important:&amp;#039;&amp;#039;&amp;#039; When you save your &amp;#039;&amp;#039;&amp;#039;anchor.bat&amp;#039;&amp;#039;&amp;#039; make sure you &amp;#039;&amp;#039;&amp;#039;TEST IT !!&amp;#039;&amp;#039;&amp;#039; It is easy to make a typo and we don&amp;#039;t want players fail attempting to play the mission. Be absolutely sure your batch file works without problems! Don&amp;#039;t skip this step.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Df21admin</name></author>
	</entry>
	<entry>
		<id>https://df-21.net/wiki/index.php?title=Creating_A_Batch_File&amp;diff=1283&amp;oldid=prev</id>
		<title>Df21admin: Created page with &quot; === Batch File Details === We&#039;ve talked [https://df-21.net/wiki/?title=Converting_Classic_Maps#4._Simple_Batch_File_Creation earlier]  about creating a batch file to start the mission. Now let&#039;s look at the details of what the batch file must contain. We need a uniform way to start all the missions. To do that we will create a batch file named &#039;&#039;&#039;anchor.bat&#039;&#039;&#039; ( or generally &#039;&#039;&#039;&lt;missionname&gt;.bat&#039;&#039;&#039; ) that will start our mission automatically.  We start with this simple...&quot;</title>
		<link rel="alternate" type="text/html" href="https://df-21.net/wiki/index.php?title=Creating_A_Batch_File&amp;diff=1283&amp;oldid=prev"/>
		<updated>2024-08-07T19:02:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; === Batch File Details === We&amp;#039;ve talked [https://df-21.net/wiki/?title=Converting_Classic_Maps#4._Simple_Batch_File_Creation earlier]  about creating a batch file to start the mission. Now let&amp;#039;s look at the details of what the batch file must contain. We need a uniform way to start all the missions. To do that we will create a batch file named &amp;#039;&amp;#039;&amp;#039;anchor.bat&amp;#039;&amp;#039;&amp;#039; ( or generally &amp;#039;&amp;#039;&amp;#039;&amp;lt;missionname&amp;gt;.bat&amp;#039;&amp;#039;&amp;#039; ) that will start our mission automatically.  We start with this simple...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
=== Batch File Details ===&lt;br /&gt;
We&amp;#039;ve talked [https://df-21.net/wiki/?title=Converting_Classic_Maps#4._Simple_Batch_File_Creation earlier]  about creating a batch file to start the mission. Now let&amp;#039;s look at the details of what the batch file must contain. We need a uniform way to start all the missions. To do that we will create a batch file named &amp;#039;&amp;#039;&amp;#039;anchor.bat&amp;#039;&amp;#039;&amp;#039; ( or generally &amp;#039;&amp;#039;&amp;#039;&amp;lt;missionname&amp;gt;.bat&amp;#039;&amp;#039;&amp;#039; ) that will start our mission automatically.&lt;br /&gt;
&lt;br /&gt;
We start with this simple code in our batch file and go from there.&lt;br /&gt;
 dark -u&amp;lt;MISSIONNAME&amp;gt;.GOB&lt;br /&gt;
Great - now we need to ensure that the batch file supports multiple Dark Forces executables!&lt;br /&gt;
&lt;br /&gt;
==== 1. Dark Forces Executable Support ====&lt;br /&gt;
There are multiple versions of Dark Forces out there. Some own Dark Forces through DOS, some have it through &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Night Dive&amp;#039;s Remaster&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;. Because of this variety, it is important to support all types of executables. The application name we always expect to have is &amp;#039;&amp;#039;&amp;#039;dark.exe .&amp;#039;&amp;#039;&amp;#039; It is the default name in DOS but is different in Night Dive&amp;#039;s release. For Steam the executable is named &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;khonsu_Shipping_Steam_x64.exe&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; and for GOG it is called &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;khonsu_Shipping_Galaxy_x64.exe.&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; We must ensure we have a copy of &amp;#039;&amp;#039;&amp;#039;dark.exe&amp;#039;&amp;#039;&amp;#039; in the folder where the mission GOB is located, so the batch script would be needed to make a copy of the executable if it is missing.&lt;br /&gt;
&lt;br /&gt;
Here is how we do it in the batch file.&lt;br /&gt;
 set dark_executable=dark.exe&lt;br /&gt;
 set steam=khonsu_shipping_steam_x64.exe&lt;br /&gt;
 set gog=khonsu_shipping_galaxy_x64.exe&lt;br /&gt;
 if not exist &amp;quot;%dark_executable%&amp;quot; (&lt;br /&gt;
     if exist &amp;quot;%steam%&amp;quot; (&lt;br /&gt;
         copy &amp;quot;%steam%&amp;quot; &amp;quot;%dark_executable%&amp;quot;&lt;br /&gt;
     ) &lt;br /&gt;
     else (&lt;br /&gt;
         if exist &amp;quot;%gog%&amp;quot; (&lt;br /&gt;
             copy &amp;quot;%gog%&amp;quot; &amp;quot;%dark_executable%&amp;quot;&lt;br /&gt;
         ) else (&lt;br /&gt;
             echo &amp;quot;Cannot find Dark Forces executable!&amp;quot;&lt;br /&gt;
             exit&lt;br /&gt;
         )&lt;br /&gt;
     )&lt;br /&gt;
 )&lt;br /&gt;
Without going into details, this script ensures you have dark.exe in your game directory. Simply add this to your batch file.&lt;br /&gt;
&lt;br /&gt;
==== 2. Handling DFBRIEF.LFD ====&lt;br /&gt;
We need the DFBIEF.LFD file to override the default mission briefings in the game. However, if we do not clean it up after playing a custom mission the briefing will always override the original game briefings and also for any other mod you choose to play. This is why it is important to clean up this briefing file, or simply, rename the briefing file when you start and end the mission.&lt;br /&gt;
&lt;br /&gt;
Here is the template to rename the briefing file inside the batch script. Just replace &amp;lt;gobname&amp;gt; with the name of the mission in the script below.&lt;br /&gt;
 if exist &amp;lt;gobname&amp;gt;.tmp ren &amp;lt;gobname&amp;gt;.tmp dfbrief.lfd&lt;br /&gt;
 DARK -u&amp;lt;gobname&amp;gt;&lt;br /&gt;
 ren dfbrief.lfd &amp;lt;gobname&amp;gt;.tmp &lt;br /&gt;
 exit&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;, we also add an &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;exit&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; call at the end so the script always exits and we don&amp;#039;t get a hanging window after finishing a mission.&lt;br /&gt;
&lt;br /&gt;
==== 3. Combined Batch Script Example ====&lt;br /&gt;
Combining all the parts here is what the batch script &amp;#039;&amp;#039;&amp;#039;anchor.bat&amp;#039;&amp;#039;&amp;#039; should look like. Don&amp;#039;t forget to replace &amp;lt;gobname&amp;gt; with your own level (Ex: &amp;#039;&amp;#039;&amp;#039;anchor&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
 set dark_executable=dark.exe&lt;br /&gt;
 set steam=khonsu_shipping_steam_x64.exe&lt;br /&gt;
 set gog=khonsu_shipping_galaxy_x64.exe&lt;br /&gt;
 if not exist &amp;quot;%dark_executable%&amp;quot; (&lt;br /&gt;
     if exist &amp;quot;%steam%&amp;quot; (&lt;br /&gt;
         copy &amp;quot;%steam%&amp;quot; &amp;quot;%dark_executable%&amp;quot;&lt;br /&gt;
     ) &lt;br /&gt;
     else (&lt;br /&gt;
         if exist &amp;quot;%gog%&amp;quot; (&lt;br /&gt;
             copy &amp;quot;%gog%&amp;quot; &amp;quot;%dark_executable%&amp;quot;&lt;br /&gt;
         ) else (&lt;br /&gt;
             echo &amp;quot;Cannot find Dark Forces executable!&amp;quot;&lt;br /&gt;
             exit&lt;br /&gt;
         )&lt;br /&gt;
     )&lt;br /&gt;
 )&lt;br /&gt;
 if exist &amp;lt;gobname&amp;gt;.tmp ren &amp;lt;gobname&amp;gt;.tmp dfbrief.lfd&lt;br /&gt;
 DARK -u&amp;lt;gobname&amp;gt;.gob&lt;br /&gt;
 ren dfbrief.lfd &amp;lt;gobname&amp;gt;.tmp &lt;br /&gt;
 exit&lt;br /&gt;
This is what it looks like for the mission &amp;#039;&amp;#039;&amp;#039;anchor.gob.&amp;#039;&amp;#039;&amp;#039; When you run &amp;#039;&amp;#039;&amp;#039;anchor.bat&amp;#039;&amp;#039;&amp;#039;  we will be able to run the missions in the remaster, tfe or dos.&lt;br /&gt;
[[?title=File:Anchormap.png|center|thumb|728x728px]]&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Important:&amp;#039;&amp;#039;&amp;#039; When you save your &amp;#039;&amp;#039;&amp;#039;anchor.bat&amp;#039;&amp;#039;&amp;#039; make sure you &amp;#039;&amp;#039;&amp;#039;TEST IT !!&amp;#039;&amp;#039;&amp;#039; It is easy to make a typo and we don&amp;#039;t want players fail attempting to play the mission. Be absolutely sure your batch file works without problems! Don&amp;#039;t skip this step.&lt;/div&gt;</summary>
		<author><name>Df21admin</name></author>
	</entry>
</feed>