From d810b5646d80a92eed7c2903f53e026193ac18c0 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Sat, 9 Nov 2019 17:18:57 +0100 Subject: [PATCH] Add fileReadDelay to inventoryImports config Fix the inventoryImports client side code never receiving the script output by specifying fileReadDelay and thereby getting the old behaviour. This broke with the introduction of the tail mode script output mode which requires a newline to be written at the end of the output. --- CHANGELOG.md | 2 ++ sharedPlugins/inventoryImports/config.js | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba4400e3..0637d800 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ Version 1.2.3 exceeding the default 100kb limit on JSON payloads. - Fixed the command inventoryImport sends referencing player instead of character, and trying to count the non-existant quick bar slots. +- Fixed inventoryImport never receiving the script output after the default + mode for reading script output changed to tail mode. Version 1.2.2 diff --git a/sharedPlugins/inventoryImports/config.js b/sharedPlugins/inventoryImports/config.js index 9b2258cf..758d2b9d 100644 --- a/sharedPlugins/inventoryImports/config.js +++ b/sharedPlugins/inventoryImports/config.js @@ -17,4 +17,5 @@ module.exports = { description: "Clusterio plugin to fill character logistic slots with master imports", // We'll send everything in this file to your stdin. Beware. scriptOutputFileSubscription: "inventoryImports.txt", + fileReadDelay: 100, } \ No newline at end of file