Commit Graph

996 Commits

Author SHA1 Message Date
CraftedRO
77d20d6aba Core/Misc: Don't teleport players to homebind location when logging out inside instance without a group (#30982) 2025-05-23 14:45:00 +02:00
Shauren
caa058d496 Core/PacketIO: Implemented CMSG_CORPSE_MAP_POSITION_QUERY/SMSG_CORPSE_MAP_POSITION_QUERY_RESPONSE 2025-02-20 14:01:11 +01:00
Shauren
b4168ee833 Core/Spells: Reduce differences between branches (port refactors from c0602889b5) 2025-02-19 19:32:55 +01:00
Shauren
13eb405a3d Core/Pets: a827230910 followup reducing differences between branches 2025-02-11 19:27:47 +01:00
Mykhailo Redko
a827230910 Core/Pets: Implemented sound playback when dismissing warlock pets (#30683) 2025-02-11 14:47:51 +01:00
Shauren
a5d4c46003 Fix build with libstdc++-11 2025-02-09 22:50:51 +01:00
Shauren
8565ba9876 Core/PacketIO: Converted BattlegroundPackets to classes 2025-02-09 21:08:35 +01:00
Shauren
de9340ccec Core/Battlegrounds: Port BattlegroundQueueTypeId changes from master branch 2025-02-08 19:58:34 +01:00
Shauren
61819f2dc7 Core/Misc: Reduce differences between branches and fix data sent in SMSG_AUCTION_COMMAND_RESULT, SMSG_PARTY_MEMBER_STATS, SMSG_BATTLEFIELD_STATUS and implemented missing SMSG_AUCTION_REMOVED_NOTIFICATION 2025-02-05 20:10:19 +01:00
Shauren
0b10514289 Core/Client Builds: Sync build_info structure with master branch 2024-08-30 02:12:49 +02:00
Shauren
a3aecbdd92 Core/PacketIO: Ported SMSG_GOSSIP_POI, CMSG_GROUP_INVITE and SMSG_GROUP_INVITE to packet classes 2024-07-14 17:28:48 +02:00
Shauren
1f25a0ff92 Core/Entities: Make ObjectGuid formattable with fmt without using ToString() 2024-07-14 13:45:05 +02:00
r4dish
0327f16d11 Core/Misc: Move instance enter times handling from Player to WorldSession. 2024-06-27 14:49:40 +02:00
Anton Popovichenko
ad3aeaa147 Core/Networking: Optimize CPU consumption by decreasing heap allocations when packet queue is empty. (#30007) 2024-05-25 11:12:10 +02:00
Gildor
b2c723c6b4 Core/Pets: Fix warlocks pet character selection screen and Soul Shard return reagent logout exploit (#29808) 2024-03-17 15:27:33 +01:00
Mykhailo Redko
ca1560f043 Core/Players: Improvements for talent reset logic. (#29580)
* Clean up Player::ResetTalents() from unnecessary logic, such as withdrawing money. Move it to more suitable places.
* Implemented SMSG_TALENTS_INVOLUNTARILY_RESET and use it instead of old trinity_string.
* Do not reset the accumulated talent reset cost if CONFIG_NO_RESET_TALENT_COST is enabled.
2024-02-13 15:55:37 +01:00
Mykhailo Redko
420cbd7396 Core/PacketIO: Implemented CMSG_BUSY_TRADE and CMSG_IGNORE_TRADE (#29570)
Closes #29308
2024-01-24 21:09:01 +01:00
Mykhailo Redko
75016bf4da Scripts/Commands: .account set seclevel command will update security level for online session (#29600) 2024-01-22 13:58:31 +01:00
Shauren
45a5b6a9f0 Core/Calendar: Implement different timezone support for ingame calendar
Closes #8390
Closes #29427

(cherry picked from commit b888b1b09f)
2023-12-02 15:57:03 +01:00
Shauren
a4299c2a4b Core/Misc: Replace string to int conversion functions from Common.h with c++17 std::from_chars based ones Trinity::StringTo
(cherry picked from commit 3260b94dd6)
2023-08-15 21:59:52 +02:00
Shauren
aaa6e73c8c Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api)
(cherry picked from commit d791afae1d)
2023-08-15 20:10:04 +02:00
Shauren
777b001d2d Core/Misc: Use boost/circular_buffer forward declaration headers in our headers
(cherry picked from commit 1afec8be63)
2023-08-12 17:56:16 +02:00
Shauren
f5a2e2ae13 Core/Misc: Replaced boost::container::static_vector in packet classes with plain vector with custom static storage allocatlr
(cherry picked from commit b65c3f5f4a)
2023-08-12 17:56:15 +02:00
Shauren
b7287e85e4 Core/Misc: Fixed deprecation warnings for c++20
(cherry picked from commit ba9bbbc9d0)
2023-08-12 14:24:24 +02:00
daMaex
b23d16a870 Core/Crypto: Switch away from deprecated low level md5 functions 2022-06-16 12:37:00 +02:00
jackpoz
aee4f0350e Core/PacketIO: Continue processing packets even if player is not in world 2022-04-18 12:17:14 +02:00
Shauren
0d0cb23a63 Core/PacketIO: Stop WorldSession packet processing loop immediately when AntiDOS kicks/bans the player 2022-04-16 23:16:38 +02:00
Shauren
de4340af37 Core/PacketIO: Require valid WorldSession for CMSG_KEEP_ALIVE 2022-04-08 18:07:59 +02:00
Kelno
e2f20aff8a Don't count character pending deletion towards character per account limit (#26837)
* Don't count character pending deletion towards character per account limit

* Never show more than 10 characters char enum

* Use constants
2021-08-19 16:07:54 +02:00
Carbenium
8ee92147a5 Core/ChatCommands: AccountIdentifier from current target 2021-08-14 12:50:18 +02:00
Giacomo Pozzoni
68bf7e6d12 Core/Network: Add option to allow/disallow saving IP addresses to database (#26723)
Add config option AllowLoggingIPAddressesInDatabase to authserver and worldserver to specify if IP addresses can be logged or not to the database
2021-07-28 11:44:24 +02:00
Chaouki Dhib
4806b3a860 Core:Movement: Replace assert by logging and returning in case of unexpected case in WorldSession::ReadMovementInfo 2021-07-04 23:00:55 +02:00
Chaouki Dhib
ef113ce673 Revert "Core/Movement: Better handle cases of passing incomplete data to ReadMovementInfo()"
This reverts commit 0c90970b06.
2021-07-04 22:01:22 +02:00
jackpoz
0c90970b06 Core/Movement: Better handle cases of passing incomplete data to ReadMovementInfo()
ReadMovementInfo() checks MovementInfo::guid but that field is not always set by the callers. An error is logged in that case, skipping triggering an assert.
2021-07-04 20:06:21 +02:00
jackpoz
479c636612 Core/Movement: Include GetGameClientMovingMe() details in assert logs 2021-07-04 19:40:28 +02:00
Chaouki Dhib
fdbff48808 Core/Movement: Fix movement handler crash during ReadMovementInfo check (#26644)
* Core/Movement: Fix movement handler crash during ReadMovementInfo check

* fix noph build

* add an assert
2021-07-04 18:49:30 +02:00
Chaouki Dhib
d337fb99ed Core/Movement: Implement proper player speed change (#26561) 2021-06-15 23:09:48 +02:00
Chaouki Dhib
19fa411431 Core/Movement: Hotfix the crashes that can occur in the movement handlers (#26538) 2021-05-22 14:54:58 +02:00
Chaouki Dhib
2d114ea560 Core/Movement: Improve client control logic (#26348) 2021-05-16 13:16:08 +02:00
Shauren
3b95d3dcf9 Core/PacketIO: Fixed SMSG_GUILD_EVENT for empty MOTD broken after cd28423a4e
Closes #26522
2021-05-10 13:09:59 +02:00
Matan Shukry
dd27485a64 Core/Player: remaining XP logging overflow correction (#25934)
(cherry picked from commit 6dbaba7669)

# Conflicts:
#	src/server/game/Handlers/CharacterHandler.cpp
#	src/server/game/Server/WorldSession.cpp
2021-01-31 16:02:39 +01:00
Giacomo Pozzoni
661f554b9e Core/Misc: Fix static analysis issues (#25924)
* Core/Misc: Fix static analysis issues

* Fix infinite loop in ".debug send opcode"
Fix using uninitialized memory in ".debug send opcode"
2021-01-24 16:04:47 +01:00
Jan Van Buggenhout
a832a1fe90 Core/Misc: Fix typo in SendAuthWaitQue method name (#25887) 2021-01-18 17:35:35 +01:00
Jan Van Buggenhout
ec689e7908 Core/Misc: Update WorldSocket::OnRead to WorldSocket::ReadDataHandler in comments and logging (#25885) 2021-01-18 17:27:36 +01:00
Jan Van Buggenhout
c7e03e4cef Core/PacketIO: Change size of SMSG_AUTH_CHALLENGE WorldPacket from 37 to 40 in WorldSocket::HandleSendAuthSession (#25886) 2021-01-18 17:23:41 +01:00
Matan Shukry
cdfa85957e Core/logs: added xp info on login & logout (#25867)
* Core/logs: added xp info on login & logout

* - Moved getters to header
- Changed %s to %u

(cherry picked from commit bb24c6a11b)

# Conflicts:
#	src/server/game/Entities/Player/Player.h
#	src/server/game/Handlers/CharacterHandler.cpp
#	src/server/game/Server/WorldSession.cpp
2021-01-17 17:45:00 +01:00
Kargatum
a32b6b8ac4 Core: whitespace cleanup, reduce double blank line to single (#25795)
* Core/Misc: fix double empty line

* worldserver.conf
2021-01-03 11:47:07 +01:00
Shauren
53482f7299 Core/DBLayer: Fixed memory leaks with existing SQLQueryHolder uses and eliminated the possibilty of adding more in future (replaced manual memory management with smart pointers) 2020-10-24 17:37:24 +02:00
Shauren
7de23e4619 Warning fix 2020-09-27 18:52:13 +02:00
Shauren
93f6e7431a Core/PacketIO: Convert mail packets to classes 2020-09-27 15:29:32 +02:00