Commit Graph

142 Commits (coverity_scan)

Author SHA1 Message Date
MiroslavR 301dd77efb Save controls state (Fixes #3598) 8 years ago
MiroslavR b65f379b7f Save scripted animation state (Fixes #1931, #2150, #3393) 9 years ago
Roman Proskuryakov d5dfa89060 Rewrite NAME_T into FIXED_STRING. 9 years ago
scrawl d784a77f4c Set the default player cell in the StateManager (Fixes #3269) 9 years ago
scrawl 5bd8ef247d Do not adjust the player position when loading a savegame (Fixes #2089) 9 years ago
scrawl 50acdf3e47 Move createCharacter inside the try block 9 years ago
scrawl a0cc9de088 Make the creation of save file directories even more explicit 9 years ago
scrawl b7b7c0612d Make getCurrentCharacter create argument explicit 9 years ago
scrawl 7463c0c353 Addition to last commit, don't create a save directory on death 9 years ago
scrawl 426a6fdcc2 Don't create the save directory on loading a game
This prevents empty directories being created when loading a save file outside of the saves directory with the --load-savegame switch.
9 years ago
scrawl c3ef387208 Vanilla-compatible creature/NPC respawning (Fixes #2369, Fixes #2467) 9 years ago
scrawl 7a2ca5580a Accept a ConstPtr in RippleSimulation 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 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 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
Marc Zinnschlag a52b947efe Merge remote-tracking branch 'dteviot/MagicEffectsRefactorDraft3' 9 years ago
dteviot 77a1d947cc extracted MWMechanics::getPlayer() 9 years ago
scrawl af3b0cd883 Improve some error messages 9 years ago
scrawl 67bd6cd708 Remove empty line at the beginning of files
git ls-files -z | xargs -0 sed -i '1{/^$/d}'
10 years ago
Alexander "Ace" Olofsson b3b55a5842 Explicitly instantiate MWWorld::Store 10 years ago
scrawl 20d03c7e39 Refuse loading save games of unknown format 10 years ago
scrawl a081d402c5 Use the format field instead of version field 10 years ago
scrawl 4eaaa5e855 Increment save file version and mark it as used, will be used in next commit 10 years ago
scrawl 07937c741a Improve exception handling when starting a new game from the main menu 10 years ago
scrawl 2a85a22dba Write savegame screenshot 10 years ago
scrawl c811ac6afe Port fog of war
Not optimized yet, need to work on fog texture's DataVariance.
10 years ago
scrawl bea88c3643 Stolen item tracking overhaul part 2 (Fixes #2338) 10 years ago
scrawl 0c6e2170db Include cleanup 10 years ago
scrawl 8b5effe3e0 Fix wrong magic number for JOUR in openmw savegames 10 years ago
scrawl 714b19015c Fix unknown record error message 10 years ago
scrawl 82eaa9f1bc Fix loading crash (don't apply viewmode before player is set up) (Fixes #2272) 10 years ago
scrawl c3f3f8b3d0 Use only Cell records for saving progress bar (Fixes #2259) 10 years ago
scrawl 0ec018f7f1 More accurate savegame loading progress bar, uses position in the file (Bug #2259) 10 years ago
scrawl 716e14a37a Print missing savegame dependencies on the console 10 years ago
scrawl f9227beedd Add warning when loading a savegame that depends on non-existing content files (Fixes #2261) 10 years ago
scrawl 579f5d232f Move interactive messageBox to separate function 10 years ago
Marc Zinnschlag f8a3ec3ee3 Merge remote-tracking branch 'scrawl/cmdline-savegame' 10 years ago
Marc Zinnschlag 38a413a483 Merge remote-tracking branch 'scrawl/master' 10 years ago
scrawl 4684014a83 Use .omwsave extension for save game files 10 years ago
scrawl 4e92f6ab48 Add commandline option to load a save game on startup 10 years ago
scrawl e19ab77d00 Store camera first person state in savegame (Fixes #2255) 10 years ago
Alexander "Ace" Olofsson 462b41a3a8 Missing files, aka; Why you shouldn't stresscommit 10 years ago
scrawl 31d28e727f Implement leveled list script functions (Fixes #1546) 10 years ago
scrawl 45b4304237 Store levitation/teleport enabled state in savegames (Fixes #1923) 10 years ago
MiroslavR 4fdef94034 Use player's base name for profiles 10 years ago
scrawl 6e2673daf3 Remove an unneeded include 10 years ago
scrawl 4f92044d71 Allow user-created markers on local map (Fixes #1571) 10 years ago
Marc Zinnschlag af54bb9623 removed some redundancies; some more general cleanup 11 years ago
Marc Zinnschlag d0654f3ade move starting of startup scripts from engine startup to new game start; also restart all startup scripts on saved game load 11 years ago
scrawl 8a8ecce1e5 Fix some uninitialized data written to savegames 11 years ago