Commit graph

44 commits

Author SHA1 Message Date
sruon
a50872d468 Rename ZoneMisc::AuctionHouse 2026-07-13 23:58:58 -06:00
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
677c1a61f4 GP_SERV_COMMAND_EQUIPSET_VALID
Co-Authored-By: atom0s <atom0s@users.noreply.github.com>
2025-10-16 16:11:31 -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
a179841ec7 Modules OnIncomingPacket 2025-09-21 01:41:45 -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
Corey Sotiropoulos
f4fe6ae4cb
Adjust formatting/CI
Fix issue with AH pagination module.
Fix some clang tidy warnings.
Fix issue with escaped quotes getting picked up in Lua CI checks.
2025-05-01 15:01:55 -04: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
Zach Toogood
85e8d57cac AHPaginationModule: Read AH_LIST_LIMIT and support unlimited listings 2025-01-23 21:30:47 +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
d327931651 Update and fix AHPaginationModule and AHAnnouncementModule 2024-12-19 12:54:48 +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
befe090a0b [core] Introduce Fmt variant logger helpers 2024-01-03 11:03:50 +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
Zach Toogood
edbda07f9c Fix page count in ah_pagination module 2023-04-16 22:34:26 -04:00
TeoTwawki
83003d97bc Patch minor exploit opened by module.
Also change message type to warning to match other exploit checks.
2023-03-31 20:41:32 -04: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
8b3d9f2502 [core] Update some build warnings 2022-06-26 21:22:30 +03:00
Zach Toogood
77ba1bb8dc [core] Finish hooking up new settings in core 2022-06-26 21:22:27 +03: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
Zach Toogood
2f10c69ba0 [module] Add AH Pagination module 2022-05-10 22:19:30 +03:00
Zach Toogood
fac1a086df [module] Change module layout 2022-04-29 15:21:03 +03:00
Zach Toogood
5d4236413b [core] Clean up CPP modules 2022-04-19 17:28:09 +03:00
Zach Toogood
383569d59d [core] More work on CPP modules 2022-04-19 16:36:32 +03:00
Zach Toogood
24d1dc23f4 [core] Start on CPP modules 2022-04-17 22:53:51 +03:00