Commit graph

28 commits

Author SHA1 Message Date
sruon
8267b4f324 Fold PacketGuard into the general C2S system
- Size checks are enforced for all packets in the handlers and automatically determined from structures
- Adds missing padding to a handful of packets
- Introduce a flag-driven BlockedState mechanism for packet validation
- Rate limit values loaded from settings and handled by PacketSystem
- PacketHandlers global array is no longer accessible
2026-04-15 20:51:02 -06:00
Zach Toogood
920098c8f9 Tools: Update to clang-format-20 and update rules 2025-11-06 13:41:08 +00:00
sruon
7a08619d27 GP_SERV_COMMAND_AUC
Co-Authored-By: atom0s <atom0s@users.noreply.github.com>
2025-10-24 06:18:28 -06:00
sruon
784dbcf417 GP_SERV_COMMAND_CHAT_STD
Co-Authored-By: atom0s <atom0s@users.noreply.github.com>
2025-10-16 13:55:13 -06:00
sruon
bc7d948af9 C2S Validation
Co-Authored-By: atom0s <atom0s@users.noreply.github.com>
2025-07-20 23:43:35 -06:00
sruon
f964171f53 Announcements module defer to auctionutils 2025-05-07 23:30:18 -06:00
Zach Toogood
69cda2429c DB: Deprecate db::query 2025-03-29 09:08:37 +00:00
sruon
04023359ff Correct condition when item not purchased 2025-03-27 13:21:00 -06:00
Zach Toogood
d09572e645 Core: Replace kernel.cpp with Application 2025-03-22 23:35:24 +00:00
Zach Toogood
6bad6cbe77 Core: Refactor map session management 2025-03-16 15:10:07 +00:00
Zach Toogood
848b4c2423 World: Add stub for PartySystem 2025-02-24 16:24:39 +00:00
Zach Toogood
544621ca3f Core: Rewrite IPC system to use codegen'd structs 2025-02-24 16:24:35 +00:00
Zach Toogood
2c9fec63db Core: Convert transactions to use db::transaction 2025-02-08 19:03:06 +00:00
Zach Toogood
fd1a9b3e5a Clean up auctionutils 2025-02-01 10:10:12 +00:00
WinterSolstice8
91d7ea5ea9 [core] [module] AH announcement module: return if item purchased 2025-01-21 21:14:51 -07:00
Zach Toogood
9e2e7cfc72 Core: All pushPacket methods now take unique_ptr 2025-01-15 10:42:48 +00:00
Zach Toogood
cf4186f053 Core: Remove CCharEntity::pushPacket(raw packet) 2025-01-15 10:42:47 +00:00
Zach Toogood
0d1e9056dc Module: Remove LAST_INSERT_ID usage from ah_announcement 2024-12-18 17:19:45 +00:00
Zach Toogood
f1f9dc4273 Modules: Replace dedicated SqlConnection with db:: 2024-12-18 12:07:33 +00:00
Zach Toogood
62d1688ad9 [core] Rename CZone::GetName() -> getName() 2023-12-10 00:48:05 +00:00
Zach Toogood
1cd4a6223a [core] Fix issues from C++20 update on MSVC 2023-12-03 18:24:15 +00:00
Zach Toogood
538c480107 [ci] modules clang-tidy 2023-07-26 23:40:05 +01:00
WinterSolstice8
24379b2efa [AH] [packets] Support sending quantity of stack bought/failed to buy
* Update AH modules
2023-03-14 23:04:58 -07:00
Zach Toogood
857e2b7cf6 [modules] Make ah_announcement.cpp more stable
The two queries that comprise the logic in here weren't guaranteed to be handling the same rows, so in a highly contested (multi process) environment messages may have been harmlessly sent to the wrong recipients.

Now, we store the seller id in LAST_INSERT_ID, which is guaranteed to be correct per-connection.

Each thread has its own connection, so no worries across threads.
2022-12-19 23:10:22 +00:00
WinterSolstice8
aca329a14d [chore] Replace int8* "strings" with std::string 2022-11-21 13:21:59 -08:00
Zach Toogood
1ba660bbbf Fix split call in ah_announcement 2022-05-14 19:03:17 +03:00
Zach Toogood
96dcb19ee9 [core] Add more userfriendly overloads for message::send() 2022-05-13 13:09:06 +03:00
Zach Toogood
cd09b11512 [module] Add AH Announcement module 2022-05-10 22:21:27 +03:00