Unturned is an free to play open world zombie survival game, with a built in map maker utility.
Right now the game has no ability to automatically import real world location data into its maps.
This guide will show you how to use real world heightmap data to create a realistic looking map.
Your going to need a couple of programs to get this working.
- Google Earth – to get GPS coordinates
- MicroDEM – to process heightmap data
- GIMP / Photoshop / Paint.net – to resize or crop the image
- DEM Data for your map. We will use a website which has DEM data, http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ there are other websites too if you can’t find what you need there: http://viewfinderpanoramas.org/dem3.html
Getting the map data
- Download Google Earth
- Open Google Earth and find a nice place that you wish to use to create your map.
In my example I have chosen the Faroe Islands in Scotland
- From the top toolbar, select a placemarker and place it on the area you want to use.
The properties panel for it will open up and give you the longitude and latitude of the location, For me it is Latitude: 61°54’26.74″N Longitude: 6°49’11.20″W
- Now go to http://dds.cr.usgs.gov/srtm/version2_1/SRTM3 or http://viewfinderpanoramas.org/dem3.html, but we will focus on the former. These sites contain global heightmap data.
- Select the region your location is in. In my example it would be Eurasia
- The site will give you a list of files for each North/South, East/West coordinate.
- Now since in my example the coordinates were Latitude: 61°54‘26.74″N Longitude: 6°49‘11.20″W, round them up, you get N62 W7
- On the site with the heightmap data, search for your coordinates. For me it will be N62E007.hgt.zip. Now unfortunately it wasn’t on the first website, but I found the heightmap for the Faroe Islands on http://viewfinderpanoramas.org/dem3.html
- Download the zip file and extract it somewhere easy to get to, my downloads, desktop etc. You should have a .hgt file ready for use!
Congratulations you have your heightmap data!
Making the heightmap data usable
Unturned requires a heightmap image, not raw data, this section will show you how to get the heightmap image you need for your awesome map!
- Create a folder on your desktop or somewhere for you to work.
- Download and install MicroDEM for opening the raw heightmap data.
- Open MicroDEM from your start menu. When it starts it will ask you to open a project, click close.
- It will then ask to update several things, click yes to everything as it comes up.
- Once the program is updated, at the top right, click the second icon from the left, then browse to your HGT file from earlier and open it.
- If you have multiple heightmap files and want to merge them together, go to File > Open > Open and Merge DEMs, then select the multiple hgt files.
- You should now have a nice heightmap image!
- If you want to confirm you got the right area, right click the image and go to Export > Quick Map to Google Earth. It will overlay your heightmap image on Google Earth, so you can confirm you got the right area!
- Back in MicroDEM. We need to make sure the depth is correct for the heightmap.
- Right click your image, select Display Parameter then Elevation
- What we do here is set the range of colours so we get nice smooth transitions and set our sea level correctly. Select Gray Scale (monochrome)
- The “Missing” colour block, which is black, is our sea level colour, Black = Deep, White = High.
If your map shouldn’t have any sea in it, and there is some black parts on your heightmap, this is missing data. You should change your Missing colour block to a grey closer to the shade around the missing area, so you don’t have sudden oceans or rivers where there should be none.
- Click t he z Range button
- The “z Range” defines the range of heights that will map to our grayscale, 0-255 values.
The Max and Min values are the range of heights picked up from the heightmap data. So in my example since 2593 is the highest elevation, that is the max for the z range. These areas will be bright white. Min is the lowest elevation in the heightmap, as such they will be black.
Any “missing” data will be black as well as I have said previously.You can change these values to make a height map overall more flat, or steep. Simply raise or lower the Max value. Raising it say, to 4000, will put the range from 853 to 4000, meaning our actual highest elevation in the heightmap of 2593, will be just about halfway on the z range, so it will be a grey colour rather than white. Effectively flattening the map. Lowing the Max value will have the opposite effect.In my example I left the values default.
- Click OK to close the z Range and Elevation Window. Your image should now be a nice grayscaled heightmap.
- Click File > Save image > name your file > Save Type as PNG > Click Save.
- You can now Close MicroDEM.
Adding the heightmap to unturned.
In this section we will generate our map with our heightmap image.
From the last section we have our heightmap.png file, this image may be too large for the map size we want, we need to resize it to fit the Unturned map sizes.
The image we saved from MicroDEM was 389 x 830 pixels.
We either need to resize it to one of the below sizes, which would squash it/stretch it.
Or only use a section of the heightmap image.
This below table shows the resolution you need for each map size.
|HeightMap Resolution||Map Size|
I will resize / crop the heightmap to fit a Medium map.
- In Photoshop / GIMP / Paint.net create a new image 513×513 (or your desired map size resolution)
- Add in your heightmap image. In photoshop, I opened the image then selected the entire image (ctrl+A) and then pasted it as a new layer into into the 513×513 project. this is so we can keep the full resolution of our original image.
- You can now either stretch or shrink the image to fit the specified resolution. Or you can keep it the same resolution and crop it to fit the 513×513 image size. In this example I stretched it to fit the resolution.
- Flip the image horizontally as Unturned flips it for some reason. Then save the image as heightmap.png
- Open up Unturned in Steam.
- Go to the WorkShop > Editor
- Create a map of the size fitting your heightmaps resolution. In my case, Large.
- After clicking Add, minimize Unturned.
- Open up the Unturned folder in your Steam/Steamapps/common folder
- Open the maps folder
- Open the Folder with the name of the map you just created, in my case Faroe Islands
- Open the terrain folder
- Delete the Heights.dat file if it exists.
- Copy your Heightmap.png file into the terrain folder.
- Go back to Unturnned. Click on your map and click edit.
- The map will be black, so hit terrain > materials > then in the bottom right Bake Global.