181 Commits

Author SHA1 Message Date
Shauren
3331699906 Build: Modernize include directory management using target_sources(FILE_SET) 2025-11-12 22:53:54 +01:00
Shauren
f439120b1f Tools/mmaps_generator: Move TerrainBuilder to a shared project 2025-11-06 18:34:58 +01:00
Shauren
73c1a76ab5 Fix GCC warning 2025-11-05 21:58:29 +01:00
Shauren
145bbde231 Tools/mmaps_generator: Save offmesh connections input together with navmesh params for each map 2025-11-05 18:55:45 +01:00
Shauren
1e56367b30 Tools/mmaps_generator: Add separator to mmap tile file names 2025-11-05 18:55:45 +01:00
Shauren
a61195beef Tools/mmaps_generator: Add optional file name suffix to tile files 2025-11-05 18:55:45 +01:00
Shauren
d2fa7398a6 Tools/mmaps_generator: Split loadVMapModel into separate function 2025-11-05 18:55:45 +01:00
Shauren
29985e2c5b Tools/mmaps_generator: Added --input and --output arguments 2025-11-04 16:10:30 +01:00
Shauren
10cdd77224 Tools/mmaps_generator: Move saving .mmtile result to separate function 2025-11-04 12:24:07 +01:00
Shauren
4b27db87b7 Core/Vmaps: Remove tile X/Y coord swapping 2025-11-01 14:26:48 +01:00
Shauren
157a16d790 Tools/vmap_extractor: Preserve destructible models to use them in mmaps_generator 2025-11-01 14:26:48 +01:00
Shauren
f1c7caec27 Tools/mmaps_generator: Remove confusing tile X/Y coord swapping 2025-10-31 11:25:26 +01:00
Shauren
056ae4e77d Tools/mmaps_generator: Fix infinite loop 2025-10-26 23:37:39 +01:00
Shauren
62ba3d8b4e Tools/mmaps_generator: Enable async console logging 2025-10-26 23:37:15 +01:00
Shauren
bc342f2a90 Tools/mmaps_generator: Replace G3D::Array with std::vector 2025-10-26 00:51:01 +02:00
Shauren
f02112d52f Tools/mmaps_generator: Replace do while (false) loops with unique_ptr using custom deleter 2025-10-25 11:30:07 +02:00
Shauren
82e8c26831 Tools/mmaps_generator: Use unique_ptr to manage memory 2025-10-25 10:57:46 +02:00
Shauren
03e2aa6737 Core/Vmaps: Rename VMapManager2 to VMapManager 2025-10-25 00:55:34 +02:00
Shauren
96b567995a Core/Vmaps: Remove VMapManager2 virtual interface 2025-10-25 00:52:55 +02:00
Shauren
1eb581610b Tools/mmaps_generator: Move TileBuilder to its own file 2025-10-24 00:13:50 +02:00
Shauren
4d693d2505 Tools/mmaps_generator: Switch to using Log instead of printf 2025-10-24 00:13:50 +02:00
Shauren
01df927c0f Tools/mmaps_generator: Always rebuild tiles when debug output is enabled 2025-10-23 18:23:22 +02:00
Shauren
c4b02d13e1 Build: Fix duplicate libraries linker warning on macOS 2025-10-17 16:22:17 +02:00
Shauren
e2f80f8f6c Tools/mmaps_generator: Namespace/include cleanup 2025-10-17 12:47:33 +02:00
Shauren
6b41c3d327 Core/MMaps: Improve mmap debugging experience for terrain swap maps
* Output terrain map id in `.mmap loc` command
* Suppress file not found errors for terrain swap maps
* Fix generating single tiles for terrain swap maps (--tile argument)
2025-10-02 13:43:45 +02:00
Shauren
8a00ab1561 Tools/mmaps_generator: Fixed tile detection for vmap-only maps after a0f13391a0 2025-07-23 21:45:24 +02:00
Shauren
d778d5ec7c Core/Misc: Include cleanup - remove MapUtils.h from Containers.h 2024-12-31 18:12:36 +01:00
Shauren
b13b5142f1 Core/Utilities: Extend make_unique_ptr_with_deleter functionality to allow it to create deleters with compile time constant functions (reduces its size to just sizeof(void*)) 2024-10-01 21:03:44 +02:00
Shauren
7ac0c685dd Build: Add WITH_WARNINGS_AS_ERRORS cmake option that turns compile warnings into compile errors 2024-09-20 13:19:42 +02:00
Shauren
a21e7c738e Build: Automatically include WindowsSettings.manifest in all executables instead of listing it separately as source file in every target 2024-09-15 12:55:50 +02:00
Shauren
fd0a7ba871 Core/CrashHandler: Compile WheatyExceptionReport only once and moved its global variable initializer to all projects using it 2024-09-15 12:13:54 +02:00
Shauren
d05dbaaecb Core/Vmaps: Fixed use after free and deadlocks when loading a model file fails 2024-07-06 22:52:11 +02:00
Shauren
08778dc1c8 Tools/mmaps_generator: Fixed executable name and default values in --help 2024-06-30 22:48:51 +02:00
Shauren
fd4ffc81b2 Core/Misc: Fixed windows _UNICODE incompatibilities 2024-06-02 14:21:13 +02:00
thesillyone
a59f7351dd Tools/mmaps_generator: Only initialize memory for inds mesh when it will be read (#29795)
* this change does NOT require re-generating mmaps
2024-03-25 23:35:40 +01:00
Shauren
a70e758ba5 Tools/vmap_extractor: Move information about model type from spawns in vmap tiles to model file itself 2024-03-06 00:04:19 +01:00
Shauren
1aa04cabe1 Tools/mmaps_generator: Added const on some functions interfacing with vmaps 2024-03-06 00:04:19 +01:00
Shauren
67244a1f70 Core/Misc: Replace sprintf with safer alternatives (Trinity::StringFormat or snprintf) 2024-03-01 16:05:34 +01:00
Shauren
333630b7de Core/Misc: Added windows version checks during startup to avoid confusion about crashes when running on unsupported OS 2023-12-01 19:53:13 +01:00
Shauren
b299902881 Core/Locales: Set active code page and locale used by c string functions to utf8
Closes #29455
2023-11-24 20:01:17 +01:00
Shauren
348e29c79f Tools/mmaps_generator: Allow specifying custom offmesh area/flags 2023-10-16 10:55:34 +02:00
Shauren
b6a0fa3518 Tools: Updated db2 metadata used by extractors 2023-07-12 20:51:39 +02:00
Giacomo Pozzoni
3bc9825b0d Revert "MMAP: Build ADT floor just like WMO floor below liquid (#27503)" (#28392)
This reverts commit 8a779268b6.

(cherry picked from commit b69870630d)
2023-01-12 22:55:16 +01:00
Shauren
d791afae1d Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api) 2023-01-08 21:16:53 +01:00
Shauren
92ed5e8af1 Core/Misc: Include cleanup, 2023 edition 2023-01-07 22:38:21 +01:00
Shauren
16a06346ae Core/Maps: Move terrain data handling out of Map class
Partial port of cmangos/mangos-wotlk@ff5232c648
2022-07-23 19:13:33 +02:00
robinsch
364796dc3b Tool/MMAP: Fixed invalid check causing certain tiles not to build (#27833)
example: mmaps_generator 230 will cause tile 33, 29 to not build because of the check. causing NPCs to not have mmap information in some parts of the map.

.go xyz 1380 -831 -88 230 has no mmap tile information because of above check.
https://i.imgur.com/Pypeu4f.png

(cherry picked from commit e898b6e794)
2022-03-26 15:28:07 +01:00
Kargatum
373ed8f46b Core: whitespace cleanup, reduce double blank line to single (#25795)
* Core/Misc: fix double empty line

* worldserver.conf

(cherry picked from commit a32b6b8ac4)
2022-03-05 20:07:57 +01:00
Shauren
439b027d48 Core/Misc: Cleanup unused includes 2022-02-13 15:07:00 +01:00
Shauren
473f3db0ab Core/CrashHandler: #ifdef cleanup to make VS not choke when parsing, fixed file being all red in editor
(cherry picked from commit 39c5e03b74)
2022-01-26 18:46:43 +01:00