8991 Commits

Author SHA1 Message Date
thoth-33 a4b32fce1f Consistency Fix for L2/R2 in Controller Menus Feature 2026-05-06 04:29:11 +03:00
Alexei Kotov ecf00a170a Allow loading invalid effects again (#9069) 2026-04-16 14:31:05 +03:00
Alexei Kotov bd05b2ab76 Merge branch 'even-tighter-lispsm-bounds' into 'master'
Reshrink shadow bounds after asymmetric LiSPSM projection

See merge request OpenMW/openmw!5272
2026-04-12 04:47:35 +03:00
AnyOldName3 f516600295 Minor formatting tweak 2026-04-11 23:01:07 +01:00
AnyOldName3 c249a459c4 Reshrink shadow bounds after asymmetric LiSPSM projection
The LiSPSM paper says any projection will be an improvement.
I found that to be untrue, so restricted it to keep the projection parallel to the view direction (or something along those lines), which helped avoid weird triangular projections that were happening sometimes.

That meant that there was a wasted strip at the one side of the shadow maps, which was an improvement over big triangle of wasted space, so I didn't immediately fix it.

However, I was reminded of it again with !5271, and found an easy way to start using that space using almost entirely copied and pasted code from other parts of the same function, so here it is.
2026-04-11 01:38:04 +01:00
AnyOldName3 60d5cb9bd7 Don't make LiSPSM consider parts of light space that have already been deemed superfluous. 2026-04-10 18:59:57 +01:00
Evil Eye 5ddf8c5719 Add books to openmw.content 2026-04-09 20:42:57 +03:00
Alexei Kotov 30031dce02 Merge branch 'conditional-cluster-culling' into 'master'
Possibly partially fix #8851

Closes #8851 and #123

See merge request OpenMW/openmw!5095
2026-04-08 10:02:55 +03:00
Alexei Kotov 7b210c9491 Merge branch 'bigiconmode' into 'master'
Use normalized paths to construct big icon paths

See merge request OpenMW/openmw!5259
2026-04-06 03:03:08 +03:00
jvoisin 8a9d316612 Merge branch 'inittheunknown' into 'master'
Initialize unused MGEF data

See merge request OpenMW/openmw!5258
2026-04-05 20:07:27 +00:00
jvoisin d94e614ade Merge branch 'navmeshtool_stats' into 'master'
Report more stats by navmeshtool

See merge request OpenMW/openmw!5260
2026-04-05 20:04:05 +00:00
Evil Eye 1f6251ec9b Merge branch 'navigator_tests' into 'master'
Add more unit tests for navigator and optimize tiles processing

See merge request OpenMW/openmw!5254
2026-04-05 08:04:33 +00:00
elsid 00252a6e4d Warn about changed max tiles number 2026-04-04 09:19:53 -07:00
elsid beb256d822 Remove redundant local variable 2026-04-04 09:19:53 -07:00
elsid 8c7e649de0 Report max polygons count per navmesh tile in navmeshtool
Useful to understand optimal values for Navigator settings:
* max polygons per tile
* max tiles number
2026-04-04 09:19:53 -07:00
elsid c39f0880a2 Use span for off mesh connections 2026-04-04 09:19:53 -07:00
elsid c5667e0815 Do not post empty and out of range tiles
If a tile has no geometry and is known to be empty navmesh tile there is
no need to process it again.

If a tile is too far from player it will not be processed anyway.
2026-04-04 09:12:27 -07:00
Evil Eye 2dca72bdb0 Use normalized paths to construct big icon paths 2026-04-04 17:43:57 +02:00
Evil Eye dfd53357ee Initialize unused MGEF data 2026-04-04 17:12:07 +02:00
Mads Buvik Sandvei e804f754b9 Option to suppress unused warnings 2026-04-03 14:59:01 +03:00
elsid a8b13f22a8 Reduce chance of 2 test runs having the same output directory 2026-04-02 21:11:10 -07:00
Alexei Kotov 7bfec23576 Merge branch 'fix_navmeshtool_crash' into 'master'
Fix navmeshtool crash on reaching max navmeshdb size (#9046)

Closes #9046

See merge request OpenMW/openmw!5245
2026-04-03 05:29:25 +03:00
jvoisin 972ec781a4 Merge branch 'terrainterrors' into 'master'
Visual regression fixes

See merge request OpenMW/openmw!5246
2026-04-02 21:10:53 +00:00
Alexei Kotov df32a61aa1 Merge branch 'yourmemoryisinanothercastle' into 'master'
Avoid tracking dangling LocalScripts

Closes #8699 and #8912

See merge request OpenMW/openmw!5094
2026-04-02 16:28:37 +03:00
Alexei Kotov 274b93b2d9 Fix ESM4 base terrain layer opacity overflow
std::max specializations cast the argument to the type, so the layer opacity subtraction result would turn positive and cause bright spots
2026-04-02 08:38:43 +03:00
Alexei Kotov 319d0cb534 Fix terrain blend map offset
Needs to be flipped vertically after the origin convention change
2026-04-02 07:42:44 +03:00
elsid e2faa614e5 Fix navmeshtool crash on reaching max navmeshdb size
Use shared_ptr for TileCachedRecastMeshManager and related objects to
make sure unfinished work items have valid object when WorldspaceData is
destructed due to a cancellation.

Make sure workQueue is destructed before final log message is printed to
avoid having log messages from unfinished work items.

Do not override NavMeshTileConsumer status on repetitive cancel.
2026-04-01 17:21:02 -07:00
Alexei Kotov a1bc94d8f8 Merge branch 'load.wav' into 'master'
Add sounds to openmw.content

See merge request OpenMW/openmw!5232
2026-03-31 05:42:27 +03:00
Alexei Kotov 02b8749bfc Fix Coverity copy warnings 2026-03-30 20:38:01 +03:00
Evil Eye c0810929f4 Add sounds to openmw.content 2026-03-29 21:40:34 +02:00
Alexei Kotov 3ddd1a1371 Merge branch 'cmake_warnings' into 'master'
Use non deprecated dependency name for sqlite (#8639)

Closes #123 and #8639

See merge request OpenMW/openmw!5216
2026-03-29 19:39:54 +03:00
Alexei Kotov 70f6810c77 Merge branch 'unused-warning' into 'master'
Warn on unused properties

Closes #123 and #9002

See merge request OpenMW/openmw!5194
2026-03-29 18:46:55 +03:00
Mads Buvik Sandvei 9a508857b9 set -> vector. Other comments by Capo 2026-03-29 16:21:14 +02:00
pi03k afa631ab41 Use non deprecated dependency name for sqlite lib (#8639)
Works for both versions of lib - system found and fetched from git.
2026-03-28 22:14:46 +01:00
Mads Buvik Sandvei 26496837e7 remove redundant includes and checks 2026-03-28 20:44:52 +01:00
Mads Buvik Sandvei 3b878aae06 Actually don't short-circuit for real this time 2026-03-28 16:44:04 +01:00
Mads Buvik Sandvei 08558e8944 Fixes based on comments by Capo 2026-03-28 16:38:06 +01:00
Mads Buvik Sandvei a851dca7b9 Only generate warnings if lua debug = true. Otherwise stick to printing information about "lua debug" once. 2026-03-28 15:25:21 +01:00
Alexei Kotov 97d3608f36 Remove dead code 2026-03-28 04:05:06 +03:00
AnyOldName3 0877c22458 Constrain the maximum number of a particular warning per file
A corrupt mesh file could cause the warning to be logged up to uint32_t max times.
We cannot log four billion warnings without a large performance cost.

According to https://gitlab.com/OpenMW/openmw/-/work_items/9024, a corrupt mesh in BCOM could trigger this at least four million times, which triggered the freeze catcher.

This is completely untested, but at least it compiles and I remembered to run the formatter.
2026-03-23 18:06:19 +00:00
Evil Eye eb15948b0e Account for nullptrs 2026-03-19 20:34:32 +01:00
Alexei Kotov 427da3cb90 Wizard: Mostly uncursify data directory handling (#8999)
Avoid shoving every single directory in the config file
Avoid duplicates caused by mismatches between the canonical path with forward slash separator and the absolute path with native separators
Give up on the broken attempt to move the path to the end of the list and clean up the essentially dead code
2026-03-18 03:09:09 +03:00
Evil Eye 5cc607c0c3 Use slightly fewer characters 2026-03-16 19:22:55 +01:00
Evil Eye 833424cd4c Don't build paths containing \0 2026-03-16 16:34:34 +01:00
Alexei Kotov 3d0adb934d Merge branch 'rover' into 'master'
Support spheres in DebugDrawer

See merge request OpenMW/openmw!5199
2026-03-16 10:02:09 +03:00
Cody Glassman e53536a3ec Remove exclusive FFP mode 2026-03-15 14:13:19 -05:00
Mads Buvik Sandvei 216d767fa1 Add userData as a known layout field 2026-03-14 15:29:09 +01:00
AnyOldName3 e1ad0de206 \n 2026-03-13 16:32:04 +00:00
AnyOldName3 2eeb6f7bb6 format 2026-03-13 16:25:50 +00:00
AnyOldName3 3ae1d2977e Support spheres in DebugDrawer 2026-03-13 16:18:22 +00:00