I FIXED This ANNOYING BTRoblox Bug! Sort of...
MacAndSwiss
Find the source for BTRoblox here: https://github.com/AntiBoomz/BTRoblox
Note: I couldn't add a card link because I'm not a part of the YouTube partner program. Sorry about that, the source is here!
Join my discord: https://discord.gg/9zfdBwk Follow me on Twitch: https://twitch.tv/macandswiss Follow me on Twitter: https://twitter.com/macandswiss Want Food Pics/Development Updates? Follow my Instagram: https://instagram.com/macandswiss_
--Script-- Hey everyone, MacAndSwiss here. Today I have something pretty exciting.
One part of Roblox Battles as well as the Ready Player 2 events are that finding the games with hidden items tends to be pretty difficult. You don’t want to be spending hours in a game just to find out that it was never there to begin with. One way to lower the number of games? Check to see if the badge and game was updated at the correct time. While Roblox does give you that info, it’s also nice to have some additional information on it as well, such as when it was created, which is possible only through the Roblox API.
What is the API? Well, it’s basically a way for us, developers, to ask Roblox for information, or to ask Roblox to do something that isn’t through the website. In this case, we are asking Roblox to tell us the badge information, and display it. That’s where BTRoblox comes in.
BTRoblox is a really nice extension which is used by many people, and is very well known and trusted in the community. And while it has a lot of good features, one in particular is broken, and, you guessed it, it’s the badge one.
So, I decided to take it upon myself to actually fix this thing. So what did I do? Well, I first started by taking a look at how it is handled in the extension. Luckily for me, everything that the extension uses is visible and modifiable on the GitHub page, which I’ll link as a card and in the description.
This is the file in question that we’re looking at - itemdetails.js. The first thing that I had to know is whether it was the information that was wrong, or the way that the data was formatted that was wrong. So, I printed out the information, and I saw something...interesting.
You see, instead of calling the information for the badge, the extension actually thinks that it is an asset, like a piece of clothing - so it’s getting that information instead! Strange.
Looking through the original code, I noticed that there isn’t any mention of the badge API - I wonder if there was a way to handle it before a Roblox update broke it.
Anyways, I decided to add that on my own. Moving over to my changes, you’ll notice that I added a check to make sure that the item is actually a badge, then it uses the badge api to get the information properly. And with that, everything is fixed.
Annnnd as of tod ... https://www.youtube.com/watch?v=pdDU8hPX5jA
22126140 Bytes