jvoisin
38316cdaf8
Fix various warnings found by clang
...
- unused alias
- inefficient use of push_back
- exceptions not inheriting from std::exception
- weird use of a comma
- value compared against itself
4 years ago
psi29a
a69619a1e8
Merge branch 'where_is_my_log' into 'master'
...
Don't clobber game log file when we collect a stack trace.
See merge request OpenMW/openmw!755
4 years ago
jvoisin
a35eae3dd1
Fix a read head-buffer-overflow in esm
...
The check forgot to account for the terminal zero.
4 years ago
fredzio
4058e117ca
Don't clobber game log file when we collect a stack trace.
...
When the crash catcher catch a signal it forks to collect data about its
parent. In the process the child reinitialize the log file, which ends
up empty.
4 years ago
Andrei Kortunov
f308dde254
Clean up MSVC warnings
4 years ago
psi29a
d3c865d909
Merge branch 'fix_bsa' into 'master'
...
Add some validation for bsa parsing
Closes #5955
See merge request OpenMW/openmw!750
4 years ago
psi29a
d0883f9a0d
Merge branch 'light_settings_tweak' into 'master'
...
Lighting patch
Closes #5957 and #5959
See merge request OpenMW/openmw!752
4 years ago
glassmancody.info
16856d45c5
Lighting Patch
...
Fixes build errors with older OSG builds and some issues with 'shared' layout.
Bring back ambient in inventory through lightmodel instead of sun ambient, mirrors scene ambient/sunlight relationship.
Forces shaders when certain lighting methods are enabled and finalize settings.
Correctly override sun for localmap.
4 years ago
Evil Eye
80266d435c
Merge branch 'fix_crash' into 'master'
...
Fix an off-by-one in loadscpt
See merge request OpenMW/openmw!728
4 years ago
jvoisin
47ced7dec4
Add some validation for bsa parsing
...
This should fix #5955
4 years ago
fredzio
16b288f53c
Re-add dropped struct keyword to fix build.
...
rtprio is both a struct and a function, so we need to be explicit.
../../../components/misc/thread.cpp:53:9: error: must use 'struct' tag
to refer to type 'rtprio' in this scope
rtprio prio;
^
struct
/usr/include/sys/rtprio.h:91:5: note: struct 'rtprio' is hidden by a
non-type declaration of 'rtprio' here
int rtprio(int, pid_t, struct rtprio *);
^
1 error generated.
4 years ago
psi29a
c686dd05d0
Merge branch 'thread_idle_priority' into 'master'
...
Set idle priority for navmesh generation thread
See merge request OpenMW/openmw!632
4 years ago
Andrei Kortunov
33b8233887
Validate GUI scaling and place it to the launcher
4 years ago
elsid
ab8d1c02d4
Set idle priority for navmesh generation thread
...
Support Linux, Windows, FreeBSD.
4 years ago
Andrei Kortunov
016a1d45df
Remove outdated field - remnant from earlier implementation
4 years ago
Andrei Kortunov
0c7ddd3938
Remove redundant qualifiers
4 years ago
Andrei Kortunov
ac347810ca
Fix uninitialized field in the mouse event
4 years ago
Andrei Kortunov
bce6effe95
Fix uninitialized variables in the LightManager
4 years ago
Andrei Kortunov
e309f75938
Join variables declaration and usage
4 years ago
Andrei Kortunov
5f6f2c15b1
An another attempt to suppress Coverity warning about mkstemp
4 years ago
Andrei Kortunov
696cf9ab05
Extend variables range to avoid integer overflow
4 years ago
glassmancody.info
531a6e1979
Code review fixes, remove implicit GLSL casts
4 years ago
glassmancody.info
582f7b52cf
Merge remote-tracking branch 'upstream/master' into why_are_the_christmas_lights_still_up
4 years ago
glassmancody.info
92033bca64
Fixed error in calculating viewspace sun dir, minor cleanup
4 years ago
glassmancody.info
9e80091aff
clear up force shaders and make it less convoluted
4 years ago
glassmancody.info
8ce65232ff
fix race condition with sun uniform
4 years ago
glassmancody.info
d4e7d25d14
Make life not suck for whoever wants to edit lighting shaders
4 years ago
glassmancody.info
eecb9886a9
Shader cleanup, fix indicies
4 years ago
glassmancody.info
4ba473b684
Finalize settings, torch fix
4 years ago
glassmancody.info
71c30a31df
in-game settings, some require restart
4 years ago
glassmancody.info
3d713e8602
Fix incorrect minimum ambient
4 years ago
glassmancody.info
280fd2b162
Merge remote-tracking branch 'upstream/master' into why_are_the_christmas_lights_still_up
4 years ago
glassmancody.info
d195602a9d
Switch to shared layout, some rewording
4 years ago
glassmancody.info
690995988b
More formatting, OpenCS cells are unbroken
4 years ago
glassmancody.info
328ec85757
Code review cleanup, add setting documentation
4 years ago
glassmancody.info
05a5cee132
Brighter point lights and light fade
4 years ago
glassmancody.info
7370acdf54
Merge remote-tracking branch 'upstream/master' into why_are_the_christmas_lights_still_up
4 years ago
glassmancody.info
43ac32921c
Rewrite, support different lighting methods
4 years ago
glassmancody.info
9d9074c244
Add shared UBO
4 years ago
glassmancody.info
c5ea966f24
Merge remote-tracking branch 'upstream/master' into why_are_the_christmas_lights_still_up
4 years ago
glassmancody.info
dda735c54a
initial commit
4 years ago
jvoisin
54adb9cbed
Fix an off-by-one in loadscpt
4 years ago
fredzio
fda639eb57
Remove unused forward declarations
4 years ago
psi29a
301411c5c5
Merge branch 'esm_variant' into 'master'
...
Use std::variant for ESM::Variant implementation
See merge request OpenMW/openmw!719
4 years ago
Andrei Kortunov
45b1c68af4
Remove annotation which does not work
4 years ago
Andrei Kortunov
903b89a0ff
Add bound for UI scale factor, as it specified in docs
4 years ago
Andrei Kortunov
124a33d8a3
Fix uninitialized variables
4 years ago
Andrei Kortunov
41c78a889a
Check for decompression error code
4 years ago
elsid
8e1c92d9af
Use std::variant for ESM::Variant implementation
4 years ago
CedricMocquillon
d617d66a87
Add file to BSA
4 years ago
elsid
03fc3ec803
Do not allow write variant of string as local variable
...
To be consitent with read where it's not allowed.
4 years ago
AnyOldName3
168f26fc80
Fix crash on startup
4 years ago
AnyOldName3
c6033b4de6
Fix #5904
4 years ago
Andrei Kortunov
b61337643e
Merge branch 'issue-5680' into 'master'
...
change aim calculation
See merge request OpenMW/openmw!685
4 years ago
Andrei Kortunov
bb9c4d5377
Merge branch 'fix_the_swimmer' into 'master'
...
Fix The Swimmer (#5914 )
See merge request OpenMW/openmw!686
4 years ago
elsid
0c6d72b2d1
Consider first set element as first acquired
4 years ago
elsid
f2ebad5115
Return cached element when set existing
4 years ago
elsid
05d6f6ac25
Use single map for navmesh cache
4 years ago
elsid
b9a40bc5fc
Add NavMeshTilesCache benchmarks
4 years ago
Max
2cd96e56d5
create constant and use constant in other parts of the code base
4 years ago
Andrei Kortunov
cf52bee188
Fix build with OSG 3.4
4 years ago
elsid
39c0ce9ddf
Build limited path for far destinations
...
When distance between start and end point is greater than max radius of area
possibly covered by navmesh there is no way to find path via navmesh. Also if
distance is greater than cell size navmesh might not exists withing mentioned
area because cell is not loaded therefore navmesh is not generated. So minumum
of these values is used to limit max path distance. Assuming that path
actually exists it's possible to build path to the edge of a circle. When
actor reaches initial edge path is built further. However it will not be
optimal.
4 years ago
psi29a
a86b6ff6e2
Merge branch 'nifnifnifnifnif' into 'master'
...
Add in incomplete BSShader[PP/No]LightingProperty work before it rots away
See merge request OpenMW/openmw!681
4 years ago
psi29a
415591b7ed
Merge branch 'ai_reaction_deviation' into 'master'
...
Distribute AI reactions and engage combat calls over time
See merge request OpenMW/openmw!674
4 years ago
Alexei Dobrohotov
2fdbe9b3f6
Handle BSShader[PP/No]LightingProperty
4 years ago
wareya
63f01d8c5f
Prevent physics death spiral by falling back to true delta time when needed
4 years ago
elsid
675c0ab72f
Apply uniform random deviation to AI reaction timer
...
This allows to distribute AI reaction calls over time.
Before this change actors appearing at the same frame will react in the same
frame over and over because AI reaction period is constant. It creates a
non-uniform CPU usage over frames. If a single frame has too many AI reactions
it may cause stuttering when there are too many actors on a scene for current
system.
Another concern is a synchronization of actions between creatures and NPC.
They start to go or hit at the same frame that is unnatural.
4 years ago
Bret Curtis
68c1adec0f
Merge pull request #3055 from akortunov/keyinit
...
Init animation key struct before usage
4 years ago
Andrei Kortunov
a22f6b24d5
Init animation key struct before usage
4 years ago
Alexei Dobrohotov
7acebbd6e8
Merge branch 'no-using-namespace-std' into 'master'
...
Minor cleanup: Remove `using namespace std`
See merge request OpenMW/openmw!664
4 years ago
Gleb Mazovetskiy
b9c2f6ea1a
Minor cleanup: Remove `using namespace std`
...
I came across these while trying to figure why MSVC build triggers
https://developercommunity.visualstudio.com/t/error-c2872-byte-ambiguous-symbol/93889
In the end, the issue was not in openmw but in OSG, but it's good to
clean up here anyway.
4 years ago
AnyOldName3
ba74fbf30e
Fix MyGUI log
...
Also actually print an error to the regular log when the MyGUI log can't
be opened so we notice if we kill it again in under five years.
4 years ago
AnyOldName3
20852e82b2
Merge branch 'zbuffer' into 'master'
...
NiZBufferProperty: handle depth test flag (bug #5902 )
Closes #5902
See merge request OpenMW/openmw!658
4 years ago
Dobrohotov Alexei
952b31ac5c
NiZBufferProperty: handle depth test flag (bug #5902 )
4 years ago
Bret Curtis
90baf8ad60
Merge pull request #3053 from akortunov/master
...
Add move assignment operator for the ESM::Variant
4 years ago
AnyOldName3
9466d6a409
Hide macro usage from Macs where it isn't defined
4 years ago
Andrei Kortunov
4d48c81998
Add move assignment operator and move constructor for the ESM::Variant
4 years ago
psi29a
cc6f08930b
Merge branch 'alpha-meddling' into 'master'
...
Replace deprecated alpha test in shader visitor
Closes #4899
See merge request OpenMW/openmw!473
4 years ago
AnyOldName3
0431ba4c87
Merge branch 'alpha-meddling-shader-side-mip-meddling' into alpha-meddling
4 years ago
AnyOldName3
d52ae28b7a
Fix linking on MacOS
4 years ago
psi29a
9f47190411
Merge branch 'now-it-blends' into 'master'
...
Convert blending factors properly for the character preview
See merge request OpenMW/openmw!644
4 years ago
AnyOldName3
cb2cbb4181
Convert blending factors properly for the character preview
4 years ago
AnyOldName3
450b971bb0
Merge branch 'gl4es-patch' into 'master'
...
gl4es: Delay feature detection until a context exists
See merge request OpenMW/openmw!626
4 years ago
AnyOldName3
deb184cdce
Merge branch 'fix-build' into 'master'
...
Fix linking with `-DOPENMW_USE_SYSTEM_OSG=ON -DOSG_STATIC=ON`
See merge request OpenMW/openmw!640
4 years ago
Evil Eye
eb07818f13
Ignore agents without bounding boxes
4 years ago
Gleb Mazovetskiy
455be9dbbb
Fix linking with `-DOPENMW_USE_SYSTEM_OSG=ON -DOSG_STATIC=ON`
...
1. CMake's built-in OSG finder does not use pkgconfig, so we have to
manually ensure the order is correct for inter-library dependencies.
https://gitlab.kitware.com/cmake/cmake/-/issues/21701
2. OSG plugin pkgconfig files are missing dependencies on the underlying
libraries (e.g. freetype, png, jpeg), so we have to link them manually.
https://github.com/openscenegraph/OpenSceneGraph/issues/1052
4 years ago
Gleb Mazovetskiy
4495b67d77
MyGUI HEAD compatibility
...
Makes OpenMW compatible with the current MyGUI HEAD at:
f93d4fb614
Refs #5806
4 years ago
Gleb Mazovetskiy
044e784072
gl4es: Delay feature detection until a context exists
...
gl4es feature detection does not work reliably with EGL.
If a context already exists, gl4es can instead reliably detect
the underlying GLES features from the context itself.
This requires gl4es to be configured with:
-DNOEGL=ON -DNO_LOADER=ON -DNO_INIT_CONSTRUCTOR=ON
This also requires gl4es to have this fix: https://github.com/ptitSeb/gl4es/pull/271
4 years ago
psi29a
937549c99e
Merge branch 'fix_still_actors' into 'master'
...
Make actor flee from a combat when cannot reach a target (#5851 )
See merge request OpenMW/openmw!601
4 years ago
AnyOldName3
46a1715d8a
Actually return something
4 years ago
AnyOldName3
16e8cf89af
Fix compilation of tests with MSVC
4 years ago
AnyOldName3
f5a87ee46d
Refactor out duplicated RTT setup code
4 years ago
AnyOldName3
153ab57ae3
Make assignment in while loop condition obviously intentional
4 years ago
AnyOldName3
2b144ff3dd
Merge branch 'fix_frame_rate_limit' into 'master'
...
Fix frame rate limit (#5686 )
See merge request OpenMW/openmw!603
4 years ago
AnyOldName3
9be258d260
Make it possible to reinstate FFP state easily
4 years ago
psi29a
5c0214142b
Merge branch 'static-build' into 'master'
...
Optional local source builds of OSG, MyGUI, Bullet
See merge request OpenMW/openmw!547
4 years ago
psi29a
de28a89a43
Merge branch 'navigator_cleanup' into 'master'
...
Navigator cleanup
See merge request OpenMW/openmw!612
4 years ago
psi29a
59e09cba5b
Merge branch 'boltsize' into 'master'
...
Use projectile mesh size (#5829 )
See merge request OpenMW/openmw!587
4 years ago
elsid
561628087c
Merge branch 'profiler_fix' into 'master'
...
Fix profiler glitches (#5850 )
See merge request OpenMW/openmw!605
4 years ago
elsid
bc67669a97
Comment unused argument
4 years ago