opentibiabr / canary

Canary Server 13.x for OpenTibia community.
https://docs.opentibiabr.com/
GNU General Public License v2.0
374 stars 619 forks source link

Character losing outfit, items and skills #2917

Closed htc16 closed 4 weeks ago

htc16 commented 1 month ago

Priority

Critical

Area

What happened?

I still don't know how to reproduce the bug, but I had 2 characters who lost their clothes (the looktype, looklegs, etc. were reset) and couldn't log in because the client crashed.

The character lost their skills, everything was at 10.

They lost all their items, this happened twice on the server. The first time I discovered that the item loss was happening because the player had a backpack in the inventory that received attributes in the player_items table \0\0\0\0\0 and after that I just removed the \0\0\0\0 and the items in that backpack came back. But the other items were also lost, I was only able to recover them because of the backup.

The second time this happened I can't identify what the problem is, because the character had a lot of items in the backup so I can't identify where the problem is.

I'm using the original corrent.

What OS are you seeing the problem on?

Linux, Windows

Code of Conduct

htc16 commented 1 month ago

[2024-27-09 09:40:57.675] [warning] [loadItems] - Failed to deserialize item attributes 35282, from player Durakz, from account id 2 [2024-27-09 09:40:57.675] [warning] [loadItems] - Failed to deserialize item attributes 7642, from player Durakz, from account id 2 [2024-27-09 09:40:57.675] [warning] [loadItems] - Failed to deserialize item attributes 23374, from player Durakz, from account id 2 [2024-27-09 09:40:57.675] [warning] [loadItems] - Failed to deserialize item attributes 25913, from player Durakz, from account id 2 [2024-27-09 09:40:57.675] [warning] [loadItems] - Failed to deserialize item attributes 2869, from player Durakz, from account id 2 [2024-27-09 09:40:57.675] [warning] [loadItems] - Failed to deserialize item attributes 3054, from player Durakz, from account id 2 [2024-27-09 09:40:57.682] [debug] Initializing print of WhelPlayerBonusData informations for player Durakz [2024-27-09 09:40:57.682] [debug] Stats: [2024-27-09 09:40:57.682] [debug] Vessel Resonance: [2024-27-09 09:40:57.682] [debug] Skills: [2024-27-09 09:40:57.682] [debug] Leech: [2024-27-09 09:40:57.682] [debug] Instant: [2024-27-09 09:40:57.682] [debug] Stages: [2024-27-09 09:40:57.682] [debug] Avatar: [2024-27-09 09:40:57.682] [debug] Print of player data finished! [2024-27-09 09:40:57.682] [debug] [loadUnlockedAchievements] - Loading unlocked achievements: 3 [2024-27-09 09:40:57.682] [debug] [loadUnlockedAchievements] - Achievement Scrapper found for player Durakz. [2024-27-09 09:40:57.682] [debug] [loadUnlockedAchievements] - Achievement Natural Born Cowboy found for player Durakz. [2024-27-09 09:40:57.683] [debug] [loadUnlockedAchievements] - Achievement Greenhorn found for player Durakz. [2024-27-09 09:40:57.694] [debug] [loadUnlockedBadges] - Loading unlocked badges: 2 [2024-27-09 09:40:57.694] [debug] [loadUnlockedBadges] - Badge Tibia Loyalist (Grade 1) found for player Durakz. [2024-27-09 09:40:57.694] [debug] [loadUnlockedBadges] - Badge Tibia Loyalist (Grade 3) found for player Durakz. [2024-27-09 09:40:57.711] [debug] [EquipItem] does not have backpack, trying to add new container as unasigned [2024-27-09 09:40:57.714] [debug] Player: Durakz, streak level: 0, active bonuses: [2024-27-09 09:40:57.714] [debug] [ConfigFunctions::luaConfigManagerGetFloat] key: LOYALTY_BONUS_PERCENTAGE_MULTIPLIER, finalValue: 1, shouldRound: true [2024-27-09 09:40:58.053] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:40:58.053] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:40:58.053] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:40:58.053] [debug] Player 'Durakz' sent unknown packet header: hex[0XC1], decimal[193] [2024-27-09 09:40:58.054] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:40:58.054] [debug] Player 'Durakz' sent unknown packet header: hex[0X0F], decimal[15] [2024-27-09 09:40:58.054] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:40:58.054] [debug] Player 'Durakz' sent unknown packet header: hex[0XCE], decimal[206] [2024-27-09 09:40:58.054] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:40:58.054] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:40:58.054] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:40:58.054] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:40:58.054] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:40:58.055] [debug] Player 'Durakz' sent unknown packet header: hex[0XD0], decimal[208] [2024-27-09 09:40:58.112] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:40:58.112] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:41:00.853] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:41:01.861] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:41:03.359] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:41:03.580] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:41:08.587] [debug] Executing task sendRecvMessageCallback. [2024-27-09 09:41:08.656] [debug] Executing task sendRecvMessageCallback.

htc16 commented 1 month ago

Inside the player's quiver there was a bag and backpack in addition to arrows.

image

W4gNII commented 1 month ago

In my case a need to undo pr2910

https://github.com/opentibiabr/canary/pull/2910

htc16 commented 1 month ago

In my case a need to undo pr2910

2910

Thanks, I'll test it right now!