From 1e691d306ee80489f8113031963b58aea8459b5a Mon Sep 17 00:00:00 2001 From: A_D Date: Sat, 3 Jul 2021 13:22:39 +0200 Subject: [PATCH] Added support for resupply event its a reskinned backpack, so thats how its being handled --- monitor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/monitor.py b/monitor.py index 6392f2c0..f45910c2 100644 --- a/monitor.py +++ b/monitor.py @@ -912,7 +912,11 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below logger.warning(f'We have a BackPackMaterials event, defunct since > 4.0.0.102 ?:\n{entry}\n') pass - elif event_type == 'backpack': + elif event_type in ('backpack', 'resupply'): + # as of v4.0.0.600, a `resupply` event is dropped when resupplying your suit at your ship. + # This event writes the same data as a backpack event. It will also be followed by a ShipLocker + # but that follows normal behaviour in its handler. + # TODO: v31 doc says this is`backpack.json` ... but Howard Chalkley # said it's `Backpack.json` backpack_file = pathlib.Path(str(self.currentdir)) / 'Backpack.json'