ariel-
57798b649c
Core/Scripts: fix dynamic build
2017-02-06 21:32:40 -03:00
Shauren
bf2121680f
Core/Misc: Added regex compatibility layer to fall back to boost::regex for really old compiler
...
(cherry picked from commit b6f1f8405f )
2017-02-06 21:12:27 -03:00
sirikfoll
afa8527338
Core/Scripting: Fixed hotswap calling evade mode for dead creatures
2017-01-13 14:26:43 -03:00
tkrokli
6a51a88767
Update Copyright notice for 2017
...
Happy new year!
2017-01-02 19:52:45 +01:00
Gustavo
7e0a616657
Core/Misc Remove WhiteSpaces ( #18379 )
2016-12-02 02:23:02 +01:00
ariel-
cbb5c073ce
Core/ScriptMgr: use vector instead of list to contain Spell and Aura scripts and hooks
2016-11-14 02:05:51 -03:00
treeston
84cf239fda
Various: Fix coverity reported issues.
2016-10-04 13:49:05 +02:00
treeston
3ec1b2f27e
Core/Movement: Fix a DB spline chain overload I missed in 2170541
2016-09-21 01:29:48 +02:00
treeston
2170541a51
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.
2016-09-20 20:19:15 +02:00
treeston
4a1a460241
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. ))
2016-09-20 13:23:21 +02:00
treeston
4fa646c0b2
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).
2016-09-20 12:45:11 +02:00
treeston
6d00d3f283
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.
2016-09-20 00:37:36 +02:00
Naios
79adaf4ee0
Core/Scripts: Fix a crash when adding/removing objects from the map while swapping
...
* Ref #17833
2016-09-15 15:13:57 +02:00
Rochet2
c52566a888
Core/Scripts: Enhance quest status hook by making it catch more status changes ( #17865 )
2016-09-09 21:11:36 +02:00
treeston
0c2c88ed50
Fine, this time I actually built it. Promise.
2016-09-09 19:48:31 +02:00
treeston
a9f1151f2c
Build fix.
2016-09-09 19:43:29 +02:00
treeston
91c2b3162d
Game/Scripting: Follow-up to b3d44d6. Fix script selection for creatures on difficulty > 0.
2016-09-09 19:37:04 +02:00
treeston
3c32086b81
Core/Maps: Add override to allow InstanceMap const* -> InstanceScript const*.
...
Also tighten const-ness on CanSpawn method of CreatureScript.
2016-09-09 18:08:43 +02:00
treeston
b3d44d6c36
Creature/Scripting: Move CreatureAI::CanRespawn to CreatureScript::CanSpawn. Now also applies to initial spawn. Dynamic spawning prep.
2016-09-09 16:21:27 +02:00
Naios
445746c402
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
2016-07-13 21:58:50 +02:00
Naios
d68316fcd2
Core/Scripting: Don't force event cancellation when swapping creatures.
...
* EventProcessor::KillAllEvents(force = false) should only be used
by the EventProcessor.
2016-07-03 00:14:22 +02:00
Naios
851c73b3e4
Core/Scripting: Kill pending unit events when swapping AI's
2016-05-01 17:49:37 +02:00
Naios
86b0fcf67a
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.
2016-04-18 21:02:01 +02:00
Naios
081720b5dd
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).
2016-04-18 21:02:00 +02:00
Naios
11b5de63cb
Core/Scripting: Add the info how much time the system took to reload
2016-04-17 18:11:05 +02:00
Naios
1e0a93d3d8
Core/Scripting: Improve the error message when the script reloader fails to create a cache entry
...
(cherry picked from commit 8fa52860ab )
2016-04-16 22:09:25 +02:00
Vincent-Michael
fe90fdcba1
Core: Removed Whitespaces
...
(cherry picked from commit 3cd19d3b30 )
# Conflicts:
# src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp
# src/server/game/Handlers/NPCHandler.cpp
# src/server/game/Server/Packets/ChatPackets.cpp
# src/server/game/Server/Packets/NPCPackets.h
# src/server/game/Server/Packets/PartyPackets.h
# src/server/game/Server/Packets/PetPackets.cpp
# src/server/game/Server/Packets/PetPackets.h
# src/server/game/Server/Packets/TicketPackets.h
# src/server/game/Server/Packets/VoicePackets.h
# src/server/game/Server/Packets/WardenPackets.h
# src/server/scripts/Commands/cs_cheat.cpp
2016-04-16 16:52:23 +01:00
Naios
ea627589d6
Core/Scripting: Fix a typo in b970a684
2016-04-14 22:14:06 +02:00
Naios
b970a68473
Core/Scripting: Wait until the debugger is detached before rebuilding scripts.
...
* Thanks Shauren for the IsDebuggerPresent() hint.
2016-04-14 21:27:39 +02:00
Naios
42eeb28a8b
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
2016-04-14 20:31:04 +02:00
Naios
10bc41c91e
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 )
2016-04-13 13:59:24 +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
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
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
Rochet2
2348613f7b
Add missing GAME_API exports
2016-03-27 17:02:31 +03: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
Naios
96bc31924a
CMake: Use inherited dependencies in scripts
...
* Removes the circular dependency between game <-> scripts
2016-03-18 02:53:00 +01:00
Shauren
5a6db6e84d
Core/Misc: Minimize differences between branches in WorldSession::Update
...
This commit removes OnUnknownPacketReceive script hook - it could never be fired anyway at that point
2016-03-13 00:12:09 +01:00
Naios
b7f936891a
Core/Game: Move singleton instances into compilation units
...
* Fixes issues when building shared libraries
(prevents gcc and clang from providing several instance)
(cherry picked from commit 329225b40d )
2016-03-11 20:03:12 +01:00
Naios
9e43365b3d
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
(cherry picked from commit 5534915f74 )
2016-02-22 16:25:54 +01:00
Shauren
7f817a4fc0
Core/Scripts: Fixed calling UnitScript hooks
...
Closes #16543
(cherry picked from commit f809e5e13e )
2016-02-11 16:36:08 +01:00
treeston
6102a7937d
Maps/Instances: Implement handling of CMSG_SET_SAVED_INSTANCE_EXTEND
2016-02-10 19:35:11 +01:00
velinath
d87f504b53
Core/Scripts/DB: Migrate specially scripted taxi NPC's to SmartAI
2016-01-09 14:39:07 -05:00
jackpoz
841ce54a0d
Scripts/Commands: Fix ".help" command to show commands in alphabetical order
2016-01-04 23:30:46 +01:00
Rushor
923a368ac7
Update copyright note for 2016
2016-01-01 12:02:33 +01:00