Is there a way to get an old version of a plugin with InsertService?

Hello.

I was wondering if there was a way to revert a plugin with InsertService The plugin in question is https://www.roblox.com/library/186088172/Rock-Generator and I accidentally published another plugin over it. I noticed the “GetLatestAssetVersionAsync” function in InsertService, but is there a way to get an older version?

I know this issue isn’t really directly scripting related, but I can’t post it anywhere else.

2 Likes

You can use this link to directly download old versions of plugins:

http://assetgame.roblox.com/asset?id=....&version=....

This is intended for places but also works for plugins despite the fact that no Version History is available on the website for plugins.

For example, when I go to this link:

http://assetgame.roblox.com/asset?id=186088172&version=1

This will get the first version of the plugin you link that you uploaded:
image

If you rename this file and add “.rbxm” behind it, and then drag it into a Studio window, you can get the contents of that version of the plugin back in Studio:
image

image


So now the only thing left to do is figuring out the version number, but we have no list available. I would recommend starting at a high number (say 1000) and then putting that into the link for the version, and reducing it by half every time the request fails (so if version=1000 fails, then you are too high, so go to version=500, etc). Once you get something back, increase the number to halfway from where you came (so if version=500 worked, try version=750, and apply the same strategy).

FYI: That’s also known as binary search algorithm (https://en.wikipedia.org/wiki/Binary_search_algorithm)

This might take you a little bit of time, but you should be able to find the latest version number (= N) that you uploaded for this asset this way. That should be the thing you published over the original plugin, so just take version N - 1 and that should be what you overwrote.

12 Likes

And to show that above is easier than it sounds, I just did it in about 30 seconds. It turns out the maximum version that you uploaded to this plugin is 61, so version 60 should have your original plugin that you overwrote.

Here’s the file:
version_60.rbxm (8.9 KB)

2 Likes

Awesome! I’m just surprised they don’t have a way to revert the plugin easier.
It’s a really old plugin so I wasn’t going to bother fixing it but apparently there’s a quite a few people using it. It’s uploaded properly now. Thanks for the effort!

1 Like

uh

http://assetgame.roblox.com doesnt seem to work anymore


nvm found a fix https://assetdelivery.roblox.com/v1/asset/?id=ID&version=VERSION

12 Likes

A bad thing about this is that you can download paid plugins for free with this.

you can’t download paid plugins if you didnt buy them before

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.