Commit Graph

27 Commits

Author SHA1 Message Date
ratkosrb adaf27ba68 Support for client build 1.11.2 (#112)
* Add support for the 1.11.2 client.

* Fix some startup errors.

* Fix all startup errors with 1.11 dbcs.

* Fix SpellCastResult enum values.

* Implement old spell haste handling.

* Fix spell haste logic for 1.12.

* Lethargy Root is grey in 1.12.
2018-06-01 04:34:00 +03:00
ratkosrb 19e3a65426 Fix extractors build (#64)
Credits to Giperion and Crito.
2018-04-25 14:59:16 +03:00
GuybrushGit e392feea8b Adjust yearly events for leap days (#381)
* Adjust yearly events for leap days

* Adjust yearly events for leap days

* Merge branch 'development' into leapDays
2017-12-29 18:06:37 +02:00
bladez ad7f495463 Move long-blocking GM command queries to async operations (#1036)
* Remove % prefix on IP lookup so table indexes can be utilized

* Add template functions for performing delayed query holders and unsafe async queries with static methods as callbacks

* Implemented async handling of PInfo command and extracted to separate TU for futher async command handling

* Add support for static delay holder with no extra params

* Remove a number of wildcard prefixes from lookups (cannot use indexes with wildcard prefix)
WIP move character lookups to async

* Make adding to async tasks threadsafe, remove arbitrator on task execution and allow them to be run when a thread is ready

* Remove non-templated declarations and definitions of delayed query holder methods, it breaks builds. Just use a dummy var instead

* Move display for lookups to async tasks
Don't delete queries inside ShowPlayerListHelper

* Use async queries for player character name lookup and account character lookup

* Disable console output for async lookup commands (pending console output support)

* Move account lookup to async

* Remove all concat3 and wildcard prefixes from frequently used GM commands so that table indexes are utilized

* Moved offline gold removal to async

* Remove bad delete

* Move banaccount lookup queries to async

* Add a simple async task for sending packets to specific sessions

* Pass data by ref in SessionPacketSendTask

* Include for WorldPacket def

* Remove class qualifier
2017-12-20 16:19:30 +11:00
bladez e12915d6b1 Resolve geolocking build issues and crash (#847)
* Fixed build with geolocking enabled

* Fix crash with geolocking enabled
2017-11-29 22:42:34 +11:00
StadenElysium f99e40d8dd Geolocking implementation (#518)
* Implements a mechanism for locking accounts down if a player logs in from another country.
* Removed some deprecated cruft (auto_ptr/random_shuffle/register/(unary | binary)_function) at the same time.
* Adds JSON for Modern C++ (https://github.com/nlohmann/json/) to the project.
2017-11-14 23:55:27 +00:00
Staden da5f32d9b5 Remove tabs 2017-10-28 22:38:54 +01:00
Staden 05b4ad29dc Fix spurious authentication failures caused by incorrect padding of SRP6 values. 2017-10-28 22:35:08 +01:00
Prithu 180cf59a52 Converted serialId to uint32 to avoid overflow with large GUIDs used as the ID (#2977)
* Converted serialId to uint32 to avoid overflow with large GUIDs used as the ID

* Now ensure all player inventory saves are performed in a transaction serialized to them

* Did you just assume my gender?
2017-10-04 17:12:01 +11:00
brotalnia 7bbf047e5a New Progression System (#2954)
* Implement new progression system. (#2118)

* Implement new progression system.

* Add progression support to battleground_template table.

* Assign patch to areatriggers.

* Print current patch on startup.

* BG player requirements are per team.

* Revert last change. Thanks WobLight.

* Fix .npc add command.

* Now actually fix .npc add.

* Assign patches to game events.

* Items can be forbidden both after and before a patch.

* Extend quest tables support.

* Rename migration so its last.

* Merge changes into 1 migration.

* Add old BG rewards.

* Battlemasters, Equipment Errors, Item Conditions.

* Warbringers and Brigadier Generals added in 1.8.
2017-10-02 20:34:08 +03:00
Prithu 4af3840406 Implemented support for serial transactions and character loading (#2664)
* Implemented support for serial transactions and character loading, ensuring order of operations remains consistent
- All item saving is now serialized to prevent issues with duplicating due to certain queries running out of order
- Character loading is now serialized with the same system as items, to prevent duplications by relogging before queries are performed

* Reverted debug delay thread update timer
2017-09-21 18:19:54 +10:00
Prithu 5f8c3001a6 Backport crash and memleak fixes (#2105)
* Fix a memory leak in login if the client has an invalid OS (spoofed client)

* Fix a crash in visibility update

* Fix crash on null target duel

* More auth crash fixes
2017-08-15 21:59:35 +10:00
Thetruecrow d6d83b38c6 Fixed compile errors when building with tools. 2017-05-27 22:15:37 -07:00
Staden 276a3411c7 Merge branch 'aq' into aqmerge 2017-05-16 10:07:13 +01:00
Staden 1ecd677597 Revert "Fix ACE_TSS usage (#664)"
This reverts commit 2ea863c279.
2017-05-11 23:38:23 +01:00
brotalnia 2ea863c279 Fix ACE_TSS usage (#664) 2017-05-10 07:16:44 +01:00
Staden 4e2a78072f Change socket log format specifier
Still less than ideal.
2017-04-24 14:08:00 +01:00
Martin Jesper Low Madsen 6bc9a865a5 Uses a proper ACE_HANDLE type for logging (#403)
Changes socket handle type to platform specific ACE_HANDLE instead of
explicitly casting the pointer to uint64.
2017-04-24 14:02:02 +01:00
Gemt ca1e23ce37 Merge branch 'development' into aq 2017-03-30 00:12:54 +02:00
Gemt 22b8c7353c calling srand each time a new threadtasks is started with the highest resolution 32bit component of high_resolution_clock::now().time_since_epoch(). (#113) 2017-03-26 04:04:02 +01:00
StadenElysium d217e2726f Attempt reconnection after a failed OpenConnection (#80)
Allows for the auth server to continue accepting connections when the database comes back online, rathern requiring a restart. Not an ideal solution but I'm not rewriting MaNGOS' database handling.
2017-03-25 20:10:54 +00:00
Duks 5f36518aff Debian Jessie - Potential Fix (#59)
Potential fix for crash that prevents unload of server side.
2017-03-19 18:16:13 +00:00
Gemt c6d10bfc01 Merge branch 'aq' into aq_dev_merge 2017-03-19 11:03:52 +01:00
Zerix 287fdec16d [Core/Scripts]: Implement Event Based Timers (#43)
* Event based timers. Allows us to use scheduled events rather than the
time diff checking.

* Easier to write, and easier to read for newbies.

* Simplifies code flow and looks far more professional to the trained
eye.

* Comes from TrinityCore so we can cross reference scripting techniques
and start coding in the 21st century on this core..

* As a proof of concept, I have rewritten Lucifron (first boss in MC) to
show an example of how this might look in the future with the other
scripts.
2017-03-16 15:05:04 +00:00
Gemt 5f2dee2727 logger functions for script library and several additions to ScriptInstance for handling AI dialogues, taken from cmangos 2017-03-15 21:55:10 +01:00
StadenElysium 43452c0d9c License update (#27) 2017-03-15 17:27:20 +00:00
shenna c9151a5715 Initial Commit / Core Files 2017-03-10 00:38:11 +03:00