From 0d7914cd74ca25f0128771b8b14e60a427126792 Mon Sep 17 00:00:00 2001 From: Rickoff <38435435+rickoff@users.noreply.github.com> Date: Thu, 14 Mar 2024 09:25:54 +0100 Subject: [PATCH 1/2] Update player/base.lua added saving of Shapeshift following the creation of a character in EndChargGen in order to avoid a server crash when using linked data in custom scripts --- scripts/player/base.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/player/base.lua b/scripts/player/base.lua index dc036fd5..fca4a597 100644 --- a/scripts/player/base.lua +++ b/scripts/player/base.lua @@ -331,6 +331,7 @@ function BasePlayer:EndCharGen() self:SaveClass(packetReader.GetPlayerPacketTables(self.pid, "PlayerClass")) self:SaveStatsDynamic(packetReader.GetPlayerPacketTables(self.pid, "PlayerStatsDynamic")) self:SaveEquipment(packetReader.GetPlayerPacketTables(self.pid, "PlayerEquipment")) + self:SaveShapeshift(packetReader.GetPlayerPacketTables(self.pid, "PlayerShapeshift")) self:SaveIpAddress() self:CreateAccount() From 055eb2b4bc31c3cb4c158932fc48de127d677b8a Mon Sep 17 00:00:00 2001 From: Rickoff <38435435+rickoff@users.noreply.github.com> Date: Tue, 19 Mar 2024 17:24:19 +0100 Subject: [PATCH 2/2] Update base.lua --- scripts/player/base.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/player/base.lua b/scripts/player/base.lua index fca4a597..1c4143e0 100644 --- a/scripts/player/base.lua +++ b/scripts/player/base.lua @@ -331,7 +331,7 @@ function BasePlayer:EndCharGen() self:SaveClass(packetReader.GetPlayerPacketTables(self.pid, "PlayerClass")) self:SaveStatsDynamic(packetReader.GetPlayerPacketTables(self.pid, "PlayerStatsDynamic")) self:SaveEquipment(packetReader.GetPlayerPacketTables(self.pid, "PlayerEquipment")) - self:SaveShapeshift(packetReader.GetPlayerPacketTables(self.pid, "PlayerShapeshift")) + self:SaveShapeshift(packetReader.GetPlayerPacketTables(self.pid, "PlayerShapeshift")) self:SaveIpAddress() self:CreateAccount()