maps4fs 1.8.232__py3-none-any.whl → 1.8.234__py3-none-any.whl

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.
@@ -551,7 +551,7 @@ class Component:
551
551
 
552
552
  return interpolated_polyline
553
553
 
554
- def get_z_scaling_factor(self) -> float:
554
+ def get_z_scaling_factor(self, ignore_height_scale_multiplier: bool = False) -> float:
555
555
  """Calculates the scaling factor for the Z axis based on the map settings.
556
556
 
557
557
  Returns:
@@ -560,7 +560,7 @@ class Component:
560
560
 
561
561
  scaling_factor = 1 / self.map.dem_settings.multiplier
562
562
 
563
- if self.map.shared_settings.height_scale_multiplier:
563
+ if self.map.shared_settings.height_scale_multiplier and not ignore_height_scale_multiplier:
564
564
  scaling_factor *= self.map.shared_settings.height_scale_multiplier
565
565
  if self.map.shared_settings.mesh_z_scaling_factor:
566
566
  scaling_factor *= 1 / self.map.shared_settings.mesh_z_scaling_factor
@@ -581,6 +581,6 @@ class I3d(XMLComponent):
581
581
  y = int(max(0, min(y, dem_y_size - 1)))
582
582
 
583
583
  z = not_resized_dem[y, x]
584
- z *= self.get_z_scaling_factor()
584
+ z *= self.get_z_scaling_factor(ignore_height_scale_multiplier=True)
585
585
 
586
586
  return z
maps4fs/generator/map.py CHANGED
@@ -89,7 +89,6 @@ class Map:
89
89
  "custom_osm": bool(custom_osm),
90
90
  "is_public": kwargs.get("is_public", False),
91
91
  }
92
- print(main_settings)
93
92
  send_main_settings(main_settings)
94
93
  except Exception as e:
95
94
  self.logger.error("Error sending main settings: %s", e)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: maps4fs
3
- Version: 1.8.232
3
+ Version: 1.8.234
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
@@ -214,6 +214,9 @@ Using it is easy and doesn't require any guides. Enjoy!
214
214
  ⚙️ Advanced settings: enabled.
215
215
  🖼️ Texture dissolving: enabled.
216
216
  Check out the [Docker FAQ](docs/FAQ_docker.md) if you have any questions.<br>
217
+
218
+ 📹 Check out the [video tutorial](https://www.youtube.com/watch?v=1AHGIxTxSBM) on how to install Docker and use the Docker version.
219
+
217
220
  You can launch the project with minimalistic UI in your browser using Docker. Follow these steps:
218
221
 
219
222
  1. Install [Docker](https://docs.docker.com/get-docker/) for your OS.
@@ -3,7 +3,7 @@ maps4fs/logger.py,sha256=HQrDyj72mUjVYo25aR_-_SxVn2rfFjDCNbj-JKJdSnE,1488
3
3
  maps4fs/generator/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,43
4
4
  maps4fs/generator/dem.py,sha256=a9B3tatj7pzvvdLIyLw7BA3JoDTibFczpqiXJnx054U,12864
5
5
  maps4fs/generator/game.py,sha256=NZaxj5z7WzMiHzAvQyr-TvVjGoHgqGldM6ZsItuYyzA,11292
6
- maps4fs/generator/map.py,sha256=Tn33S8e7a2guvpjr1_GCpYIQFAz-ekkEUAobS02i6Xo,12669
6
+ maps4fs/generator/map.py,sha256=tgbpu3xxtFFWMualvaOnfnBXjDYWqAa_xIpu-OvcnbQ,12636
7
7
  maps4fs/generator/qgis.py,sha256=Es8hLuqN_KH8lDfnJE6He2rWYbAKJ3RGPn-o87S6CPI,6116
8
8
  maps4fs/generator/settings.py,sha256=DJCG--Z__JBEc-fllWOvnb4roYuNFv7bSkAclUZV2gE,6786
9
9
  maps4fs/generator/statistics.py,sha256=JfhiGDZf2-VoWZbL-Kikzv4_DqerYwKcseccVL9qzXo,1783
@@ -11,12 +11,12 @@ maps4fs/generator/component/__init__.py,sha256=s01yVVVi8R2xxNvflu2D6wTd9I_g73AMM
11
11
  maps4fs/generator/component/background.py,sha256=7YkSFrbPHN_dTh4xB1lM60mloLJXOdXZw19T0Gs4x1k,18971
12
12
  maps4fs/generator/component/config.py,sha256=RitKgFDZPzjA1fi8GcEi1na75qqaueUvpcITHjBvCXc,3674
13
13
  maps4fs/generator/component/grle.py,sha256=C6wpYQrJBVRb3vVbEAY5BYTRYU9BaefmoWCXoPrVn2A,19454
14
- maps4fs/generator/component/i3d.py,sha256=AKS3FS4pdsWR0GxCar1F9_jREfUH-7CqR7vxdiVmXao,21294
14
+ maps4fs/generator/component/i3d.py,sha256=yWGs5eBuBT7V4F6SbTNAmF-8fj2Zy4kcC5OKZ_XVICs,21329
15
15
  maps4fs/generator/component/layer.py,sha256=QPcEzTv_8N9wYvHAZy8OezfATaVLG-YetSfCXf2lnFI,5892
16
16
  maps4fs/generator/component/satellite.py,sha256=oZBHjP_QY0ik1-Vk7JqMS__zIG8ffw2voeozB7-HUQc,4946
17
17
  maps4fs/generator/component/texture.py,sha256=GWOE7w2maydB2LDku-YEC1w1oc8kcnnZ1SPTL6b82H8,30966
18
18
  maps4fs/generator/component/base/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,43
19
- maps4fs/generator/component/base/component.py,sha256=sUinM8Q6cb26ctJTNF35Gb4rU9gbPCMkV6PKju3sfRo,21414
19
+ maps4fs/generator/component/base/component.py,sha256=CIR4Fjn9YfLU4y7nB_jOaz7PjGFvBcDnHlvXxeahpdM,21499
20
20
  maps4fs/generator/component/base/component_image.py,sha256=2QnJ9xm0D54v4whg7bc1s-kwRVjZHhOo1OR5jHr1Qp0,4786
21
21
  maps4fs/generator/component/base/component_mesh.py,sha256=pc7UVakZCnJPV-0Ukdsm6aUD3NFZbOUazuEbb44k170,8747
22
22
  maps4fs/generator/component/base/component_xml.py,sha256=6OO1dKoceO1ACk7-k1oGtnkfNud8ZN3u3ZNjdNMpTqw,3967
@@ -53,8 +53,8 @@ maps4fs/toolbox/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,4
53
53
  maps4fs/toolbox/background.py,sha256=RclEqxEWLbMxuEkkegQP8jybzugwQ1_R3rdfDe0s21U,2104
54
54
  maps4fs/toolbox/custom_osm.py,sha256=X6ZlPqiOhNjkmdD_qVroIfdOl9Rb90cDwVSLDVYgx80,1892
55
55
  maps4fs/toolbox/dem.py,sha256=z9IPFNmYbjiigb3t02ZenI3Mo8odd19c5MZbjDEovTo,3525
56
- maps4fs-1.8.232.dist-info/LICENSE.md,sha256=pTKD_oUexcn-yccFCTrMeLkZy0ifLRa-VNcDLqLZaIw,10749
57
- maps4fs-1.8.232.dist-info/METADATA,sha256=2R9A1R0ESS6QCB7LMcSpVUo6vSUOshtR7ZETKcVaVeI,45901
58
- maps4fs-1.8.232.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
59
- maps4fs-1.8.232.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
60
- maps4fs-1.8.232.dist-info/RECORD,,
56
+ maps4fs-1.8.234.dist-info/LICENSE.md,sha256=pTKD_oUexcn-yccFCTrMeLkZy0ifLRa-VNcDLqLZaIw,10749
57
+ maps4fs-1.8.234.dist-info/METADATA,sha256=mqq42WVGD2IEC_4zrfwsiK86IlMUJFsu50Sz3cAhzbg,46039
58
+ maps4fs-1.8.234.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
59
+ maps4fs-1.8.234.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
60
+ maps4fs-1.8.234.dist-info/RECORD,,