scrawl
6f9ca0f68f
Add basic cell preloader class
...
Not properly in use yet, but seems to be working.
9 years ago
scrawl
a72af4a1a3
cout that should be cerr
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
c9a67ab423
Do not add scripts from levelled creatures twice (Bug #2806 )
...
Do not insert objects from within a CellStore visitor
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
c403a6b113
Don't apply constant magic effects to dead actors ( Fixes #3174 )
9 years ago
scrawl
aec8c38461
Move observer_ptr include where it belongs
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
c82d9a1e87
Adjust ContainerStore / InventoryStore to allow partial unequip of items.
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
6546c05428
Move Fallback map to components/
9 years ago
scrawl
4f8f166f69
Fix GetPcInJail to work as in the original engine
9 years ago
scrawl
1905f0bf2d
Add support for placing BodyParts in a cell (Bug #3118 )
9 years ago
scrawl
6fde02ea42
LocalScripts: initialize mIter
9 years ago
scrawl
f052c05018
Move werewolf functions from World to MechanicsManager
9 years ago
scrawl
a1e163ed20
Correct an error in the timestamp subtracting logic ( Fixes #3105 )
9 years ago
scrawl
e5d9ee30f4
Add count argument to copyObjectToCell
...
Fixes the gold bug introduced in c9ca5bc946
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
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
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
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
bc50587e71
Remove comment
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
19d87c78f2
Add CellStore::forEachConst
9 years ago
scrawl
d4eba794c3
Add ConstPtr
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
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
scrawl
271fcb80c6
Remove container scripts before deleting container
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
scrawl
cc2315a0de
Minor fix
9 years ago
scrawl
b856460f86
ESMStore: fill mIds in setUp()
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
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
bdae572264
Merge pull request #840 from scrawl/movedrefs
...
Object movement between cells
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
Marc Zinnschlag
071ba3a4df
Merge remote-tracking branch 'scrawl/werewolf'
9 years ago
scrawl
07b064f616
Rename to lowerCaseInPlace
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
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
965bea45c0
AiEscort makes the actor side with target in fights (Bug #2697 )
...
Also will follow the player through teleport doors.
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
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
e0c9265148
Merge remote-tracking branch 'origin/master'
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
Chris Robinson
816015d6e6
Avoid inheriting from Sound for sound types
9 years ago
scrawl
3d12b2ca9d
Add NifFileManager to avoid duplicate parsing of the NIFFile in SceneManager and BulletShapeManager.
9 years ago
scrawl
cd4a1ffd16
Fast version of dynamic_cast for MWClass
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
scrawl
d97dda05c9
Don't attempt to play unset weather sounds
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
89783e047b
Fix typo
9 years ago
Marc Zinnschlag
7cc950ed64
Merge remote-tracking branch 'origin/master'
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
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