Commit Graph

18674 Commits

Author SHA1 Message Date
Shauren
e2687b31ed Core/Entities: Ported byte field offset naming from 6.x 2016-04-12 20:06:04 +02:00
Naios
e82a934387 Core/Scripting: Fix an assertion which was triggered at lazy unloading
* Also fixes 2 warnings
2016-04-12 16:52:29 +02:00
Naios
410cf0dd05 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-04-12 15:42:16 +02:00
Naios
131ef5f2d6 Core/Maps: Fix non PCH build 2016-04-11 23:12:23 +02:00
Naios
498c1e22ca Core/Scripting: Fix another warning when building statically 2016-04-11 22:13:13 +02:00
Naios
1b909f9dac Core/Scripting: Fix a warning when building statically 2016-04-11 21:58:56 +02:00
Naios
eaf102b3c5 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

(cherry picked from commit 9cc97f226d)
2016-04-11 21:42:28 +02:00
Naios
3123c278b9 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.

(cherry picked from commit bc0f2b6e5a)
2016-04-11 21:42:16 +02:00
Naios
8660f90bdf 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.

(cherry picked from commit 848b8a4136)
2016-04-11 21:41:58 +02:00
Naios
c5c922da9f Core/Scripts: Move the ragefire chasm scriptloader into the correct file
(cherry picked from commit 4710b1c8fe)
2016-04-11 21:41:33 +02:00
Naios
f93617c3c9 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.

(cherry picked from commit 3497b4960b)
2016-04-11 21:40:59 +02:00
Naios
775e0764e8 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

(cherry picked from commit 59e3cf82ac)
2016-04-11 21:40:38 +02:00
Naios
518692b4cb Core/Game: Move MapScripts to game/Maps
* Since this class implements methods of the Map class

(cherry picked from commit 26dcde94b3)
2016-04-11 21:39:31 +02:00
Naios
fc106eba51 Core/Misc: Replace tc's optional with boost::optional. (very partial cherry-pick)
* benefits from empty optimization (objects are only constructed if needed).
* supports r-value references (move semantics) (boost >= 1.56.0).
* preparation for c++14/17's std::optional and std::none_t.
* add move constructor to CompactArray.

(cherry picked from commit 800d5d8939)
2016-04-11 21:00:26 +02:00
Shauren
f9697cb86a Core/Auras: Fixed a visual issue with combat log appearing to deal negative damage with SPELL_AURA_PERIODIC_LEECH if the spell does more damage than target has health (before calculating resist) and any damage is resisted.
Closes #16495
2016-04-11 20:48:24 +02:00
Dustin Paul
bdeeab13bd Core/LFG: Readd players to queue when proposal fails because someone else declined it (#16279) 2016-04-11 18:33:25 +02:00
Chaouki Dhib
97b053d203 Core/Movement: Added a wrapper method in MotionMaster for a unit to move toward another unit and stop once it reaches the target at a certain distance. (#16806) 2016-04-11 16:52:23 +02:00
Gacko
070bedae0c Add missing configuration key LoginDatabase.SynchThreads.
(cherry picked from commit b23a6aeaff)

# Conflicts:
#	src/server/bnetserver/bnetserver.conf.dist
2016-04-11 01:20:47 +01:00
Shauren
c0b6b164f0 Build fix 2016-04-09 18:58:06 +02:00
Shauren
836788ed3c Core/Misc: MSVC /W4 warning fixes
(cherry picked from commit 08c27d3205)
2016-04-09 18:25:53 +02:00
Shauren
39abb8acb3 Core/Misc: MSVC warning fixes
(cherry picked from commit 70412e7e25)
2016-04-09 18:13:30 +02:00
Shauren
a9b4375bb7 Core/Spells: Don't report spell errors to client when spell was triggered and failed some internal condition 2016-04-09 15:31:26 +02:00
Shauren
702cfefddb Buildsystem: Initial changes to support building with vs clang toolset
(cherry picked from commit 4a3a178d7f)
2016-04-09 12:38:20 +02:00
Shauren
b197163a1d Core/Commands: Prevent creating accounts containing '@' character with .account create command
(cherry picked from commit 4a679ba1be)
2016-04-09 12:36:27 +02:00
Shauren
b841546574 Core/Common: Moved MessageBuffer to common
(cherry picked from commit a81a204678)
2016-04-09 12:31:04 +02:00
Shauren
778f1725f8 Core/Misc: Moved RealmList to shared
(cherry picked from commit cfe8a6a58b)
2016-04-09 12:30:00 +02:00
Shauren
3f7e6af49e Properly rename the stand state method... 2016-04-08 22:32:15 +02:00
Shauren
6dfc4771a1 Core/Misc: Renamed getStandState to minimize differences between branches 2016-04-08 22:21:13 +02:00
Shauren
a2344fba67 Core/DataStores: Fixed creating entries in sEmotesTextSoundMap if passed invalid arguments (also a data race, if done in multiple threads) 2016-04-02 19:12:14 +02:00
Shauren
e52878b6b5 Core/Spells: Renamed EnsureSpellInfo to AssertSpellInfo to minimize differences between branches 2016-04-02 17:05:46 +02:00
treeston
1cf1d4a1ea - Clean up spell facing behavior a bit. Visual target behavior should now be a lot smoother.
- Clean up Creature.cpp. NULL -> nullptr, gotta love it.
- Renamed some recently added members of Creature to match code style.
2016-04-02 02:51:06 +02:00
DDuarte
c9e3f2aa9a Core/Config: Fix 3 more missing config warnings
Closes #16861

Thanks tkrokli

(cherry picked from commit 0afcefea27)
2016-03-31 03:31:51 +01:00
DDuarte
9aadd97fba Core/Config: Error logging for ptree_bad_data
Ref 6487e2f2d6 (commitcomment-16888976)

(cherry picked from commit 9431b94bff)
2016-03-31 03:31:46 +01:00
Treeston
8a050c574f Merge pull request #16839 from chaodhib/spell_facing_fix
Adjustments to spell facing
2016-03-30 00:10:23 +02:00
Kittnz
8d992a888c Pet/Misc: Implement Baby Blizzard Bear 2016-03-28 12:30:36 +02:00
DDuarte
5f3262ff19 Core/Config: Remove references to Arena.QueueAnnouncer.PlayerOnly which hasn't been used since 3dd6fdedf7
Ref #16859
2016-03-28 03:12:41 +01:00
DDuarte
92be9ad7ad Core/AHBot: Add missing AuctionHouseBot.Class.CLASS.Allow.Zero to config
Ref #16859
2016-03-28 02:21:09 +01:00
DDuarte
980f28d2ce Core/Network: Change SocketMgr.StartNetwork to take the thread count by arg instead of config
AuthSocketMgr doesn't need "Network.Threads" config

Fixes "Missing name Network.Threads in config file authserver.conf"

Ref #16859
2016-03-28 02:02:29 +01:00
DDuarte
6487e2f2d6 Core/Startup: Warn when a config key isn't found in the config files
Example: "Missing name Guild.SaveInterval in config file worldserver.conf, add "Guild.SaveInterval = 15" to this file"
(cherry picked from commit 06b3bca0d2)

# Conflicts:
#	src/common/Configuration/Config.cpp
2016-03-27 23:49:08 +01:00
Shauren
b2bd181a5f Merge pull request #16848 from P-Kito/debuff_remove
[3.3.5/6.x] Scripts/Spells: Add generic spell to handle ClearDebuffs spell
2016-03-27 19:45:23 +02:00
Kito
8de7e12a6e Scripts/Spells: Add generic spell to handle ClearDebuffs spell 2016-03-27 19:30:03 +02:00
Rochet2
2348613f7b Add missing GAME_API exports 2016-03-27 17:02:31 +03:00
r00ty-tc
c136af8463 Adjustments to spell facing - Adjusted HaveAtClient to accept Object* (still accepts all subordinates) - Use grid searcher to find players in visibility range for unit - Use client cache instead of "See or Detect" to decide who to send updates to - Adjusted SendUpdateToPlayer to send createobject packet only if not known to client
(cherry picked from commit c0693a6ee52d31840ab2ee878c4881884b857638)
2016-03-27 00:35:28 +01:00
treeston
dc39de0141 Scripts/Karazhan: Hackfix the Opera event script to make Wizard of Oz actually completable.
Doing it in script instead of removing the flags from DB because I'm pretty sure that the DB flags are correct and there's some RP event missing before she becomes attackable.
2016-03-26 00:21:21 +01:00
Nertx
c9751eb1f8 Core/Game: Fix Tremor Totem in LoS
* Closes #15012

Signed-off-by: Naios <naios-dev@live.de>
2016-03-24 14:59:47 +01:00
sirikfoll
acf6681353 Core/AI Remove Reset() call from JustRespawned() hook
* Not needed, and causes trouble when using _DespawnAtEvade()
* Closes #16786
2016-03-24 14:31:53 +01:00
Naios
07d702e06e 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.

(cherry picked from commit 46daaf7689)
2016-03-24 14:10:06 +01:00
Aokromes
654f4c9e73 Core/Pdump: Fix pdump load 2016-03-24 05:01:37 +01:00
Naios
46ab38c1bb Core/Scripts: Link the script project always statically
(cherry picked from commit 428908b8db)
2016-03-24 02:47:12 +01:00
Naios
9f61b72679 Core/Game: Converted the game library to a shared library.
* There is still the possibility to static link against game.

(cherry picked from commit bf33159a70)
2016-03-24 02:46:42 +01:00