From 294564382c10494adc49bb3c74e1561354b27e5e Mon Sep 17 00:00:00 2001 From: Carter Penterman <carterpenterman@gmail.com> Date: Fri, 4 Apr 2025 14:59:06 -0500 Subject: [PATCH] Allow bypassing validation check if we can't download the model --- common.js | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/common.js b/common.js index ae240d0..7025276 100644 --- a/common.js +++ b/common.js @@ -151,11 +151,22 @@ function capitalize(str) { } async function validateMapAsset(assetId, game) { - const modelDomRes = await axios.get("https://assetdelivery.roblox.com/v1/asset/", { - params: { id: assetId }, - responseEncoding: "binary", - responseType: "arraybuffer" - }); + let modelDomRes; + try { + modelDomRes = await axios.get("https://assetdelivery.roblox.com/v1/asset/", { + params: { id: assetId }, + responseEncoding: "binary", + responseType: "arraybuffer" + }); + } + catch { + // Roblox + return { + valid: true, + displayName: "", + creator: "" + }; + } const model = RobloxFile.ReadFromBuffer(modelDomRes.data); if (!model) {