Commit Graph

29019 Commits

Author SHA1 Message Date
Naios
273ee4f87f Core/Scripting: Fix an assertion which was triggered at lazy unloading
* Also fixes 2 warnings
2016-08-10 08:53:09 +02:00
Naios
785c17381c 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
2016-08-10 08:52:30 +02:00
Naios
a75d2b01fb Core/Common: Capsule boost process into helper functions
* For easier usage, the processes output it routed
  correctly to the TC logger line by line now.
* Add support for asynchronous process execution
  and process termination.
2016-08-10 08:51:52 +02:00
Aokromes
e0cb17f098 Core/Shared: Converted the shared library to a shared library ,-).
* There is still the possibility to static link against shared.
2016-08-10 08:49:33 +02:00
Naios
0b82bc2d0d Core/Database: Converted the database library to a shared library.
* There is still the possibility to static link against database.

(cherry picked from commit 6cfea2d8f7)
2016-08-10 08:45:27 +02:00
Naios
293d51c8b0 Core/Scripting: Fix another warning when building statically 2016-08-10 08:43:32 +02:00
Naios
e23d063f5a 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-08-10 08:40:44 +02:00
Naios
3957fbf176 Core/Scripting: Fix a warning when building statically 2016-08-10 08:25:28 +02:00
Aokromes
231d680826 typo fix 2016-08-10 08:21:10 +02:00
Aokromes
384a5216fd Core/Common: Converted the common library to a shared library.
* There is still the possibility to static link against common.
2016-08-10 08:19:25 +02:00
Aokromes
0a40d49839 Delete file copied instead moved. 2016-08-10 08:00:21 +02:00
Shauren
f1c84639b5 Core/Misc: Warning fixes (/W4)
(cherry picked from commit c9ba5ce591)
2016-08-10 06:41:59 +02:00
Aokromes
436cdfd7c9 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-08-10 06:40:03 +02:00
Aokromes
9078085595 Core/Scripts: Split script subdirectories into independent modules
* Makes it possible to define the linkage for every module
* Move the ScriptPCH into the root directory
* Changes the SCRIPTS cmake variable to a string type:
  -> -DSCRIPTS=0 is -DSCRIPTS="minimal-static" now
     (builds commands and spells statically)
  -> -DSCRIPTS=1 is -DSCRIPTS="static" now
     (builds all modules statically)
  -> -DSCRIPTS="dynamic"
     (builds all modules dynamically)
  -> Also the default value which is provided by the SCRIPTS
     variable is overwriteable through the SCRIPTS_COMMANDS,
     SCRIPTS_SPELLS... variable.
2016-08-10 05:14:53 +02:00
Aokromes
4905073101 Buildsystem: Initial changes to support building with vs clang toolset 2016-08-10 04:43:29 +02:00
Naios
aece2b85da Core/Scripts: Link the script project always statically
(cherry picked from commit 428908b8db)
2016-08-10 04:18:41 +02:00
Aokromes
e8e164e28f 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-08-10 03:29:20 +02:00
Naios
3d25c14e74 Core/Build: Enable /bigobj for most MSVC builds.
* exluding 32 bit when dyynamic linking is disabled.

(cherry picked from commit 183f970055)
2016-08-10 01:34:43 +02:00
Aokromes
e27a5b7816 Core/Build: Provide an interface target for game
* Increases the build time because dependent projects can build
  without waiting for the game project.
2016-08-10 01:22:56 +02:00
Aokromes
08341818f6 CMake: Use inherited dependencies in worldserver and authserver 2016-08-10 01:00:17 +02:00
Aokromes
7ef9b246b5 CMake: Use inherited dependencies in scripts
* Removes the circular dependency between game <-> scripts
2016-08-10 00:33:48 +02:00
Aokromes
b96f20c0d4 CMake: Remove the workaround for source groups below CMake 2.8.12
* Set the default option to hierarchical
* Add a new "hierarchical-folders" option which enables folders inside IDE's.
2016-08-09 23:49:31 +02:00
Aokromes
fee20bf1d9 typo fix 2016-08-08 22:01:10 +02:00
Naios
dc4ff7a9f2 Dep: Add efsw (entropia file system watcher)
* Uses system API's which reduces the overhead
  instead of checking periodically for changes.
* Will be used in the hotswap system to reload
  shared libraries on changes.
2016-08-08 21:51:31 +02:00
Aokromes
8e95859a41 missing change 2016-08-08 21:08:58 +02:00
Aokromes
5302d9112b Core/Game: Converted the game library to a shared library.
* There is still the possibility to static link against game.
2016-08-08 20:11:29 +02:00
Aokromes
b2348b8915 CMake: Use inherited dependencies in database, shared and game 2016-08-08 18:07:57 +02:00
Aokromes
8a58b9a295 Update README.md 2016-08-08 01:43:49 +00:00
Aokromes
1c4054cde7 Add missing code 2016-08-07 23:49:43 +02:00
Aokromes
1de270f4e2 compile fix. 2016-08-07 23:46:26 +02:00
ariel-
879992e502 Update ObjectMgr.cpp 2016-08-07 21:52:26 +02:00
Aokromes
b10e5d5408 Core/Logs: Fine tune more logs
And move others to more logical appenders
2016-08-07 21:50:22 +02:00
Aokromes
20895a8631 Core/Logs: Fine tune another log 2016-08-07 21:50:05 +02:00
Aokromes
4231b2ba66 Core/Conditions: Add new CONDITION_PET_TYPE (45). Matches target player's pet against specified (value1) bitmask. 2016-08-07 21:49:25 +02:00
Aokromes
4d2527e05c Core/Conditions: Add new CONDITION_CHARMED (44). Does what it says on the tin. 2016-08-07 21:46:41 +02:00
Aokromes
a5a60286fa Scripts/Commands: Some adjustments to make shutdown commands more user-friendly.
- New error message if a shutdown is delayed due to force threshold.
- New status message indicating that a server shutdown was successfully cancelled.
2016-08-07 21:41:10 +02:00
Shauren
ea918e1b69 Core/Utils: Added additional argument to Tokenizer class to make it behave like strtok - not returning empty tokens in case of multiple consecutive separators in input string
(cherry picked from commit dd1533b315)
2016-08-07 21:28:29 +02:00
Aokromes
340b0227bf Core/Logs: Fine tunning some logs 2016-08-07 21:28:07 +02:00
Aokromes
55b8fdea1d DB/Misc: 3.3.5a fixes 2016-08-07 21:25:58 +02:00
Aokromes
5102f02631 DB/Gameobject: Fix incorrect rotations 2016-08-07 19:37:32 +02:00
Aokromes
abcc16b306 DB/Gameobject: Fix few startup errors 2016-08-07 19:19:46 +02:00
treeston
f8862f19f5 Scripts/SmartAI: Some clean-up work:
- NULL -> nullptr
- Rename "AssistPlayerInCombat(who)" to "AssistPlayerInCombatAgainst(who)" to reflect what the method actually does
- Code style

No functionality was changed.
2016-08-05 18:33:37 +02:00
Aokromes
11f46f2030 Core/Command: remove account_muted data on account deletion 2016-08-05 18:29:28 +02:00
Aokromes
7f71c2f70f Core/RBAC: Name some permissions from 3.3.5a 2016-08-05 18:25:18 +02:00
Aokromes
58499f9488 another override 2016-08-05 02:42:30 +02:00
Aokromes
2e3db272e3 more missing overrides 2016-08-05 02:14:51 +02:00
Aokromes
1ec3b04951 More overrides 2016-08-05 01:56:50 +02:00
Aokromes
f00d77e2b9 more missing override 2016-08-05 01:43:00 +02:00
Aokromes
59244d6e73 More missing overrides 2016-08-05 01:33:17 +02:00
Aokromes
c3537da1e8 revert incorrect change 2016-08-05 01:17:39 +02:00