maps4fs 1.1.1__tar.gz → 1.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. {maps4fs-1.1.1 → maps4fs-1.1.3}/PKG-INFO +13 -2
  2. {maps4fs-1.1.1 → maps4fs-1.1.3}/README.md +12 -1
  3. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/generator/game.py +1 -1
  4. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/generator/i3d.py +10 -0
  5. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs.egg-info/PKG-INFO +13 -2
  6. {maps4fs-1.1.1 → maps4fs-1.1.3}/pyproject.toml +1 -1
  7. {maps4fs-1.1.1 → maps4fs-1.1.3}/LICENSE.md +0 -0
  8. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/__init__.py +0 -0
  9. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/generator/__init__.py +0 -0
  10. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/generator/background.py +0 -0
  11. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/generator/component.py +0 -0
  12. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/generator/config.py +0 -0
  13. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/generator/dem.py +0 -0
  14. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/generator/grle.py +0 -0
  15. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/generator/map.py +0 -0
  16. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/generator/qgis.py +0 -0
  17. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/generator/texture.py +0 -0
  18. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/logger.py +0 -0
  19. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/toolbox/__init__.py +0 -0
  20. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/toolbox/background.py +0 -0
  21. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs/toolbox/dem.py +0 -0
  22. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs.egg-info/SOURCES.txt +0 -0
  23. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs.egg-info/dependency_links.txt +0 -0
  24. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs.egg-info/requires.txt +0 -0
  25. {maps4fs-1.1.1 → maps4fs-1.1.3}/maps4fs.egg-info/top_level.txt +0 -0
  26. {maps4fs-1.1.1 → maps4fs-1.1.3}/setup.cfg +0 -0
  27. {maps4fs-1.1.1 → maps4fs-1.1.3}/tests/test_generator.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: maps4fs
3
- Version: 1.1.1
3
+ Version: 1.1.3
4
4
  Summary: Generate map templates for Farming Simulator from real places.
5
5
  Author-email: iwatkot <iwatkot@gmail.com>
6
6
  License: MIT License
@@ -35,6 +35,7 @@ Requires-Dist: pympler
35
35
  <a href="#How-To-Run">How-To-Run</a><br>
36
36
  <a href="docs/FAQ.md">FAQ</a> •
37
37
  <a href="docs/map_structure.md">Map Structure</a> •
38
+ <a href="docs/tips_and_hints.md">Tips and Hints</a> •
38
39
  <a href="#Modder-Toolbox">Modder Toolbox</a><br>
39
40
  <a href="#Supported-objects">Supported objects</a> •
40
41
  <a href="#Generation-info">Generation info</a> •
@@ -44,7 +45,8 @@ Requires-Dist: pympler
44
45
  <a href="#DDS-conversion">DDS conversion</a> •
45
46
  <a href="#For-advanced-users">For advanced users</a> •
46
47
  <a href="#Resources">Resources</a> •
47
- <a href="#Bugs-and-feature-requests">Bugs and feature requests</a>
48
+ <a href="#Bugs-and-feature-requests">Bugs and feature requests</a><br>
49
+ <a href="#Special-thanks">Special thanks</a>
48
50
  </p>
49
51
 
50
52
 
@@ -491,3 +493,12 @@ To create a basic map, you only need the Giants Editor. But if you want to creat
491
493
  ## Bugs and feature requests
492
494
  ➡️ Please, before creating an issue or asking some questions, check the [FAQ](docs/FAQ.md) section.<br>
493
495
  If you find a bug or have an idea for a new feature, please create an issue [here](https://github.com/iwatkot/maps4fs/issues) or contact me directly on [Telegram](https://t.me/iwatkot) or on Discord: `iwatkot`.
496
+
497
+ ## Special thanks
498
+
499
+ Of course, first of all, thanks to the direct [contributors](https://github.com/iwatkot/maps4fs/graphs/contributors) of the project.
500
+
501
+ But also, I want to thank the people who helped me with the project in some way, even if they didn't contribute directly. Here's the list of them:
502
+
503
+ - [Ka5tis](https://github.com/Ka5tis) - for investigating the issue with a "spiky terrain" and finding a solution - changing the `DisplacementLayer` size to a higher value.
504
+ - [Kalderone](https://www.youtube.com/@Kalderone_FS22) - for useful feedback, suggestions, expert advice on the map-making process and highlihting some important settings in the Giants Editor.
@@ -10,6 +10,7 @@
10
10
  <a href="#How-To-Run">How-To-Run</a><br>
11
11
  <a href="docs/FAQ.md">FAQ</a> •
12
12
  <a href="docs/map_structure.md">Map Structure</a> •
13
+ <a href="docs/tips_and_hints.md">Tips and Hints</a> •
13
14
  <a href="#Modder-Toolbox">Modder Toolbox</a><br>
14
15
  <a href="#Supported-objects">Supported objects</a> •
15
16
  <a href="#Generation-info">Generation info</a> •
@@ -19,7 +20,8 @@
19
20
  <a href="#DDS-conversion">DDS conversion</a> •
20
21
  <a href="#For-advanced-users">For advanced users</a> •
21
22
  <a href="#Resources">Resources</a> •
22
- <a href="#Bugs-and-feature-requests">Bugs and feature requests</a>
23
+ <a href="#Bugs-and-feature-requests">Bugs and feature requests</a><br>
24
+ <a href="#Special-thanks">Special thanks</a>
23
25
  </p>
24
26
 
25
27
 
@@ -466,3 +468,12 @@ To create a basic map, you only need the Giants Editor. But if you want to creat
466
468
  ## Bugs and feature requests
467
469
  ➡️ Please, before creating an issue or asking some questions, check the [FAQ](docs/FAQ.md) section.<br>
468
470
  If you find a bug or have an idea for a new feature, please create an issue [here](https://github.com/iwatkot/maps4fs/issues) or contact me directly on [Telegram](https://t.me/iwatkot) or on Discord: `iwatkot`.
471
+
472
+ ## Special thanks
473
+
474
+ Of course, first of all, thanks to the direct [contributors](https://github.com/iwatkot/maps4fs/graphs/contributors) of the project.
475
+
476
+ But also, I want to thank the people who helped me with the project in some way, even if they didn't contribute directly. Here's the list of them:
477
+
478
+ - [Ka5tis](https://github.com/Ka5tis) - for investigating the issue with a "spiky terrain" and finding a solution - changing the `DisplacementLayer` size to a higher value.
479
+ - [Kalderone](https://www.youtube.com/@Kalderone_FS22) - for useful feedback, suggestions, expert advice on the map-making process and highlihting some important settings in the Giants Editor.
@@ -31,7 +31,7 @@ class Game:
31
31
  """
32
32
 
33
33
  code: str | None = None
34
- dem_multipliyer: int = 1
34
+ dem_multipliyer: int = 2
35
35
  _additional_dem_name: str | None = None
36
36
  _map_template_path: str | None = None
37
37
  _texture_schema: str | None = None
@@ -9,6 +9,7 @@ from xml.etree import ElementTree as ET
9
9
  from maps4fs.generator.component import Component
10
10
 
11
11
  DEFAULT_HEIGHT_SCALE = 2000
12
+ DISPLACEMENT_LAYER_SIZE_FOR_BIG_MAPS = 32768
12
13
  DEFAULT_MAX_LOD_DISTANCE = 10000
13
14
  DEFAULT_MAX_LOD_OCCLUDER_DISTANCE = 10000
14
15
  NODE_ID_STARTING_VALUE = 500
@@ -84,6 +85,15 @@ class I3d(Component):
84
85
 
85
86
  self.logger.debug("TerrainTransformGroup element updated in I3D file.")
86
87
 
88
+ if self.map_size > 4096:
89
+ displacement_layer = terrain_elem.find(".//DisplacementLayer") # pylint: disable=W0631
90
+
91
+ if displacement_layer is not None:
92
+ displacement_layer.set("size", str(DISPLACEMENT_LAYER_SIZE_FOR_BIG_MAPS))
93
+ self.logger.debug(
94
+ "Map size is greater than 4096, DisplacementLayer size set to %s.",
95
+ )
96
+
87
97
  tree.write(self._map_i3d_path) # type: ignore
88
98
  self.logger.info("Map I3D file saved to: %s.", self._map_i3d_path)
89
99
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: maps4fs
3
- Version: 1.1.1
3
+ Version: 1.1.3
4
4
  Summary: Generate map templates for Farming Simulator from real places.
5
5
  Author-email: iwatkot <iwatkot@gmail.com>
6
6
  License: MIT License
@@ -35,6 +35,7 @@ Requires-Dist: pympler
35
35
  <a href="#How-To-Run">How-To-Run</a><br>
36
36
  <a href="docs/FAQ.md">FAQ</a> •
37
37
  <a href="docs/map_structure.md">Map Structure</a> •
38
+ <a href="docs/tips_and_hints.md">Tips and Hints</a> •
38
39
  <a href="#Modder-Toolbox">Modder Toolbox</a><br>
39
40
  <a href="#Supported-objects">Supported objects</a> •
40
41
  <a href="#Generation-info">Generation info</a> •
@@ -44,7 +45,8 @@ Requires-Dist: pympler
44
45
  <a href="#DDS-conversion">DDS conversion</a> •
45
46
  <a href="#For-advanced-users">For advanced users</a> •
46
47
  <a href="#Resources">Resources</a> •
47
- <a href="#Bugs-and-feature-requests">Bugs and feature requests</a>
48
+ <a href="#Bugs-and-feature-requests">Bugs and feature requests</a><br>
49
+ <a href="#Special-thanks">Special thanks</a>
48
50
  </p>
49
51
 
50
52
 
@@ -491,3 +493,12 @@ To create a basic map, you only need the Giants Editor. But if you want to creat
491
493
  ## Bugs and feature requests
492
494
  ➡️ Please, before creating an issue or asking some questions, check the [FAQ](docs/FAQ.md) section.<br>
493
495
  If you find a bug or have an idea for a new feature, please create an issue [here](https://github.com/iwatkot/maps4fs/issues) or contact me directly on [Telegram](https://t.me/iwatkot) or on Discord: `iwatkot`.
496
+
497
+ ## Special thanks
498
+
499
+ Of course, first of all, thanks to the direct [contributors](https://github.com/iwatkot/maps4fs/graphs/contributors) of the project.
500
+
501
+ But also, I want to thank the people who helped me with the project in some way, even if they didn't contribute directly. Here's the list of them:
502
+
503
+ - [Ka5tis](https://github.com/Ka5tis) - for investigating the issue with a "spiky terrain" and finding a solution - changing the `DisplacementLayer` size to a higher value.
504
+ - [Kalderone](https://www.youtube.com/@Kalderone_FS22) - for useful feedback, suggestions, expert advice on the map-making process and highlihting some important settings in the Giants Editor.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "maps4fs"
7
- version = "1.1.1"
7
+ version = "1.1.3"
8
8
  description = "Generate map templates for Farming Simulator from real places."
9
9
  authors = [{name = "iwatkot", email = "iwatkot@gmail.com"}]
10
10
  license = {text = "MIT License"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes