Commit Graph

10 Commits

Author SHA1 Message Date
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
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
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
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
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
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