Unofficial Foundation Map Editor for Foundation

Released (updated ago). Ranked 99 of 257 with 1,413 (14 today) downloads

Published by Isajah_DE - learn more (mod ID: 93534)


Notes to V1.4

Translations added: if you want to change language, open the options.json file and adjust the language option.

Languages available: English(100%), German(90%), Korean(10%), French(90%)

for drag and drop: click, to mark waypoint with red circle, click and hold to move.

Notes to V1.3

You can now preview your map in 3d: menu>>view>>3d preview

You can let the editor predict starting tiles: menu>>view>>show starting tiles

Improved loading function

Improved Import function: Import any png in any size

Notes to V1.2 and easy mode

easy mode changes all input boxes to scales, that allow you to pick values in a specific range. So its easier to pick "good" values. Easy Mode also hides some parameters that work just fine on their defaults. If you don't want to use Easy mode, go to View>>EasyMode and deselect it.

Video Guides:

Getting Started:

Importing Heightmaps:

Map Guide by Ash:

Getting Started - Guide

This is a simple getting started guide and will not introduce all parameters in detail for now. Heights in the heightmap are 0…65535, for more practical use, I scaled it to 0-1000. If you already have a heightmap, hop down to step 7.

Step 1: create a new Workspace

First create a new Workspace by clicking File>>New Workspace. When creating a new Workspace, the Map Info window opens. Here you can enter a map name, an id, your name and a description.

Step 2: create a baseline map

To get a natural plain area, you can build a map upon, click build baseline map. The parameters are set to default, so you don’t need to worry about them now.

Step 3: how to add a river:

To add a river to the menu bar and click Add>>River.

A River Menu appears in the left and an empty preview in the preview part. Now you can change the starting and ending waypoint coordinates. The map has the size 1024,1024, so your input should correspond, x=0, y=0 is in the top left corner, 1023/1023 is the bottom right. You can go outside the window with negative values and values above 1023.

You can also add more waypoints to the river and more rivers to the map. To make it easier to predict, where everything goes, all rivers and mountains are previewed as polylines on the main screen.

When you are done, click generate to get a preview and create the river information for the heightmap.

Step 4: how to add a mountain

To add a mountain, click Add>>Mountain.

A mountain menu appears in the left and an empty preview in the preview part. Change coordinates like in the river description.

Step 5: How to add a dip

A dip is just a negative mountain, so change the height to a negative value.

Step 6: generating a heightmap

go to the top menu: generator>>build heightmap. All rivers and mountains will be combined to one map: now you have your heightmap! Please note that no matter how high or deep you map is, it is always rescaled to 0…65535 Steps. Foundation will determine the final height and depth from the Height and Water Level parameters in the Map Info window: File>>Map Info
skip step 7.

Step 7: Importing a heightmap

Only do this step, if you skipped 1-6. You can Import your own heightmap (actually you can import any 1024x1024 png as a heightmap) by clicking the button import heightmap or file>>import heightmap.

set the post sigma value (the filter radius) to zero and do step 6.

Step 8: generating a Material Mask

Now that you have a heightmap, change the view back to view>>priority>>assets, the assets parameters expand.

Clicking the build material mask button will get you a material mask, experiment with the height to get it the way you want it. You can also use the mouse over the main screen to get the height of each pixel.

Step 9: generating resource maps

Resource maps are berries, rocks, iron and fish. From the height of the material map you can now predict the min height, if you want resources up to the beach. To not have resources in steep areas, the steepness parameter can be used. 10...40 are good values to experiment with. Density is the chance that in the areas, where placement is allowed, a resource is placed. Group is the chance that a larger group is placed (in %) .

Step 10: adding Trees

Use the Add>>Trees function to add a tree map. Similar to resources, you can set steepness, min height and max height, sigma applies a filter to smoothen out the edges. You can also add more tree types and configure them. Tree types define, what trees are planted with the tree map, what color they have and what size range they have. When changing colors, keep in mind, that clear white colors them the way they are, overly saturated colors color the whole tree like that, so if you just want to add a nice touch, use less saturated values. I have added a few color presets that canbe selected from a list in v1.2

Step 11: adding village paths

Use add>>village path to add entry and exit points. (buginfo: I have not yet inverted the y axis) the main screen shows entry points with a green marker and exit points with a red marker, also if activated, a dotted line connects the two markers.

Step 12: define the height scale

In the mod.lua file that comes with the map, the ingame height and the water level are defined. normally maps scale around 100 but that heavily depends on your map. Open the map info (File>>MapInfo). here you can set the height and the water level. From version 1.2 you get a cut-through preview of the map, that should help you find good values for the height and the water level. after cooking the map, you have to check ingame, if it fits. Afterwards you can either change the values in the mod.lua file or re-cook it in the editor. please note, that in the lua file its not a height and a water level parameter, but a top and bottom parameter(max/min).

Step 13: cooking the map

Use generate >> cook map to open the cook map window. Don't bother the options that are not marked / logged (unmark what you don't want to rebuild). If the Cook button is not disabled, you can cook your map. When finished, the cooked folder opens and you can copy all files to the Foundation mod folder.

This Project is programmed in python 3 and open source. all scripts provided on the Github Repository







Join the community or sign in with your gaming account to join the conversation:

toolbox642 @toolbox642

Can I use this to edit a map someone else has made, and if so how? I would like to add some more resources on some of the maps I play.

Isajah_DE @isajah1

Hi, apart from the aspect of intellectual property, yes that's possible, create a new workspace, import the heightmap, you want to use and follow the guide from step 7. You could also just open the resource maps in gimp or and paint a few more dots into it😉.

TheRJMonk @therjmonk

This is amazing. I've been able to create my home town Southampton. Took me 9 attempts to get it right and to get the terrain smooth enough but got there in the end -

Also used to import a height map.

NickName16 @nickname16

you should try to make it more user friendly how about a 3d or 2d map of the actual thing
with more user friendly placement

Isajah_DE @isajah1

I will add a few features in the next version that will make it more user friendly, but please keep in mind : I normally program industrial controllers. Adding 3d models is a whole new world. You might find the overlay functions under view helpful. You can overlay the material map, any tree or resource map.

z0t3x @z0t3x

Thanks for the work. But it won't start with me. It does not find the log.txt in the users folder.

Isajah_DE @isajah1

thanks, we discussed that on discord toda and I patched it.