Commit Graph

14142 Commits

Author SHA1 Message Date
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
Shauren
fa74fa1f4d Config: Extended description of LoginREST.*Address values 2016-04-12 00:13:30 +02:00
Naios
dac0773759 Core/Maps: Fix non PCH build
(cherry picked from commit 131ef5f2d6)
2016-04-11 23:18:51 +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
Shauren
03d50a8d46 Warning fix 2016-04-11 22:14:51 +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
848b8a4136 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-04-11 21:13:58 +02:00
Naios
4710b1c8fe Core/Scripts: Move the ragefire chasm scriptloader into the correct file
* This commit targets 3.3.5 and just reduces the diff to 3.3.5 on 6.x.
2016-04-11 21:13:24 +02:00
Naios
3497b4960b 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-04-11 20:07:24 +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
c1c0253560 Build fix 2016-04-11 18:36:16 +02:00
Andrew Letson
45ea01fe5c Core/AHBot: Improve AHBot seller math (#16123)
Eliminates edge cases with low values that would round to zero
due to using uint32 in the calculation of sell price and buyout price.
2016-04-11 18:30:40 +02:00
Shauren
9db2b786b0 Add missing characters.updates, also build fix 2016-04-11 18:27:43 +02:00
Gigi1237
c19172cad9 Core/Blackmarket: Implemented black market 2016-04-11 18:22:09 +02:00
pete318
7d5d79aa01 Implement AuctionHouse features: GetAll scan and search throttling
Implements two standard features of the Auction House.
* GetAll scan, retrieves all auctions and sends them in a single packet.
  There's a limitation on how often a player can do this (Max 55000 items)
* Search throttling. For normal searches, the server can send a time
  in milliseconds to the client, the client will wait that long between
  searches. Delay set in config

Closes #16469

(cherry picked from commit 3aaeb57405)
2016-04-10 17:48:29 +02:00
Gacko
b23a6aeaff Add missing configuration key LoginDatabase.SynchThreads. 2016-04-10 16:45:22 +02:00
Gacko
f5c46c78d3 Add missing configuration key BanExpiryCheckInterval. 2016-04-10 16:40:59 +02:00
treeston
6dfe9d34f3 Merge branch '3.3.5-naxxcleanup' into 3.3.5. (PR #16524)
(cherry picked from commit f37682b7ed)
2016-04-10 15:27:49 +02:00
treeston
dc07c24c0c Scripts/Naxxramas: Fix an edge case crash in Gothik. Closes #16575.
(cherry picked from commit a23ccc1b83)
2016-04-10 14:39:32 +02:00
treeston
c344feed96 Merge branch '3.3.5-horsemen' into 3.3.5-base (PR #16194)
(cherry picked from commit e8a79737a5)
2016-04-10 14:32:51 +02:00
Shauren
500d5db81e Renamed PublicKeyFile -> CertificatesFile 2016-04-10 14:05:30 +02:00
treeston
43c3b1b2e0 Merge branch '3.3.5-gothik' into 3.3.5-base (PR #16142)
(cherry picked from commit d23ef5d6d0)
2016-04-10 14:01:37 +02:00
Gacko
7c3df3f5d3 Make private key and public key configurable.
Defaults to the files installed to the bin directory.
2016-04-10 13:31:39 +02:00
jackpoz
d9b8125ca5 Merge PR #14824 'tkrokli/spell_mod_stealth_stand_state' into 3.3.5
(cherry picked from commit 1511855fea)
2016-04-10 12:27:21 +02:00
Shauren
174a6142f4 Core/Networking: Fixed a crash caused by attempting to connect directly to worldserver by setting portal=worldserver address
Closes #16927
2016-04-10 00:08:11 +02:00
Shauren
417c19bdad Core/Spells: Don't report spell errors to client when spell was triggered and failed some internal condition
(cherry picked from commit a9b4375bb7)
2016-04-09 17:58:24 +02:00
treeston
181da2a65c - 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.

(cherry picked from commit 1cf1d4a1ea)
2016-04-09 17:47:45 +02:00
Kittnz
a4c223a300 Pet/Misc: Implement Baby Blizzard Bear
(cherry picked from commit 8d992a888c)
2016-04-09 17:42:50 +02:00
Shauren
07a0a57ffb Merge pull request #16848 from P-Kito/debuff_remove
[3.3.5/6.x] Scripts/Spells: Add generic spell to handle ClearDebuffs spell
(cherry picked from commit b2bd181a5f)
2016-04-09 17:40:20 +02:00
treeston
d25ba64b4c 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.

(cherry picked from commit dc39de0141)
2016-04-09 17:35:45 +02:00
treeston
f1b3c9f40c No, Travis, I do not intend to handle SPELL_GROUP_STACK_RULE_MAX. It is not a value that should ever be actually used. Go away.
(cherry picked from commit f8a6ab8ac5)
2016-04-09 17:32:37 +02:00
treeston
7d8bab240b Entities/Pet: Finally fix pets spamming Blood Pact/Fel Intelligence in some scenarios. Your eardrums will thank me.
(cherry picked from commit 21cfacfba7)
2016-04-09 17:32:24 +02:00
Aokromes
b359eda9b9 Core/Misc: Remove no longer used code
(cherry picked from commit 00aeec820a)
2016-04-09 17:29:10 +02:00
treeston
d5ec4ce97b Entities/Creature: Fix bugs with pets not properly reacquiring target after spell cast. Closes #16824.
(cherry picked from commit accad00567)
2016-04-09 17:28:11 +02:00
Vincent-Michael
179b521dce Core: Remove whitespaces
(cherry picked from commit 5e74c2223b)
2016-04-09 17:14:08 +02:00
jackpoz
307a93839b Core/Creatures: Fix dead creatures spawn position on restart
Fix dead flying creatures ignoring being spawned below the floor in instances on server restart because of not taking into account vmap height.
Fix #16777

(cherry picked from commit 912514c198)
2016-04-09 17:10:24 +02:00
joschiwald
94c33ea43c Merge pull request #16785 from Keader/AlgalonStars
[3.3.5/Core/Scripts] Fix Living Constellation not activating during Algalon encounter
(cherry picked from commit 3e7b7e415e)
2016-04-09 17:09:27 +02:00
r00ty-tc
0bf70423f8 Core/Maps: Implement optional pre-loading of maps.
- Option to preload basemaps upon server load (BaseMapLoadAllGrids)
- Option to preload instance maps upon map load (InstanceMapLoadAllGrids)
- Change default logging to only log mmap errors to server log
- Add new public to map to load all cells in map
- change debug loadcells to use new function instead

(cherry picked from commit 971f4ccab8)
2016-04-09 17:08:41 +02:00
ForesterDev
1ef3b52433 Scripts/Commands: Modify ".debug anim" command to target any selected unit
(cherry picked from commit f719338a9c)
2016-04-09 17:06:41 +02:00
Shauren
5c0517c6ef Merge branch 'Golrag-sindragosa_ice_tomb_target' into 3.3.5
(cherry picked from commit 895878010e)
2016-04-09 17:05:24 +02:00
Dr-J
7cf6eca425 Remove Lady Jaina Proudmores CPP script from zone_dustwallow_marsh.cpp
(cherry picked from commit c9f9e93c22)
2016-04-09 17:04:02 +02:00
jackpoz
76bbf5fc0c Scripts/Misc: Fix issues reported by static analysis
(cherry picked from commit 510bb30b2c)
2016-04-09 00:26:41 +02:00
Shauren
911e81ed9e Warning fix
(cherry picked from commit 7fe5a77f5e)
2016-04-09 00:25:40 +02:00
Shauren
593bbb0c99 Core/Commands: Fixed a crash in .wp mod by @Magnifikator
Closes #16732

(cherry picked from commit 3d0b065135)
2016-04-09 00:23:38 +02:00
Shauren
d92cad6973 Core/Commands: Fixed incorrect use of GetGUID instead of GetSpawnId in waypoint commands
Updates #16732

(cherry picked from commit e73d5a7bf4)
2016-04-09 00:23:35 +02:00
treeston
6eb49e4bb2 Unit/PlayerAI: Yeah, we allow charmer to be null now, should probably check for that.
Fixes and closes #16728.

(cherry picked from commit 49de12b1cf)
2016-04-08 23:58:45 +02:00