From 12a0ebf8d19a38d591b39d5f486c1985479fdfdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Vest=C3=B8l?= Date: Wed, 14 Nov 2018 22:17:09 +0100 Subject: [PATCH] Scenario loading has big issues with paths, this is a bandaid --- sharedPlugins/scenario_loader/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharedPlugins/scenario_loader/index.js b/sharedPlugins/scenario_loader/index.js index ab80ccb3..7ea73554 100644 --- a/sharedPlugins/scenario_loader/index.js +++ b/sharedPlugins/scenario_loader/index.js @@ -31,7 +31,7 @@ module.exports = class remoteCommands { messageInterface(`Loading `/*${scenarios[i]}*/+`${fileName}`); let code = await clusterTools.getLua(/*path.join(scenPath, */fileName/*)*/, false); // trim away external path from filenames - fileName = fileName.replace("scenarios\\factoriommoscenarios\\", ""); + fileName = fileName.replace("scenarios\\factoriommoscenarios\\", "").replace("scenarios/factoriommoscenarios", ""); files[fileName.split(".")[0]] = code; } }