From 84034001c9b63223f2005ea8c593b0b466ca4a9d Mon Sep 17 00:00:00 2001 From: Carter Penterman Date: Thu, 25 Apr 2024 21:08:40 -0500 Subject: [PATCH] Try old asset API --- common.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common.js b/common.js index 054b98a..059021d 100644 --- a/common.js +++ b/common.js @@ -141,7 +141,13 @@ function capitalize(str) { } async function validateMapAsset(assetId, game) { - const model = await RobloxModel.ReadFromAssetId(assetId); + const modelDomRes = await axios.get("https://assetdelivery.roblox.com/v1/asset/", { + params: { id: assetId }, + responseEncoding: "binary", + responseType: "arraybuffer" + }); + + const model = RobloxModel.ReadFromBuffer(modelDomRes.data); if (!model) { // For whatever reason we couldn't parse the model, so we'll just skip doing validation return {