Commit Graph

16522 Commits (5c3496fb15db92dffc30d4457f5347e5a91a4ac0)

Author SHA1 Message Date
Bret Curtis 109057e53f
Merge pull request #2544 from akortunov/corprus
Rework corprus implementation
5 years ago
Andrei Kortunov 3dce225f28 Implement vanilla-style corprus handling (bug #3714, bug #4623) 5 years ago
Andrei Kortunov c0e62e9529 Refactor list of variables in the WorldManager 5 years ago
Evil Eye 4d7947d27c Mutate base records when editing AI settings (#2798) 5 years ago
elsid b67e18329e
Store AI packages as unique_ptr 5 years ago
elsid ce7c47ee12
Return cloned AiPackage as unique_ptr 5 years ago
Bret Curtis 18bb6dd223
Merge pull request #2859 from elsid/aipackage_single_clone
Single clone function definition for all AI packages
5 years ago
Capostrophic d72152183f Update spell effects during death animation (#5403) 5 years ago
Bret Curtis d3b3b74945
Merge pull request #2871 from Capostrophic/tcl
Don't "disable" player's collision shape in TCL (#5435)
5 years ago
Capostrophic 577786f110 Don't disable player's collision shape in TCL (#5435) 5 years ago
Capostrophic b0b4550f05 Pass Actor by reference, simplify GetTarget for greetings 5 years ago
Capostrophic efd5f13b2b Make greeting-related actor data temporary (bug #5397) 5 years ago
Bret Curtis 9d0855baa5
Merge pull request #2866 from elsid/extend_osg_stats
Extend OSG stats
5 years ago
Alexei Dobrohotov 6f2b0252fa
Merge pull request #2881 from akortunov/statemanager
Use C++11-style loops in the StateManager
5 years ago
Bret Curtis 6f2fdb990b
Merge pull request #2876 from Capostrophic/blending
Reenable weapon animation lower body anim blending in first person view (#5441)
5 years ago
Andrei Kortunov 48b3fe5733 Use C++11-style loops in the StateManager 5 years ago
Andrei Kortunov 396afe79f1 Move font loading to the FontLoader 5 years ago
Bret Curtis f36288569c
Merge pull request #2874 from akortunov/windowmanager
Cleanup WindowManager
5 years ago
Andrei Kortunov 1759276ac5
Merge pull request #2869 from Capostrophic/appliedonce
Use AppliedOnce flag in more effect duration calculations (#5425)
5 years ago
Alexei Dobrohotov afc537384d
Merge pull request #2875 from akortunov/input
Move cursor update to the MouseManager
5 years ago
Evil Eye a8231ae297 fix explicit startscript calls 5 years ago
Andrei Kortunov 2ff04b4e73 Move TextColours initialization to the TextColours itself 5 years ago
Andrei Kortunov dcfc4cc5dd Rename onFrame() to update() to make WindowManager consistent with other managers 5 years ago
Andrei Kortunov 000e44a18e Move data from WindowManager to CharacterCreation to simplify API 5 years ago
Andrei Kortunov b00d72b9e4 Move cursor update to the MouseManager 5 years ago
Capostrophic 95cd473352 Reenable weapon animation lower body animation blending in FPV (#5441)
Disabling it is a non-vanilla behavior that breaks things that aren't broken in vanilla
5 years ago
Roman Siromakha b3b8480d49
Merge pull request #2868 from Capostrophic/opcodes
Give new opcodes to old functions made custom
5 years ago
Andrei Kortunov e3df170a53 Fix mControlsDisabled flag usage 5 years ago
Capostrophic 51c0806a31 Use AppliedOnce flag in more effect duration calculations (#5425) 5 years ago
Capostrophic e0ecbc08df Give new opcodes to old functions made custom 5 years ago
elsid 69df6098e5
Report frame number, number of actors and objects to stats 5 years ago
Capostrophic c9c9599ec5 Improve GetDistance and object search warnings (bug #5427)
Allow GetDistance to work with a non-existent object argument or with inventory items that belong to a container store that doesn't exist
5 years ago
Capostrophic 904b245d30 Re-enable non-biped creature headtracking (bug #5424) 5 years ago
Alexei Dobrohotov a68a4338a0
Merge pull request #2841 from Assumeru/consistent-refs
Script reference consistency
5 years ago
Bret Curtis 357a845d00
Merge pull request #2862 from elsid/optimize_has_animation
Optimize MWRender::Animation::hasAnimation
5 years ago
elsid 9326111f4c
Use vector for Animation::mActiveControllers
Container is only used to add elements, iterate over all of them and
clear. Multimap adds overhead for all of these operations without any
benefits. Reduce Animation::resetActiveGroups CPU time usage by 50%.
5 years ago
elsid a59e25e093
Optimize MWRender::Animation::hasAnimation
Use a set to check for group start existence.
Reduce time taken from 2.6% to 0.08% and
MWMechanics::MechanicsManager::update from 7% to 5%
in relative CPU time usage for a scene with ~100 actors.
5 years ago
elsid 8e0934cbd8
Single AI package clone definition 5 years ago
elsid 103188b61d
Derive all AI package classes from template to support CRTP features 5 years ago
elsid d7a920a04b
Env variable to write OSG stats into file 5 years ago
David Cernat 411b6dcd8e Don't clear spells for a dead player, preventing resurrection problems 5 years ago
Bret Curtis 88a7ecc18d
Merge pull request #2528 from akortunov/effectstime
Use real time to update spell effects
5 years ago
Bret Curtis 730d0493db
Merge pull request #2856 from elsid/aisequence_cleanup
AiSequence cleanup
5 years ago
Bret Curtis 72507e57c6
Merge pull request #2857 from elsid/aipackage_cleanup
Remove redundant explicit dtor definition for AiPackage
5 years ago
elsid a4fbcb8a10
Remember package iterator to erase it from list without find call 5 years ago
Evil Eye 3875b837bc make MenuMode, Random, GetSecondsPassed regular functions 5 years ago
elsid d48eead038
Check type id of current package
If package is changed the following usage of it is not consistent.
5 years ago
elsid f566ab03ab
Mark overriden AiPackage methods as final 5 years ago
elsid 3b5ce71d71
Remove redundant explicit dtor definition for AiPackage 5 years ago
elsid ca93f8ee39
Compare initialized iterator
Comparsion of untilialized iterator is UB. Initialize with packages end.
5 years ago
elsid e3cce0949e
Replace condition that may lead to UB by assert
If mPackages is empty it means package is a pointer to a deleted object
at line . We can assume it couldn't happen because execute is always called
next for this object at line 289.
5 years ago
Alexei Dobrohotov b168544445
Merge pull request #2852 from elsid/aiwander_cleanup
AiWander cleanup
5 years ago
Bret Curtis 59bda361f0
Merge pull request #2848 from akortunov/bullet
Fix Bullet flags usage
5 years ago
elsid d86669843e
Remove unseud pointTolerance argument 5 years ago
elsid 256c9917a4
Make AiWander::isPackageCompleted const 5 years ago
elsid 131f2557b1
Split functions to remove redundant clearPath argument 5 years ago
elsid b8513e0318
Remove unused arguments 5 years ago
elsid 489a92de95
Check for hidden path only for actors wandering manually
Actors who doesn't wander over pathgrid.
5 years ago
elsid e616188265
Do not allow wandering actor to have empty path 5 years ago
elsid 71350c6dff
Remove redundant variable 5 years ago
Andrei Kortunov b5833f3c59 Use real time to update spell effects instead of game timestamps (bug #5165) 5 years ago
Andrei Kortunov 3ebbe14a62 Avoid zero division 5 years ago
Capostrophic 8265ebc484 Fix spell school calculation 5 years ago
Andrei Kortunov add42830d9 Add a flag to use double-precision functions from Bullet 5 years ago
Andrei Kortunov e827d9c04f Disable physics profiler, if Bullet was compiled without profiling support 5 years ago
Bret Curtis c69c7d0b3b
Merge pull request #2049 from elsid/bullet_double_precision
Support bullet double precision
5 years ago
Capostrophic 30558c2434 Try to resolve CI concerns 5 years ago
Evil Eye f0e2ee45fa reuse ImplicitRef and ExplicitRef for enable, disable, getdisabled, startscript; move scriptrunning and stopscript 5 years ago
elsid 2d7c3bae61
Support bullet with double precision 5 years ago
elsid ef5a5ef43f
Print not matched values with full precision 5 years ago
Capostrophic 110e3761bf Disable small feature culling for orthographic cameras 5 years ago
Capostrophic 77bdd124ee Address akortunov's save loading message complaints
Add quotes to the character's name
Don't print the full path to save file
Use better terminology
5 years ago
Bret Curtis 42cba092b7
Merge pull request #2716 from akortunov/png
Store fog of war as a PNG image instead of TGA
5 years ago
Bret Curtis b7c33dbe0a
Merge pull request #2831 from Capostrophic/pursue
Allow guards to pursue an invisible player (bug #4774)
5 years ago
Bret Curtis 4b30bf5699
Merge pull request #2829 from Capostrophic/logging
Log some more things
5 years ago
Bret Curtis 62290182eb
Merge pull request #2648 from Assumeru/start-scripts
Allow targeting non-unique actors with StartScript. Fixes #2311
5 years ago
Bret Curtis 507adac8cd
Merge pull request #2783 from akortunov/input
Refactor InputManager
5 years ago
Capostrophic ece0db4f82 Cap movement animation playback speed 5 years ago
unknown 3b4782959e Allow targeting non-unique actors with StartScript (bug #2311) 5 years ago
Andrei Kortunov 41beca8125 Refactor actions order setup 5 years ago
Capostrophic a5d0d13e14 Allow guards to pursue an invisible player (bug #4774) 5 years ago
Capostrophic aa5161f99e Log some more things 5 years ago
Andrei Kortunov 8e1f7b00d1
Merge pull request #2826 from Capostrophic/verifier
Verifier: Don't check race of non-skin body parts (bug #5400)
5 years ago
Andrei Kortunov 300b5b2620
Merge pull request #2827 from Capostrophic/dialogue
Only reset dialogue history of dialogue GUI mode is gone
5 years ago
Andrei Kortunov a6514e7740 Add missing include 5 years ago
Andrei Kortunov 73552f1d3c Move control switch reading/writing to relevant class 5 years ago
Andrei Kortunov b4e52a6bc8 Add missing include 5 years ago
Andrei Kortunov 0455f48d02 More formatting changes 5 years ago
Andrei Kortunov b575712cb1 Formatting changes 5 years ago
Andrei Kortunov 85f91a7de8 Remove some redundant code 5 years ago
Andrei Kortunov 3328775eff Unify cursor enabling 5 years ago
Andrei Kortunov b33c4c920c Move all OICS handling to the separate file 5 years ago
Andrei Kortunov 0eb24da2e7 Fix controls disabling 5 years ago
Andrei Kortunov 2f2b3173e3 Fix copy-paste error 5 years ago
Andrei Kortunov 8512133bb1 Move control switches to the separate file 5 years ago
Andrei Kortunov f990150c49 Move video wrapper to the WindowsManager 5 years ago
Andrei Kortunov 13b7c5b519 Rework actions update 5 years ago
Andrei Kortunov d3a9f893c8 Move keyboard-specific code to the separate file 5 years ago
Andrei Kortunov c368250e6a Rename misleading mInputManager variable 5 years ago
Andrei Kortunov e353647d15 Move gamepads handling to the separate file 5 years ago
Andrei Kortunov f9d6137a29 Do not store player reference in the InputManager 5 years ago
Andrei Kortunov ce40294124 Move input actions handling to the separate file 5 years ago
Andrei Kortunov fcac7d3ab7 Split mouse handling to the separate file 5 years ago
Andrei Kortunov 1560e71f4e Move SDL mappigs to the separate file 5 years ago
Andrei Kortunov 3c09d05615 Split actions enum to the separate file 5 years ago
Andrei Kortunov 15dc4d241d Split sensors handling so the separate file 5 years ago
Capostrophic 45e6a03937 Only reset dialogue history of dialogue GUI mode is gone 5 years ago
psi29a b72720f357 Merge branch 'shadow-transparency-rework' into 'master'
Only alpha-test shadows when necessary

See merge request OpenMW/openmw!170
5 years ago
Capostrophic 039c9a37eb Verifier: Don't check race of non-skin body parts (bug #5400)
Remove unnecessary flag field check
Remove magic numbers
5 years ago
Alexei Dobrohotov 12833d66af
Merge pull request #2822 from Assumeru/magic-ai-numbers
Remove magic numbers and casts
5 years ago
Giovanni Bodega 8a8b4986da Fixed passed indexes for object deletion #5384 5 years ago
Evil Eye 19f12cb3fe remove magic numbers and casts 5 years ago
Evil Eye f9881b699c remove redundant templating 5 years ago
Bret Curtis b4aeb2711c
Merge pull request #2809 from Capostrophic/spellcasting
Refactor spellcasting header and implementation (task #5339)
5 years ago
Bret Curtis b8c467e2e0
Merge pull request #2787 from p4r4digm/screenshot-path
Added setting to change the directory screenshots are stored in
5 years ago
elsid 1f3dfaedcc
Add tests for ShaderManager 5 years ago
fredzio 947f3cf13c Optionally change color of keywords in the dialogue window based on the
next answer:
- if the answer was already heard, apply "color topic exhaused" setting
- if the answer was never heard, and the current actor is specified in
the dialog, apply "color topic specific"
- otherwise, do nothing special
5 years ago
Bret Curtis a23ab48251
Merge pull request #2708 from elsid/detournavigator_limit_update_frequency
Limit frequency for navmesh updates
5 years ago
Alexei Dobrohotov 7ba8176862
Merge pull request #2819 from elsid/fix_ub
Fix UB in NpcAnimation::mNpcType initialization
5 years ago
elsid b150d681a9
Update same navmesh tile with limited frequency 5 years ago
elsid 6d8debe009
Initialize variable without reading itself 5 years ago
Capostrophic 87ba0bb0e0 Fix usage of uninitialized weapon type in equipmentChanged() 5 years ago
Bret Curtis 5f0f2f0f16 rename to better reflect what is going on per AnyOldName3 comment; added none option 5 years ago
Bret Curtis b7f7aabd8b
Merge pull request #2806 from elsid/detournavigator_tests
Add detournavigator test for multiple worker threads
5 years ago
Bret Curtis 7345c89b54
Merge pull request #2813 from Capostrophic/collisionswitch
Fix collision switch node mask (again)
5 years ago
Capostrophic 844838c46a Revert an invalid attempt to autoequip shields instead of torches 5 years ago
Bret Curtis ae729a1ac7 add ability to set the type of near far method to be used in shadow calculation; default to bounding volumes; cleaned up code while there and re-ordered items 5 years ago
Capostrophic 89282d14aa Fix collision switch node mask (again) 5 years ago
AnyOldName3 a3b032bf2b Fix chameleon shadows 5 years ago
Capostrophic 69cd53ef8a Fix reflect 5 years ago
Capostrophic e7f91ff341 Simplify some inflict() logic 5 years ago
Capostrophic 4c1c30db33 Address akortunov's concerns regarding spell refactoring
Separate linked effect handling into linked effects header
Separate spell absorption handling into spell absorption header
Make armor disintegration loop a range-based for loop
5 years ago
bzzt dc33eeadf1 tightscenebound is uncessary after water bbfix 5 years ago
elsid bd1ef4dd6d
Add detournavigator test for multiple worker threads 5 years ago
Alexei Dobrohotov d42cb4f16d
Merge pull request #2805 from elsid/detournavigator_update_callback
Use callback to handle changed tiles
5 years ago
Capostrophic b1d857818d Clean up CastSpell 5 years ago
Capostrophic 8d22e075e6 Separate functions that don't belong to CastSpell class 5 years ago
Alexei Dobrohotov afa502cfba
Merge pull request #2800 from elsid/rm_unused
Remove unused code
5 years ago
Capostrophic db13984db0 Separate spell resistance 5 years ago
Capostrophic 5973285446 Move isSummoningEffect to summoning 5 years ago
Capostrophic 5535a7fb44 Move getSummonedCreature() to summoning 5 years ago
Capostrophic a3cd3281fb Use an array instead of a map in spellSchoolToSkill() 5 years ago
Capostrophic 4838cf7362 Clean up spellcasting 5 years ago
elsid df6e85b619
Use callback to handle changed tiles
Instead of collecting changed tiles into a temporary vector.
5 years ago
elsid ffacc30597
Use std::array for a list of extensions
This list doesn't change and the size is known at compile time.
5 years ago
elsid 975e4f9908
Fix warning -Wrange-loop-construct
apps/openmw/mwgui/loadingscreen.cpp:81:36: warning: loop variable 'extension' of type 'const std::__cxx11::basic_string<char>' creates a copy from type 'const std::__cxx11::basic_string<char>' [-Wrange-loop-construct]
                    for(auto const extension: supported_extensions)
                                   ^
apps/openmw/mwgui/loadingscreen.cpp:81:25: note: use reference type 'const std::__cxx11::basic_string<char> &' to prevent copying
                    for(auto const extension: supported_extensions)
                        ^~~~~~~~~~~~~~~~~~~~~
                                   &
5 years ago
elsid ee60d4bcea
Remove unused ItemStack::stacks 5 years ago
psi29a 3b9a51b8ac Merge branch 'bzzt_1_waterculling' into 'master'
waterculling

See merge request OpenMW/openmw!184
5 years ago
Bret Curtis e7795f2bf7
Merge pull request #2775 from Capostrophic/dooractivation
Only disarm traps with keys when the door/container is locked (bug #5370)
5 years ago
bzzt ed20d869b4 waterculling for both terrain 5 years ago
Bret Curtis e791e65684
Merge pull request #2793 from Capostrophic/distancebias
Pick the correct aggressive actor in fight distance bias calculation
5 years ago
David Cernat 65a669344b Merge branch 'magic_numbers' into 'master'
compromise on magic numbers making things easier to follow

See merge request OpenMW/openmw!181
5 years ago
Bret Curtis c359406473 taking anyoldname3 review comments to heart; typo fixes plus rebase 5 years ago
bzzt 1cd4b9ee68 fixes shadows on savegame screenshot 5 years ago
Bret Curtis 6316227594 hpp not cpp; review 5 years ago
Capostrophic 40766d746c Pick the correct aggressive actor in fight distance bias calculation 5 years ago
Bret Curtis 68549828b4 create static functions to set/get hidden node mask; compromise on magic numbers to make things easier to understand 5 years ago
Bret Curtis e1a5435531 Merge commit '8a8107e8' 5 years ago
Capostrophic 9106e3646c Fix outdated bug tracker links 5 years ago
Capostrophic 6731843691 Consider the first person movement sneaking if it's actually sneaking 5 years ago
Capostrophic dab09180ae Make sure non-carriable light sources can't be picked up 5 years ago
Bret Curtis 8a8107e837 as it says; revert vismask and uncomplicate openmw 5 years ago
AnyOldName3 02b8dffdd0 Merge branch 'floattest' into 'master'
Use approximate comparison for floating point in test

See merge request OpenMW/openmw!163
5 years ago
p4r4digm 0741fe5b80 removed path configuration and made screenshots just save in a folder 5 years ago
p4r4digm 2b54e6216b Added setting to change the directory screenshots are stored in 5 years ago
Alexey Sokolov ddab86d940 Use approximate comparison for floating point in test
This fixes test suite on my machine
5 years ago
Bret Curtis 8c2f3ff007 clean up code; purge const_cast 5 years ago
Bret Curtis 4ae0bd1fae Merge branch 'helplink' into 'master'
Link to readthedocs documentation from OpenCS

See merge request OpenMW/openmw!171
5 years ago
Frederic Chardon 513ac8986d Add link to opencs documentation on readthedocs, available through
context menu.
The documentation opens in default browser.

There are 3 contexts:
- global: opens the OpenMW CS User Manual main page
- when a record is selected: opens the "Tables" page
- when the filter field is selected: opens the "Record Filters" page

There is also a link to the OpenCS tutorial in the help menu.
5 years ago
Alexei Dobrohotov b5ff32569b
Merge pull request #2768 from glassmancody/tabfix
Fix tab focus for pinned windows
5 years ago
Bret Curtis bcc211cb5b
Merge pull request #2776 from Capostrophic/esmtool
Revise esmtool cell reference output
5 years ago
Bret Curtis 26ce8bc3f6
Merge pull request #2778 from elsid/fix_tests_build
Specialize DetourNavigator::ObjectId ctor for pointers
5 years ago
Capostrophic fbcc8ef046 Reset dialogue history when the window can't track what closed it 5 years ago
elsid 208a50340d
Specialize DetourNavigator::ObjectId ctor for pointers
To fix msvc error:
components\detournavigator\objectid.hpp(14,13): error C2440: 'reinterpret_cast': cannot convert from 'const T' to 'size_t'
          with
          [
              T=unsigned long
          ]
5 years ago
Capostrophic 5dc8da5f67 Only disarm traps with keys when the door is locked (bug #5370) 5 years ago
Capostrophic 4e22f03ece Revise esmtool cell reference output 5 years ago
Andrei Kortunov 8d4dde7b56
Merge branch 'master' into autocalc 5 years ago
Andrei Kortunov 0bc40e1002
Merge branch 'master' into dialogue 5 years ago
Andrei Kortunov 844b6011bc
Merge branch 'master' into startscript 5 years ago
Andrei Kortunov cb6707624d
Merge branch 'master' into soul 5 years ago
Andrei Kortunov 31cc1e0f66
Merge branch 'master' into quickkeys 5 years ago
Andrei Kortunov 4c8cc0e54f
Merge pull request #2774 from Capostrophic/levelledscale
Properly utilize creature levelled list's scale (bug #5369)
5 years ago
Cody a34fe1d9b2 proper game mode detection 5 years ago
Capostrophic 07779d7fcf Properly utilize creature levelled list's scale (bug #5369) 5 years ago
Capostrophic 9dbdbbaea7 Only clear dialogue history if the dialogue window is closed (bug #5358) 5 years ago
Capostrophic 96a447ee3a Show the soulgem soul in count dialog (feature #5362) 5 years ago
Cody 8e741a0d0b fixed tab focus for pinned windows 5 years ago
Capostrophic f79e20379b Make sure it's a crime to unlock owned doors 5 years ago
Capostrophic de7ecddbb8 Don't play equip sound for reactivated quick key items (bug #5367) 5 years ago
Capostrophic ad333e88fe Handle enchantment autocalc flag as a flag (bug #5363) 5 years ago
Capostrophic feeab8a335 Make adding non-existent global script more forgiving (bug #5364) 5 years ago
Nelsson Huotari 42c7ec8f1c Minor fix to calculation of mLandSizeFactor (-1) 5 years ago
Andrei Kortunov 023c51ad0e Fix int/float conversions in the CSVRender::BrushDraw 5 years ago
Andrei Kortunov 9712925ba3
Merge pull request #2762 from akortunov/warnfix
Avoid a hack to initialize mIndex in the editor
5 years ago
Andrei Kortunov c7cedc4e5a Avoid a hack to initialize mIndex 5 years ago
Bret Curtis d3b898de88
Merge pull request #2749 from akortunov/sound_pause
Pause audio and video when the game is minimized
5 years ago
Bret Curtis 7fda65e7bb
Merge pull request #2692 from unelsson/opencsbrushdraw
Editor: Implement brush outlines
5 years ago
Andrei Kortunov e444766901 Use enums for blockers IDs instead of strings 5 years ago
Bret Curtis 328c3617b7
Merge pull request #2752 from Assumeru/parsing-errors
Reset errorhandler context
5 years ago
Andrei Kortunov 2254256db9 Pause both audio and video playback when the game is minimized (feature #4944) 5 years ago