Forerunner Gaming
04/10/2020 - The Bruhssx moment. - Printable Version

+- Forerunner Gaming (https://forerunnergaming.org/forums)
+-- Forum: Server Info (https://forerunnergaming.org/forums/forumdisplay.php?fid=3)
+--- Forum: Announcements (https://forerunnergaming.org/forums/forumdisplay.php?fid=17)
+--- Thread: 04/10/2020 - The Bruhssx moment. (/showthread.php?tid=9519)

Pages: 1 2


04/10/2020 - The Bruhssx moment. - Brassx - 04-11-2020

Today marks one of my greatest fuck ups in the some 7 years that I've been working with gmod Inventory systems.

Last night, I rushed out a fix for a major bug, with what I thought was extensive testing. I simply didn't rejoin to test if everything was being saved/loaded properly after the fix, I assumed it was all good. Boy was I wrong.

This small 1 line oversight caused the worst duping FRG has ever seen on this scale. I was sleeping most of the day, so I woke up late to pretty much pure chaos. After working on it from 8Pm to what is now going on 5AM. I can confidently say I have cleaned up most of this mess I have caused. Not ALL of it, but most.

All in all there were a lot of high end items, and coins duped. Surprisingly a very FEW amount of people actually exploited this.

I ended up having to scramble and think of quick ways to get and analyze the data we have, due to my fuckup, checking item unique ID's wasn't an option (the fuck up stems from the item UID's actually changing upon putting them in storage, due to a 1 line oversight), which is the foundation for my robust dupe detection methods. So all of these completely flew under my detection systems.

I wrote a script to get all players who've played since I applied the fix above, and then go through all of their items in every database (bank, inventory, storage, etc), print out any suspicious stack amounts to a file, then myself and the awesome staff in discord tediously went through and picked out the really suspicious entries. Which I manually went in and repaired.

After that I had to write a system to use the same player list above, but instead cross-reference every single item with every single other item, from the pool of players. This allowed me to print a list of items that were likely dupes (matching stats/traits is HIGHLY unlikely for a lot of weapons, as they are saved as float values (0 - 1 with decimals)). After I did this, the awesome staff team yet again helped us out greatly, by helping me go through every entry and add the really suspicious ones to a spreadsheet.



Once I had this data, I had to implement various solutions. One of them was automated, the rest I fixed by hand. The automated one added any items that were at risk of being deleted, but weren't dupes, to the Item Queue from storage. So when you join if you get spammed with a ton of items, they were removed from your storage devices due to this bug potentially breaking them. If you happen to get multiple of an item, or notice one is duped, please do inform me.


TL;DR - I fucked up, staff is awesome and helped me out greatly by going through a buttload of logs. when you join if you get spammed with a ton of items, they were removed from your storage devices due to this bug potentially deleting those specific items. If you happen to get multiple of an item, or notice one is duped, please do inform me.

I will be booting the servers back up momentarily. Thank you all for your support, and I'm terribly sorry for the major inconvenience I have caused you all. I'll make it up to you Smile


RE: 04/10/2020 - The Bruhssx moment. - mauimods - 04-11-2020

poggies dude!


RE: 04/10/2020 - The Bruhssx moment. - Niles - 04-11-2020

SECOND


RE: 04/10/2020 - The Bruhssx moment. - Enchantable - 04-11-2020

y didnt u just roll back no capp


RE: 04/10/2020 - The Bruhssx moment. - David_Jewman - 04-11-2020

Thank you for keeping up the good work! Kudos to the wonderful Brassx and the Staff who make it all happen! <3


RE: 04/10/2020 - The Bruhssx moment. - Beebee1303 - 04-11-2020

I still love you Brass.

IF MY ORDINARY FRAGMENTS ARE GONE I WILL COME TO CANADA, LICK ALL THE TOILET SEATS, BREAK INTO YOUR HOUSE AND COUGH ON YOU.


RE: 04/10/2020 - The Bruhssx moment. - Chilly - 04-11-2020

don't sweat it cuz, at least you had the code in place to deal with it in a pretty quick manor. This could've been a lot worse but there had to have been some safety nets to let it not get badly out of hand. its honestly been a miracle how nothing like this happened in a few years at the very least, mistakes happen. we chillen now


RE: 04/10/2020 - The Bruhssx moment. - The Black Parade - 04-11-2020

Some of us will eventually screw up.

stay great. stay cool.


RE: 04/10/2020 - The Bruhssx moment. - Dreadark - 04-11-2020

Thanks for the hard work, and for the staff who helped too. I'm sure it was a major headache for you all.


RE: 04/10/2020 - The Bruhssx moment. - Jerk Butt - 04-11-2020

Zebrah trust badge when <3




also fuck anyone who duped intentionally, you got off easy.