Petr Mikheev
ac6303a83a
Rename MWWorld::Cells -> WorldModel
2022-12-15 20:45:18 +01:00
AnyOldName3
66b8d4fb29
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.
2022-12-09 00:22:08 +00:00
psi29a
1d55be8214
Merge branch 'lua_profiler' into 'master'
...
Lua profiler
See merge request OpenMW/openmw!2523
2022-12-07 10:53:47 +00:00
psi29a
eabb230de2
Merge branch 'keep_calm_and_get_hit' into 'master'
...
Add option to restore non-MCP Calm spell behaviour
Closes #7063
See merge request OpenMW/openmw!2522
2022-12-07 10:33:17 +00:00
Evil Eye
69fe4594fc
Reset mCharGen along with the other MyGUI-holding members
2022-12-05 17:48:24 +01:00
psi29a
06a626452c
Merge branch 'ptr2' into 'master'
...
Refactoring; slightly reduce amount of code in worldimp.cpp
See merge request OpenMW/openmw!2498
2022-12-05 08:54:18 +00:00
Petr Mikheev
7c36a7eb49
Run Lua GC in every frame
2022-12-03 17:09:11 +01:00
Petr Mikheev
55db95d4cf
Update Lua profiler; add ability to run OpenMW with old LuaJit that doesn't allow custom allocator (Lua profiler will be disabled in this case)
2022-12-03 16:58:03 +01:00
Evil Eye
209a102061
Update a reference's base record pointer on resurrection
2022-12-01 17:07:10 +01:00
Petr Mikheev
02a9069a0e
Lua Profiler
2022-11-30 00:06:14 +01:00
Petr Mikheev
6fa65e4729
Track memory and CPU usage per script in LuaUtil::LuaState
2022-11-30 00:06:14 +01:00
Evil Eye
a648e4cc11
Add option to restore non-MCP Calm spell behaviour
2022-11-23 20:59:37 +01:00
Cédric Mocquillon
dde8ee0611
Delay the deletion of esm versions after the deletion of the scene as it is used in one of its workers (the objectpaging one)
2022-11-20 20:48:48 +01:00
Petr Mikheev
aa230698a8
Apply clang-format
2022-11-13 15:35:26 +01:00
Petr Mikheev
313df72be0
Remove raycasting functions from MWWorld::World
2022-11-13 15:35:26 +01:00
Petr Mikheev
7a354d8c78
Remove from MWWorld::World a few functions that already exist in MWWorld::Cells and MWWorld::Scene
2022-11-13 12:37:37 +01:00
Petr Mikheev
2df993004c
Make MWWorld:Cells and MWWorld::Scene to be accessible via Environment
2022-11-13 12:37:37 +01:00
AnyOldName3
08361a6682
Merge branch 'LOD-support-to-Object-Paging' into 'master'
...
Add LOD support to Object Paging
See merge request OpenMW/openmw!2459
2022-11-12 15:25:57 +00:00
Cédric Mocquillon
7142bb4ce7
Select only one level of LOD outside the active grid
...
Do not create group when not needed
2022-11-11 20:56:46 +01:00
psi29a
518bd03547
Merge branch 'post_ui' into 'master'
...
Improve postprocess HUD layout
See merge request OpenMW/openmw!2505
2022-11-10 22:36:04 +00:00
Evil Eye
b94818b24a
Tweak message and temporarily set model ttl to 0
2022-11-10 17:24:58 +01:00
Andrei Kortunov
da5b442fcf
Improve postprocess HUD layout
2022-11-10 08:31:21 +04:00
Alexei Kotov
1d31c5eb6f
Remove the correct bound item when the effect expires
2022-11-10 01:18:46 +03:00
psi29a
d29d68f1ba
Merge branch 'allycache' into 'master'
...
Always consider an actor their own ally (bug #6313 )
Closes #4229 and #6313
See merge request OpenMW/openmw!2504
2022-11-09 21:01:57 +00:00
Cédric Mocquillon
4140e4ea05
Remove LOD which could never be displayed in a chunk
2022-11-09 21:57:48 +01:00
psi29a
577c9ad5fb
Merge branch 'deprecated' into 'master'
...
Replace gmtime with safer equivalents
See merge request OpenMW/openmw!2503
2022-11-09 09:20:07 +00:00
Evil Eye
0ae5755abb
Implement TestModels/T3D
2022-11-08 22:36:15 +01:00
Alexei Kotov
5d11238723
Always consider an actor their own ally (bug #6313 )
2022-11-08 20:13:20 +03:00
psi29a
7669a43495
Merge branch 'dialogue_result_scripts' into 'master'
...
Reimplement --script-all-dialogue to be more useful to modders
See merge request OpenMW/openmw!2494
2022-11-08 15:46:16 +00:00
psi29a
fa50890633
Merge branch 'sm-snap-to-reference' into 'master'
...
Open-CS: Snap to Reference
See merge request OpenMW/openmw!2484
2022-11-08 15:30:26 +00:00
Alexei Kotov
914fba229d
Replace gmtime with safer equivalents
2022-11-08 16:38:40 +03:00
Alexei Kotov
a5adb73900
Make idle emitters emit ripples every 1.5 seconds (bug #5883 )
2022-11-08 12:48:24 +03:00
psi29a
3ca17e5183
Merge branch 'landofwindandshade' into 'master'
...
Handle landing in the frame the jump is over (bug #5849 )
Closes #5849
See merge request OpenMW/openmw!2499
2022-11-08 08:25:31 +00:00
Alexei Kotov
1db9247c45
Restart player block animation during blocking if necessary
2022-11-07 22:09:56 +03:00
Alexei Kotov
180963488f
Play shield hit sound when the hit is blocked (bug #6645 )
2022-11-07 22:02:30 +03:00
Alexei Kotov
9b8399c353
Handle landing in the frame the jump is over (bug #5849 )
2022-11-07 19:06:01 +03:00
Petr Mikheev
6025943fed
Add missing content=builtin.omwscripts if openmw is started via openmw-cs ( fixes #7056 )
2022-11-05 16:30:44 +01:00
Max Henzerling
897cdc62d8
Add snap to reference
2022-11-04 15:04:42 -07:00
Evil Eye
f61083d02c
Replace switch statements
2022-11-04 12:20:37 +01:00
Evil Eye
29a46b0fc0
Reimplement --script-all-dialogue to be more useful to modders
2022-11-03 20:54:44 +01:00
psi29a
6960fc9304
Merge branch 'opencs_iwyu' into 'master'
...
Run IWYU on the opencs
See merge request OpenMW/openmw!2481
2022-11-02 21:41:53 +00:00
psi29a
fd176d6faf
Merge branch 'shutup_no_one_cares' into 'master'
...
Ignore 0 attributes on dead NPCs
See merge request OpenMW/openmw!2490
2022-11-02 08:19:37 +00:00
elsid
013f56088b
Support negative days in TimeStamp
...
As vanilla engine does.
2022-11-01 22:17:39 +01:00
Evil Eye
45cd5bdbd7
Ignore 0 attributes on dead NPCs
2022-11-01 20:14:40 +01:00
jvoisin
1a326294c0
Run IWYU on the opencs
2022-10-31 21:04:01 +01:00
Evil Eye
4a48156378
Only force adjust the player and NPCs teleported out of the active grid
2022-10-31 12:29:29 +01:00
Evil Eye
5448338b21
Allow bound effects to be recast if they're attached to a recastable effect
2022-10-28 23:10:47 +02:00
Petr Mikheev
4f5443118e
Merge branch 'fix_coroutine_crash' into 'master'
...
Fix coroutine-related crashes
Closes #6996
See merge request OpenMW/openmw!2447
2022-10-18 22:30:13 +00:00
uramer
a2fa1fe0a5
Execute async callbacks on the main Lua stack
2022-10-18 22:12:11 +02:00
uramer
8108fa0724
Merge branch 'fix_7039' into 'master'
...
Fix #7039 : freeze after throwing an error in a queued Lua callback
Closes #7039
See merge request OpenMW/openmw!2469
2022-10-18 19:53:30 +00:00
uramer
b13a4f6b01
Lua coroutine crash tests
2022-10-18 21:11:31 +02:00
Evil Eye
48726eedaa
Mark constant methods const
2022-10-18 20:28:35 +02:00
Evil Eye
a207b5e419
Prevent potentially returning garbage flags
2022-10-18 20:28:35 +02:00
Evil Eye
c8a594d9d2
Don't use potentially invalid cache entry
2022-10-18 20:28:35 +02:00
psi29a
bc1e0d3522
Merge branch 'grayscale_dialogue' into 'master'
...
Fix dialogue issues
Closes #6419 and #7047
See merge request OpenMW/openmw!2478
2022-10-18 15:41:56 +00:00
psi29a
48232bfece
Merge branch 'consecutiveseriouspunches' into 'master'
...
Don't process unexpected hit text keys (bug #7042 )
Closes #7042
See merge request OpenMW/openmw!2473
2022-10-17 13:11:02 +00:00
psi29a
fdf1577918
Merge branch 'lua_records' into 'master'
...
Lua Armor, Static and Light record bindings
See merge request OpenMW/openmw!2341
2022-10-17 13:10:19 +00:00
psi29a
da9cbbce8f
add some memory
2022-10-17 13:09:17 +00:00
Evil Eye
a24e9e4c0a
Mark constant methods const
2022-10-17 09:43:20 +02:00
Evil Eye
81f138cea0
Prevent potentially returning garbage flags
2022-10-17 09:37:56 +02:00
Evil Eye
1c17260d87
Don't use potentially invalid cache entry
2022-10-17 09:35:43 +02:00
Alexei Kotov
ece7a98e03
Only prevent initially dead actors from floating up (bug #4204 )
2022-10-14 19:35:28 +03:00
AnyOldName3
15c51dcbbc
Restore false-positive unused includes
...
They're needed on MacOS as SDL_opengl_gletx.h doesn't define them there.
They don't actually work on MacOS, so long-term, the code that uses
these defines should be changed to use #ifdef to check they're available
before using them.
2022-10-13 00:49:24 +01:00
Alexei Kotov
eadade9dfc
Don't process unexpected hit text keys (bug #7042 )
2022-10-13 02:07:23 +03:00
AnyOldName3
77de37b1ed
Revert "Merge branch 'fix_macos_build' into 'master'"
...
As well as fixing the MacOS build, it meddled with a bunch of files that
already did the right thing.
This reverts commit 8162541a14
, reversing
changes made to e16c451d08
.
2022-10-12 22:48:34 +01:00
mpeco
a2ce37b5b0
clang-format
2022-10-11 01:14:17 -03:00
mpeco
af3af6e091
update types.lua
2022-10-11 00:01:11 -03:00
mpeco
90a73b39ce
Lua Armor, Static and Light record bindings
2022-10-11 00:01:08 -03:00
Petr Mikheev
395f7f0e9a
Fix #7039 : freeze after throwing an error in a queued Lua callback
2022-10-10 23:32:17 +02:00
Petr Mikheev
6371e002fd
[Lua] More understandable error message when trying to change stats on anything except openmw.self
2022-10-10 22:57:06 +02:00
psi29a
59025f2bc9
Merge branch 'dont_make_me_press_twice' into 'master'
...
Derive sneaking state from character data
See merge request OpenMW/openmw!2360
2022-10-10 16:49:20 +00:00
psi29a
5dfbf6ffb7
Merge branch 'another_iwyu' into 'master'
...
Another pass with IWYU
See merge request OpenMW/openmw!2465
2022-10-10 16:48:57 +00:00
jvoisin
cd29c181cf
Another pass with IWYU
2022-10-10 15:16:18 +02:00
psi29a
8162541a14
Merge branch 'fix_macos_build' into 'master'
...
Use separate header to define missing GL constants
See merge request OpenMW/openmw!2464
2022-10-10 07:49:01 +00:00
psi29a
e16c451d08
Merge branch 'l10n' into 'master'
...
Separate l10n manager from lua
See merge request OpenMW/openmw!2451
2022-10-10 07:34:18 +00:00
psi29a
c164437d91
Merge branch 'classism' into 'master'
...
Use class service flags for autocalc NPCs
Closes #7044
See merge request OpenMW/openmw!2461
2022-10-10 07:32:46 +00:00
psi29a
c562b0b72c
Merge branch 'bootlegcharacter' into 'master'
...
Nitpicking in CharacterController::update()
See merge request OpenMW/openmw!2460
2022-10-10 07:27:07 +00:00
elsid
c324482338
Use separate header to define missing GL constants
2022-10-09 23:35:55 +02:00
elsid
843753da14
Remove unused includes
2022-10-09 16:44:18 +02:00
jvoisin
3cbf1dc042
First pass with include-what-you-use
2022-10-09 10:39:43 +00:00
Evil Eye
60491cc896
Derive sneaking state from character data
2022-10-08 17:22:33 +02:00
Evil Eye
60c26832d2
Use class service flags for autocalc NPCs
2022-10-08 17:00:33 +02:00
Alexei Kotov
961fe59736
Nitpicking in CharacterController::update()
2022-10-08 07:03:04 +03:00
Petr Mikheev
3697c9266b
Separate l10n manager from lua
2022-10-07 17:19:04 +02:00
psi29a
6630dbb9c2
Merge branch 'window_manager_profile' into 'master'
...
Profile window manager update
See merge request OpenMW/openmw!2458
2022-10-07 07:38:03 +00:00
elsid
2f5adbb083
Profile window manager update
2022-10-06 21:50:31 +02:00
elsid
212c7c7f25
Move LuaWorker to a separate file
2022-10-06 21:50:31 +02:00
elsid
cd18c81e58
Move ScopedProfile to a separate file
2022-10-06 21:50:31 +02:00
elsid
bb8b5e2108
Add META_Node to clang-format StatementMacros
2022-10-06 21:11:52 +02:00
elsid
063fff7fa4
Fix and prevent -Wextra-semi warning
2022-10-06 00:26:43 +02:00
elsid
624d8bc931
Support unsigned settings values
2022-10-04 01:34:53 +02:00
elsid
da15db295e
Fix resetting player's animation on game loading
...
When game is loaded player's animation is replaced by a new object. Old object
is destructed without explicit removeFromScene call.
2022-10-02 13:50:51 +02:00
psi29a
6e71804048
Merge branch 'keying_in' into 'master'
...
Add key flag on load
Closes #7034
See merge request OpenMW/openmw!2444
2022-09-30 13:16:14 +00:00
Evil Eye
e6592aa850
Add key flag on load
2022-09-30 12:16:45 +02:00
elsid
4de8ea30c8
Report used memory by Lua interpreter
2022-09-30 02:15:21 +02:00
elsid
b92d80249e
Adjust initial distance when destination is changed for obstacle check
...
Changed destination may create a situation when the distance actor moved between
2 update calls is less than initial distance because destination has been changed.
This forces actor to take evasive action when there is no actual obstacle.
2022-09-28 22:01:29 +02:00
clang-format-bot
88ec8a9523
Apply clang-format
2022-09-25 18:23:43 +02:00
psi29a
f7da42870e
Merge branch 'count' into 'master'
...
Improve item count handling
See merge request OpenMW/openmw!2430
2022-09-25 13:38:33 +00:00
psi29a
aed0ad6b83
Merge branch 'nifosg_tests' into 'master'
...
Add tests for NifOsg::Loader
See merge request OpenMW/openmw!2421
2022-09-25 13:37:14 +00:00
psi29a
d05494bfb9
Merge branch 'falling_actors' into 'master'
...
Do not adjust position for falling actors (#7009 )
Closes #7009
See merge request OpenMW/openmw!2416
2022-09-25 13:36:55 +00:00
psi29a
f0e58ef872
Merge branch 'editor_fix' into 'master'
...
Fix topic infos creation
Closes #6686
See merge request OpenMW/openmw!2432
2022-09-25 13:34:43 +00:00
psi29a
d38c072030
Merge branch 'recall_how_to_recall' into 'master'
...
Prevent recursive calls to ActiveSpells::update
Closes #7022
See merge request OpenMW/openmw!2426
2022-09-25 13:30:07 +00:00
Andrei Kortunov
3163d9ed56
Fix topic infos creation
2022-09-25 15:17:20 +04:00
Andrei Kortunov
7d23ad29e0
Make count input box larger to fit larger text
2022-09-25 11:54:34 +04:00
Andrei Kortunov
dacb300dfb
Improve item count handling
2022-09-25 11:22:17 +04:00
Project579
6fe89ff22b
Fix dumb regression, initialize "std::filesystem::file_time_type" with "clock::now()".
2022-09-24 21:52:10 +02:00
Project579
5cf2a958eb
Make conversions between std::chrono time_point and string safer by not using "localtime" directly.
2022-09-24 21:47:27 +02:00
elsid
d2e1f18924
Add tests for NifOsg::Loader
2022-09-24 19:10:39 +02:00
elsid
4b760e8846
Do not add redundant nullptr parent
...
There are no failed tests after this, so this is not really needed.
2022-09-24 19:10:31 +02:00
elsid
83bb2195b0
Move init functions for Nif nodes to a separate file
...
This will be used in other tests.
2022-09-24 19:10:25 +02:00
elsid
f2fb3d6de8
Separate NIFFileReader from NIFFile
...
NIFFile might not always be created from a file or stream containing NIF data.
Basically there are 2 different responsibilities for this class:
1. Read NIF file
2. Provide input for nifosg and bulletnifloader.
Remove no longer needed NIFFileMock since the state of NIFFfile can be
initialized independently from reading NIF file.
2022-09-24 19:10:14 +02:00
Evil Eye
d3253cb636
Prevent recursive calls to ActiveSpells::update
2022-09-24 18:13:45 +02:00
elsid
1fc7bd7775
Do not consider falling actors as grounded
2022-09-24 17:49:44 +02:00
elsid
953954ff95
Do not adjust position for falling actors
2022-09-24 17:49:42 +02:00
clang-format-bot
ddb0522bbf
Apply clang-format to code base
2022-09-22 21:35:26 +03:00
psi29a
9a9c7fa7cf
Merge branch 'std-filesystem-hotfix' into 'master'
...
Use std::filesystem for unit tests temporary files path.
See merge request OpenMW/openmw!2402
2022-09-19 20:47:33 +00:00
psi29a
525f81393a
Merge branch 'physics_refactor' into 'master'
...
Small physics refactoring
See merge request OpenMW/openmw!2417
2022-09-19 19:57:23 +00:00
Project579
b82176410b
Use std::filesystem for unit tests temporary files path.
2022-09-19 21:42:18 +02:00
Evil Eye
7cc55022a1
Implement sun damage based on the research on the wiki
2022-09-19 19:05:22 +02:00
elsid
feb645d15f
Remove redundant Scene::updatePosition function
2022-09-17 01:14:04 +02:00
elsid
aeb4611d6c
Mark MWPhysics::Actor constructor and assignment operators as deleted
2022-09-17 01:14:04 +02:00
elsid
bceca33699
Do not lock mutex in MWPhysics::Actor constructor
2022-09-17 01:14:04 +02:00
elsid
bd98404890
Initialize PtrHolder::mPtr and positions by its constructor
2022-09-17 01:14:04 +02:00
AnyOldName3
84f8a6848a
Renormalise line endings
...
This should replace accidental CRLF with LF
2022-09-16 00:53:24 +01:00
elsid
a0cfcc50a2
Fix dangling pointer access on clicking save in the main menu
...
getSignature() returns an object which means expression like:
className = it->getSignature().mPlayerClassName;
assigns a temporary object to className that does not outlive the statement.
Having className a string view such code leads to a dangling pointer.
Return a reference from getSignature to save on redundant copying.
Change getSignature implementation to make it visible that it finds a maximum
element.
Do not call getSignature multiple times when possible to avoid seaching for the
same max element multiple times.
2022-09-15 22:49:20 +02:00
psi29a
d1c79fa8d1
Merge branch 'pre_clang_format_fixes_2' into 'master'
...
Fixes before applying clang-format 2
See merge request OpenMW/openmw!2401
2022-09-15 08:24:23 +00:00
elsid
9c291535bb
Dump NIFZ and KFFZ sub records by esmtool
2022-09-15 00:01:40 +02:00
elsid
410a2881fe
Add comma to the last array element to prevent putting multiple elements on a single line
2022-09-14 00:36:02 +02:00
elsid
51314db2f1
Remove AI_CNDT from AI package types
...
AI_CNDT is a label of subrecord containing cell name. It's not AI package type.
2022-09-13 00:05:12 +02:00
psi29a
20abe6dcf5
Merge branch 'esmtool_string_view' into 'master'
...
Use std::string_view for esmtool labels
See merge request OpenMW/openmw!2396
2022-09-12 20:55:01 +00:00
elsid
52b7b66e9f
Add comma to the last array element to prevent putting multiple elements on a single line
2022-09-12 21:00:51 +02:00
elsid
5b1d6917ef
Add comments to prevent line splitting on formatting
2022-09-12 21:00:51 +02:00
elsid
4698a4cd2d
Use raw string literals to format command usage messages
2022-09-12 21:00:51 +02:00
elsid
f269406061
Do not wrap emit expresison with parenthesis
...
To avoid warnings like following after clang-format applied:
apps/launcher/utils/profilescombobox.cpp:85:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
emit(signalProfileChanged(mOldProfile, currentText()));
^
apps/launcher/utils/profilescombobox.cpp:82:5: note: previous statement is here
if (index == -1)
^
2022-09-12 21:00:51 +02:00
elsid
40e899f56d
Use std::string_view for esmtool labels
2022-09-12 18:58:53 +02:00
elsid
6ae15f08e0
Avoid chained operator() calls to prevent formatting issues
2022-09-12 16:48:15 +02:00
unrelentingtech
1c8fd2ecdb
Implement system-scaled HiDPI support (SDL_WINDOW_ALLOW_HIGHDPI - Wayland, macOS, etc)
2022-09-12 08:18:08 +00:00
elsid
a9826342b2
Print ESM4 EditorId and Model by esmtool dump
2022-09-12 01:42:08 +02:00
psi29a
80d52e3da8
Merge branch 'cursor' into 'master'
...
Support high-resolution cursor textures
Closes #6933
See merge request OpenMW/openmw!2262
2022-09-11 18:32:18 +00:00
psi29a
435eacdaad
Merge branch 'debug_draw_commands' into 'master'
...
API to draw primitives
See merge request OpenMW/openmw!2345
2022-09-11 17:17:16 +00:00
Andrei Kortunov
a2c02d2999
Support high-resolution cursor textures (feature 6933)
2022-09-11 20:54:20 +04:00
florent.teppe
43b0ae1ce7
all debug renders now use the same shader and it works
...
remove debug draw shader, now that debug and debugdraw serve the same function
remove debug draw code from actors to clean
replaced int uniforms with bool for better readability
clang format
cleanup, remove unused func, and mistake whitespace
fix namespace
added more colors
fixed missing whitespace
2022-09-11 17:54:01 +02:00
florent.teppe
2a980ecb50
cleaned some code and fixed some naming issues
...
Moved debug draw to components, fixed some whitespace issues, added include guard
fixed uniform name, removed old files
Fixes some more whitespace weirdness
2022-09-11 17:53:53 +02:00
florent.teppe
12b3424dd7
initial work to get lines in
...
lines need the same synchronisation system as the other primitives
This two points are there because if I resize to 0 it crashes, si I need a pice of line at 0.,0.,0. so there is no crash.Not ideal
Lines are colored
didn't commit updated shader file
2022-09-11 17:53:51 +02:00
florent.teppe
80c97e48bf
made code more consistent between cube, cylinder and wirecube, should also fix a clang compilation error
...
remove include to non existing file
Actors code displays different ways to use debug draw
oups, forgot to remove parameter in function
fix include case sensitivity
Jopefully fixes all linux issues
moves some code pieces, and the debug draw now has a group node to have different types of objects to draw
2022-09-11 17:53:49 +02:00
florent.teppe
76008e1ff8
Multiple shapes to draw
...
adds wireCube primitive
scale of the command taken into account
shading light is more vertical
2022-09-11 17:53:47 +02:00
florent.teppe
93af569a68
can place a cube at 0,0,0 Useless for now
...
Arbitrarly draw cubes at certain position with a certain color
Adds exemple of how it looks in the actor update code.
draws a green cube if alive, red else
2022-09-11 17:53:41 +02:00
psi29a
29f3de30c2
Merge branch 'master' into 'cellstore_refactor'
...
# Conflicts:
# apps/openmw/mwworld/scene.cpp
2022-09-11 15:03:37 +00:00
Project579
886b8c7af2
Fix build error with stdlibc++ due to includes shuffling.
2022-09-11 14:41:21 +02:00
Project579
9ceafe770d
Hard fail on loading BSA with records using unicode paths.
2022-09-11 14:41:21 +02:00
Project579
1a79f098fa
Use std::filesystem::create_directories instead of std::filesystem::create_directory to recursively generate directories from the provided path.
2022-09-11 14:41:21 +02:00
Project579
ca14fc00dc
Added dedicated functions for conversions between QString and std::filesystem::path.
2022-09-11 14:41:21 +02:00
Project579
c226b35f1f
Fix some remaining encoding errors due to std::filesystem transition.
2022-09-11 14:41:20 +02:00
Project579
1fc197e404
Check std::getenv output before using it to construct a std::filesystem::path.
2022-09-11 14:41:20 +02:00
Project579
5456ef1d50
Add new functions and overloads to support std::u8string and std::filesystem::path.
2022-09-11 14:41:20 +02:00
Project579
796911e67d
iniimporter: Work around some old MSVC compiler bugs.
2022-09-11 14:41:20 +02:00
Project579
199bf233e8
essimporter: Don't use "std::string" to store paths.
2022-09-11 14:41:20 +02:00
Project579
14a786bab0
iniimporter: Don't convert paths to "std::string".
2022-09-11 14:41:20 +02:00
Project579
4e428dee12
Update some settings that accept paths by "std::string" to accept them as "std::filesystem::path" instead.
2022-09-11 14:41:20 +02:00
Project579
928b131564
Implement std::filesystem::path conversion tests.
2022-09-11 14:41:20 +02:00
Project579
a13709c510
Replace implicit convertions from std::filesystem::path to std::string with correctly converting functions.
2022-09-11 14:41:20 +02:00
Project579
4d47e8d055
openmw-cs: model: world: data: Remove dead code.
2022-09-11 14:41:20 +02:00
Project579
864112b5db
Fixed Windows build when using MSVC 14.26 and MacOS build.
2022-09-11 14:41:20 +02:00
Project579
6bf4c7a04f
Upgraded "input-file" command line option to Files::MaybeQuotedPath from std::string to allow unicode characters on Windows.
2022-09-11 14:41:20 +02:00
Project579
e5c417c968
Make sure all paths are passed as std::filesystem::path instead of std::string where possible.
2022-09-11 14:41:15 +02:00
Project579
35fe214588
Updated components/misc/timeconvert.hpp to fix the Android build.
2022-09-11 02:20:01 +02:00
Project579
5446571aec
Circumvent QT MOC bugs by including the filesystem header in a specific order.
2022-09-11 02:19:07 +02:00
Project579
cf0af87c80
Revert changes from "4c8e1ccf - Fixed windows build and updated tests to reflect changes of escape character from "&" to "\"" in "apps/openmw_test_suite/openmw/options.cpp"
2022-09-11 02:19:07 +02:00
Project579
e97eeca281
Attempt to work around QT MOC bugs caused by the filesystem header.
2022-09-11 02:19:07 +02:00
Project579
cd229a965b
Fixed windows build and updated tests to reflect changes of escape character from "&" to "\"
2022-09-11 02:19:07 +02:00
Project579
4bb07282c9
Replace all remaining occurrences of boost::filesystem with std::filesystem.
2022-09-11 02:19:00 +02:00
florent.teppe
9a19bb84a4
fixed Clang and whitespace difference with master
2022-09-10 22:58:15 +02:00
florent.teppe
10de4a5156
created a relationship between the record type and the corresponding state
...
used in readReferences and writeReferences. Simplifies the calls to those functions
2022-09-10 22:20:47 +02:00
florent.teppe
256d8a699a
moves one function from tuplemeta.hpp to newly created tuplehelpers.hpp
2022-09-10 20:13:18 +02:00
florent.teppe
73e3c0adf6
applies some review changes
...
fixed c style cast
fixed useless includes
fixed callback not last member
fixed situation where type==0 and therefore function call isn't necessary
2022-09-10 19:48:48 +02:00
psi29a
25fa8c3656
Merge branch 'rm_base_esm_reader' into 'master'
...
Remove ESM::Reader base class
See merge request OpenMW/openmw!2388
2022-09-10 14:38:13 +00:00
psi29a
525b904a44
Merge branch 'reflection-uniform' into 'master'
...
Added a uniform to indicate whether rendering is occurring in a reflection
See merge request OpenMW/openmw!2340
2022-09-10 14:19:20 +00:00
elsid
ac1688f9c1
Remove ESM::Reader base class
...
This class does not serve any useful purpose now. It was added as a first step
in attempt to define common interface for ESM3 and ESM4 readers. But this is not
going to happen.
2022-09-10 15:17:49 +02:00
florent.teppe
158eea934d
removed more code from the header
...
simplified forEachInternal function using tupleForEach
moved some function that were in CellStoreImp that didn't need to be
2022-09-10 10:03:13 +02:00
florent.teppe
65bd007baa
simplified some big switch/case
2022-09-09 23:40:56 +02:00
psi29a
95f9f00bcc
Merge branch 'navigator_rtree' into 'master'
...
Optimize updating navmesh from the main thread primarily on cell loading
See merge request OpenMW/openmw!2382
2022-09-08 22:18:36 +00:00
florent.teppe
bcc004ecf5
Simplified read reference, by associating the types to the recNameInt using tuple + template + fold expresions magic
2022-09-08 23:39:44 +02:00
florent.teppe
0a5c863f27
fewer header includes
2022-09-08 21:08:59 +02:00
florent.teppe
c7e88344d0
cellstore refactor first version, simply replaces each individual reflist by a tuple and makes the necessary related changes
2022-09-08 20:52:00 +02:00
psi29a
95ad1d91df
Merge branch 'esmstore-round-2' into 'master'
...
More ESMStore cleanup
See merge request OpenMW/openmw!2383
2022-09-08 13:08:26 +00:00
ζeh Matt
aa65df8872
Rename meta.hpp to tuplemeta.hpp
2022-09-08 15:03:01 +03:00
elsid
22ee592dd3
Lock TileCachedRecastMeshManager once per changing a cell
...
To save time on locking mutex and prevent AsyncNavMeshUpdater to use RecastMesh
for a tile in the middle of objects loading.
2022-09-08 11:06:35 +02:00
psi29a
b9ff117dfe
Merge branch 'reuse_actors_positions_buffer' into 'master'
...
Reuse physics actors positions buffer
See merge request OpenMW/openmw!2384
2022-09-08 06:57:41 +00:00
Andrei Kortunov
6ec9616ddd
Localize the 'show effect duration' option
2022-09-08 07:46:56 +04:00
ζeh Matt
c856095562
Use compile time generated indices for tuples types
2022-09-08 03:38:07 +03:00
elsid
cdc9141e2f
Reuse physics actors positions buffer
2022-09-08 01:57:45 +02:00
ζeh Matt
8f7703d5c8
Rename HasMember to TupleHasType and move code into misc/meta.hpp
2022-09-08 00:13:50 +03:00
elsid
d15e1dca84
Use R-tree for objects to be used for navmesh generation
...
Instead of storing a set of objects per tile.
2022-09-07 22:51:56 +02:00
psi29a
1859c6eded
Merge branch 'pcvisionbonus' into 'master'
...
Implement PCVisionBonus functions
Closes #6983
See merge request OpenMW/openmw!2371
2022-09-07 20:27:22 +00:00
psi29a
1943486812
Merge branch 'savescreenshots' into 'master'
...
!2358 follow-up (bug #6661 )
Closes #6661
See merge request OpenMW/openmw!2376
2022-09-07 20:24:41 +00:00
psi29a
fcd9b78cac
Merge branch 'REFACTOR_STORE' into 'master'
...
Refactoring the ESM store to better support many new ESM4 types
See merge request OpenMW/openmw!2161
2022-09-07 20:22:29 +00:00
florent.teppe
31a14952b7
no more getIdType, only setIdType
2022-09-07 18:45:15 +02:00
Alexei Kotov
81c78f5477
Keep savegame screenshots up-to-date
2022-09-07 16:18:33 +03:00
Alexei Kotov
0d3a1470c9
Fix double quote marks
2022-09-07 16:12:26 +03:00
psi29a
912a4d69ee
Merge branch 'reuse_simulations_buffer' into 'master'
...
Reuse physics simulations buffer (#6588 )
Closes #6588
See merge request OpenMW/openmw!2374
2022-09-07 10:30:59 +00:00