[Tutorial] How to make the minimap

RegnRegn Join Date: 2012-11-01 Member: 165335Members
edited November 2012 in Mapping
<i>This is for the Q&A located <a href="http://www.unknownworlds.com/ns2/forums/index.php?showtopic=123894" target="_blank">here</a>, to avoid cluttering it.</i>


A minimap consist of three components:

1. The <!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro-->minimap_extents entity<!--colorc--></span><!--/colorc--> (Spark Editor)
2. The <!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro-->Overview<!--colorc--></span><!--/colorc--> (overview.exe)
3. The <!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro-->location entity<!--colorc--></span><!--/colorc--> (Spark Editor)


<!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro--><!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo-->MINIMAP ENTITY<!--sizec--></span><!--/sizec--><!--colorc--></span><!--/colorc-->

The minimap_extents entity tells overview.exe what to compile, and what to ignore. Select the <i>minimap_extents entity</i> from the <i>Entity Browser</i>, and click to place it. Then expand the entity to fill your map.

<i>Tip: Click F7 and create a layer for it. That way you can toggle the entity on and off in Spark. Hide it, and continue to make your map as if it's not there.</i>


<!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro--><!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo-->LOCATION ENTITY<!--sizec--></span><!--/sizec--><!--colorc--></span><!--/colorc-->

The location entity is what tells players where they are on your map as they play it. It works independently, so it does not need an overview to be seen in game. Let's say you've created a room that you want to call "Reactor Core". Select the <i>location entity</i> from the <i>Entity Browser</i>, and click to place it. Edit and name the <i>location entity</i> "Reactor Core" under <i>name</i>, then expand the <i>location entity</i> over the area you wish to call "Reactor Core".

<i>Tip: Click F7 and create a layer for it. That way you can toggle the entity on and off in Spark. Hide it, and continue to make your map as if it's not there.</i>


<!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro--><!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo-->OVERVIEW<!--sizec--></span><!--/sizec--><!--colorc--></span><!--/colorc-->

The <i>overview.exe</i> will create a graphical image of your level from above. There are three ways to make your overview.

<!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro--><b>Option #1:</b><!--colorc--></span><!--/colorc--> Use Mendasp's method, as can be read <a href="http://www.unknownworlds.com/ns2/forums/index.php?showtopic=119239" target="_blank">here</a>.

<!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro--><b>Option #2:</b><!--colorc--></span><!--/colorc--> By <a href="http://www.unknownworlds.com/ns2/wiki/index.php/Ns2_sample#Overview" target="_blank">creating a batch file</a>, and moving your <i>.level</i> over said batch file. You can create a batch file by right-clicking in the folder you want to make the batch file, and select <i>"New->Text Document"</i>. Open the text document, and write your code. The following code should do <i>(You might have to change the path if you have the Natural Selection 2 folder located someplace else)</i>:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->START "Overview Map Generator" /d "C:\Program Files (x86)\Steam\steamapps\common\natural selection 2" Overview.exe %1 ns2
Pause<!--c2--></div><!--ec2-->

Once that has been done, save and close the document. If you have file extensions on, you should be able to see that the text document ends with <i>".txt"</i>, if not you need to go to your <i>Control Panel</i> and locate your <i>Folder Options</i>. This is easier if you, <i>in Windows 7</i>, write <i>"Control Panel\All Control Panel Items"</i> in the <i>address bar</i> of <i>any folder</i>. Once you've found your <i>Folder Options</i>, select the <i>View</i> tab, then browse for and untoggle <i>"Hide extensions for known file types"</i>. Now you can see and change the <i>".txt"</i> extentions to <i>".bat"</i>. Ignore any warnings you may encounter in the process.

Then, simply move your <i>.level</i> over the batch file, and wait for <i>"overview.exe"</i> to do its job. If you get errors, ignore it, and just wait for overview.exe to complete.

<!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro--><b>Option #3:</b><!--colorc--></span><!--/colorc--> By using the <i>"overview.exe"</i> manually with <i>cmd</i>. Click on your <i>Start Menu</i> and write <i>"cmd"</i> in the <i>Search</i> window to open the <i>Command Console</i>. Once in the <i>cmd</i>, write the following and press enter <i>(You might have to change the path if you have the Natural Selection 2 folder located someplace else)</i>:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->cd "c:\program files (x86)\steam\steamapps\common\natural selection 2"<!--c2--></div><!--ec2-->

The following depends on where your <i>.level</i> is located, and your <i>Natural Selection 2</i> folder is located, so you might have to change the paths, again.

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->overview.exe "c:\program files (x86)\steam\steamapps\common\natural selection 2\ns2\maps\TheNameOfMyMap.level" "c:\program files (x86)\steam\steamapps\common\natural selection 2"<!--c2--></div><!--ec2-->

The first string is used to call the program. The second string is the input <i>(your level file)</i>. The third string is the output <i>(where your minimap will be created)</i>. You don't have to add the following folders <i>"\ns2\maps\overviews\"</i> in the third string. If the program can't find these folders in <i>"Natural Selection 2"</i> it will create them inside the <i>"overviews"</i> folder.

Comments

  • KrozuKrozu Join Date: 2012-08-06 Member: 154854Members
    My editor generates the map for me, i got Mendasp to thank for that.

    "One click map testing within Spark" - Mendasp

    I simply hit a hotkey, and it loads the map, minimap and everything included.
    Just look at the "Important Topics". For the lazy people: <a href="http://www.unknownworlds.com/ns2/forums/index.php?showtopic=119239" target="_blank">http://www.unknownworlds.com/ns2/forums/in...howtopic=119239</a>
  • MagnetoMagneto Join Date: 2010-12-22 Member: 75856Members
    I think you can skip all of that as the builder now does it for you, i was doing it the same way as Krozu for a while but i found that running the editor and the game was a bit slow, also it was brought up recently that the minimap_extents should be a perfect square/cube, you can do that by using the scale tool and holding shift when you make it bigger or you can edit it's properties and do it that way.
  • RegnRegn Join Date: 2012-11-01 Member: 165335Members
    edited November 2012
    I wasn't aware that it existed. I read the topic once but didn't fully understand it. So far, even with the batch file method available, I do all of this with cmd once the map is almost finished.
Sign In or Register to comment.