diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..aab1162 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,17 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "echo", + "type": "shell", + "command": "echo Hello" + }, + { + "label": "build exe windows", + "type": "shell", + "command": "pyinstaller.exe --add-data .\\GAME_METHODS\\*:.\\GAME_METHODS\\ --onefile --noconsole --optimize 2 .\\OutGaugeInterpreter.py" + } + ] +} \ No newline at end of file diff --git a/OutGaugeInterpreter.py b/OutGaugeInterpreter.py index 1c5416f..a7d6f98 100644 --- a/OutGaugeInterpreter.py +++ b/OutGaugeInterpreter.py @@ -110,6 +110,8 @@ def runningThread(): unpackedData = struct.unpack(BEAMNG_METHODS.BEAMNG_DATA_FORMAT,data) carData = BEAMNG_METHODS.unpackData(unpackedData) kmh=carData[tkDataTypeOut.get()] + if tkDataTypeOut.get() == "Gear": + kmh = kmh -1 if csvOut == True: csvWriteOut(firstRun,carData,csvFile) firstRun=False diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index d0dfd58..0000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -pyserial==3.5