Commit Graph

64 Commits

Author SHA1 Message Date
ratkosrb 618ecbd1d3 Remove obsolete defines. 2020-04-30 19:35:39 +03:00
ratkosrb 236376fca0 Remove references to removed directories. 2020-04-26 14:18:17 +03:00
shenna 6dec597308 Make server autobroadcast timer configurable. (#384)
* Make server autobroadcast timer configurable.

* Credits: MaNGOS Zero

* Move config option to server category.

* Update migrations.

Co-authored-by: ratkosrb <35845488+ratkosrb@users.noreply.github.com>
2020-02-29 12:30:19 +02: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 414b7531a8 Fix tiny bug in unused util function.
Credit to cmangos https://github.com/cmangos/mangos-classic/commit/b4be011e0da555a3a327777acb2bb67e03cc9589
2019-12-30 10:38:21 +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 25b64c7c25 Add support for MinGW and ARM (#322)
* Add support for mingw compiler and arm platform.

* Change else to elseif in cmake file.

* Add libseh for mingw.

* Fix extractors build.

* Remove static link flags.

* Undo some changes that were not needed.

* Remove debug flag from extractors.

* Add missing readme for libseh.

* Remove not needed acquire on guard.
2019-12-01 15:31:38 +02:00
ratkosrb df76eff1d3 Fix a ton of warnings found using clang. (#308) 2019-11-20 20:27:36 +02:00
ratkosrb ebab772363 Fix some static code analysis warnings and improve performance
Credits to cmangos https://github.com/cmangos/mangos-classic/commit/46229bb28c6a4362dc4f4ee88e8bdaf962cb1d58
2019-11-17 15:57:34 +02:00
ratkosrb cf1ac2f373 Fix some bad replace cases. 2019-11-12 20:35:05 +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 4a418d8e09 Implement rounding of reputation gains.
When the gain is exactly between two whole numbers, it should randomly pick the lower or higher value. Can be observed on official servers when you kill Witherbark trolls as a Human, since they give 5 rep, and you get 0.5 bonus rep from your racial.
2019-10-02 19:48:31 +03:00
ratkosrb 7f7160b2b7 Add warden and comprehensive movement checks (#216)
* Initial Warden Implementation.

* Send notification to gamemasters.

* Implement support for all modules.

* Misc improvements.

* Fix copy paste error.

* Update wrong file header.

* Fix travis build.

* Fix possible crash.

* Add new anticheat.

* Resolve issue when being teleported.

* Add config checks.

* More config checks.

* Move enum to more appropriate header.

* Fix compile for old builds.

* Sent root on possessed creature after active mover packet.

* Allow out of order acks.

* Return result of tests in handle speed ack.

* Stop disconnected player from moving.

* Remove no longer needed include.

* Fix wrong speed when jumping in water.

* Add back the braces.

* Only send heartbeat for resendable changes.

Fixes https://github.com/vmangos/core/issues/212
2019-06-19 21:11:58 +03:00
Matthew Linder a0b8444587 Mac clang fixes (#204)
* update CMakeLists to include OpenSSL include for different computer environment setups

* changes to HonorMgr and GuardMgr to make compiling compatible with clang in c++14 mode

* changes to MoveMap and PathFinder to make compiling compatible with clang in c++14 mode
2019-06-12 18:29:37 +03:00
ratkosrb 539bae6c9c Make SpellEntry related functions into class members. 2019-05-05 16:02:36 +03:00
ratkosrb 4b2020a2b6 Re-categorize chat commands. 2019-04-21 18:58:25 +03:00
ratkosrb f3146fdd8a Fix utf8 conversion buffer overflow.
Credit to blades https://github.com/lh-server/core/commit/bf46ea81c26db700df9559135cec4f4c6d93a7bd
2019-03-08 14:18:26 +02:00
ratkosrb f6cc726411 Move Thrall and Vol'jin scripts to database. 2018-12-28 16:08:11 +02:00
ratkosrb c143c9dd9b Move some defines to progression header. 2018-12-28 12:57:20 +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 ed77117267 Fix build on linux with newer openssl versions (#50) 2018-12-02 22:40:27 +02:00
ratkosrb f140d1d03d Add generated header to gitignore. 2018-11-23 04:34:26 +02:00
ratkosrb 200407326d Add client build option to cmake. 2018-11-23 04:27:00 +02:00
ratkosrb acaa54ae9d Initial support for 1.9.4 client.
You can enter world and objects display correctly. Lots of startup errors though.
2018-11-19 05:31:20 +02:00
ratkosrb 81e883c291 Do item spell id substitutions in core.
Previously we replaced the spell id used by items that had the data for the spell itself changed in item_template as if it were a change to the item. That meant we actually had wrong item data for those patches, but it made the effects look correct in the 1.12 client. If you were to play with the actual patch appropriate client however, all of those items would show wrong effects. Doing spell id substitutions for newer clients in the core is a better way to handle this, as it means we can have 100% correct and patch appropriate data for items in the database. Also this way there is no way of missing an item that needs a replacement spell id for lower content patches, since all the items are checked on startup.
2018-11-19 00:35:56 +02:00
ratkosrb fc8cc3f176 Fix stats for some items. 2018-11-06 18:16:40 +02:00
ratkosrb 3054860b48 Prevent sending of bad item links.
Credit to LH.
2018-10-17 21:50:02 +03: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 79c79bd1ac Fix proc of Zandalarian Hero Charm. 2018-09-16 22:33:17 +03:00
ratkosrb 9b259bc733 Try to fix travis build. 2018-09-15 21:47:13 +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
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