23 December Updates: Christmas event, minor bugfixes

All of PkHonor's news will be posted here.
Mvpranger
Premium Donator
Posts: 248
Joined: Fri Sep 15, 2017 12:48 pm

Re: 23 December Updates: Christmas event, minor bugfixes

Post by Mvpranger » Thu Jan 05, 2023 5:40 pm

Mike wrote: Thu Jan 05, 2023 5:38 pm Update to my original post: the cause of the bugged item piles on death has been found and a fix will be included in the next server update.
Really curious to know what made it so that a stack of 12 million cannonballs would spawn on someone's death, lol.

User avatar
Mike
Programmer
Posts: 6348
Joined: Sun Nov 01, 2009 8:00 pm
Location: PkHonor HQ

Re: 23 December Updates: Christmas event, minor bugfixes

Post by Mike » Thu Jan 05, 2023 5:45 pm

Mvpranger wrote: Thu Jan 05, 2023 5:40 pm
Mike wrote: Thu Jan 05, 2023 5:38 pm Update to my original post: the cause of the bugged item piles on death has been found and a fix will be included in the next server update.
Really curious to know what made it so that a stack of 12 million cannonballs would spawn on someone's death, lol.
Rather technical, but it's got to do with casting an integer to a byte. Any item that has an amount as a multiple of 256 (256, 512, 768, ...) will be interpreted as an amount of 0 and screw up your death pile. A couple of weeks ago, someone dropped 2,816 dragonstone bolts (e) on death along with a bunch of other stuff. 2,816 is 11 x 256 and made half of their death pile not show up when they teleported back.

The fix was really easy, but tracking down the bug was really hard since it seemed so random. As with pretty much any bug, it wasn't random, we simply didn't know what to look for in the first place. With the information we found, we finally managed reproducing the bug ourself.

User avatar
Arrsenic
Premium Donator
Posts: 1014
Joined: Sun Dec 16, 2018 5:01 pm
Location: Palestine\Israel

Re: 23 December Updates: Christmas event, minor bugfixes

Post by Arrsenic » Thu Jan 05, 2023 6:10 pm

Mike wrote: Thu Jan 05, 2023 5:38 pm Update to my original post: the cause of the bugged item piles on death has been found and a fix will be included in the next server update.
Wonderful! No more trust issues with the Uims
Image
“The world suffers a lot. Not because of the violence of bad people. But because of the silence of the good people.”

User avatar
Uim killerb
Premium Donator
Posts: 180
Joined: Thu Oct 29, 2015 11:04 am
Contact:

Re: 23 December Updates: Christmas event, minor bugfixes

Post by Uim killerb » Thu Jan 05, 2023 6:12 pm

Mike wrote: Thu Jan 05, 2023 5:38 pm Update to my original post: the cause of the bugged item piles on death has been found and a fix will be included in the next server update.
great work kicking 2023 of with a bang @Mike

Post Reply