Naios
0eb573b7bd
Core/Scripts: Fix a crash when adding/removing objects from the map while swapping
...
* Ref #17833
(cherry picked from commit 79adaf4ee0 )
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 445746c402 )
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 d68316fcd2 )
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 851c73b3e4 )
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 86b0fcf67a )
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 081720b5dd )
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 11b5de63cb )
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 ea627589d6 )
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 b970a68473 )
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 42eeb28a8b )
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 10bc41c91e )
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 e82a934387 )
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 410cf0dd05 )
2016-04-12 15:43:27 +02:00
Naios
926dfd1b57
Core/Scripting: Fix another warning when building statically
...
(cherry picked from commit 498c1e22ca )
2016-04-11 22:37:28 +02:00
Naios
b88074086b
Core/Scripting: Fix a warning when building statically
...
(cherry picked from commit 1b909f9dac )
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 62aff401f6 )
2016-04-05 20:35:59 +02:00
Rochet2
183d027e13
Add missing GAME_API exports
...
(cherry picked from commit 2348613f7b )
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 96bc31924a )
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 841ce54a0d )
2016-01-20 21:29:21 +01:00
Vincent-Michael
478cc756eb
Update copyright note for 2016
...
Happy new year (Again new year with idiots ...)
2016-01-01 00:34:25 +01:00
blub
bf7175ee83
Merge pull request #15731 from ShinDarth/toscri
...
Convert the Duel Cooldown Reset feature to scripts
(cherry picked from commit 5c449b50aa )
2015-11-07 00:38:05 +01:00
Incorrect
b022724458
Core/Misc: Remove unneeded files
...
These 3 BlackRock Mountain scripts can be removed from source:
- boss_anubshiah.cpp
- boss_gorosh_the_dervish.cpp
- boss_grizzle.cpp
They already removed from the creatures in DB, and are currently causing
DBErrors.
(cherry picked from commit d98037a75d )
2015-11-06 13:00:21 +01:00
Naios
30c421bf57
Core/ScriptMgr: Improve commit 155a289f05
2015-11-04 21:46:26 +01:00
Naios
155a289f05
Core/ScriptMgr: Fix "conditional expression is constant" warning.
...
* introduced in commit 12d1993994
2015-11-04 21:16:39 +01:00
Naios
b7b49fe35f
Core/Globals: Use std::string rather than char* to pass script names around.
2015-11-04 20:52:13 +01:00
Naios
12d1993994
Core/ScriptMgr: Replace IsDatabaseBound() methods through traits.
2015-11-04 20:51:56 +01:00
Shauren
b09e63e9de
Core/Conditions: Optimizations part 3 removed copying condition containers all over the place
2015-10-25 13:20:28 +01:00
Shauren
2d942ddcc5
Core/Commands: Refactored chat command script hook, fixes a crash when building with gcc 5
...
Closes #15616
Closes #15740
2015-10-22 20:26:56 +02:00
StormBytePP
0bed9d56cb
Core: Added ABORT() macro to prevent the usage of ASSERT(false) as a quick hack to crash the core misusing assert
2015-09-21 15:17:05 +02:00
Vincent-Michael
2e586bc520
Core: Header cleanup in game/*/*.cpp
2015-07-25 20:18:42 +02:00