diff --git a/code/websites/pokedex.online/src/views/GamemasterExplorer.vue b/code/websites/pokedex.online/src/views/GamemasterExplorer.vue index d97e8e0..012ecdf 100644 --- a/code/websites/pokedex.online/src/views/GamemasterExplorer.vue +++ b/code/websites/pokedex.online/src/views/GamemasterExplorer.vue @@ -450,6 +450,16 @@ async function loadFile() { loading.value = true; error.value = null; + // Check if raw file is too large (> 50MB) + if (selectedFile.value === 'raw') { + const rawFile = status.value.available?.find(f => f.filename.includes('raw')); + if (rawFile && rawFile.size > 50 * 1024 * 1024) { + error.value = '⚠️ Raw gamemaster file is very large (' + formatSize(rawFile.size) + '). It may be slow to load. Try a specific file type instead (Pokemon, All Forms, or Moves).'; + loading.value = false; + return; + } + } + let data; switch (selectedFile.value) { case 'pokemon': @@ -726,11 +736,17 @@ onMounted(() => {