![](https://private-user-images.githubusercontent.com/118521851/343983732-ffd7f0a3-e317-4c3f-911f-2c2fb736fbfa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMjkwMTIsIm5iZiI6MTcyNDEyODcxMiwicGF0aCI6Ii8xMTg1MjE4NTEvMzQzOTgzNzMyLWZmZDdmMGEzLWUzMTctNGMzZi05MTFmLTJjMmZiNzM2ZmJmYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyMFQwNDM4MzJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00YzI0NDE4YjJlYTVkMThlODc4NWIxZDBmOTViMmY4OTVhMmI1MGNiMjU1YjFmYmQ1ZjljY2IwOGY1MjA5Y2ViJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.2xfTQUK4wz5c9cfmn45t2pU16oaKsJWdPpJqYR1OTLM)
Quick Start • Overview • How-To-Run • Features • Supported objects • Settings • Bugs and feature requests
For those, who don't want to read anything, here you go:
Option 1: launch the @maps4fs Telegram bot and generate a map template in a few clicks.
Option 2: run the Docker version in your browser. Launch the following command in your terminal:
docker run -d -p 8501:8501 iwatkot/maps4fs
And open http://localhost:8501 in your browser.
If you don't know how to use Docker, navigate to the Docker version, it's really simple.
The core idea is coming from the awesome maps4cim project.
The main goal of this project is to generate map templates, based on real-world data, for the Farming Simulator. It's important to mention that templates are not maps. They are just a starting point for creating a map. This tool just uses built-in textures to highlight different types of terrain and buildings with correct shapes and scales and to generate a height map. The rest of the work is up to you. So if you thought that you could just run this tool and get a playable map, then I'm sorry to disappoint you. But if you are a map maker, then this tool will save you a lot of time.
So, if you're new to map making, here's a quick overview of the process:
- Generate a map template using this tool.
- Download the Giants Editor.
- Open the map template in the Giants Editor.
- Now you can start creating your map (adding roads, fields, buildings, etc.).
You'll find detailed instructions on how to run the project below. But if you prefer video tutorials, here's one for you:
Video tutorial: How to generate a Farming Simulator 22 map from real-world data.
🗺️ Supported map sizes: 2x2, 4x4 km.
🟢 Recommended for all users, you don't need to install anything.
Using Telegram bot @maps4fs.
Note: due to CPU and RAM limitations of the hosting, only 2x2 and 4x4 km maps are available. If you need bigger maps, use the Docker version.
Using it is easy and doesn't require any guides. Enjoy!
🗺️ Supported map sizes: 2x2, 4x4, 8x8, 16x16 km.
🟢 Recommended for users who need bigger maps, very simple installation.
You can launch the project with minimalistic UI in your browser using Docker. Follow these steps:
- Install Docker for your OS.
- Run the following command in your terminal:
docker run -d -p 8501:8501 iwatkot/maps4fs
- Open your browser and go to http://localhost:8501.
- Fill in the required fields and click on the
Generate
button. - When the map is generated click on the
Download
button to get the map.
Advanced settings are available in the tool's UI under the Advanced Settings tab. Here's the list of them:
max_height
- the maximum height of the map. The default value is 400. Select smaller values for plain-like maps and bigger values for mountainous maps. You may need to experiment with this value to get the desired result.blur_seed
- the seed for the blur algorithm. The default value is 5, which means 5 meters. The bigger the value, the smoother the map will be. The smaller the value, the more detailed the map will be. Keep in mind that for some regions, where terrain is bumpy, disabling the blur algorithm may lead to a very rough map. So, I recommend leaving this value as it is.
- Allows to enter a location by lat and lon (e.g. from Google Maps).
- Allows to select a size of the map (2x2, 4x4, 8x8 km, 16x16 km).
- Generates a map template (check the list of supported objects in this section).
- Generates a height map.
The project is based on the OpenStreetMap data. So, refer to this page to understand the list below.
- "building": True
- "highway": ["motorway", "trunk", "primary"]
- "highway": ["secondary", "tertiary", "road"]
- "highway": ["unclassified", "residential", "track"]
- "natural": "grassland"
- "landuse": "farmland"
- "natural": ["water"]
- "waterway": True
- "natural": ["wood", "tree_row"]
The list will be updated as the project develops.
The script will also generate the generation_info.json
file in the output
folder. It contains the following keys:
"coordinates"
- the coordinates of the map center which you entered,
"bbox"
- the bounding box of the map in lat and lon,
"distance"
- the size of the map in meters,
"minimum_x"
- the minimum x coordinate of the map (UTM projection),
"minimum_y"
- the minimum y coordinate of the map (UTM projection),
"maximum_x"
- the maximum x coordinate of the map (UTM projection),
"maximum_y"
- the maximum y coordinate of the map (UTM projection),
"height"
- the height of the map in meters (it won't be equal to the distance since the Earth is not flat, sorry flat-earthers),
"width"
- the width of the map in meters,
"height_coef"
- since we need a texture of exact size, the height of the map is multiplied by this coefficient,
"width_coef"
- same as above but for the width,
"tile_name"
- the name of the SRTM tile which was used to generate the height map, e.g. "N52E013"
You can use this information to adjust some other sources of data to the map, e.g. textures, height maps, etc.
If you find a bug or have an idea for a new feature, please create an issue here or contact me directly on Telegram.
ℹ️ Please, don't bother me if the Telegram bot is down. As I said before this is related to the hosting limitations, if you want you can always run the tool locally or support the project by donating, so maybe I'll be able to afford better hosting.