Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Databuckets] Improved Reliability and Performance of Databuckets #4562

Merged
merged 15 commits into from
Dec 12, 2024
2 changes: 0 additions & 2 deletions common/servertalk.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,6 @@
// player events
#define ServerOP_PlayerEvent 0x5100

#define ServerOP_DataBucketCacheUpdate 0x5200

enum {
CZUpdateType_Character,
CZUpdateType_Group,
Expand Down
5 changes: 0 additions & 5 deletions world/zoneserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1564,11 +1564,6 @@ void ZoneServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p) {
DynamicZone::HandleZoneMessage(pack);
break;
}
case ServerOP_DataBucketCacheUpdate: {
zoneserver_list.SendPacket(pack);

break;
}
case ServerOP_GuildTributeUpdate: {
auto data = (GuildTributeUpdate *)pack->pBuffer;
auto guild = guild_mgr.GetGuildByGuildID(data->guild_id);
Expand Down
1 change: 1 addition & 0 deletions zone/bot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3089,6 +3089,7 @@ bool Bot::Spawn(Client* botCharacterOwner) {
m_targetable = true;
entity_list.AddBot(this, true, true);

ClearDataBucketCache();
DataBucket::GetDataBuckets(this);
LoadBotSpellSettings();
if (!AI_AddBotSpells(GetBotSpellID())) {
Expand Down
2 changes: 1 addition & 1 deletion zone/client_packet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,6 @@ int Client::HandlePacket(const EQApplicationPacket *app)
// Finish client connecting state
void Client::CompleteConnect()
{

UpdateWho();
client_state = CLIENT_CONNECTED;
SendAllPackets();
Expand Down Expand Up @@ -1413,6 +1412,7 @@ void Client::Handle_Connect_OP_ZoneEntry(const EQApplicationPacket *app)
drakkin_details = m_pp.drakkin_details;

// Load Data Buckets
ClearDataBucketCache();
DataBucket::GetDataBuckets(this);

// Max Level for Character:PerCharacterQglobalMaxLevel and Character:PerCharacterBucketMaxLevel
Expand Down
Loading