From 2f19554279566509a19506e51c82450b5c74dd95 Mon Sep 17 00:00:00 2001 From: bizcochito Date: Tue, 8 Feb 2022 10:53:53 +0100 Subject: [PATCH] solved: i put append instead of write in export --- data/scripts/in_out.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/scripts/in_out.lua b/data/scripts/in_out.lua index 2315281..104be14 100644 --- a/data/scripts/in_out.lua +++ b/data/scripts/in_out.lua @@ -2,7 +2,7 @@ function ExportLevel(levelname, filename) os.execute( "mkdir \"./Mothback/export\"" ) filename = filename or "output.lua" filename = "Mothback/export/"..filename - exportFile = io.open(filename, "a+") + exportFile = io.open(filename, "w+") if exportFile then exportFile:write("return {") logPrint("Exporting level \"".. levelname .. "\"...")