From 6d2d2e11a83c509b8beb9b00669bcaca38c10e23 Mon Sep 17 00:00:00 2001 From: maxluli Date: Thu, 11 May 2023 15:26:39 +0200 Subject: [PATCH] Added a clean config file in the project file so any user can just drag and drop it in the correct folder and have at least one config that works --- README.md | 4 +- Test_Merge/Clean_4K_2023.json | 1332 +++++++++++++++++++++++++++++++++ 2 files changed, 1335 insertions(+), 1 deletion(-) create mode 100644 Test_Merge/Clean_4K_2023.json diff --git a/README.md b/README.md index 69959d4..4c470d4 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,6 @@ You also have to change the TESS_DATA_FOLDER constant in the Windows.cs file. A Add those two environnement variables : 1. MOZ_HEADLESS_WIDTH => 3840 -2. MOZ_HEADLESS_HEIGHT => 2160 \ No newline at end of file +2. MOZ_HEADLESS_HEIGHT => 2160 + +I also added the "Clean_4K_2023.json" file. I would advise to put it in the bin/debug folder into a folder called "preset" that you will need to create if it does not exist. It is a pretty clean config file. \ No newline at end of file diff --git a/Test_Merge/Clean_4K_2023.json b/Test_Merge/Clean_4K_2023.json new file mode 100644 index 0000000..8b9d486 --- /dev/null +++ b/Test_Merge/Clean_4K_2023.json @@ -0,0 +1,1332 @@ +{ + "Main": { + "x": 36, + "y": 343, + "width": 3780, + "height": 1454, + "DriverZones": [ + { + "name": "Driver1", + "x": 0, + "y": 1, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver2", + "x": 0, + "y": 72, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver3", + "x": 0, + "y": 143, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver4", + "x": 0, + "y": 215, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver5", + "x": 0, + "y": 286, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver6", + "x": 0, + "y": 357, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver7", + "x": 0, + "y": 429, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver8", + "x": 0, + "y": 500, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver9", + "x": 0, + "y": 572, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver10", + "x": 0, + "y": 643, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver11", + "x": 0, + "y": 714, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver12", + "x": 0, + "y": 786, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver13", + "x": 0, + "y": 857, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver14", + "x": 0, + "y": 928, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver15", + "x": 0, + "y": 1000, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver16", + "x": 0, + "y": 1071, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver17", + "x": 0, + "y": 1142, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver18", + "x": 0, + "y": 1214, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver19", + "x": 0, + "y": 1285, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + }, + { + "name": "Driver20", + "x": 0, + "y": 1356, + "width": 3780, + "height": 72, + "Windows": [ + { + "Position": { + "x": 45, + "y": 3, + "width": 76, + "height": 65 + }, + "GapToLeader": { + "x": 447, + "y": 1, + "width": 206, + "height": 67 + }, + "LapTime": { + "x": 863, + "y": 3, + "width": 229, + "height": 65 + }, + "DRS": { + "x": 1095, + "y": 1, + "width": 174, + "height": 67 + }, + "Tyres": { + "x": 1274, + "y": 3, + "width": 1448, + "height": 62 + }, + "Name": { + "x": 2724, + "y": 3, + "width": 361, + "height": 65 + }, + "Sector1": { + "x": 3088, + "y": 1, + "width": 239, + "height": 65 + }, + "Sector2": { + "x": 3314, + "y": 4, + "width": 190, + "height": 62 + }, + "Sector3": { + "x": 3493, + "y": 1, + "width": 198, + "height": 67 + } + } + ] + } + ], + "Drivers": [ + "Perez", + "Verstappen", + "Alonso", + "Sainz", + "Russel", + "Gasly", + "Leclerc", + "Ocon", + "Hulkenberg", + "Bottas", + "Hamilton", + "Albon", + "Tsunoda", + "Zhou", + "Stroll", + "De Vries", + "Magnussen", + "Norris", + "Piastri", + "Sargeant" + ] + } +} \ No newline at end of file