Life is Feudal: Forest Village

Life is Feudal: Forest Village

Not enough ratings
Creating a custom map using Unity
By Sir Foxy
This guide will follow the steps needed in creating a custom map for forest village. Describing the files found in the default folder, the creation of the map.data file using unity and exporting it to the game.
   
Award
Favorite
Favorited
Unfavorite
required downloads
In order to follow the steps in this guide you will need to install Unity[store.unity.com]. We will only need the build-in terrain editor, therefor the free personal version will be sufficient.

In order to export the created terrain you will need the following package.[www.dropbox.com]
Creating the default files
The default files are generated by the game itself upon creating a new custom map modification. In order to create a basic custom map follow the steps below;
  • launch the game.
  • click on modifications.
  • click on my workshop.
  • click on the plus symbol in the corner.
  • select map from the dropdown menu.
  • fill in the name and description (can be changed later).
  • click on create.
The game has now created a basic custom map, with an unique mod ID. The folder can be found under ..\Life is Feudal Forest Village\maps\*mod ID*. It will contain 5 files: icon.png, localization.csv, map.data, mapinfo.lua and version.txt.

From these 5 files we will mainly be needing map.data. You can change the icon.png and localization.csv to any personal favorites, this will however be the icon, name and map description shown in the steam workshop. The version.txt and mapinfo.lua can be left as they are.
Preparations

In order to use unity as a terrain creation tool we will need to import the package. First open unity and create a new project, this will generate an empty scene with just a camera and a lightsource. Both can be removed if wanted.

To add a custom package click on Assests -> Insert package -> Custom Package -> Select "LIF_Mapmaking_Transparent.unitypackage" -> Open -> Import.








To create the terrain click on Window -> Terrain LIF, this will open the terrain creation window.










In the creation window you can change the map size and height (distance between lowest and highest terrain). Potentially you can also change the name of the terrain and the color of the water.
When everything is selected click on "add new world" and a blanc terrain will be created.







Creating the map
When the terrain is created you can start to shape the terrain using the main tools:
  • Raise/lower terrain
  • Paint height
  • Smoothheight
These can be found under the Terrain tab in the terrains inspector:



Once the map is finished you set the starting location of the village. You can select this by clicking the terrain in the hierarchy tab and then clicking SpawnLocation. To move the position either fill in the coordinates or use the move tool.


Exporting the map
Exporting the map to a data file can be done using the Export map script. Firstly add the full save path, this will be where the default map.data file is located. Then click export Map and it will overwrite the default map.data file with your custom made one.

When creating a new game you can now find your own custom made map in the map list. You can test the map and if needed make some adjustments in unity, just remember to export any newly made adjustments and to create a new game.

References
8 Comments
Pope Patrick Jan 10, 2020 @ 10:34am 
stop wasting time on this shit game.
garych65 Dec 16, 2019 @ 5:41pm 
also keyboard does not allow navigating except through arrows
garych65 Dec 16, 2019 @ 5:41pm 
all of a sudden I can no longer access bow when selecting a person
Big Bad Nonja Aug 13, 2019 @ 8:56am 
https://docs.unity3d.com/Manual/terrain-Heightmaps.html

Merged height maps from the Terrainparty website can be imported into the Unity editor. Much nicer maps (i.e real locations) can be produced. Running the merged height map through the Wilbur app before import will remove the surface noise.

There is a tut on how to this on the Cities:Skylines game guides, by the mapmaker MyMiyagi. https://steamcommunity.com/sharedfiles/filedetails/?id=482232215
Sir Foxy  [author] Jan 9, 2019 @ 5:29am 
It should be under the dropbox link from the required downloads. It changed from the 2 files which used to be there to a package, which is easier to add into Unity.
Volodya74 Jan 9, 2019 @ 5:13am 
I do not have LIF_Mapmaking_Transparent.unitypackage
Sir Foxy  [author] Jan 8, 2019 @ 2:34pm 
Updated the guide to include Norway rules’ updated version of the unity scripts.