1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 18:45:36 +00:00
Commit graph

29161 commits

Author SHA1 Message Date
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
2023-07-13 00:13:20 +01:00
psi29a
0a593c4741 Merge branch 'macos_target_non_eol_version' into 'master'
macOS target 11

See merge request OpenMW/openmw!3205

(cherry picked from commit ca8cf002de)

96356a38 Update file before_script.osx.sh
2023-07-08 13:16:48 +00:00
psi29a
99c07153e7 Merge branch 'no-crash-dump-in-temp-0.48' into 'openmw-48'
Don't put crash dumps in Temp on Windows

See merge request OpenMW/openmw!3199
2023-07-08 12:36:59 +00:00
AnyOldName3
5102f4b11d Update Windows crash dump path once we know where we're logging 2023-07-05 17:42:09 +01:00
AnyOldName3
67d08a5dae Stupid Win32 macro stuff 2023-07-05 16:58:36 +01:00
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
2023-07-05 14:25:02 +01:00
psi29a
3364d9a2d6 Merge branch 'font_changelog' into 'master'
Update CHANGELOG.md with a missing entry

See merge request OpenMW/openmw!3182

(cherry picked from commit 462d1c5278)

ba8fbfd9 Update CHANGELOG.md with a missing entry
2023-06-27 14:19:05 +00:00
psi29a
75def63be3 Merge branch '0.48-changelog' into 'master'
Add missing changelog entries

See merge request OpenMW/openmw!3169

(cherry picked from commit c931776769)

7c1119d9 Add missing changelog entries
2023-06-21 14:38:06 +00:00
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
2023-06-21 14:35:28 +00:00
psi29a
6ea1c2b422 Merge branch 'backport_saves' into 'openmw-48'
Allow OpenMW 0.48 to parse save headers from 0.49

See merge request OpenMW/openmw!3166
2023-06-20 15:29:21 +00:00
Andrei Kortunov
d9bdd9b301 Allow OpenMW 0.48 to parse save headers from 0.49 2023-06-20 11:22:50 +04:00
psi29a
4132d14954 Merge branch 'backport_gl_clamp_removal' into 'openmw-48'
Purge use of GL_CLAMP for 0.48

See merge request OpenMW/openmw!3142
2023-06-17 09:00:58 +00:00
Bret Curtis
3925903ad5 backport CLAMP_TO_EDGE fix to 0.48 2023-06-16 13:15:21 +02:00
psi29a
00831a80fb Merge branch 'osg_win_dep_48' into 'openmw-48'
Use most recent OSG dependency to match 0.48 RC builds (0.48)

See merge request OpenMW/openmw!3121
2023-06-10 12:37:41 +00:00
elsid
f568909022
Use most recent OSG dependency to match 0.48 RC builds 2023-06-10 13:13:33 +02:00
psi29a
36f16cffe5 Merge branch 'fix_portable_config_48' into 'openmw-48'
Fix logging and config for portable setup (0.48)

See merge request OpenMW/openmw!3089
2023-06-01 07:51:20 +00:00
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.
2023-05-30 09:44:23 +02:00
jvoisin
8b71a31cec Merge branch 'fix_build_48' into 'openmw-48'
Fix build with GCC 13.1.1 (0.48)

See merge request OpenMW/openmw!3076
2023-05-28 18:48:54 +00:00
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
2023-05-28 19:09:36 +02:00
Bret Curtis
3ffe773105 fix for macos intel for CI 2023-05-25 23:22:59 +02:00
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
2023-05-21 17:34:13 +00:00
psi29a
0e141dc06e Merge branch 'fix_navmeshtool_avoid_shape_48' into 'openmw-48'
Use different object id for avoid shape (0.48)

See merge request OpenMW/openmw!3019
2023-05-14 15:41:38 +00:00
elsid
227b4d3e5e
Use different object id for avoid shape
Otherwise addObject will ignore it as a duplicate and resulting recastmesh will
not match generated by the engine causing navmeshdb cache miss.
2023-05-14 15:00:58 +02:00
psi29a
53f3a5b49b Merge branch 'fix_local_map_update_48' into 'openmw-48'
Update cell local map on different neighbour cells (0.48) (#7140)

See merge request OpenMW/openmw!3015
2023-05-12 10:31:45 +00:00
elsid
de99c74ef9
Fix integration tests job deps 2023-05-12 00:28:49 +02:00
elsid
ab0a460a6f
Update cell local map on different neighbour cells 2023-05-11 22:55:22 +02:00
psi29a
9dbf2e708b Merge branch 'lua_casting_48' into 'openmw-48'
Fix crash on sol::object type mismatch in invalid Lua script (!2975 for 0.48)

See merge request OpenMW/openmw!2978
2023-05-08 10:10:00 +00:00
Petr Mikheev
d18588dce7 Use LuaUtil::cast for casting sol::object to prevent crashing on type mismatch in Lua scripts. 2023-04-26 00:38:29 +02:00
Petr Mikheev
51cbfa84fa Add function LuaUtil::cast 2023-04-26 00:27:36 +02:00
psi29a
2d25ffeb89 Merge branch 'openmw-48-patch-50cc' into 'openmw-48'
fix broken macos builds

See merge request OpenMW/openmw!2869
2023-03-28 13:15:46 +00:00
psi29a
37df58cc79 fix macos issue 2023-03-28 09:45:56 +00:00
psi29a
ed528c5d70 Update file luascripts.hpp 2023-03-26 11:11:20 +00:00
psi29a
64ca3e71bb Merge branch 'fix_launcher_paths_48' into 'openmw-48'
Save original paths in launcher (#7246) for 0.48

See merge request OpenMW/openmw!2849
2023-03-21 10:26:13 +00:00
elsid
80387049c1
Save original paths
If directory path is a symlink it should be showed and written to config files
as is. Between launcher runs the resulting canonical path may be different so
the resolved path becomes outdated.
2023-03-21 09:39:28 +01:00
elsid
9f00b99b22
Use set to track visited directories instead of removing duplicates 2023-03-21 09:39:17 +01:00
psi29a
da5376ff3a Merge branch 'cstemprefs48' into 'openmw-48'
!2844 for 0.48

See merge request OpenMW/openmw!2846
2023-03-20 22:39:17 +00:00
Evil Eye
47d75c70ea Don't capture temporaries by reference 2023-03-20 22:14:21 +01:00
psi29a
3f19dc62e5 Merge branch '1372_for_048' into 'openmw-48'
MR 1372 for 0.48. Unbreak boats mods and scripted transformations

See merge request OpenMW/openmw!2841
2023-03-19 10:04:06 +00:00
fredzio
76c6848121 In 0.46, SetPos was setting position of actors before physics simulation, and from this position movement was simulated. This changed with async physics merging, and at the same time problems started, mostly with abot's scenic travel.
Skipping the simulation, switching off collisions, and other approaches were not correct as they either broke some mods, or some core mechanics of the engine such as teleportation or waterwalking. As it turns out, the way to go is to simply do _nothing_ (modulo some gymnastics to account for the 1 frame difference in case of async).

Scripted movement and the unstucking logic tends to collide. Early out of unstuck in case the actor doesn't attempt to move. This means there is no AI package for NPC, which are the case for some boats and striders, or the player is content with their position.
2023-03-18 22:01:55 +01:00
psi29a
f81e78e4c1 Merge branch 'update-appdata-48' into 'openmw-48'
Update AppData summary to be more concise (for 0.48.0)

See merge request OpenMW/openmw!2828
2023-03-13 09:35:11 +00:00
Alexander Olofsson
d4fe16415a Update AppData summary to be more concise
This brings the AppData in line with the Debian package title
2023-03-12 20:18:50 +01:00
psi29a
fb3a80bebd Merge branch 'openmw-48-stereo-fixes' into 'openmw-48'
Openmw 48 stereo fixes

See merge request OpenMW/openmw!2815
2023-03-12 10:53:15 +00:00
Alexei Kotov
e093474ba2 Merge branch '2805-for-48' into 'openmw-48'
2805 for OpenMW 0.48

See merge request OpenMW/openmw!2817
2023-03-11 21:07:24 +00:00
Mads Buvik Sandvei
e5582799a2 Empty-Commit to trigger pipeline 2023-03-11 20:11:00 +01:00
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.
2023-03-11 19:07:19 +00:00
AnyOldName3
c223b214bd Revert "Attach shaders to geometry that lacks a stateset if necessary (bug #7251)"
This reverts commit d33be39fb6.
2023-03-11 19:06:33 +00:00
Mads Buvik Sandvei
7d057600ea SkyStereoStatesetUpdater was incorrectly always using reverseZ matrices. 2023-03-11 14:01:11 +01:00
Mads Buvik Sandvei
00e02bb326 Change assosiative order of stereo-related matrix multiplications to reduce FP errors. 2023-03-11 14:00:39 +01:00
Mads Buvik Sandvei
93a72a6368 update OSG multiview build to one that includes missing dll osgdb_dae.dll 2023-03-11 13:56:18 +01:00
psi29a
5c2f4f462e Merge branch 'fix_physics_deadlock_48' into 'openmw-48'
Do not use std::shared_mutex to wait for job for async physics (0.48)

See merge request OpenMW/openmw!2799
2023-03-05 20:25:01 +00:00