Commit Graph

9026 Commits (openmw-39)

Author SHA1 Message Date
scrawl c4d38bb42d Fix clang analyzer warnings 9 years ago
scrawl 83a9a164bc Raise the required bullet version to 2.83
2.82 appears to have a bug that causes the player to be able to phase through certain objects (bug #1587).
9 years ago
Marc Zinnschlag 28e3fe837f Merge remote-tracking branch 'scrawl/osg_34' 9 years ago
Marc Zinnschlag 29c2a99316 Merge remote-tracking branch 'scrawl/physics' 9 years ago
Marc Zinnschlag d1d7804620 Merge remote-tracking branch 'origin/master' 9 years ago
scrawl eaf3f5a829 Remove unused arguments 9 years ago
scrawl 796a4a795a Avoid the 'spiral of death' 9 years ago
scrawl 383524c688 Run physics in fixed timesteps, use the remainder to interpolate between current and previous state
Based on http://gafferongames.com/game-physics/fix-your-timestep/
9 years ago
scrawl d1375cd3a3 Crashcatcher: limit backtrace to a sensible number of stack frames
When a stack overflow occurs, trying to print the whole stack would cause the process to hang indefinitely.
9 years ago
scrawl 5824619a95 Clean up includes 9 years ago
scrawl 8b596dfcbe Remove support for OSG 3.2
Since commit e8662bea31, we're using OSG functionality that contains an unfixed crash bug in version 3.2. The bug is fixed in version 3.4 (OSG commit 6351e5020371b0b72b300088a5c6772f58379b84)
9 years ago
scrawl 48ac0bef3e Repair save games affected by bug #3080 (Fixes #3160) 9 years ago
scrawl 6bfeb118d7 Fix cleanup issue 9 years ago
scrawl d3808580b0 Rename lightRoot to sceneRoot 9 years ago
scrawl fb219fea17 Fix respawning of NPCs/creatures when they were moved to a different cell 9 years ago
Marc Zinnschlag da6dcfc49e Merge remote-tracking branch 'scrawl/resource' 9 years ago
scrawl 5e876b1379 Add missing include 9 years ago
scrawl 9f729667fb Remove debug output 9 years ago
scrawl 0865cea211 Preload terrain 9 years ago
scrawl 596fe56bfd Make Land::loadData thread safe 9 years ago
scrawl 1457a0de78 Use the UnrefQueue to delete BulletShapeInstances 9 years ago
scrawl 3552b3a82c Don't create a BulletShapeInstance for actors 9 years ago
scrawl 246566cef4 Preload instances in BulletShapeManager 9 years ago
scrawl e28dc3e72f Preload instances in SceneManager 9 years ago
scrawl ce3cce24a5 Remove unneeded dynamic_cast 9 years ago
scrawl 8ece1885cd Animation: don't create the NodeMap if we don't need it 9 years ago
scrawl ae031b23d4 Do not detach NPC parts in destructor 9 years ago
scrawl d11c2864df Introduce UnrefQueue to handle the deleting of no longer needed objects in the background thread 9 years ago
scrawl f6f9eff9a6 Preload levelled creatures 9 years ago
scrawl 6806741d9b Add settings for disabling the individual preloading types 9 years ago
scrawl 10a3e270a3 Preload fast travel destinations 9 years ago
scrawl 1cda2bf796 Preload sky & water from the main menu 9 years ago
scrawl f9082502f8 Move construction of WorkQueue to RenderingManager 9 years ago
scrawl d16450bff2 Fix correctActorModelPath in preloader not being used 9 years ago
scrawl 1b8e82e929 Preload NPC body parts 9 years ago
scrawl 84dcf59c50 Fix preloading of equipment parts that don't separate gender 9 years ago
scrawl effe022bb2 Move preload model list to MWClass, preload NPC head/hair 9 years ago
scrawl fc0be77e4c Preload keyframes 9 years ago
scrawl ef5de94548 Fix correctActorModelPath 9 years ago
scrawl e4e313fe12 Remove outdated comment 9 years ago
scrawl c8054424c9 Preload items equipped by NPCs 9 years ago
scrawl a81b10b415 Make the cache expiryDelay configurable 9 years ago
scrawl 5efaa9817c Add preloading settings 9 years ago
scrawl 610257cd3a Preload the exterior cell grid 9 years ago
scrawl 8592166eeb Preload surrounding cells when preloading an exterior cell destination 9 years ago
scrawl 023c87b215 Preload cell when the player goes near a teleport door. It works! 9 years ago
scrawl a7b217def2 AI: don't cast fortify effects (Fixes #3184) 9 years ago
scrawl 162287b82d AI combat actions: rename 'target' to 'enemy' 9 years ago
scrawl 94c05c6baa AI: don't cast useless resist spells (Fixes #2760) 9 years ago
scrawl d3415387a5 AI: take into account success chance when rating a spell 9 years ago
scrawl d855a13b44 Clear the resource cache from the worker thread 9 years ago
scrawl 6f9ca0f68f Add basic cell preloader class
Not properly in use yet, but seems to be working.
9 years ago
scrawl df57d4bfba Use a common base class for resource managers
Implement updateCache to delete unreferenced cached objects when they have not been referenced for a while.
9 years ago
scrawl a72af4a1a3 cout that should be cerr 9 years ago
scrawl 9e5225bb6f Do not unref a Texture's image data after applying it 9 years ago
scrawl 499beda665 Clear terrain texture cache before applying filter settings 9 years ago
scrawl 9e53e12c70 More renaming of TextureManager -> ImageManager 9 years ago
scrawl 5ee3d1698f Remove getWarningTexture in favor of getWarningImage 9 years ago
scrawl f99f403dda Rename TextureManager to ImageManager 9 years ago
scrawl 6ef848b7c5 Remove TextureManager::getTexture2D
Instead use getImage and let the caller create the Texture. Sharing of textures is then handled in post by the SharedStateManager.

This is closer to what the OSG serializer does.

Streamlines the TextureManager and will make it easier to multithread.
9 years ago
scrawl e8662bea31 Change the way that image origin is converted to OpenGL's lower-left convention
Flip the texture coordinates instead of flipping textures.

This simplifies the TextureManager (no need to worry if the caller wants flipping or not), should make it easier to generalize & multithread it.
9 years ago
scrawl 5b972ee777 Move texture filtering settings to SceneManager
Practical benefits:

- Filter settings are now applied to native OSG format models. These models do not use TextureManager::getTexture2D since the model itself specifies a Texture.
- The GUI render manager will be able to use its own separate textures, making it easier to turn off filtering for them.
9 years ago
scrawl c9a67ab423 Do not add scripts from levelled creatures twice (Bug #2806)
Do not insert objects from within a CellStore visitor
9 years ago
scrawl 8e5398d85b Add missing initializations 9 years ago
scrawl 7d647088ab Make the local map cell distance configurable 9 years ago
scrawl bd655c20fd Refactor local map updates
We don't need the delay any more because the rendering itself is part of the normal rendering traversal - so it's delayed anyway.

Don't request maps that we're not actually using (i.e. with cell grid sizes higher than the default 3, we were rendering more maps than the map window could show).
9 years ago
scrawl 300379617e Accept a const CellStore in findInteriorPositionInWorldSpace 9 years ago
scrawl 41ebf62fb1 Accept a const CellStore in getNorthVector 9 years ago
Marc Zinnschlag 11a4a31bfd Merge remote-tracking branch 'scrawl/localscripts' 9 years ago
scrawl 69c2c4fcc1 updateMergedRefs before reading MVRF tags (Fixes #3161) 9 years ago
scrawl cc3563359e Refactor local script iteration (Fixes #2806, Fixes #3108)
This should be much safer. Don't use recursion. Don't fail if mIgnore happens to be in the list twice. Don't rely on preconditions / assertions.
9 years ago
scrawl 187d2bccda Warn about adding a local script twice (Bug #2806) 9 years ago
scrawl aa9905b0eb Do not crash when the water normal map is missing (Fixes #3179) 9 years ago
scrawl 74c18f532e Fix comment 9 years ago
scrawl 5878291064 Fix the path correction for animation sources provided in NPC record (Fixes #2444) 9 years ago
scrawl b9d1d6144a Don't reveal unknown potion effects in alchemy window (Fixes #3146) 9 years ago
scrawl d3b76b7006 Don't stack Ai packages (Fixes #3101, Fixes #3080, Fixes #2697) 9 years ago
scrawl 7aeafd3bb9 Revert "Apply the AiTravel maxRange to AiEscort as well (Fixes #2697)"
This reverts commit 1f543b4d79.
9 years ago
scrawl 145756c0a1 Partly revert "Avoid directly iterating the actor map (Fixes #3173)"
Caused issues when a summoned creature is removed as part of the magic effect update.

Fixes #3178
9 years ago
scrawl 59d2de118f Avoid directly iterating the actor map (Fixes #3173) 9 years ago
scrawl 50ed061154 AiWander: reset mAllowedNodes on cell change (Fixes #3176, Fixes #3130) 9 years ago
scrawl dda4273349 Actors that start the game as dead do not float to the surface (Fixes #3177)
This has a minor bug (can you spot it?) that affects the vanilla engine as well, unfortunately not so simple to fix.
9 years ago
scrawl 832eaae27b Do not apply effects with CasterLinked flag when there is no valid caster 9 years ago
scrawl c34314ae26 When an actor dies purge all spell effects cast by that actor (Fixes #3175) 9 years ago
scrawl c403a6b113 Don't apply constant magic effects to dead actors (Fixes #3174) 9 years ago
Alexander "Ace" Olofsson 776c715ccd Move NoTraverseCallback to mwrender/util.hpp 9 years ago
scrawl aec8c38461 Move observer_ptr include where it belongs 9 years ago
scrawl fc6fe9acfb Do not crash ModVertexAlphaVisitor when there are no vertex colors 9 years ago
Tobias Kortkamp 0659687bfb Some fixes for building on FreeBSD 9 years ago
scrawl b0431833a1 Fix some defects reported by Coverity CI 9 years ago
scrawl f0971ee8ad Implement Fixme script instruction 9 years ago
scrawl ce9a18fb87 Merge pull request #879 from jordan-ayers/bugfix/1544
Improve Drop Command - Bugfix/1544
9 years ago
Jordan Ayers 5699cf7f09 Barter: Leave unsold projectiles equipped. 9 years ago
Jordan Ayers 1ff49cc637 Improve Drop command behavior. (Fixes #1544) 9 years ago
Jordan Ayers c82d9a1e87 Adjust ContainerStore / InventoryStore to allow partial unequip of items. 9 years ago
scrawl 87beb73970 Correction 9 years ago
scrawl fbf07133ea Document usage of node masks 9 years ago
scrawl 41c571d4f4 Merge branch 'master' of https://github.com/OpenMW/openmw into lighting
Conflicts:
	apps/opencs/view/render/instancemode.cpp
9 years ago
scrawl 4f2a031f4e Improve error message 9 years ago
scrawl 0b84b3c2cf Don't crash when region weather chances don't add to 100
The invalid weather ID was resulting in out-of-bounds vector access later in the code.
9 years ago
Jordan Ayers 2ce2e8a1e7 Add missing OOB slot check to InventoryStore. 9 years ago
scrawl ef1a1125e0 Fix an error in restocking logic (Fixes #3131) 9 years ago
scrawl 4e6a60672d When a spell explodes on an actor do not apply it to that actor twice (Fixes #3142) 9 years ago
scrawl 3089aeccc4 Factor out SceneUtil::addLight 9 years ago
scrawl 438b30d6f0 Move configureLight to a separate file 9 years ago
scrawl 6546c05428 Move Fallback map to components/ 9 years ago
scrawl f315a4386f Accept an implicit reference in Journal (Fixes #3135) 9 years ago
scrawl ef20962fc5 Disable fog of war rendering on the HUD map by default 9 years ago
scrawl ca4e859f61 Remove unused argument 9 years ago
scrawl 4690fd3f22 Change the local map exploration radius to better match the original engine 9 years ago
scrawl 4f8f166f69 Fix GetPcInJail to work as in the original engine 9 years ago
scrawl 190bf15887 SettingsWindow: support auto-updating of slider labels through the layout file 9 years ago
scrawl 745b29a995 Remove a debugging leftover 9 years ago
scrawl d9d6228c94 Implement PageDisplay::_updateView (Fixes #3125) 9 years ago
scrawl 5952498e9e Explicitely cast a size_t to int 9 years ago
scrawl 446c714727 Fix a possible memory leak in error case 9 years ago
scrawl e6619c5306 Rebuild actor animations on resurrection (Fixes #3124)
A new animation is necessary to set up the correct InventoryStore listener, to get notified of changes like the actor no longer being a werewolf, etc.
9 years ago
scrawl daa94cc50e Fix cppcheck warnings 9 years ago
Poncho b1020dcd42 Use correct direction multipliers during awareness check 9 years ago
scrawl 1905f0bf2d Add support for placing BodyParts in a cell (Bug #3118) 9 years ago
scrawl a9f0f30bb8 Reject conditions testing agaist Choice when not currently in a choice (Fixes #3117) 9 years ago
scrawl 0333c40047 Fix typo in SameRace dialogue function (function was inverted, Fixes #3116) 9 years ago
scrawl 6fde02ea42 LocalScripts: initialize mIter 9 years ago
scrawl 7f7e8c63bf Correct path to gamecontrollerdb.txt (Fixes #3112) 9 years ago
scrawl 63b9b075aa Do not allow soul trapping the same creature more than once (Fixes #3102) 9 years ago
scrawl 0bec6e5fbe Fix 'failed to find animation' warnings when a spell was equipped before the werewolf transformation 9 years ago
scrawl 6b67911658 Unset DrawState_Spell when becoming a werewolf 9 years ago
scrawl f052c05018 Move werewolf functions from World to MechanicsManager 9 years ago
scrawl 53334d08a2 Disable Ready Magic and Cycle Weapon/Spell hotkeys for werewolves (Fixes #3100) 9 years ago
scrawl a1e163ed20 Correct an error in the timestamp subtracting logic (Fixes #3105) 9 years ago
scrawl db7b80b503 Revert "Accept a ConstPtr in ItemPtr tooltips"
This reverts commit 41c8ec56e0.

Does not work due to code relying on getting the non-const Ptr from the widget. Further refactoring is needed.
9 years ago
scrawl 2176ac592c Call updateDialogueGlobals before dialogue starts (Fixes #3034) 9 years ago
scrawl 5ac226f519 Another collision mask fix 9 years ago
scrawl e5d9ee30f4 Add count argument to copyObjectToCell
Fixes the gold bug introduced in c9ca5bc946
9 years ago
scrawl 41c8ec56e0 Accept a ConstPtr in ItemPtr tooltips 9 years ago
scrawl 5a7bbbd508 Accept a ConstPtr in ToolTips::setFocusObject 9 years ago
scrawl 32d5dece58 Add count argument to getToolTipInfo 9 years ago
scrawl 0d4729dcd5 Use the const version of CustomData::as* 9 years ago
scrawl 16e3699739 Fix collision mask in castSphere 9 years ago
scrawl b0894ea20d Accept a ConstPtr in hasToolTip 9 years ago
scrawl 29d0f448b4 Add const version of World::getAnimation 9 years ago
scrawl 51c77c5045 Accept a ConstPtr in getDoorState 9 years ago
scrawl 7a2ca5580a Accept a ConstPtr in RippleSimulation 9 years ago
scrawl 53f4b92426 AiEscort do not follow target through doors
Testing revealed a problem where the guard on the prison ship would incorrectly follow the player outside. Upon further investigation in vanilla MW, it appears that with AiEscort the actor only follows the target through doors once the AiEscort package has completed, *and* no new AI package is running yet.
9 years ago
scrawl 2c51e7345f Use a separate collision type for doors (Fixes #1962) 9 years ago
scrawl 604b5d24e9 Use a ConstPtr in SoundManager 9 years ago
scrawl a0fb31e3b1 Accept a ConstPtr in getLOS 9 years ago
scrawl 029d467ea5 Accept a ConstPtr in getItemsOwnedBy, getContainersOwnedBy 9 years ago
scrawl 388aed1748 Accept a ConstPtr in findContainer, collision script functions, getUnderwater functions 9 years ago
scrawl ed101ad35a Remove redundant getPlayerAnimation function 9 years ago