Commit Graph
573 Commits
Author SHA1 Message Date
treeston 205ec4c3bf Core/Unit: Standardize SetFacingTo and SetFacingToObject behavior while moving. Both now fail while moving unless arg2 bool is true.
Movement/SplineChain: Bump value range for DB chainId up to uint16 (0 to 65535) from uint8 (0 to 255). Turns out sniffs generate far more chains than I expected.

(cherry picked from commit 2170541a51ced3c15675b8854e0ae49461884f8c)

Code style follow-up, I blame Notepad++.
(cherry picked from commit 7860da0de6e53c7740862cae18840c9d399dda7f)
2017-03-02 20:47:29 +01:00
treeston 59d48ce7e4 Core/Movement: Add new SplineChainMovementGenerator that allows accurate replication of sniffed waypoints in static sequences, along with DB facilities that allow loading of waypoints from DB.
(cherry picked from commit 6d00d3f28380dd0811a18913450b1dc4f07fef48)

Merge remote-tracking branch 'Treeston/3.3.5-splinechains' into 3.3.5 (PR #17946)
(cherry picked from commit 20f483967fb3a430fbd54148c08b6d8e8937daac)

Core/Movement: Add a convenience default ctor to SplineChainResumeInfo, and fix PCH build in some configurations (zzz why do we even keep Appveyor and Travis around).
(cherry picked from commit 4fa646c0b2ae3261e7fab249f4177900d4c8d013)

PCH build fix. Again.

(( Alright, you made me waste 20 minutes of my life on a full nonPCH rebuild of the core now. ))
(( I hope you're happy. ))
(cherry picked from commit 4a1a460241acf511467decd92d2a30e19927d74d)
2017-03-01 22:03:35 +01:00
Rochet2 117b45d768 Core/Scripts: Enhance quest status hook by making it catch more status changes (#17865)
(cherry picked from commit c52566a8881bdcd1cc33279e1a10621648cb664e)
2017-02-26 15:36:01 +01:00
treeston e941d7e04b Creature/Scripting: Move CreatureAI::CanRespawn to CreatureScript::CanSpawn. Now also applies to initial spawn. Dynamic spawning prep.
(cherry picked from commit b3d44d6c366c7e4f12a6ce30ee5cf6b9bff68a06)

Game/Scripting: Follow-up to b3d44d6. Fix script selection for creatures on difficulty > 0.
(cherry picked from commit 91c2b3162d350ab1a09053574ad67f45f089175b)

Build fix.
(cherry picked from commit a9f1151f2ca56394e315d0b07741c240ef59c2ff)

Fine, this time I actually built it. Promise.
(cherry picked from commit 0c2c88ed5025d9b51b6cbdf0603ceaf1ea54c80a)
2017-02-26 15:30:15 +01:00
Traesh 6ab3877c91 Core/Entities: Basic AreaTrigger System (#18035)
* Implemented AreaTrigger Templates
* Implemented AreaTrigger Splines
* Implemented SPELL_AURA_AREA_TRIGGER
* and many more
2017-01-29 00:00:43 +01:00
vincent-michael 86b98686a9 Update copyright note for 2017
Happy new year
2017-01-01 16:23:13 +01:00
Traesh 96f7ce4bfa Core/Scripting: Added missing hotswap code for SceneScripts 2017-01-01 03:23:04 +01:00
Krudor 1530c95697 Core/Scripts: Add server-side script support for movie completion (#18308) 2016-12-17 18:27:43 +01:00
Shauren b6f1f8405f Core/Misc: Added regex compatibility layer to fall back to boost::regex for really old compiler 2016-12-10 19:11:10 +01:00
ariel- 780d1019f2 Core/ScriptMgr: use vector instead of list to contain Spell and Aura scripts and hooks
(cherry picked from commit cbb5c073ceb951fa138bb05b55de8b21ffd83063)
2016-11-14 05:35:41 -03:00
Traesh d4887311e3 Core/Scenes: Implemented scene system
Closes #17858
Closes #17976
2016-09-25 16:13:12 +02:00
Naios 0eb573b7bd Core/Scripts: Fix a crash when adding/removing objects from the map while swapping
* Ref #17833

(cherry picked from commit 79adaf4ee06d9ea556edc108fa448d87f0f3b57d)
2016-09-15 15:15:48 +02:00
Shauren 3607d9eef5 Tools: Added game tables extractor 2016-07-19 19:50:44 +02:00
Shauren a9a13d10f7 Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion 2016-07-17 17:37:06 +02:00
Shauren 2056ce4d66 Scripts: Build fix 2016-07-17 15:20:56 +02:00
Naios 58dd647a88 Core/Scripting: Fix acquiring of references between script swaps
* Delay unloading of shared libraries to the next update tick
  to prevent crashes in the destructor of the last referenced
  script instance.
* Closes #17557

(cherry picked from commit 445746c402485fcac60c02842d0cb5e0dd605e5c)
2016-07-13 22:01:14 +02:00
Shauren 70137b8f3a Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion 2016-07-06 00:05:13 +02:00
Naios 1a891f3a5e Core/Scripting: Don't force event cancellation when swapping creatures.
* EventProcessor::KillAllEvents(force = false) should only be used
  by the EventProcessor.

(cherry picked from commit d68316fcd2fc71343edfbd387249b75bd6e8a90f)
2016-07-05 00:19:38 +02:00
Shauren 70102f32fe Core/DataStores: Updated opcodes and db2 to 7.0.3.21414 2016-05-20 23:49:53 +02:00
Naios 8bf3d181b6 Core/Scripting: Kill pending unit events when swapping AI's
(cherry picked from commit 851c73b3e47b4b64639f4d825b00d069330059e3)
2016-05-01 17:50:34 +02:00
Naios 51ec8d3b8c Core/Scripting: Use the path of the worldserver executable to search for the scripts dir
* Fixes issues when starting the worldserver not in the bin directory
  or the CMAKE_INSTALL_PREFIX directory using the -c option.

(cherry picked from commit 86b0fcf67aadc0d313253befb0590d00efd085bc)
2016-04-18 23:03:24 +02:00
Naios 2809f11839 Core/Scripting: Use the systems temporary path for caching shared libs
* Disables the shared library caching on platforms completely which
  never block files on usage (like linux).

(cherry picked from commit 081720b5dd5a80aa77181712d85d309d64d3ec03)
2016-04-18 22:11:23 +02:00
Naios d95bc7329d Core/Scripting: Add the info how much time the system took to reload
(cherry picked from commit 11b5de63cb7c5acd2f9385a4453b8ac76dec310e)
2016-04-18 22:11:09 +02:00
Naios 8fa52860ab Core/Scripting: Improve the error message when the script reloader fails to create a cache entry 2016-04-16 22:07:13 +02:00
Vincent-Michael 3cd19d3b30 Core: Removed Whitespaces 2016-04-16 12:19:23 +02:00
Naios 8f78b1ed87 Core/Scripting: Fix a typo in b970a684
(cherry picked from commit ea627589d62b086561e14d71dae180a4fe0bb984)
2016-04-14 22:17:54 +02:00
Naios 19bf0513bc Core/Scripting: Wait until the debugger is detached before rebuilding scripts.
* Thanks Shauren for the IsDebuggerPresent() hint.

(cherry picked from commit b970a68473eb6a7a7b71ab4a5c13338bb5cafc89)
2016-04-14 21:30:52 +02:00
Naios 2038c31100 Core/Scripting: Disallow the build directory to contain spaces
* I wasn't able to work arround a path which contains spaces,
  since it seems like a CMake specific issue.
* Closes #16947

(cherry picked from commit 42eeb28a8b9c1f3ae2d667e4238e956a4a95bd6c)
2016-04-14 21:30:43 +02:00
Naios f4a19fe795 Core/Scripting: Fix detection of source changes when using inotify.
* This fixes the source change detection in linux.
* Also simplifies the detection of observed modules
* Fixes the script rebuilding on linux
* Escape windows paths to (maybe) fix paths with spaces (#16947)

(cherry picked from commit 10bc41c91e96b51aac4d811d20b535fff9562edd)
2016-04-13 14:00:07 +02:00
Naios a3936c143d Core/Scripting: Fix an assertion which was triggered at lazy unloading
* Also fixes 2 warnings

(cherry picked from commit e82a934387b03a0a70e4d402eb5729c24728a698)
2016-04-12 16:54:11 +02:00
Naios 89a3fc2167 Core/Scripting: Fix loading of spell/aurascripts
* Broken since 9cc97f226d
* There is still a crash when using lazy unloading which I
  will fix in a later commit (this commit should fix at least
  the static build and normal usage of the dynamic build).
* Closes #16948

(cherry picked from commit 410cf0dd05e2765cf7806a9165f976a2bcc199d2)
2016-04-12 15:43:27 +02:00
Naios 926dfd1b57 Core/Scripting: Fix another warning when building statically
(cherry picked from commit 498c1e22cae6f98053432e34458a8d8c8febfb6c)
2016-04-11 22:37:28 +02:00
Naios b88074086b Core/Scripting: Fix a warning when building statically
(cherry picked from commit 1b909f9dacf21c7d3a6f9eb48afd168f52801bd4)
2016-04-11 21:59:37 +02:00
Naios 9cc97f226d Core/Game: Rewrote the ScriptMgr to support script reloading.
* Finally this commit enables dynamic script hotswapping
  and finished the PR #15671.
* Split the storage layout to use optimized storages
  for database bound and unbound scripts.
* Add several unload workers to reload scripts correctly
  -> Requires further investigation.
* Fixes memory leaks in ScriptMgr when dropping invalid scripts.
* Fixes VehicleScripts
* Makes OutdoorPvP scripts reloadable
* Makes InstanceMapScripts reloadable
* Makes CommandScripts reloadable
2016-04-11 21:14:00 +02:00
Naios bc0f2b6e5a Core/Game: Add a dynamic script reloader which reloads scripts modules on changes.
* is responsible for registering plain modules.
* requires compilation with the `WITH_DYNAMIC_LINKING` flag.
* requires further support of the ScriptMgr.
2016-04-11 21:13:59 +02:00
Naios 59e3cf82ac Core/Game: Move scheduled map scripts counter methods into MapManager
* Since those have nothing to do with core scripts and are
  not wished inside the ScriptMgr
2016-04-11 20:07:24 +02:00
Naios 26dcde94b3 Core/Game: Move MapScripts to game/Maps
* Since this class implements methods of the Map class
2016-04-11 20:07:24 +02:00
Shauren 4e67383621 Merge branch '3.3.5-instanceextend' into 3.3.5 (PR #16392)
(cherry picked from commit 62aff401f687b56d720a320778950e82b65fbd8b)
2016-04-05 20:35:59 +02:00
Rochet2 183d027e13 Add missing GAME_API exports
(cherry picked from commit 2348613f7b80dfc773d545f712df68fcf046c3f5)
2016-03-27 16:31:15 +02:00
Naios bf33159a70 Core/Game: Converted the game library to a shared library.
* There is still the possibility to static link against game.
2016-03-24 01:31:51 +01:00
Naios 28d8f7f70d CMake: Use inherited dependencies in scripts
* Removes the circular dependency between game <-> scripts

(cherry picked from commit 96bc31924a5a418d37bd961ef2880f9072126348)
2016-03-19 23:19:54 +01:00
Shauren 50c8efecc5 Core/Misc: Removed OnUnknownPacketReceive script hook - it could never be called 2016-03-13 00:12:42 +01:00
Naios 329225b40d Core/Game: Move singleton instances into compilation units
* Fixes issues when building shared libraries
  (prevents gcc and clang from providing several instance)
2016-03-11 18:35:49 +01:00
Shauren d47f23ef7c Merge pull request #16404 from Lopfest/6.x
Core/Scripts: SMSG_PLAY_ONE_SHOT_ANIM_KIT can now be used in waypoint_scripts
2016-03-08 08:25:58 +01:00
Naios 5534915f74 Core/Scripts: Split the huge scriptloader into smaller pieces
* Each subdirectory contains it's own translation unit now
  which is responsible for loading it's directory
* Improves merging & decoupling between 3.3.5 <-> 6.x
* Removes unused Battleground loader
* Ref #15671
2016-02-21 15:36:41 +01:00
Lopfest facdc62b43 Merge remote-tracking branch 'upstream/6.x' into HEAD 2016-02-20 23:59:56 +01:00
Shauren f809e5e13e Core/Scripts: Fixed calling UnitScript hooks
Closes #16543
2016-02-11 16:35:42 +01:00
Lopfest 54ab2e0bdb Core/Scripts: SMSG_PLAY_ONE_SHOT_ANIM_KIT corrections. Thx to Arci 2016-01-26 18:58:02 +01:00
Lopfest 2b9d40d423 Core/Scripts: SMSG_PLAY_ONE_SHOT_ANIM_KIT can now be used in waypoint_scripts 2016-01-26 15:57:32 +01:00
jackpoz 36ed04bc6b Scripts/Commands: Fix ".help" command to show commands in alphabetical order
(cherry picked from commit 841ce54a0dbc4b76ab0068ff08732a068f39f570)
2016-01-20 21:29:21 +01:00