Quantcast
Channel: Recent Discussions — Unknown Worlds Forums
Viewing all articles
Browse latest Browse all 42799

One click map testing within Spark

$
0
0
There are two tools in this thread now:
  • LaunchMap: For quick testing. It will copy your map in the correct folder, generate the overview for your map and launch NS2 with it.
  • ZipMap: For packaging your map for distribution. It will ask for the final map name so you can have your own version control different from the main publishing one. It will generate a zip file with your level and overviews on your desktop with the specified name. Any further custom content has to be included manually.


LAUNCHMAP
Download this file and unzip it anywhere you want. I have it in my maps folder.

These are the contents of the LaunchMap.bat file:

CODE
copy %1 ns2\maps /Y
Overview.exe %1 ns2
start NS2.exe map %2

As you can see it's not overly complicated.

Now, open Spark and go to Tools -> External Tools. Set a Title for your "Tool", I have it set to Test Map.
In Command, select your .bat file.
In Arguments, you need to put this (WITH quotes): "$(ItemPath)" "$(ItemFileName)"

It has to look like this.
image

As you can see, I have a separate one that's just Install Map, it's a second batch file without the last line, so it doesn't launch NS2 again in case I have it launched already...

ZIPMAP
I have another "tool", it's the ZipMap utility, which will make a compressed zip with your map file and the overview and set the name that you prefer. For example, you can be working on ns2_mymap_test_alpha_2012.level but want to release it as ns2_mymap (or the other way around). You can generate the zip with the map name that you want and all the files will have the correct names. The zip will automatically appear on your desktop.

This one is a little more complex as it involves 3 files, unzip all the files to a folder of your choosing, and then do the same as with the LaunchMap batch file, but in this case, you have to use ZipMap.bat.

Now for maximum awesome, you can go to Tools -> Settings and you can assign a keyboard shortcut to this new tool. So I usually press Ctrl+T when I want to test my map and I have it ready to go with a freshly generated overview :)

Hopefully this helps people :)

Viewing all articles
Browse latest Browse all 42799

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>