maps4fs 0.8.0__py3-none-any.whl → 0.8.1__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.
- maps4fs/generator/config.py +4 -2
- maps4fs/generator/i3d.py +4 -0
- {maps4fs-0.8.0.dist-info → maps4fs-0.8.1.dist-info}/METADATA +2 -1
- {maps4fs-0.8.0.dist-info → maps4fs-0.8.1.dist-info}/RECORD +7 -7
- {maps4fs-0.8.0.dist-info → maps4fs-0.8.1.dist-info}/LICENSE.md +0 -0
- {maps4fs-0.8.0.dist-info → maps4fs-0.8.1.dist-info}/WHEEL +0 -0
- {maps4fs-0.8.0.dist-info → maps4fs-0.8.1.dist-info}/top_level.txt +0 -0
maps4fs/generator/config.py
CHANGED
@@ -22,13 +22,15 @@ class Config(Component):
|
|
22
22
|
"""
|
23
23
|
|
24
24
|
def preprocess(self) -> None:
|
25
|
+
"""Gets the path to the map XML file and saves it to the instance variable."""
|
25
26
|
self._map_xml_path = self.game.map_xml_path(self.map_directory)
|
26
27
|
self.logger.debug("Map XML path: %s.", self._map_xml_path)
|
27
28
|
|
28
|
-
def process(self):
|
29
|
+
def process(self) -> None:
|
30
|
+
"""Sets the map size in the map.xml file."""
|
29
31
|
self._set_map_size()
|
30
32
|
|
31
|
-
def _set_map_size(self):
|
33
|
+
def _set_map_size(self) -> None:
|
32
34
|
"""Edits map.xml file to set correct map size."""
|
33
35
|
if not os.path.isfile(self._map_xml_path):
|
34
36
|
self.logger.warning("Map XML file not found: %s.", self._map_xml_path)
|
maps4fs/generator/i3d.py
CHANGED
@@ -27,6 +27,8 @@ class I3d(Component):
|
|
27
27
|
_map_i3d_path: str | None = None
|
28
28
|
|
29
29
|
def preprocess(self) -> None:
|
30
|
+
"""Gets the path to the map I3D file from the game instance and saves it to the instance
|
31
|
+
attribute. If the game does not support I3D files, the attribute is set to None."""
|
30
32
|
try:
|
31
33
|
self._map_i3d_path = self.game.i3d_file_path(self.map_directory)
|
32
34
|
self.logger.debug("Map I3D path: %s.", self._map_i3d_path)
|
@@ -35,9 +37,11 @@ class I3d(Component):
|
|
35
37
|
self._map_i3d_path = None
|
36
38
|
|
37
39
|
def process(self) -> None:
|
40
|
+
"""Updates the map I3D file with the default settings."""
|
38
41
|
self._update_i3d_file()
|
39
42
|
|
40
43
|
def _update_i3d_file(self) -> None:
|
44
|
+
"""Updates the map I3D file with the default settings."""
|
41
45
|
if not self._map_i3d_path:
|
42
46
|
self.logger.info("I3D is not obtained, skipping the update.")
|
43
47
|
return
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: maps4fs
|
3
|
-
Version: 0.8.
|
3
|
+
Version: 0.8.1
|
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
|
@@ -17,6 +17,7 @@ Requires-Dist: opencv-python
|
|
17
17
|
Requires-Dist: osmnx<2.0.0
|
18
18
|
Requires-Dist: rasterio
|
19
19
|
Requires-Dist: tqdm
|
20
|
+
Requires-Dist: folium
|
20
21
|
|
21
22
|
<div align="center" markdown>
|
22
23
|
<img src="https://github.com/iwatkot/maps4fs/assets/118521851/ffd7f0a3-e317-4c3f-911f-2c2fb736fbfa">
|
@@ -2,14 +2,14 @@ maps4fs/__init__.py,sha256=da4jmND2Ths9AffnkAKgzLHNkvKFOc_l21gJisPXqWY,155
|
|
2
2
|
maps4fs/logger.py,sha256=CneeHxQywjNUJXqQrUUSeiDxu95FfrfyK_Si1v0gMZ8,1477
|
3
3
|
maps4fs/generator/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,43
|
4
4
|
maps4fs/generator/component.py,sha256=CL3DNuvKAd44pynLfir_JLnBC0c9Kr233_BbSHQng6Q,3534
|
5
|
-
maps4fs/generator/config.py,sha256=
|
5
|
+
maps4fs/generator/config.py,sha256=ln_XGUdiPnc4zzhMVEueZRf-FGljeHtCHUnJ6FRlE4w,2264
|
6
6
|
maps4fs/generator/dem.py,sha256=L91hOxoXnn2LtpaH7fVA6Ke2i7JNfFk_KGMsVWHVNps,13169
|
7
7
|
maps4fs/generator/game.py,sha256=mN9VeN4nk-e43oFujIC5GOGAQOYATKrmeIb1kLHuwtI,6773
|
8
|
-
maps4fs/generator/i3d.py,sha256=
|
8
|
+
maps4fs/generator/i3d.py,sha256=0f4f21X8PVRDgR5tS_TjWxALJhb6shbVgYtPqWF5s_A,3256
|
9
9
|
maps4fs/generator/map.py,sha256=xYbSyGrcEB9CRJhVf8iTRCKLK6BvnewtlKO_Ut--Oik,3858
|
10
10
|
maps4fs/generator/texture.py,sha256=cEXQOLJ5Iq_Nb0C9OmU-9PR-E_5cgM1Q62kG49G3VNg,16019
|
11
|
-
maps4fs-0.8.
|
12
|
-
maps4fs-0.8.
|
13
|
-
maps4fs-0.8.
|
14
|
-
maps4fs-0.8.
|
15
|
-
maps4fs-0.8.
|
11
|
+
maps4fs-0.8.1.dist-info/LICENSE.md,sha256=-JY0v7p3dwXze61EbYiK7YEJ2aKrjaFZ8y2xYEOrmRY,1068
|
12
|
+
maps4fs-0.8.1.dist-info/METADATA,sha256=zqGNxRYlkNuFZUCCAiAV_PkbBkpBQxe0sm8AJ5dNH84,11866
|
13
|
+
maps4fs-0.8.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
14
|
+
maps4fs-0.8.1.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
|
15
|
+
maps4fs-0.8.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|