I've tried to fork this project and fix some bugs, but am rapidly running out of steam since after tweaking the source code and running a mission through it DCS fails to load the mission. The log doesn't contain any useful information about why though. I've checked the diff of the modifications and it's not doing anything unexpected to the .miz file.
For example, fixing this bug seems trivial:
Unhandled exception. System.OverflowException: Value was either too large or too small for an Int32.
at DCSMissionTweaker.MissionParser.Parse(Stream stream) in D:\My Documents\Source Code\Csharp\GitHub\DCSMissionTweaker\MissionParser.cs:line 92
at DCSMissionTweaker.MissionParser.ParseFile(String filePath) in D:\My Documents\Source Code\Csharp\GitHub\DCSMissionTweaker\MissionParser.cs:line 21
at DCSMissionTweaker.Program.Main(String[] args) in D:\My Documents\Source Code\Csharp\GitHub\DCSMissionTweaker\Program.cs:line 17
The value it's having trouble with is: `9663676414` and when I change it to a long the mission is tweaked as expected, that value remains the same in the new file, yet DCS fails to load it:
2023-06-05 16:07:23.159 INFO SECURITYCONTROL (Main): Loaded Mods/campaigns/P-51D The Blue Nosed Bastards of Bodney/P51DBLUENOSEDBASTARDS.pak.crypt
2023-06-05 16:07:23.160 ERROR Dispatcher (Main): Mission Load Error: Failed to load the mission.
It's just a text file... but I've spent about all the time I'm willing to spend on it, unless anyone has any obvious insights I've missed.
Here's the mission file diff:
diff --git a/mission.orig b/mission
index bfe04c0..8d327a2 100644
--- a/mission.orig
+++ b/mission
@@ -3241,7 +3241,7 @@ mission =
[3] = 1,
["name"] = "Springfield11",
}, -- end of ["callsign"]
- ["skill"] = "Player",
+ ["skill"] = "Client",
}, -- end of [1]
[2] =
{
@@ -3278,7 +3278,7 @@ mission =
}, -- end of ["payload"]
["y"] = 11854.875862566,
["heading"] = -2.7936613726009,
- ["skill"] = "Excellent",
+ ["skill"] = "Client",
["callsign"] =
{
[1] = 2,
Edit: Maybe it's something about the zip library i'm using with vscode and .net core 7.3...