264 Commits

Author SHA1 Message Date
sfan5
9367e45e66 Fix broken buffer handling in ZlibDecompressor
40a5e16e21ba9a0663fc93919291c1bf0e5c2e3a added the broken reserve() call
and only by chance did 0a56b18cfbb583649bdbc7f0a379df5d63ea2880 not break
it further because I forgot to remove the unconditional resize().

I should read my own code changes more often.
2025-04-07 23:20:08 +02:00
sfan5
314debe4fb Make options documentation consistent
also resolve confusion between Y axis on image vs. in-game
2025-04-07 23:07:41 +02:00
sfan5
458c3c30a0 Add a few more log messages 2025-03-12 20:41:20 +01:00
sfan5
0a56b18cfb Reuse allocations for decompression 2025-03-05 22:02:16 +01:00
sfan5
3c08380d18 Add some verbose log messages that are possibly useful 2025-03-05 21:26:03 +01:00
sfan5
527db7fc34 Add CI run on Fedora with zlib-ng for more diversity 2025-03-05 20:59:54 +01:00
sfan5
8b1a143cda Support zlib-ng
this provides a 60% speed improvement on an older map I have
2025-03-05 20:58:01 +01:00
sfan5
4ba09ec532 Add flag to enable verbose output 2025-03-05 20:58:01 +01:00
sfan5
e982efe94e Refactor postgres into a base class too 2025-02-21 16:57:23 +01:00
sfan5
cd36f16775 Allow database backend to optimize group-by-XZ operation 2025-02-21 16:57:23 +01:00
sfan5
7685e548f0 Test 'make install' in CI 2025-02-19 18:19:13 +01:00
sfan5
46cb386fef Add a test case for --drawplayers
(also fixes off-by-one error in clipping players to draw)
2025-02-19 18:13:07 +01:00
sfan5
7a0bc15d21 Refactor PlayerAttributes code 2025-02-19 18:11:28 +01:00
sfan5
d9c89bd6a2 Refactor sqlite3 code into base class 2025-02-19 13:37:47 +01:00
sfan5
5016bca232 Improve handling of input path and map backend 2025-02-19 11:57:54 +01:00
sfan5
c93948c200 Simplify cmake_config.h stuff 2025-02-19 10:36:42 +01:00
sfan5
ad403975fd Handle missing tiles in dumpnodes
closes #104
2025-02-19 10:24:56 +01:00
sfan5
0f51edcb1f Extend functional tests 2025-02-18 19:18:09 +01:00
sfan5
b4d4632212 Make --noemptyimage more fine-grained 2025-02-18 19:13:42 +01:00
sfan5
6947c5c4e4 Add support for new SQLite map schema
(added in Luanti 5.12.0-dev)
2025-02-18 18:25:10 +01:00
sfan5
bbe2f8f404 Clean up sqlite3 code a bunch 2025-02-18 16:29:04 +01:00
sfan5
527a56f22e Move source files into folder 2025-02-18 15:47:51 +01:00
sfan5
1c16c40ccc Apply Luanti rename 20241111 2024-11-11 09:53:35 +01:00
sfan5
dd5c4e509d
Fix docker workflow 2024-10-04 12:15:49 +02:00
1F616EMO~nya
0982a03dbd
Add Dockerfile and workflow to publish image (#102) 2024-08-11 19:26:15 +02:00
sfan5
dd1904a667 Run CI test also with ASan 2024-04-20 21:38:15 +02:00
sfan5
40a5e16e21 Save a copy during zlib decompression 2024-04-20 21:38:05 +02:00
wsor4035
7e4caacb9e
Upgrade CI workflow packages and Ubuntu version (#101) 2024-02-17 20:54:03 +01:00
sfan5
e14f27f412 Add cautionary note about sat_mul() 2023-08-08 14:18:58 +02:00
Saria
7af222dd9d Fix dumpnodes crash on deprecated tile field name 2023-04-08 16:32:29 +02:00
Martin Petricek
c81cda24d3
Fix bad slicing interval for negative --min-y / --max-y values 2023-01-29 16:22:41 +01:00
sfan5
8a7333ef49 Fix package install in CI
shoutout to github for shipping broken OS images
2023-01-29 14:44:03 +01:00
sfan5
7fb3b9edd6 Fix Postgres linking on older CMake
(see 998e4820c9)
2022-06-19 14:14:09 +02:00
sfan5
18f0615002 Fix --drawplayers 20220221 2022-02-21 18:42:54 +01:00
sfan5
d75266eae1 Update colors.txt
with all nodes as of Minetest Game 5.5.0
2022-02-21 18:08:54 +01:00
sfan5
31b0d09a19 Warn if only unknown nodes seen
suggested by @Calinou
2022-02-09 23:09:32 +01:00
sfan5
e4bf375ac7 General code cleanups/maintenance 2022-02-09 23:09:32 +01:00
sfan5
b491dd375a Add --dumpblock flag for advanced use
This is not only useful for debugging minetestmapper itself but
also makes it a standalone tool for extracting data you want to work on
from a Minetest map.
2022-02-09 21:52:28 +01:00
sfan5
2e353312b5 Inherit custom exceptions from std::exception 2022-02-08 23:43:20 +01:00
sfan5
8e9805c3ff Fix overflowing multiplication leading to apparent hang
closes #88
2022-02-08 23:43:20 +01:00
sfan5
9b26d9495c
Update dependency list in README
fixes #87
2021-12-27 13:19:12 +01:00
sfan5
0198897306
Mention colors.txt generation in README
closes #86
2021-09-11 15:40:34 +02:00
sfan5
2f3a548881 Make MinGW build script work again 2021-09-03 22:02:35 +02:00
sfan5
ccd5d14962 Add progress bar during map generation
closes #82
2021-09-03 21:06:23 +02:00
sfan5
f471554294 Fix ZstdDecompressor error check 2021-09-02 11:45:17 +02:00
sfan5
b0ca3d7066 Add support for map block version 29 2021-09-01 23:57:37 +02:00
sfan5
5c435f6459 Add simple functional test to CI 2021-08-27 20:53:16 +02:00
sfan5
8b563f409e Modernize CMake build script
also includes this fix: a24899bf2d
2021-08-27 17:30:42 +02:00
sfan5
f26070ef4f Switch from Travis-CI to Github Actions 2021-08-27 16:56:24 +02:00
sfan5
fd4c5dd232 Fix CMake version warning 2021-03-29 15:05:02 +02:00