Commit Graph

12250 Commits (move)

Author SHA1 Message Date
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
Alexander "Ace" Olofsson d3da51bbb2 Merge branch 'master' of git://github.com/OpenMW/openmw into appveyor 9 years ago
scrawl a1e163ed20 Correct an error in the timestamp subtracting logic (Fixes #3105) 9 years ago
Alexander "Ace" Olofsson fe241be26c Merge branch 'master' of git://github.com/OpenMW/openmw into appveyor 9 years ago
Alexander "Ace" Olofsson 2142d0d2d6 Make Qt5 happy 9 years ago
Marc Zinnschlag 2162f21550 Merge branch 'drop' 9 years ago
Aesylwinn 9bd14215d7 Expanded inventory check to creatures and NPCs 9 years ago
Aesylwinn 4c14117761 Added checks to verifier for container inventories 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
scrawl c9ca5bc946 Accept a ConstPtr in placeObject 9 years ago
scrawl 6c505ca06f Accept a ConstPtr in getHitContact 9 years ago
scrawl 0796f49c17 Accept a ConstPtr in various physics getters 9 years ago
scrawl 795032621c Use a ConstPtr for the ActorMap and ObjectMap 9 years ago
scrawl 7a8a7e3dd6 Add const version of getAnimation 9 years ago
scrawl 7a4aac1842 Use a ConstPtr for the PtrAnimationMap 9 years ago
scrawl 553132cb51 Accept a ConstPtr in launchProjectile 9 years ago
scrawl 8f9fc87565 Accept a ConstPtr in LocalScripts::setIgnore 9 years ago
scrawl 1212c07266 Pass a string by reference 9 years ago
scrawl f35ab12979 Accept a ConstPtr in InventoryStore::isEquipped 9 years ago
scrawl 3856f931db Accept a ConstPtr in ContainerStore::addNewStack 9 years ago
scrawl e1c6261fee Accept a ConstPtr in ContainerStore::getType 9 years ago
scrawl edde5bd065 Accept a ConstPtr in ContainerStore::stacks 9 years ago
scrawl 04f7a8f8eb Remove redundant getId function 9 years ago
scrawl 266fbbef48 Accept a ConstPtr in canLock 9 years ago
scrawl c43f80633a Accept a ConstPtr in getEnchantmentPoints 9 years ago
scrawl 303521002d Accept a ConstPtr in adjustScale 9 years ago
scrawl 09bdb0ad4b Accept a ConstPtr in getServices 9 years ago
scrawl 648ee6e7fb Accept a ConstPtr in applyEnchantment 9 years ago
scrawl 3c98f8dde3 Accept a ConstPtr in isPersistent 9 years ago
scrawl 3fe3091275 Accept a ConstPtr in isEssential 9 years ago
scrawl 4a47fc32fa Accept a ConstPtr in getBloodTexture 9 years ago
scrawl 2bd8d60e9f Accept a ConstPtr in getPrimaryFaction, getPrimaryFactionRank 9 years ago
scrawl 2ac92012e8 Accept a ConstPtr in isClass 9 years ago
scrawl 5b082be79f Accept a ConstPtr in getBaseGold 9 years ago
scrawl da7ebfde99 Accept a ConstPtr in copyToCell 9 years ago
scrawl 954186fe1e Accept a ConstPtr in canFly, canSwim & canWalk 9 years ago
scrawl b09bdd6af5 Accept a ConstPtr in isBipedal 9 years ago
scrawl 92a3acfa56 Accept a ConstPtr in getBaseFightRating 9 years ago
scrawl d120f76031 Accept a ConstPtr in getSound 9 years ago
scrawl d77f785cbc Accept a ConstPtr in get*SoundId 9 years ago
scrawl dc92fefd2b Accept a ConstPtr in canBeEquipped, getEquipmentSlots & hasItemHealth 9 years ago
scrawl e0bb284804 Accept a ConstPtr in getWeight 9 years ago
scrawl 0047a2d330 Accept a ConstPtr in canSell 9 years ago
scrawl 2bc851c7d3 Accept a ConstPtr in getEnchantment 9 years ago
scrawl beb8805a12 Accept a ConstPtr in getInventoryIcon 9 years ago
scrawl f258c5c508 Accept a ConstPtr in getModel 9 years ago
scrawl d9bbd83b09 Accept a ConstPtr in getToolTipInfo
Accept a ConstPtr in functions used by getToolTipInfo
9 years ago
scrawl d3d6a69eea Merge pull request #862 from scrawl/const
ConstPtr
9 years ago
scrawl bc50587e71 Remove comment 9 years ago
Marc Zinnschlag 102397067c added interface for per edit-mode drop handling 9 years ago
Marc Zinnschlag 37a72d1ea6 reject unsuitable drops to WorldspaceWidget earlier 9 years ago
scrawl b2add6470b Missing include fix 9 years ago
scrawl 1c8244276d Exception handling improvements (Bug #3090) 9 years ago
scrawl a344183247 Comment fix 9 years ago
scrawl ed3486e816 Improve const-correctness in writeAdditionalState 9 years ago
scrawl b48445dea7 Accept a ConstPtr in getScript 9 years ago
scrawl eb51e2838f Utilize the mHasCustomData flag in writeAdditionalState 9 years ago
scrawl 19d87c78f2 Add CellStore::forEachConst 9 years ago
scrawl d4eba794c3 Add ConstPtr 9 years ago
scrawl c9d02c67c0 Remove unneeded const_cast in TerrainStorage 9 years ago
scrawl 2fe2f53b02 Set the changed flag in CellStore::search (Fixes #3089) 9 years ago
scrawl 04b6571d7d Fix logic for scripting access of deleted objects 9 years ago
scrawl e564c26314 Fix deleted objects being accessible in the Cells cache 9 years ago
scrawl deb7f3caf6 Print deletion state in ObjectReferenceInfo 9 years ago
scrawl 689dea4cb3 Add instant spell effects to the actor's magic effect list
Via http://forum.openmw.org/viewtopic.php?f=2&t=3212&start=20#p36208
9 years ago
scrawl d6bcb7906d Fix crash in a warning message 9 years ago
Marc Zinnschlag 6b626c2954 spelling fixes 9 years ago
scrawl fce43854bc Fix last commit 9 years ago
scrawl 0a723ab075 Animation: do not assume the object root is a Group 9 years ago
scrawl 31c3324705 Don't assume the emitter node is a Group (Fixes #3082)
This would be a correct assumption by default, but is no longer true when the NifLoader::optimize() function optimizes the graph.
9 years ago
scrawl 8222c78cf2 Do not filter creature dialogue by NPC-only conditions (Fixes #3086) 9 years ago
scrawl d5a2586f38 LoadingScreen: add support for important labels
Used in saveGame so the player can be sure whether or not the game was saved.

Fixes #3074
9 years ago
scrawl 67883feaae LoadingScreen: ensure values are within progress range 9 years ago
scrawl 625644e917 LoadingScreen: documentation updates 9 years ago
scrawl 152f1d625d LoadingScreen: remove unused declarations 9 years ago
scrawl ccbba5e926 LoadingScreen: remove indicateProgress, not used 9 years ago
scrawl 375caf037d Don't applyInstantEffect when magnitude is zero 9 years ago
scrawl 4af376133b Don't tick effects when duration is zero 9 years ago
scrawl 6ee7c61667 CSMPrefs: fix deadlock in toColor() 9 years ago
scrawl 4553db7b43 Merge pull request #861 from scrawl/soundcrash
Fix crash when running out of sound sources
9 years ago
scrawl 6a749e77f2 Fix crash when running out of sound sources 9 years ago
Marc Zinnschlag 9c7bbd667b Merge branch 'usersettings' 9 years ago
Marc Zinnschlag be19da189a fixed user settings not being saved when last document window is closed while user settings window is still open 9 years ago
Marc Zinnschlag d6bd2cb1f0 changed name of openmw-cs user settings file 9 years ago
Marc Zinnschlag c646533448 removed old user settings system 9 years ago
Marc Zinnschlag 67cf260144 final batch of changing over user settings usage to the new system 9 years ago
Marc Zinnschlag 44925e9fc8 fixed records settings (Text Only wasn't updating) 9 years ago
Marc Zinnschlag 591564566c made user settings access thread-safe 9 years ago
Marc Zinnschlag ecbd68a19b third batch of changing over user settings usage to the new system 9 years ago
Chris Robinson cddea4a99c Start underwater sound after updating sounds
In between the startUpdate/finishUpdate calls, changes are deferred so that
they can happen all at once. This includes starting sounds, so when the
underwater sound is started it will be immediately checked to see if it's
playing. Since it's not yet playing, it'll be seen as stopped and get cleaned
up before ever playing.
9 years ago
Marc Zinnschlag a3a2c2f476 second batch of changing over user settings usage to the new system 9 years ago
Marc Zinnschlag 346052a67a Merge remote-tracking branch 'scrawl/containerscript_fix' 9 years ago
scrawl 572786bff2 Instant effects that were added by a permanent ability are applied every frame
Via http://forum.openmw.org/viewtopic.php?f=2&t=3212&p=36120#p36121
9 years ago
scrawl 271fcb80c6 Remove container scripts before deleting container 9 years ago
Chris Robinson 8c364cd818 Remove left over declaration 9 years ago
Chris Robinson 12eda97e64 Merge remote-tracking branch 'main/master' 9 years ago
Chris Robinson f1faeeae3a Use separate config options for min and mag texture filters 9 years ago
scrawl 2737aabe93 Pc functions apply to creature dialogue (Fixes #3078) 9 years ago
Chris Robinson 5c0a847eaf Combine some duplicate code 9 years ago
scrawl fb9f5f8fe8 Fix typo 9 years ago
Chris Robinson b830a413d3 Rename the texture filter options
To avoid compatibility issues with upgrading from or downgrading to older
builds.
9 years ago
Chris Robinson 646092ce3a Add warnings when loading unknown texture options 9 years ago
Chris Robinson fb6abb53ae Simplify the in-game texture options
This makes it behave like it originally did, although the config options remain
expanded.
9 years ago
Chris Robinson 76bde5ee13 Separate and expand texture filtering options 9 years ago
scrawl a7e0562e1c Fix improper handling of multiple AiFollow packages with the same target (Fixes #3077) 9 years ago
scrawl 64424e7262 Move keyframe loading out of SceneManager to new KeyframeManager 9 years ago
scrawl 359b0b3772 Rename for clarity 9 years ago
scrawl 18cce3a6f9 Don't reset delete flag when loading reference from a save game (Fixes #2724) 9 years ago
scrawl 850092a5e5 Store: be consistent about struct / class usage
Don't inherit a struct from a class, and vice versa.
9 years ago
Marc Zinnschlag cf9fa0e0e9 first batch of changing over user settings usage to the new system 9 years ago
Marc Zinnschlag 0ffe4290fb workaround for MOC's lack of namespace awareness 9 years ago
Marc Zinnschlag 04a11679fb added category update function 9 years ago
Chris Robinson f47f0a996f Stop the object's old say sound before playing the new one 9 years ago
Chris Robinson 7fc2df153a Rename stopSound/stopStream to finishSound/finishStream
Since they're also used to clean up output resources, not just stopping.
9 years ago
scrawl cc2315a0de Minor fix 9 years ago
scrawl b856460f86 ESMStore: fill mIds in setUp() 9 years ago
scrawl ed27f0da25 Merge pull request #854 from kcat/master
Play NPC voices from the head position
9 years ago
Marc Zinnschlag 3a5238bebc changed the settingChanged signature to accommodate queued connections 9 years ago
Marc Zinnschlag 8245b9e439 added interface for querying settings 9 years ago
Marc Zinnschlag 31b105ad9e improved settings layout 9 years ago
Marc Zinnschlag a907b4ab15 made Setting class non-abstract 9 years ago
Marc Zinnschlag 73ffdd5ac5 added colour settings 9 years ago
Chris Robinson 808f701013 Use the actor's Head position for Say streams 9 years ago
Chris Robinson a47bdecac7 Add missing include
Since Ptr is used directly in the header, a forward declaration isn't good
enough.
9 years ago
Chris Robinson a00a4bce77 Avoid some unnecessary indirection 9 years ago
scrawl f1f82af64e Fix improper swimming animations in first person mode 9 years ago
Marc Zinnschlag 590d6eba9b added enum settings 9 years ago
Marc Zinnschlag 8050eba83b added a few comments 9 years ago
Marc Zinnschlag b0fb6d56f1 added bool settings 9 years ago
Marc Zinnschlag 9ca5a1b647 added double settings 9 years ago
scrawl 9bc6f2d5f6 Fix water ripples 9 years ago
scrawl 57b7cac13f Merge pull request #850 from MatthewRock/fix-2952-2
Fix for bug #2952: Enchantment Merchant Items reshuffled EVERY time 'barter' is clicked
9 years ago
MatthewRock ddd4004c95 Fix: remove space 9 years ago
MatthewRock 3b254ad631 Allows the same item to have multiple ancestors 9 years ago
scrawl a8c287c831 Print detected game controllers to the log file 9 years ago
scrawl bdae572264 Merge pull request #840 from scrawl/movedrefs
Object movement between cells
9 years ago
scrawl 6f98982bc2 Make sure that health is >= 1 when resurrecting the player (Fixes #2972) 9 years ago
scrawl 05f1fbf593 WindowManager: explicitely pass the ESMStore
Fixes potential crash when the loading screen layout tries to retrieve a GMST value via #{GMST} syntax before the World has been created.

Possibly related to Bug #2854.
9 years ago
scrawl a699b4128a Add isInCell checks to PlaceAt and PlaceItem (Fixes #2873)
Avoids the game crashing when a script calls these functions before the player has been moved to the starting location.
9 years ago
scrawl 34f48d63f3 Apply spell absorption once per effect (Fixes #2942) 9 years ago
scrawl bc1f7499ab Do not allow deleting the player object (Fixes #2982) 9 years ago
MatthewRock b0e6a52595 Replace ancestor with parent 9 years ago
MatthewRock aa721fe1f6 Fix bug 2952 with merchant and levelled items 9 years ago
scrawl 2f9b404094 InstallationPage: properly exit the QThread (Fixes #2210) 9 years ago
scrawl 1264651af7 Fix coverity defects 9 years ago
Marc Zinnschlag c61d717e41 added integer settings 9 years ago
scrawl e69750905a Fix gcc warning about function casts 9 years ago
scrawl bd68ebac62 GetEffect fix 9 years ago
scrawl 3890afd6f5 Merge pull request #843 from kcat/master
Add HRTF options and fix an incorrect SoundID
9 years ago
Marc Zinnschlag c158224314 fixed a faulty include 9 years ago
Marc Zinnschlag 5e40b4d2e8 page switching mechanism 9 years ago
Marc Zinnschlag 0dc3d10112 some simplification 9 years ago
Marc Zinnschlag 071ba3a4df Merge remote-tracking branch 'scrawl/werewolf' 9 years ago
scrawl 07b064f616 Rename to lowerCaseInPlace 9 years ago
scrawl e3d3380c8c Remove return value for in-place toLowerStr 9 years ago
scrawl 4dd4c5394b Broken lower-casing fix 9 years ago
scrawl 42d68eb7fb Build fix 9 years ago
scrawl f875597be5 Don't use tolower()
See https://forum.openmw.org/viewtopic.php?f=8&t=3231&p=35968
9 years ago
scrawl 1a654fa451 Reset locale after strftime() call 9 years ago
scrawl 152f415b9a Change texture coordinates when falling back to player_hit_01 9 years ago
scrawl 998ef36837 Setting fix 9 years ago
scrawl e520d37c87 Override the field of view for first person meshes (Fixes #858, Fixes #3051) 9 years ago
scrawl 9621b66b78 Move field of view setting to Camera section 9 years ago
scrawl 136a425cec Use the Werewolf field of view override (Fixes #3064)
Need to re-run the settings importer for the feature to work.
9 years ago
scrawl 9d4af59860 Don't attempt to create quest log buttons if textures are unavailable (Fixes #3063) 9 years ago
scrawl 5981e1cbb3 Don't create the werewolf overlay if its texture is not available
Avoiding a warning in the log when Bloodmoon is not installed
9 years ago
scrawl 621347b20f Remove moved ref handling from listRefs()
Not needed since we now load cells when a reference is moved there.
9 years ago
scrawl 1875aa4a18 Restore getNearbyDoor 9 years ago
scrawl f9dd549bff Restore FindContainerVisitor 9 years ago
scrawl 1f543b4d79 Apply the AiTravel maxRange to AiEscort as well (Fixes #2697) 9 years ago
scrawl 65b5cbe3f7 AiEscortCell complains if no cell was given or cell does not exist 9 years ago
scrawl 965bea45c0 AiEscort makes the actor side with target in fights (Bug #2697)
Also will follow the player through teleport doors.
9 years ago
scrawl 4e678ce6b3 Handle mCellId in AiEscort 9 years ago
scrawl 45a609bc54 Improve PositionCell warning message 9 years ago
scrawl 4b0ecaa0a0 Fix physics bug 9 years ago
scrawl 51b892195b Restore getReadOnlyDoors() 9 years ago
scrawl abcf91be5b Port over more game logic to the visitor pattern 9 years ago
scrawl 9ea475d00c Port LocalScripts::addCell to new CellStore interfaces 9 years ago
scrawl a517f4f9ba Add CellStore::forEachType to help with porting over game logic to the new interfaces 9 years ago
scrawl 0af33b5abd Throw exception if moveTo() is passed an object not part of *this 9 years ago
scrawl 176a3c16f4 Resolve moved references loaded from a save game 9 years ago
scrawl 671561ea37 Write moved references to the save game file (not resolved on loading yet) 9 years ago
scrawl 2219231230 Missing updateMergedRefs() 9 years ago
scrawl 138957c49a Special case objects with no refnum 9 years ago
scrawl 5e99a3eda6 Rename CellStore Functor to Visitor 9 years ago
scrawl 2301080c63 Load CellStore when an object is moved there 9 years ago
scrawl 811df1e97b Pass the ESM reader list to CellStore constructor 9 years ago
Paul Cercueil 0765ff3ba2 mwrender: Add missing includes
Those missing includes were causing the build to fail when compiled with
USE_GLES set.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
9 years ago
Marc Zinnschlag b37a2ac09c user settings categories 9 years ago
Marc Zinnschlag 36ce8f97d7 basic framework for new user settings system 9 years ago
Chris Robinson 91cd6be11b Use the correct SoundId for NPC "land" sounds 9 years ago
Chris Robinson c75303b652 Add an option to select and enable HRTF 9 years ago
Marc Zinnschlag 03a0b1fbfd Merge remote-tracking branch 'origin/master' 9 years ago
scrawl 53158d29b1 stopSound crash fix 9 years ago
scrawl 66bcd2fd68 Write save games to a memory stream first
Two motivations for doing this:

- If the user chooses to overwrite existing save file, and there is an exception during the save process, the existing file will not be lost.
- Many small writes to a file are slow. Very slow. Writing to memory first then writing the completed file to disk appears to be ~500% faster.
9 years ago
scrawl 67a6a8f5d4 Make projectiles receive lighting 9 years ago
scrawl 6181594251 Disable freezeOnCull for magic projectile particles 9 years ago
scrawl a8938589f6 Magic projectiles rotate during flight 9 years ago
scrawl 3f93af4181 Projectiles interact with the water surface (Fixes #2986) 9 years ago
scrawl 3dcefd17fc Fix CellStore::count() 9 years ago
scrawl 3aa53f3cb4 Object cell movement tracker works. Savegame handling is still missing and some game functionality is still stubbed out. 9 years ago
scrawl 64b4926127 Add reference moving logic - untested 9 years ago
scrawl 7a983340bf Add comment 9 years ago
scrawl fc449233be Restore support for inserting objects into a cell 9 years ago
scrawl 0975f60d59 Stub out CellStore::get<T> accessors in preparation of reference movement between cells 9 years ago
Marc Zinnschlag 49b37ce8bf Merge remote-tracking branch 'scrawl/geteffect' 9 years ago
scrawl 8e9571d155 Double buffer the light StateAttributes and StateSets
Fixes a race condition where the position of a light could jump a frame ahead.
9 years ago
scrawl f22982d251 Merge pull request #835 from sandstranger/opengles1
enable opengl es1
9 years ago
scrawl 5f349b9a6e Support effects with attribute/skill argument in OpGetEffect 9 years ago
scrawl 1ec338f19d Don't attempt to load external keyframes for non-NIF files 9 years ago
scrawl 795f6d77f2 Cache the Animation's Skeleton 9 years ago
Marc Zinnschlag e0c9265148 Merge remote-tracking branch 'origin/master' 9 years ago
scrawl 389b168d5f Restore OpGetWaterLevel to vanilla behaviour 9 years ago
scrawl d0c6b407b4 Fix isUnderwater checks being off by one for exterior cells 9 years ago
scrawl 86881bcf39 In first person mode, attach sound listener to the camera 9 years ago
sandstranger 238a5824be add custom new variable fot Qt 9 years ago
Chris Robinson f19f1c47c8 Fix playing pending voices without a Ptr 9 years ago
Chris Robinson 2face3d0a9 Combine duplicate code 9 years ago
Chris Robinson 1407366e51 Use a premade SoundStream object for the output's streamSound functions 9 years ago
Chris Robinson 2ee3265b66 Use a premade Sound object for the output's playSound functions 9 years ago
Chris Robinson 53718a5ca0 Use a typedef for the sound instance handle 9 years ago
Chris Robinson 3a39a92b93 Keep track of audio tracks 9 years ago
Chris Robinson 2883cdba5c Initialize the Sound object before modifying the pitch variable 9 years ago
Chris Robinson a6db96b2d8 Update sound and stream parameters 9 years ago
Chris Robinson 4bd235284b Rename a couple members to avoid confusion 9 years ago
Chris Robinson 1ce3e7f5b9 Use a separate type for streams
They're basically the same, but it's to help avoid accidents with passing non-
streaming sounds to the stream functions, or vice-versa.
9 years ago
Chris Robinson 816015d6e6 Avoid inheriting from Sound for sound types 9 years ago
sandstranger b0b3192520 delete bad symbol 9 years ago
sandstranger bd5057aa3c enable opengl es1 9 years ago
scrawl 3d12b2ca9d Add NifFileManager to avoid duplicate parsing of the NIFFile in SceneManager and BulletShapeManager. 9 years ago
scrawl c912310c52 Don't add persuasion results to the journal 9 years ago
scrawl 2327a41826 Fix journal freeze 9 years ago
scrawl ba5433391f Merge pull request #831 from ace13/win-fix
Fix windows builds
9 years ago
Alexander "Ace" Olofsson 24340bff95 Add a space 9 years ago
Alexander "Ace" Olofsson 6823298516 Different way to solve the type deduction issue 9 years ago
Alexander "Ace" Olofsson a69e751089 Revert "Fix windows builds"
This reverts commit b085c09f86.
9 years ago
scrawl f5f3d18b8e Add comment 9 years ago
scrawl 576d5111a5 Prefer Intersector::PROJECTION over Intersector::WINDOW 9 years ago
scrawl 14b143231c Don't crash OpGetTarget when the target disappeared (Fixes #3048) 9 years ago
Alexander "Ace" Olofsson b085c09f86 Fix windows builds
Can't instantiate a container (at least with MSVC) without knowing the exact size of the object being stored, forward-declares only work with pointers.
I couldn't see a simple way to remove the forward declare, so pointers and memory management it is.
9 years ago
Marc Zinnschlag 3a81bed001 Merge remote-tracking branch 'origin/master' 9 years ago
Marc Zinnschlag 7cc8fbfb3c Merge remote-tracking branch 'scrawl/dynamic_cast2' 9 years ago
scrawl 0655abcd8b Fix some character preview raycasting issues (Bug #2769) 9 years ago
scrawl 8fb328ef4f Fix updating of character preview size in InventoryWindow::setGuiMode 9 years ago
scrawl d2290a8183 Don't crash when Water_SurfaceFrameCount is 0 9 years ago
scrawl d5a738bd39 Apply 27e669296e (locale-unaware tolower) to more code
In particular, the one in VFS::normalizeFilename was affecting cell loading performance.
9 years ago
scrawl f962ce0bbe Don't link against unnecessary OSG libraries 9 years ago
scrawl cd4a1ffd16 Fast version of dynamic_cast for MWClass 9 years ago
Marc Zinnschlag 20a076bdba Merge remote-tracking branch 'origin/master' 9 years ago
Marc Zinnschlag 6df626ad71 Merge remote-tracking branch 'scrawl/crashcatcher' 9 years ago
scrawl db71634a2d Allow replacing of interactive message boxes (Fixes #3040) 9 years ago
scrawl c9bfe01120 Fix applying of weather changes after serving a jail sentence 9 years ago
Marc Zinnschlag 6facce9d13 Merge remote-tracking branch 'origin/master' 9 years ago
Marc Zinnschlag ff5582e318 Merge remote-tracking branch 'scrawl/ltex' 9 years ago
scrawl a1fa1b2b2e Don't attempt to open an empty texture 9 years ago
scrawl d97dda05c9 Don't attempt to play unset weather sounds 9 years ago
scrawl 93a76e2f56 Revert debce0fb80, use a sleep() to work around the X11 bug
Problem with debce0fb80 is the crashed process won't be killed until the user accepts the message box, and it's harder to get to the message box when the window is in full screen or the cursor is locked.
9 years ago
scrawl debce0fb80 crashcatcher: show the message box before killing crashed process
This change fixes a random X server lock-up that I get about 1 in 10 times when a crash is caught. I'm presuming it's an X server bug since faulty applications shouldn't be able to crash or freeze the X server under any circumstances.
9 years ago
scrawl 35fa1f5865 Not found Land Textures are no longer a fatal error (Bug #3037)
Log warning message and show the default texture when encountering invalid ESM::LandTexture references.
9 years ago
scrawl 4687c4baad Do not assert() for invalid land data in plugins (Bug #3037)
The resizing of LTEX store to the correct number of plugins was done in the load() method, but the load method won't be called if a plugin contains LAND records but doesn't contain LTEX records. For such plugins the Store<ESM::LandTexture>::search() function would then fail an assertion.
9 years ago
scrawl 5b8fd79b4b Fix crash when exception is thrown in startNewGame() 9 years ago
scrawl 177a6f4a68 Launcher: ensure to clear previous settings when reloading settings 9 years ago
scrawl ace4cfc0a8 Fix 'duplicate setting' errors when running installation wizard 9 years ago
scrawl 89783e047b Fix typo 9 years ago
Chris Robinson 4ee409af84 Load loudness data asynchronously
Currently abuses the output audio streams' background processing thread to do
the work, since there's no generalized threaded processing mechanism.
9 years ago
Chris Robinson 0f05ccf72a Use a non-recursive mutex and properly end the streaming thrread 9 years ago
Chris Robinson b5ed2e65f8 Add a method to get the sound stream delay
This helps avoid a lock during the movie player's read method, since it needs
to sync with the current playback position which would otherwise need to get
the movie decoder's current position.
9 years ago
Chris Robinson f3c035907c Rename Sound::update to Sound::applyUpdates 9 years ago
Chris Robinson 9568aa6a84 Use a condition variable to wake up the audio stream thread
This should make starting streams a bit more responsive, and allows us to do
more in it that really shouldn't wait for its next wake up.
9 years ago
Chris Robinson 4a078725d4 Play player voices locally 9 years ago
Chris Robinson 449eca4fb4 Properly mark streams as 2D or 3D 9 years ago
Chris Robinson 21bb2e9314 Use a deque for loudness buffers with a map lookup
Similar to Sound_Buffer, this allows individual Sound_Loudness objects to
retain a constant pointer when new ones are inserted on to the end.
9 years ago
Chris Robinson 5f8a09df97 Play player sounds (except footsteps) local to the listener 9 years ago
Chris Robinson 82f3651f81 Treat the sound offset as the offset in seconds 9 years ago
Chris Robinson 8b7587f9a6 Track whether a sound is 3D 9 years ago
Chris Robinson fc912b135f Avoid unnecessarily friending classes 9 years ago
Marc Zinnschlag 7cc950ed64 Merge remote-tracking branch 'origin/master' 9 years ago
Marc Zinnschlag b3532b6274 Merge remote-tracking branch 'scrawl/spells' 9 years ago
scrawl 44dd62067e Remove some unnecessary per-frame store searches 9 years ago
scrawl 783594033a Optimize MWMechanics::Spells
Use pointers as map keys instead of string IDs. Resolves a nasty performance bottleneck on functions like hasCommonDisease() that previously had to look up all contained spells from the ESM store on every call. hasCommonDisease() is called hundreds of times per frame by the AI target update since it's used to calculate target disposition.

The total cost of hasCommonDisease() was 2.7% of the frame loop, now it's negligible.
9 years ago
scrawl fbee32729a Cache CellId
ESM::Cell::getCellId() was allocating a string on every call. This caused functions dealing with cellIds to be unnecessarily expensive.

For example, World::moveObject spent almost as much time comparing CellIds as it did updating Bullet's AABB after the move. OpGetDistance was by far the most expensive script instruction because it has to compare cellIds.

The total cost of getCellId() relative to the frame loop was about 0.3%.
9 years ago
scrawl 984c455027 Fix Show Owned option affecting tooltips that are not objects (Fixes #3036) 9 years ago
scrawl 2ffcc2a2b4 Fix incorrect path encoding handling in debug message 9 years ago
scrawl bcca1beb69 Merge branch 'configwriter' into HEAD 9 years ago
scrawl d894d54e41 Improve path conversions 9 years ago
scrawl 84aceedfa2 Add comment 9 years ago
scrawl 325d208b4a Fix incorrect error message 9 years ago
scrawl 3747843c92 Use QString::toInt instead of atoi 9 years ago
cfcohen c26463fd91 Should have coded it the way scrawl said, since it's cleaner. 9 years ago
cfcohen a9c9cc5508 Remove unnecessary copy of mEngineSettings in mInitialSettings. 9 years ago
Chris Robinson d4238a6d91 Add config options for the sound buffer cache size
The cache size is specified with a min/max range, intended to avoid constant
unloading once the limit is reached. This way, buffers can be unloaded down to
a reasonable mimimum, allowing some more buffers to be subsequently loaded
without causing more unloading.
9 years ago
Chris Robinson 8715add72f Store sound buffers in a deque that's filled in as needed
A deque allows existing Sound_Buffer references to remain valid as long as new
ones are back-inserted. These references can be used instead of indices.
9 years ago
cfcohen 046538984c Fix duplicate filename in what() message. Use newly create cfgError
utility function consistently throughout code.
9 years ago
cfcohen 7605912ece Merge branch 'master' of https://github.com/OpenMW/openmw into config_writer_changes 9 years ago
cfcohen ad5eaaa705 Update the OpenMW Launcher so that it only writes changed values to
the user settings.cfg file.  Add a helpful header to the top of new
settings.cfg files.  Remove old code involve whitespace management
that didn't work correctly anayway, and doesn't matter since we're not
adding comments to the file.  Remove "automatically generated"
comments.
9 years ago
scrawl 8a3ec14bc6 Revert "Merge remote-tracking branch 'sandstranger/opengles'"
This reverts commit cc9cab6fd1, reversing
changes made to da856eed95.
9 years ago
Marc Zinnschlag ef68e2aec4 Merge remote-tracking branch 'origin/master' 9 years ago
cfcohen 67c4b17581 Commit files that I thought wre in the previous commit. :-[ I'm
accustomed to the hg behavior of commiting all modified files by
default.
9 years ago
Marc Zinnschlag cc9cab6fd1 Merge remote-tracking branch 'sandstranger/opengles' 9 years ago
cfcohen 18da95e4f8 Make openmw-launcher pass comments through settings.cfg, and reuse the
Settings::Manager code to do most of the work.  Stop loading both the
global settings-default.cfg and the one in the current directory,
while continuing to prefer the latter one.  Cleanup paths slightly and
remove what appears to have been debugging in the launcher settings.
9 years ago
Chris Robinson 8f08ca9cba Revert "Avoid unsafe sizeof(x)/sizeof(x[0]) constructs for array counting"
This reverts commit 0d4fea896c.
9 years ago
Chris Robinson 04f885d8cc Rename mReferences to mUses 9 years ago
Chris Robinson 0d4fea896c Avoid unsafe sizeof(x)/sizeof(x[0]) constructs for array counting 9 years ago
Chris Robinson a1bdb544db Avoid an unnecessary string copy 9 years ago
Chris Robinson aac903484c Remove a really unnecessary method 9 years ago
Chris Robinson 73448c72f6 Replace Play_NoTrack with playManualSound3D, and rename the latter 9 years ago
Chris Robinson caae305ddd Use a sorted list for unused buffers
Helps ensure the buffers being unloaded due to cache limits are not likely to
be needed anytime soon.
9 years ago
Chris Robinson 669b7a2295 Batch update changes together, when possible
Certain OpenAL implementations, including Rapture3D, Creative's hardware
drivers, and more recent versions of OpenAL Soft, can batch together changes so
that they all occur at once, avoiding potential discontinuities with one sound
being changed before another, or the listeenr being changed before sounds are.

On other implementaitons, this is a no-op and maintains existing behavior.
9 years ago
Chris Robinson ea70b0baee Don't store the buffer in the sound struct 9 years ago
Chris Robinson fd7d58fe7e Reset the sound handle back to null after unloading 9 years ago
Chris Robinson 4801661b34 Stop all sounds of the given id 9 years ago
Chris Robinson 8a69f676ec Remove some duplicate code 9 years ago
Chris Robinson 45628316f8 Remove an unnecessary check 9 years ago
Chris Robinson 574c1923fe Clear unused buffers after unloading them all 9 years ago
Chris Robinson 5ad772c3b3 Fix streaming sound time 9 years ago
Chris Robinson 3ce6aee98b Return a decoder from the loadVoice function 9 years ago
Chris Robinson 24f8c78fca Store sound buffer references by index instead of string 9 years ago