From 98613acac28a8ef0a2f911425a414fa0a0f22017 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Wed, 8 Mar 2023 13:03:24 -0600 Subject: [PATCH] Fix being unable to read spawntemplate if it's at the end of config_data (#9) --- utils/luzviewer.pyw | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/luzviewer.pyw b/utils/luzviewer.pyw index cc95549..e8ca690 100644 --- a/utils/luzviewer.pyw +++ b/utils/luzviewer.pyw @@ -325,6 +325,7 @@ class LUZViewer(viewer.Viewer): scale = stream.read(c_float) config_data = stream.read(str, length_type=c_uint) config_data = config_data.replace("{", "").replace("}", "").replace("\\", "") # for some reason these characters aren't properly escaped when sent to Tk + config_data = config_data + "\n" # Need newline at end incase the spawntemplate is at the end of the config data assert stream.read(c_uint) == 0 lot_name = "" if lot == 176: