maps4fs 2.9.32__tar.gz → 2.9.38__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 (39) hide show
  1. maps4fs-2.9.38/LICENSE.md +416 -0
  2. {maps4fs-2.9.32 → maps4fs-2.9.38}/PKG-INFO +4 -4
  3. {maps4fs-2.9.32 → maps4fs-2.9.38}/README.md +2 -1
  4. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/background.py +18 -3
  5. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/building.py +160 -24
  6. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/i3d.py +44 -1
  7. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/layer.py +3 -0
  8. maps4fs-2.9.38/maps4fs/generator/component/road.py +648 -0
  9. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/texture.py +3 -2
  10. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/config.py +58 -6
  11. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/game.py +2 -1
  12. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/map.py +1 -0
  13. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/settings.py +18 -1
  14. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs.egg-info/PKG-INFO +4 -4
  15. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs.egg-info/SOURCES.txt +1 -0
  16. {maps4fs-2.9.32 → maps4fs-2.9.38}/pyproject.toml +2 -3
  17. maps4fs-2.9.32/LICENSE.md +0 -651
  18. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/__init__.py +0 -0
  19. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/__init__.py +0 -0
  20. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/__init__.py +0 -0
  21. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/base/__init__.py +0 -0
  22. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/base/component.py +0 -0
  23. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/base/component_image.py +0 -0
  24. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/base/component_mesh.py +0 -0
  25. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/base/component_xml.py +0 -0
  26. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/config.py +0 -0
  27. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/dem.py +0 -0
  28. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/grle.py +0 -0
  29. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/component/satellite.py +0 -0
  30. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/monitor.py +0 -0
  31. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/qgis.py +0 -0
  32. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/statistics.py +0 -0
  33. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/generator/utils.py +0 -0
  34. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs/logger.py +0 -0
  35. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs.egg-info/dependency_links.txt +0 -0
  36. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs.egg-info/requires.txt +0 -0
  37. {maps4fs-2.9.32 → maps4fs-2.9.38}/maps4fs.egg-info/top_level.txt +0 -0
  38. {maps4fs-2.9.32 → maps4fs-2.9.38}/setup.cfg +0 -0
  39. {maps4fs-2.9.32 → maps4fs-2.9.38}/tests/test_generator.py +0 -0
@@ -0,0 +1,416 @@
1
+ # Maps4FS License
2
+
3
+ **Maps4FS - Generate map templates for Farming Simulator from real places**
4
+ Copyright (C) 2025 iwatkot
5
+
6
+ This work is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License.
7
+
8
+ ---
9
+
10
+ Attribution-NonCommercial 4.0 International
11
+
12
+ =======================================================================
13
+
14
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
15
+ does not provide legal services or legal advice. Distribution of
16
+ Creative Commons public licenses does not create a lawyer-client or
17
+ other relationship. Creative Commons makes its licenses and related
18
+ information available on an "as-is" basis. Creative Commons gives no
19
+ warranties regarding its licenses, any material licensed under their
20
+ terms and conditions, or any related information. Creative Commons
21
+ disclaims all liability for damages resulting from their use to the
22
+ fullest extent possible.
23
+
24
+ Using Creative Commons Public Licenses
25
+
26
+ Creative Commons public licenses provide a standard set of terms and
27
+ conditions that creators and other rights holders may use to share
28
+ original works of authorship and other material subject to copyright
29
+ and certain other rights specified in the public license below. The
30
+ following considerations are for informational purposes only, are not
31
+ exhaustive, and do not form part of our licenses.
32
+
33
+ Considerations for licensors: Our public licenses are
34
+ intended for use by those authorized to give the public
35
+ permission to use material in ways otherwise restricted by
36
+ copyright and certain other rights. Our licenses are
37
+ irrevocable. Licensors should read and understand the terms
38
+ and conditions of the license they choose before applying it.
39
+ Licensors should also secure all rights necessary before
40
+ applying our licenses so that the public can reuse the
41
+ material as expected. Licensors should clearly mark any
42
+ material not subject to the license. This includes other CC-
43
+ licensed material, or material used under an exception or
44
+ limitation to copyright. More considerations for licensors:
45
+ wiki.creativecommons.org/Considerations_for_licensors
46
+
47
+ Considerations for the public: By using one of our public
48
+ licenses, a licensor grants the public permission to use the
49
+ licensed material under specified terms and conditions. If
50
+ the licensor's permission is not necessary for any reason--for
51
+ example, because of any applicable exception or limitation to
52
+ copyright--then that use is not regulated by the license. Our
53
+ licenses grant only permissions under copyright and certain
54
+ other rights that a licensor has authority to grant. Use of
55
+ the licensed material may still be restricted for other
56
+ reasons, including because others have copyright or other
57
+ rights in the material. A licensor may make special requests,
58
+ such as asking that all changes be marked or described.
59
+ Although not required by our licenses, you are encouraged to
60
+ respect those requests where reasonable. More considerations
61
+ for the public:
62
+ wiki.creativecommons.org/Considerations_for_licensees
63
+
64
+ =======================================================================
65
+
66
+ Creative Commons Attribution-NonCommercial 4.0 International Public
67
+ License
68
+
69
+ By exercising the Licensed Rights (defined below), You accept and agree
70
+ to be bound by the terms and conditions of this Creative Commons
71
+ Attribution-NonCommercial 4.0 International Public License ("Public
72
+ License"). To the extent this Public License may be interpreted as a
73
+ contract, You are granted the Licensed Rights in consideration of Your
74
+ acceptance of these terms and conditions, and the Licensor grants You
75
+ such rights in consideration of benefits the Licensor receives from
76
+ making the Licensed Material available under these terms and
77
+ conditions.
78
+
79
+
80
+ Section 1 -- Definitions.
81
+
82
+ a. Adapted Material means material subject to Copyright and Similar
83
+ Rights that is derived from or based upon the Licensed Material
84
+ and in which the Licensed Material is translated, altered,
85
+ arranged, transformed, or otherwise modified in a manner requiring
86
+ permission under the Copyright and Similar Rights held by the
87
+ Licensor. For purposes of this Public License, where the Licensed
88
+ Material is a musical work, performance, or sound recording,
89
+ Adapted Material is always produced where the Licensed Material is
90
+ synched in timed relation with a moving image.
91
+
92
+ b. Adapter's License means the license You apply to Your Copyright
93
+ and Similar Rights in Your contributions to Adapted Material in
94
+ accordance with the terms and conditions of this Public License.
95
+
96
+ c. Copyright and Similar Rights means copyright and/or similar rights
97
+ closely related to copyright including, without limitation,
98
+ performance, broadcast, sound recording, and Sui Generis Database
99
+ Rights, without regard to how the rights are labeled or
100
+ categorized. For purposes of this Public License, the rights
101
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
102
+ Rights.
103
+ d. Effective Technological Measures means those measures that, in the
104
+ absence of proper authority, may not be circumvented under laws
105
+ fulfilling obligations under Article 11 of the WIPO Copyright
106
+ Treaty adopted on December 20, 1996, and/or similar international
107
+ agreements.
108
+
109
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
110
+ any other exception or limitation to Copyright and Similar Rights
111
+ that applies to Your use of the Licensed Material.
112
+
113
+ f. Licensed Material means the artistic or literary work, database,
114
+ or other material to which the Licensor applied this Public
115
+ License.
116
+
117
+ g. Licensed Rights means the rights granted to You subject to the
118
+ terms and conditions of this Public License, which are limited to
119
+ all Copyright and Similar Rights that apply to Your use of the
120
+ Licensed Material and that the Licensor has authority to license.
121
+
122
+ h. Licensor means the individual(s) or entity(ies) granting rights
123
+ under this Public License.
124
+
125
+ i. NonCommercial means not primarily intended for or directed towards
126
+ commercial advantage or monetary compensation. For purposes of
127
+ this Public License, the exchange of the Licensed Material for
128
+ other material subject to Copyright and Similar Rights by digital
129
+ file-sharing or similar means is NonCommercial provided there is
130
+ no payment of monetary compensation in connection with the
131
+ exchange.
132
+
133
+ j. Share means to provide material to the public by any means or
134
+ process that requires permission under the Licensed Rights, such
135
+ as reproduction, public display, public performance, distribution,
136
+ dissemination, communication, or importation, and to make material
137
+ available to the public including in ways that members of the
138
+ public may access the material from a place and at a time
139
+ individually chosen by them.
140
+
141
+ k. Sui Generis Database Rights means rights other than copyright
142
+ resulting from Directive 96/9/EC of the European Parliament and of
143
+ the Council of 11 March 1996 on the legal protection of databases,
144
+ as amended and/or succeeded, as well as other essentially
145
+ equivalent rights anywhere in the world.
146
+
147
+ l. You means the individual or entity exercising the Licensed Rights
148
+ under this Public License. Your has a corresponding meaning.
149
+
150
+
151
+ Section 2 -- Scope.
152
+
153
+ a. License grant.
154
+
155
+ 1. Subject to the terms and conditions of this Public License,
156
+ the Licensor hereby grants You a worldwide, royalty-free,
157
+ non-sublicensable, non-exclusive, irrevocable license to
158
+ exercise the Licensed Rights in the Licensed Material to:
159
+
160
+ a. reproduce and Share the Licensed Material, in whole or
161
+ in part, for NonCommercial purposes only; and
162
+
163
+ b. produce, reproduce, and Share Adapted Material for
164
+ NonCommercial purposes only.
165
+
166
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
167
+ Exceptions and Limitations apply to Your use, this Public
168
+ License does not apply, and You do not need to comply with
169
+ its terms and conditions.
170
+
171
+ 3. Term. The term of this Public License is specified in Section
172
+ 6(a).
173
+
174
+ 4. Media and formats; technical modifications allowed. The
175
+ Licensor authorizes You to exercise the Licensed Rights in
176
+ all media and formats whether now known or hereafter created,
177
+ and to make technical modifications necessary to do so. The
178
+ Licensor waives and/or agrees not to assert any right or
179
+ authority to forbid You from making technical modifications
180
+ necessary to exercise the Licensed Rights, including
181
+ technical modifications necessary to circumvent Effective
182
+ Technological Measures. For purposes of this Public License,
183
+ simply making modifications authorized by this Section 2(a)
184
+ (4) never produces Adapted Material.
185
+
186
+ 5. Downstream recipients.
187
+
188
+ a. Offer from the Licensor -- Licensed Material. Every
189
+ recipient of the Licensed Material automatically
190
+ receives an offer from the Licensor to exercise the
191
+ Licensed Rights under the terms and conditions of this
192
+ Public License.
193
+
194
+ b. No downstream restrictions. You may not offer or impose
195
+ any additional or different terms or conditions on, or
196
+ apply any Effective Technological Measures to, the
197
+ Licensed Material if doing so restricts exercise of the
198
+ Licensed Rights by any recipient of the Licensed
199
+ Material.
200
+
201
+ 6. No endorsement. Nothing in this Public License constitutes or
202
+ may be construed as permission to assert or imply that You
203
+ are, or that Your use of the Licensed Material is, connected
204
+ with, or sponsored, endorsed, or granted official status by,
205
+ the Licensor or others designated to receive attribution as
206
+ provided in Section 3(a)(1)(A)(i).
207
+
208
+ b. Other rights.
209
+
210
+ 1. Moral rights, such as the right of integrity, are not
211
+ licensed under this Public License, nor are publicity,
212
+ privacy, and/or other similar personality rights; however, to
213
+ the extent possible, the Licensor waives and/or agrees not to
214
+ assert any such rights held by the Licensor to the limited
215
+ extent necessary to allow You to exercise the Licensed
216
+ Rights, but not otherwise.
217
+
218
+ 2. Patent and trademark rights are not licensed under this
219
+ Public License.
220
+
221
+ 3. To the extent possible, the Licensor waives any right to
222
+ collect royalties from You for the exercise of the Licensed
223
+ Rights, whether directly or through a collecting society
224
+ under any voluntary or waivable statutory or compulsory
225
+ licensing scheme. In all other cases the Licensor expressly
226
+ reserves any right to collect such royalties, including when
227
+ the Licensed Material is used other than for NonCommercial
228
+ purposes.
229
+
230
+
231
+ Section 3 -- License Conditions.
232
+
233
+ Your exercise of the Licensed Rights is expressly made subject to the
234
+ following conditions.
235
+
236
+ a. Attribution.
237
+
238
+ 1. If You Share the Licensed Material (including in modified
239
+ form), You must:
240
+
241
+ a. retain the following if it is supplied by the Licensor
242
+ with the Licensed Material:
243
+
244
+ i. identification of the creator(s) of the Licensed
245
+ Material and any others designated to receive
246
+ attribution, in any reasonable manner requested by
247
+ the Licensor (including by pseudonym if
248
+ designated);
249
+
250
+ ii. a copyright notice;
251
+
252
+ iii. a notice that refers to this Public License;
253
+
254
+ iv. a notice that refers to the disclaimer of
255
+ warranties;
256
+
257
+ v. a URI or hyperlink to the Licensed Material to the
258
+ extent reasonably practicable;
259
+
260
+ b. indicate if You modified the Licensed Material and
261
+ retain an indication of any previous modifications; and
262
+
263
+ c. indicate the Licensed Material is licensed under this
264
+ Public License, and include the text of, or the URI or
265
+ hyperlink to, this Public License.
266
+
267
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
268
+ reasonable manner based on the medium, means, and context in
269
+ which You Share the Licensed Material. For example, it may be
270
+ reasonable to satisfy the conditions by providing a URI or
271
+ hyperlink to a resource that includes the required
272
+ information.
273
+
274
+ 3. If requested by the Licensor, You must remove any of the
275
+ information required by Section 3(a)(1)(A) to the extent
276
+ reasonably practicable.
277
+
278
+ 4. If You Share Adapted Material You produce, the Adapter's
279
+ License You apply must not prevent recipients of the Adapted
280
+ Material from complying with this Public License.
281
+
282
+
283
+ Section 4 -- Sui Generis Database Rights.
284
+
285
+ Where the Licensed Rights include Sui Generis Database Rights that
286
+ apply to Your use of the Licensed Material:
287
+
288
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
289
+ to extract, reuse, reproduce, and Share all or a substantial
290
+ portion of the contents of the database for NonCommercial purposes
291
+ only;
292
+
293
+ b. if You include all or a substantial portion of the database
294
+ contents in a database in which You have Sui Generis Database
295
+ Rights, then the database in which You have Sui Generis Database
296
+ Rights (but not its individual contents) is Adapted Material; and
297
+
298
+ c. You must comply with the conditions in Section 3(a) if You Share
299
+ all or a substantial portion of the contents of the database.
300
+
301
+ For the avoidance of doubt, this Section 4 supplements and does not
302
+ replace Your obligations under this Public License where the Licensed
303
+ Rights include other Copyright and Similar Rights.
304
+
305
+
306
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
307
+
308
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
309
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
310
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
311
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
312
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
313
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
314
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
315
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
316
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
317
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
318
+
319
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
320
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
321
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
322
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
323
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
324
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
325
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
326
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
327
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
328
+
329
+ c. The disclaimer of warranties and limitation of liability provided
330
+ above shall be interpreted in a manner that, to the extent
331
+ possible, most closely approximates an absolute disclaimer and
332
+ waiver of all liability.
333
+
334
+
335
+ Section 6 -- Term and Termination.
336
+
337
+ a. This Public License applies for the term of the Copyright and
338
+ Similar Rights licensed here. However, if You fail to comply with
339
+ this Public License, then Your rights under this Public License
340
+ terminate automatically.
341
+
342
+ b. Where Your right to use the Licensed Material has terminated under
343
+ Section 6(a), it reinstates:
344
+
345
+ 1. automatically as of the date the violation is cured, provided
346
+ it is cured within 30 days of Your discovery of the
347
+ violation; or
348
+
349
+ 2. upon express reinstatement by the Licensor.
350
+
351
+ For the avoidance of doubt, this Section 6(b) does not affect any
352
+ right the Licensor may have to seek remedies for Your violations
353
+ of this Public License.
354
+
355
+ c. For the avoidance of doubt, the Licensor may also offer the
356
+ Licensed Material under separate terms or conditions or stop
357
+ distributing the Licensed Material at any time; however, doing so
358
+ will not terminate this Public License.
359
+
360
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
361
+ License.
362
+
363
+
364
+ Section 7 -- Other Terms and Conditions.
365
+
366
+ a. The Licensor shall not be bound by any additional or different
367
+ terms or conditions communicated by You unless expressly agreed.
368
+
369
+ b. Any arrangements, understandings, or agreements regarding the
370
+ Licensed Material not stated herein are separate from and
371
+ independent of the terms and conditions of this Public License.
372
+
373
+
374
+ Section 8 -- Interpretation.
375
+
376
+ a. For the avoidance of doubt, this Public License does not, and
377
+ shall not be interpreted to, reduce, limit, restrict, or impose
378
+ conditions on any use of the Licensed Material that could lawfully
379
+ be made without permission under this Public License.
380
+
381
+ b. To the extent possible, if any provision of this Public License is
382
+ deemed unenforceable, it shall be automatically reformed to the
383
+ minimum extent necessary to make it enforceable. If the provision
384
+ cannot be reformed, it shall be severed from this Public License
385
+ without affecting the enforceability of the remaining terms and
386
+ conditions.
387
+
388
+ c. No term or condition of this Public License will be waived and no
389
+ failure to comply consented to unless expressly agreed to by the
390
+ Licensor.
391
+
392
+ d. Nothing in this Public License constitutes or may be interpreted
393
+ as a limitation upon, or waiver of, any privileges and immunities
394
+ that apply to the Licensor or You, including from the legal
395
+ processes of any jurisdiction or authority.
396
+
397
+ =======================================================================
398
+
399
+ Creative Commons is not a party to its public
400
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
401
+ its public licenses to material it publishes and in those instances
402
+ will be considered the “Licensor.” The text of the Creative Commons
403
+ public licenses is dedicated to the public domain under the CC0 Public
404
+ Domain Dedication. Except for the limited purpose of indicating that
405
+ material is shared under a Creative Commons public license or as
406
+ otherwise permitted by the Creative Commons policies published at
407
+ creativecommons.org/policies, Creative Commons does not authorize the
408
+ use of the trademark "Creative Commons" or any other trademark or logo
409
+ of Creative Commons without its prior written consent including,
410
+ without limitation, in connection with any unauthorized modifications
411
+ to any of its public licenses or any other arrangements,
412
+ understandings, or agreements concerning use of licensed material. For
413
+ the avoidance of doubt, this paragraph does not form part of the
414
+ public licenses.
415
+
416
+ Creative Commons may be contacted at creativecommons.org.
@@ -1,15 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maps4fs
3
- Version: 2.9.32
3
+ Version: 2.9.38
4
4
  Summary: Generate map templates for Farming Simulator from real places.
5
5
  Author-email: iwatkot <iwatkot@gmail.com>
6
- License: GNU Affero General Public License v3.0
6
+ License-Expression: CC-BY-NC-4.0
7
7
  Project-URL: Homepage, https://github.com/iwatkot/maps4fs
8
8
  Project-URL: Repository, https://github.com/iwatkot/maps4fs
9
9
  Keywords: farmingsimulator,fs,farmingsimulator22,farmingsimulator25,fs22,fs25
10
10
  Classifier: Programming Language :: Python :: 3.11
11
11
  Classifier: Programming Language :: Python :: 3.12
12
- Classifier: License :: OSI Approved :: GNU Affero General Public License v3
13
12
  Classifier: Operating System :: OS Independent
14
13
  Description-Content-Type: text/markdown
15
14
  License-File: LICENSE.md
@@ -89,6 +88,7 @@ Dynamic: license-file
89
88
  🌿 **Decorative Foliage** - Realistic vegetation and grass areas<br>
90
89
  🏘️ **Intelligent Building Placement** - Automatic building placement in appropriate areas<br>
91
90
 
91
+ 🚧 **3D Road Generation** - Automatic road mesh creation with custom textures<br>
92
92
  🚧 **Complete Spline Networks** - Roads and infrastructure<br>
93
93
  🔷 **Background Terrain** - 3D *.obj files for surrounding landscape<br>
94
94
  📦 **Giants Editor Ready** - Import and start building immediately<br>
@@ -98,7 +98,7 @@ Dynamic: license-file
98
98
  📚 **Complete Documentation** - [Detailed guides](https://maps4fs.gitbook.io/docs) and video tutorials<br>
99
99
 
100
100
  <p align="center">
101
- <img src="https://github.com/iwatkot/maps4fsui/releases/download/0.0.2/mfstr.gif"><br>
101
+ <img src="https://github.com/iwatkot/maps4fs/releases/download/2.9.34/mfsg.gif"><br>
102
102
  <i>Example of map generated with Maps4FS with no manual edits.</i>
103
103
  </p>
104
104
 
@@ -58,6 +58,7 @@
58
58
  🌿 **Decorative Foliage** - Realistic vegetation and grass areas<br>
59
59
  🏘️ **Intelligent Building Placement** - Automatic building placement in appropriate areas<br>
60
60
 
61
+ 🚧 **3D Road Generation** - Automatic road mesh creation with custom textures<br>
61
62
  🚧 **Complete Spline Networks** - Roads and infrastructure<br>
62
63
  🔷 **Background Terrain** - 3D *.obj files for surrounding landscape<br>
63
64
  📦 **Giants Editor Ready** - Import and start building immediately<br>
@@ -67,7 +68,7 @@
67
68
  📚 **Complete Documentation** - [Detailed guides](https://maps4fs.gitbook.io/docs) and video tutorials<br>
68
69
 
69
70
  <p align="center">
70
- <img src="https://github.com/iwatkot/maps4fsui/releases/download/0.0.2/mfstr.gif"><br>
71
+ <img src="https://github.com/iwatkot/maps4fs/releases/download/2.9.34/mfsg.gif"><br>
71
72
  <i>Example of map generated with Maps4FS with no manual edits.</i>
72
73
  </p>
73
74
 
@@ -81,6 +81,9 @@ class Background(MeshComponent, ImageComponent):
81
81
  self.not_resized_with_foundations_path: str = os.path.join(
82
82
  self.background_directory, "not_resized_with_foundations.png"
83
83
  )
84
+ self.not_resized_with_flattened_roads_path: str = os.path.join(
85
+ self.background_directory, "not_resized_with_flattened_roads.png"
86
+ )
84
87
 
85
88
  self.flatten_water_to: int | None = None
86
89
 
@@ -823,6 +826,10 @@ class Background(MeshComponent, ImageComponent):
823
826
 
824
827
  if self.map.background_settings.flatten_water:
825
828
  try:
829
+ # Check if there are any water pixels (255) in the water resources image.
830
+ if not np.any(water_resources_image == 255):
831
+ self.logger.warning("No water pixels found in water resources image.")
832
+ return
826
833
  mask = water_resources_image == 255
827
834
  flatten_to = int(np.mean(dem_image[mask]) - subtract_by) # type: ignore
828
835
  self.flatten_water_to = flatten_to # type: ignore
@@ -862,13 +869,14 @@ class Background(MeshComponent, ImageComponent):
862
869
  """
863
870
  self.logger.debug("Starting line-based water generation...")
864
871
  water_polygons = self.get_infolayer_data(Parameters.BACKGROUND, Parameters.WATER)
865
- self.logger.debug(
866
- "Found %s water polygons in background info layer.", len(water_polygons) # type: ignore
867
- )
868
872
  if not water_polygons:
869
873
  self.logger.warning("No water polygons found in background info layer.")
870
874
  return
871
875
 
876
+ self.logger.debug(
877
+ "Found %s water polygons in background info layer.", len(water_polygons) # type: ignore
878
+ )
879
+
872
880
  polygons: list[shapely.Polygon] = []
873
881
  for polygon_points in water_polygons:
874
882
  if not polygon_points or len(polygon_points) < 2:
@@ -1184,6 +1192,13 @@ class Background(MeshComponent, ImageComponent):
1184
1192
  dem_image = self.blur_by_mask(dem_image, full_mask, blur_radius=5)
1185
1193
  dem_image = self.blur_edges_by_mask(dem_image, full_mask)
1186
1194
 
1195
+ # Save the not resized DEM with flattened roads.
1196
+ cv2.imwrite(self.not_resized_with_flattened_roads_path, dem_image)
1197
+ self.logger.debug(
1198
+ "Not resized DEM with flattened roads saved to: %s",
1199
+ self.not_resized_with_flattened_roads_path,
1200
+ )
1201
+
1187
1202
  output_size = dem_image.shape[0] + 1
1188
1203
  resized_dem = cv2.resize(
1189
1204
  dem_image, (output_size, output_size), interpolation=cv2.INTER_NEAREST