aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared
AgeCommit message (Collapse)Author
2015-06-26Core/CrashHandler: Make crashhandler tread-safejackpoz
Handle only 1 exception in the whole process lifetime and create only 1 crash report. (cherry picked from commit 1a5051a9c3b8246e92543962c04c3883c4d03f5f)
2015-06-21Core/Utilities: TaskScheduler: add a task validator and on update success ↵Naios
callback. * makes it possible to block tasks if there is an active spellcast. * requested by @joschiwald (cherry picked from commit 3d95aba2b3d58057f3eeed6d4dd6e51ea49b77f6)
2015-06-21Core/Updater: Fix a wrong formatter introduced in 0d095109eec31Naios
* thanks @Aokromes for noticing (cherry picked from commit bd661b58fd2c37850a719cfffe135e89043c112d)
2015-06-21Core/Threading: Fixed possible data races after making auth queries async by ↵Shauren
moving their processing to boost::asio::io_service::run threads
2015-06-20Core/Updater: Add some info about the count of applied updates.Naios
* some minor improvements * add a log message when database updates are disabled. (cherry picked from commit a5b3862bc1b066a9614369bda3adef485a57eff8)
2015-06-20Core/DBLayer: Sprinkle some async magic on worldserver auth/session load processShauren
* Implemented base for loading account wide data
2015-06-13Core/Misc: Warning fixesShauren
2015-06-12Core/DBLayer: Correct Battle.net CheckPasswordDJScias
- Async would lock and crash the server - This fixes !bnet set password and !bnet password
2015-06-03Core/Shared: Hide the internal shared_ptr of the TaskContextNaios
* use . operator instead of -> to access the TaskContext now. * Add TaskContext::IsExpired to check whether the owner has expired. (cherry picked from commit 151a0f5c5e1133a21c46a8d55c834ff52061c3fa)
2015-06-01Core/CrashHandler: Log STACK_OVERFLOW crashesjackpoz
Try to log STACK_OVERFLOW crashes by allocating log buffer on the heap which should still be in a valid state with a stack overflow exception. This will probably still not produce a complete crash report with details about all stackframes. (cherry picked from commit ec4b08e3cf79cfb5fe99a542bd53bac9560e0d92)
2015-05-31Shared/Util: Introduce a task scheduler which schedules task with c++11 ↵Naios
techniques. * Use std::function as callback (methods, lamdas & std::bind). * Uses std::chrono::duration as duration type (Milliseconds, Seconds...) - With c++11 user defined literals we could just write "11s" for example (MSVS 2015, gcc & clang). * Provides a lot of overloads for easier usage: - Static durations or random durations between min and max. - Named (with group ids - group id 0 is possible) or anonymous tasks. - Asynchronous tasks. * Is adapted to the current needs of scripting: - Repeat tasks through the TaskContext - Schedule new tasks from the context. - Provides access to the times repeat counter of a task, this will help to schedule multi step events (dialogs for example). See https://gist.github.com/Naios/6d143538abdc3d32fd2b for usage examples. (cherry picked from commit da77a90aa98bc6e34c001ca871700cec7c6e5017)
2015-05-30Merge pull request #14782 from doctaweeks/fixes-for-6.xMitchesD
Minor fixes for 6.x
2015-05-30Core/DBLayer: proper 6x account unbanDJScias
- Thanks @Shauren - Unbanning accounts in 6x should set unbandate = now (UNIX_TIMESTAMP() instead of NOW() due to unbandate being an int, not a timestamp) - 'Active' updates remain so the "account is not banned" checks continue functioning
2015-05-28Core/Updater: Fix issues when connecting through unix sockets.glkrlos
* closes #14766 * closes #14759 Signed-off-by: Naios <naios-dev@live.de>
2015-05-27Remove unnecessary semicolonsDaniel M. Weeks
2015-05-22Core/Garrisons: Implemented follower class/spec abilities and saving them to ↵Shauren
database
2015-05-19Core/PacketsIO: Implemented or updated most of party related packets.et65
Packets updated or implemented : - SMSG_INSTANCE_INFO : updated - CMSG_SAVE_CUF_PROFILES : updated - SMSG_LOAD_CUF_PROFILES : updated - SMSG_PARTY_COMMAND_RESULT : updated - CMSG_PARTY_INVITE : updated - SMSG_PARTY_INVITE : updated - CMSG_PARTY_INVITE_RESPONSE : updated - CMSG_PARTY_UNINVITE : updated - SMSG_GROUP_UNINVITE : updated - CMSG_LEAVE_GROUP : updated - SMSG_GROUP_DECLINE : updated - SMSG_GROUP_DESTROYED : updated - CMSG_MINIMAP_PING : updated - SMSG_MINIMAP_PING : updated - CMSG_CONVERT_RAID : updated - CMSG_SET_EVERYONE_IS_ASSISTANT - CMSG_DO_READY_CHECK : updated - CMSG_READY_CHECK_RESPONSE : updated - SMSG_READY_CHECK_COMPLETED : updated - SMSG_READY_CHECK_RESPONSE : updated - SMSG_READY_CHECK_STARTED : updated - CMSG_REQUEST_PARTY_JOIN_UPDATES : implemented (source : sniffs) - CMSG_REQUEST_PARTY_MEMBER_STATE : updated - SMSG_PARTY_MEMBER_STATE : updated - SMSG_PARTY_UPDATE : updated - CMSG_REQUEST_RAID_INFO : updated - CMSG_INITIATE_ROLE_POLL : updated - SMSG_ROLE_POLL_INFORM : updated - CMSG_SET_ROLE : updated - SMSG_ROLE_CHANGED_INFORM : updated - CMSG_CHANGE_SUB_GROUP : updated - CMSG_SWAP_SUB_GROUPS : implemented - CMSG_SET_ASSISTANT_LEADER : updated - CMSG_SET_PARTY_LEADER : updated - SMSG_GROUP_NEW_LEADER : updated - CMSG_CLEAR_RAID_MARKER : implemented - SMSG_RAID_MARKERS_CHANGED : implemented - CMSG_UPDATE_RAID_TARGET : updated - SMSG_SEND_RAID_TARGET_UPDATE_ALL : updated - SMSG_SEND_RAID_TARGET_UPDATE_SINGLE : updated - CMSG_OPT_OUT_OF_LOOT : updated - CMSG_SET_LOOT_METHOD : updated About group update flags: - Not sure they are use for now. - Pets now have their group update flags. - Pets'power is no send to client anymore. - Changes about them are inspired from SMSG_PARTY_MEMBER_STATS parsing of WowPacketParser, but it seems this packet is not use anymore. CHAT_MSG_RAID has been fixed. About Ready check: - Correctly implemented this function. - An update function has been added to Group class, and to GroupMgr class in order to manage the ready check expiration (when 35 seconds were gone, players who have not answered must be reported as AFK) About Raid markers: - Old spell effect SPELL_EFFECT_SUMMON_OBJECT_SLOT3 has been renamed to SPELL_EFFECT_CHANGE_RAID_MARKER and implemented. I'm sure about that because raid markers spells are the only spells that have this effect type. Source: WowPacketParser, and sniffs from official.
2015-05-17Core/Garrisons: Initial work on garrison followersShauren
2015-05-08Core/Garrisons: Basics for garrisonsShauren
2015-05-02Core/Networking: Fixed possible msvc debug assertions in vectorShauren
2015-04-28Core/Entities: Reworked guid scopesShauren
* Added ObjectGuid traits to easily access whether guid type can be generated globally (ObjectMgr) or not * This adds separate (per map) guid sequences depending on object type * Ported map object container from cmangos/mangos-wotlk@a2d396eb0bb195efc460944dd4e0fab2a858b300 * Added type container visitor for TypeUnorderedMapContainer * Implemented helper function to erase unique pairs from multimap containers * Moved object storage of all objects except players and transports to map level * Added containers linking database spawn id with creature/gameobject in world * Renamed DBTableGuid to spawnId * Added a separate spawn id sequence generator for creatures and gameobjects - this will be used in db tables * Moved building SMSG_UPDATE_OBJECT - updatefields changes broadcast to map update
2015-04-27Core/Misc: Use boost::in_place() to initialize optionals.Naios
* Improves commit 800d5d893964a822655 * Thanks @Shauren for this great suggestion.
2015-04-27Core/Util: Fixed flag128 and removed flag96 - previously if flag128 and ↵Shauren
flag96 were used in together the result was always a bool instead of expected flag result due to implicit boolean conversion
2015-04-26Core/Misc: Replace tc's optional with boost::optional.Naios
* 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.
2015-04-24Core/Log: Fix newlines when using dynamic log namesNaios
* thanks @Aokromes for reporting * also removes an unnecessary std::move (cherry picked from commit 2592528741a3ce4879c9d5f398e12b37a975cbcf)
2015-04-24Core/Socket: Removed unused synchronous read methodShauren
2015-04-21Core/Player: Added character templatesCarbenium
* Characters with predefined levels can be created * Avaiable factions and classes can be configured * Valid values for `factionGroup` in table `character_template_class` are 3 (Alliance) or 5 (Horde) * Added new permission RBAC_PERM_USE_CHARACTER_TEMPLATES - has to be set, to allow the usage of the templates Closes #13952
2015-04-20Removed unused includeShauren
2015-04-20Core/Misc: Removed gcc specific packing pragma syntax - only unsupported ↵Shauren
(now) versions required it
2015-04-18Core/PacketIO: Updated and enabled more battleground packetsShauren
2015-04-15Add missing newlineDaniel M. Weeks
2015-04-15Remove unnecessary semicolonsDaniel M. Weeks
2015-04-15Fix documentationDaniel M. Weeks
2015-04-15Prevent collisions in GCC attribute definitionsDaniel M. Weeks
2015-04-14Core/Quests: Added research results about last field in QuestPackageItem.db2Shauren
2015-04-13Core/Quests: fixed quest rewardingRat
* ItemSpec.dbc still needs some research to handle all cases correctly
2015-04-12Core/Battle.net: Ensure email is always uppercaseShauren
2015-04-11Core/Battle.net: Query optimizations part2 - made all queries asynchronousShauren
2015-04-11Core/Battle.net: Query optimizations part1 - reduced the amount of queries ↵Shauren
during authentication
2015-04-11Core/Bnet: Fixed crash on shutdown happening when there were still players ↵Shauren
connected
2015-04-10Core/Misc:Vincent-Michael
- Update LocaleConstant enum - Update Quest locale system for WoD - Fix some rnd typo in quest template
2015-04-08Core: Whitespace cleanupVincent-Michael
2015-04-06Core/Database: removed old questItem fieldsRat
2015-04-05Core/Player: Implement CharSections.dbc and serverside checksCarbenium
Ported from 6d4c672fb1b799e1888881282e40992a9e15a006 Original work by @ariel-
2015-04-05Core/DBUpdater: Remove some constructors accidently merged in 455eee9392acNaios
2015-04-05Core/DBUpdater: Exit clean if a query failed to apply.Naios
* Fix some \W4 warnings about constructors. (cherry picked from commit de490674ff1205d908301b94f5644247562b43cb)
2015-04-05Core/Log: Remove some unnecessary std::move's.Naios
* This are r-value references already. * Thanks @Shauren for noticing (cherry picked from commit 85d6ff9570869bce368e9bbcf881755c6c89cb55)
2015-04-05Merge pull request #14491 from doctaweeks/fixes-for-6.xCarbenium
Fixes for 6.x
2015-04-04Misc: Fixed license header formattingShauren
2015-04-02Rename variables to fix C++11 keyword collisionDaniel M. Weeks