Commit Graph

40 Commits

Author SHA1 Message Date
_BLU bd99c9a496 Fix "Only allow one transaction at the same time" (#2834)
This reverts and fixes commit 5a5c7d1405f957e8f722d1196c272b8ee5bcaab2.
2024-11-17 20:05:18 +02:00
_BLU 36943cd268 Stricter SQL checks (#2829)
* Add assert(false) on unexpected mysql error

* Only allow one transaction at the same time
2024-11-15 11:54:48 +02:00
ratkosrb 9e63169e57 Drop spell_affect table. 2024-09-26 18:43:08 +03:00
ratkosrb 3d61a81da7 Fix startup crash on arm.
Fix posted by rechap79 here https://www.getmangos.eu/forums/topic/8596-attempting-to-port-to-armv7/
2024-07-11 07:22:34 +03:00
_BLU 61e1ff1a9e Refactoring includes. (#2660)
- Clang-Tidy: Inclusion of deprecated C++ header
- Removed Windows.h from PCH
- Most of the time `#include "Errors.h"` was leading to the wrong file anyways.
2024-06-17 21:04:22 +03:00
_BLU 9daa125a77 More database connection changes (#2651) 2024-06-12 20:08:41 +03:00
_BLU 93392efb28 Make use of smart-pointers for database query results (#2642) 2024-06-07 11:37:33 +03:00
Wall a27f97d2ba Fix XML Whitespace & Comments (#1996) 2023-07-04 12:56:09 +03:00
Brecht Debaere 729337f947 Fix memory leak when executing SqlStatement with wrong parameters.
https://github.com/cmangos/mangos-classic/commit/42d50ffd2cdb04695ea151ca36186f0a3927c7af

Server will crash from assert right after so it doesn't really matter, but still...
2023-04-24 10:24:38 +03:00
ratkosrb 83943833ed Cleanup some includes. 2023-01-29 04:44:39 +02:00
Martin Weinelt 5259cd8637 Fix undefined nullptr_t type in SqlPreparedStatement.h (#1716) 2022-12-03 19:20:41 +02:00
namreeb dfb90c5880 Logging rewrite (#1519) 2022-10-06 16:34:56 +03:00
ratkosrb f7cda6eef4 Add update fields for all versions. 2021-04-02 06:28:35 +03:00
WobLight 03a2e108ba Replace use of ACE threads (#25) 2021-02-21 14:25:25 +02:00
ratkosrb f9ddf353ad Update included zlib to 1.2.11 (#587) 2020-06-07 15:29:24 +03:00
ratkosrb 5ffcf9c88d Warn about mysql 8. 2020-05-21 07:03:35 +03:00
ratkosrb 618ecbd1d3 Remove obsolete defines. 2020-04-30 19:35:39 +03:00
ratkosrb cc2a54e7af More minor changes.
Follow up to last commit, and some changes from this https://github.com/cmangos/mangos-classic/commit/c6cc0ec6659753f3f12feebba31cbd8ab05d9c70
2019-12-30 12:02:31 +02:00
ratkosrb 6ecf14f8d6 A few more code style changes. 2019-12-30 11:50:21 +02:00
ratkosrb 7c81af0104 Update code style in shared project. 2019-12-30 11:32:13 +02:00
ratkosrb 6d2ca39216 Fix some unused parameter warnings.
Credit to cmangos https://github.com/cmangos/mangos-classic/commit/afc33d9b08b923a60d573d7107aca59f660979ae
2019-12-30 10:34:11 +02:00
ratkosrb e806acc769 Apply clang tidy fixes. (#330) 2019-12-24 06:23:40 +02:00
ratkosrb df76eff1d3 Fix a ton of warnings found using clang. (#308) 2019-11-20 20:27:36 +02:00
ratkosrb 4afe949345 Replace usage of NULL with nullptr. 2019-11-12 19:53:42 +02:00
Micrah 3ebb9a08de Fix linux build for Maria DB (#291) 2019-10-31 00:21:48 +02:00
ratkosrb b7b970e886 Code style improvements.
based on https://github.com/cmangos/mangos-classic/commit/ce2527c0b2fdcc8b72d745371ab2f68c81728cc6
2018-12-04 15:30:47 +02:00
ratkosrb 5a8accd3a6 Add some safety to some preprocessor defines.
Credit to cmangos https://github.com/cmangos/mangos-classic/commit/6f5f8c241838be3e7986233fe4424bf11008cb6b
2018-10-14 19:48:11 +03:00
ratkosrb 5ae67a525f Remove obsolete header. 2018-09-15 20:36:48 +03:00
ratkosrb 716da74d7d Support for client build 1.10.2 (#213)
After this commit you have to move your DBCs inside a folder with the build number. So for example if they were in "data\dbc\" before, now they should be in "data\5875\dbc\" for 1.12.
2018-08-26 08:51:57 +03:00
ratkosrb c6e0de2ea6 Use build when loading model info. 2018-06-01 05:14:37 +03: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
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