Commit Graph

6232 Commits (openmw-48)

Author SHA1 Message Date
psi29a a63d7e473e Merge branch 'crash_temporary_ui_element' into 'master'
Fix crash #7469

See merge request OpenMW/openmw!3367

(cherry picked from commit 42469c4b54)

e1cbeb0d Don't free ui element's shared_ptr right before destroying it
9 months ago
AnyOldName3 33884dba30 Share the dump directory for crash and freeze dumps
This means the shared memory struct is just 255 bytes longer than a few
commits ago instead of 32K.

Also introduce a function for putting path strings in the shared memory
as there was too much copied and pasted code and it was error-prone.

Also free some handles once we're done with them so they don't leak.

Manual port of https://gitlab.com/OpenMW/openmw/-/merge_requests/3221 to OpenMW 0.48
10 months ago
AnyOldName3 5102f4b11d Update Windows crash dump path once we know where we're logging 11 months ago
AnyOldName3 67d08a5dae Stupid Win32 macro stuff 11 months ago
AnyOldName3 c21695c951 Don't put crash dumps in Temp on Windows
Well... unless we fail to get the user profile directory.

Also put freeze dumps in a more appropriately-named file.

Discussed in https://gitlab.com/OpenMW/openmw/-/issues/7455
11 months ago
psi29a 95da78ace0 Merge branch 'particles_fix' into 'master'
Create a stateset for every particle system to create its own defineMap

Closes #7304

See merge request OpenMW/openmw!3162

(cherry picked from commit 558b3cbf60)

a08d921c Create a stateset for every particle system to create its own defineMap
11 months ago
Andrei Kortunov d9bdd9b301 Allow OpenMW 0.48 to parse save headers from 0.49 11 months ago
Bret Curtis 3925903ad5 backport CLAMP_TO_EDGE fix to 0.48 11 months ago
elsid 524efc4e18
Fix logging and config for portable setup
Setup logging after setting up paths but before settings loading to get proper
log records earlier.

Read configuration by navmeshtool and bulletobjecttool the same way editor and
engine do to properly handle --replace config and --config arguments.

Remove mode and autoSetupLogging arguments from setupLogging since they are no
longer used.

Use temp path to write crash logs because default paths might not be available
for portable setup.
12 months ago
elsid c7b95d1c9e
Fix build with GCC 13.1.1
openmw/apps/openmw/mwinput/controlswitch.hpp:32:49: error: ‘uint32_t’ has not been declared
   32 |         void readRecord(ESM::ESMReader& reader, uint32_t type);
      |                                                 ^~~~~~~~

openmw/apps/esmtool/labels.hpp:63:25: error: ‘uint32_t’ was not declared in this scope
   63 | std::string recordFlags(uint32_t flags);
      |                         ^~~~~~~~

openmw/components/detournavigator/recastmesh.hpp:91:14: error: ‘uint8_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
   91 |         std::uint8_t mLength;
      |              ^~~~~~~
      |              wint_t

openmw/components/platform/file.hpp:9:23: error: found ‘:’ in nested-name-specifier, expected ‘::’
    9 |     enum class Handle : intptr_t
      |                       ^
      |                       ::

openmw/components/settings/settings.hpp:63:21: error: ‘int64_t’ in namespace ‘std’ does not name a type
   63 |         static std::int64_t getInt64(std::string_view setting, std::string_view category);
      |                     ^~~~~~~

openmw/components/esm/common.cpp:5:38: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
    5 |     std::string printName(const std::uint32_t typeId)
      |                                      ^~~~~~~~
      |                                      wint_t
12 months ago
psi29a 4f919d9239 Merge branch 'fix_element_destroy' into 'master'
Fix bug in LuaUi::Element::destroy() that sometimes leads to an infinite loop on UI cleanup

See merge request OpenMW/openmw!3033

(cherry picked from commit 364bc91f5b)

c6eed2a6 Fix bug in LuaUi::Element::destroy() that sometimes leads to an infinite loop on UI cleanup
1 year ago
Petr Mikheev d18588dce7 Use LuaUtil::cast for casting sol::object to prevent crashing on type mismatch in Lua scripts. 1 year ago
Petr Mikheev 51cbfa84fa Add function LuaUtil::cast 1 year ago
psi29a ed528c5d70 Update file luascripts.hpp 1 year ago
psi29a fb3a80bebd Merge branch 'openmw-48-stereo-fixes' into 'openmw-48'
Openmw 48 stereo fixes

See merge request OpenMW/openmw!2815
1 year ago
AnyOldName3 681026ba1c Ensure shader requirements are pushed at least once for subgraph
Shaders, if deemed necessary, get attached to the node mentioned by the
top of the requirements stack. Previously an empty stack was incorrectly
assumed to mean no shaders were required, but we found out that was
wrong. We need to put shaders *somewhere*, and the root of the subgraph
we're modifying should be the best place.
1 year ago
AnyOldName3 c223b214bd Revert "Attach shaders to geometry that lacks a stateset if necessary (bug #7251)"
This reverts commit d33be39fb6.
1 year ago
Mads Buvik Sandvei 00e02bb326 Change assosiative order of stereo-related matrix multiplications to reduce FP errors. 1 year ago
psi29a bb3ef08ac5 Merge branch 'maybe-fix-freeze-catcher' into 'master'
Fix Windows freeze catcher

See merge request OpenMW/openmw!2795

(cherry picked from commit afa6643c6e)

5b3e9e15 Maybe fix Windows freeze catcher
1 year ago
Alexei Dobrohotov ed44095cdc Use Rig/MorphGeometry state for its child geometry 1 year ago
Alexei Dobrohotov d33be39fb6 Attach shaders to geometry that lacks a stateset if necessary (bug #7251) 1 year ago
Petr Mikheev 47df1ca1f8 !2737 for 0.48 (fixes #7210) 1 year ago
Petr Mikheev ae23daf82d [Lua] Fix memory leak in sandboxed "require" (!2774 for 0.48). 1 year ago
uramer ed5e0ff4f3 Set Element layout to nil on destroy (!2770 for 0.48) 1 year ago
Petr Mikheev 95219e6fa2 Fix bug in lua_ui/content.lua: getmetatable(ui.content{}) shouldn't return a global mutable table (!2733 for 0.48) 1 year ago
Petr Mikheev 1540c9679f Don't expose LuaUtil::Callback to lua (!2733 for 0.48) 1 year ago
Petr Mikheev 628017a817 Move asyncpackage from apps/openmw/mwlua to components/lua (!2733 for 0.48) 1 year ago
Bret Curtis e206081d86 make sure lua works with macos packages (!2687 for 0.48) 1 year ago
uramer 4b2ef32b86 Move implementation of UI Content to Lua (!2661 for 0.48) 1 year ago
psi29a 3dd8fd2ef9 Merge branch 'handle_bad_navmeshtool_message_magic_48' into 'openmw-48'
Stop updating navmeshtool progress on first bad message (0.48)

See merge request OpenMW/openmw!2660
1 year ago
Evil Eye b24ea17301 Restore 0936d716d96cd45b3efc2d1a3697614f7f96952d 1 year ago
elsid f23866be90
Stop updating navmeshtool progress on first bad message 1 year ago
Evil Eye 08a6d9e2cf Ignore non-3D agents in the navigator 1 year ago
AnyOldName3 33e39a0360 Add a setting to control coverage adjustment
With it on, which was always the case before this setting was added,
vanilla content and poorly-made mods will look acceptable, but well-made
mods will have alpha-tested meshes appear to grow and potentially gain a
weird outline as they get further away.

With it off, which replicates the 0.46 behaviour, well-made mods will
look really good, but vanilla content and poorly-made mods will have
alpha-tested meshes shrink as they get further away.

It's been bugging me that this was forced on since 0.47 released, and
I'd hoped to figure out a solution for automatic detection at some point
before 0.48 branched off, but I didn't, so now this is what we're
getting to have Tamriel Rebuilt look right.
1 year ago
Evil Eye 3b8b5aee39 Add an early out to dialogue loading to match Morrowind.exe behaviour 1 year ago
uramer 4f25796029 Execute async callbacks on the main Lua stack 2 years ago
elsid a74b842e16
Report used memory by Lua interpreter 2 years ago
psi29a 7b3adff1c5 Merge branch 'stereo_fix' into 'master'
Fix stereo crash in the editor

Closes #7019

See merge request OpenMW/openmw!2431

(cherry picked from commit e9cfc2381f)

890be1b5 Fix crash in the editor
2 years ago
psi29a 4d16af29ba Merge branch 'fix_shader_prefix' into 'master'
Use nv_default shader prefix for unhandled types

See merge request OpenMW/openmw!2419

(cherry picked from commit 92680ab9cf)

63b51ead Use nv_default shader prefix for unhandled types
2 years ago
psi29a 847e2bbeaf Merge branch 'fix_reserved_nodes' into 'master'
Add missing non-prefixed reserved nodes

See merge request OpenMW/openmw!2414

(cherry picked from commit cd8b20439e)

ac01fd5e Add missing non-prefixed reserved nodes
2 years ago
psi29a 9bed210e4e Merge branch 'fix_reserved_names_init' into 'master'
Initialize reserved names once to avoid race condition (#7008)

Closes #7008

See merge request OpenMW/openmw!2409

(cherry picked from commit 16fd01a765)

8068d015 Initialize reserved names once to avoid race condition
2 years ago
Andrei Kortunov d313431e43 Revert std::filesystem usages 2 years ago
uramer 19d01f26d6 Make r, g, b, a read-only properties, rather than getters 2 years ago
Andrei Kortunov d38454a125 Backport fonts fixes to 0.48 2 years ago
AnyOldName3 4bb88a4a75 Merge branch 'light_fix' into 'master'
Fix incorrect scene lighting #6952

See merge request OpenMW/openmw!2335

(cherry picked from commit 1d177e2d71)

1f2d9f22 don't recycle statesets for light cullcallback for now
2 years ago
elsid 01b3938935
Do not use collision shapes with visual only collision to generate navmesh
These collision shapes are not used for actors movement physics simulation.
2 years ago
psi29a 03e24b1e70 Merge branch 'apple-silicon-arm-build' into 'master'
Get build working on Apple Silicon

See merge request OpenMW/openmw!2286

(cherry picked from commit 36fbef1048)

1d7d3d57 Get build working on Apple Silicon
808a2e58 Merge commit '5ee4ce1232b0f334f29dd702f811c58dccf5c00d' into apple-silicon-arm-build
a61237f2 Cleaned up macOS FFmpeg framework linking
2 years ago
psi29a 77beaf5bc6 Merge branch 'font_loading' into 'master'
Cleanup fonts loading

See merge request OpenMW/openmw!2309

(cherry picked from commit f36e13444e)

9e1ab590 Cleanup fonts loading
2 years ago
AnyOldName3 d262ca2d30 Merge branch 'cherry-pick-abb14df943304a954f734b6289fb48f4951ae242' into 'master'
[Multiview][Postprocessor] omw_GetWorldPosFromUV() should use omw_GetDepth()

See merge request OpenMW/openmw!2320

(cherry picked from commit 23e765954d)

70e1efdd omw_GetWorldPosFromUV() should use omw_GetDepth()
2 years ago
psi29a b21c9cdf31 Merge branch 'SHADER_HOT_RELOAD' into 'master'
Shaders: Hot reload, togglable by lua debug command

See merge request OpenMW/openmw!2238

(cherry picked from commit 4078f19c74)

8d194a16 Shaders: rudimentary hot reloader on shaders
4e7c1c5b Added break when the operation failed
6b38d622 Added lua bindings to toggle hot reload (disabled by default) or to trigger a reload
31d41252 forgot memory include
f78fa989 fixed include, cleaned comments and indentation
fc8838c7 Renamed lua binding, and use action to avoid concurrency issue
aa51d6de Missing chrono include ?
68d06989 Fixed cyclical included check
b6d7293a Removed weird lines that I thought were necessary to please the compiler
9a475b0c fixed blank lines and missing breaks
cdd95f78 replaced empty function body by default
a1c8dc9d C++17 compat ?
7b78bf4b Fix files with different defines weren't added to the hot reload manager
cc9d4364 includes now work when the same shader has different defines
15751c57 Lua debug api doc
3ab0a991 Hot reload done only once every 200 ms, no point in beeing faster
df69fc76 Post processing shaders now use the same lua commands, no more launcher option...
c71f3508 changed overview.rst of post processing
603b30e1 Added some variable names to make it clearer what their function was
baadc06e Merge branch 'master' into 'SHADER_HOT_RELOAD'
decfbc53 Fix threading issues
b14cc673 adds missing decleration
16a4b571 adds missing include
166717d6 Makes sure threads are only stopped once ,and that they will be re-started
25c1f0ca Renamed variable to fix case issue
2 years ago