From 31ab3a09f636bed8a41c5c02828a9f61d81d88ae Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Sat, 9 Nov 2019 17:18:57 +0100 Subject: [PATCH] Port 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. This is a port of d810b56. --- CHANGELOG.md | 2 ++ sharedPlugins/inventoryImports/config.js | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c01c5a74..eaf77e27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -73,6 +73,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