I found these lines in the script. One of these must be causing the crash.
case 1: makeSky("0.3 0.4 0.5","0.3 0.4 0.5"); makeSun("0.4 0.4 0.35","0.25 0.25 0.25"); //Dawn
function MakeSky(%color, %fog)
{
sky.delete();
new Sky(Sky)
{
position = "336 136 0";
rotation = "1 0 0 0";
scale = "1 1 1";
materialList = "base/data/skies/Sky_Default/resource.dml";
cloudHeightPer[0] = "0.349971";
cloudHeightPer[1] = "0.3";
cloudHeightPer[2] = "0.199973";
cloudSpeed1 = "0.0005";
cloudSpeed2 = "0.001";
cloudSpeed3 = "0.0003";
visibleDistance = "600";
fogDistance = "500";
fogColor = %fog;
fogStorm1 = "0";
fogStorm2 = "0";
fogStorm3 = "0";
fogVolume1 = "0 0 0";
fogVolume2 = "0 0 0";
fogVolume3 = "0 0 0";
fogVolumeColor1 = "128.000000 128.000000 128.000000 -222768174765569860000000000000000000000.000000";
fogVolumeColor2 = "128.000000 128.000000 128.000000 0.000000";
fogVolumeColor3 = "128.000000 128.000000 128.000000 -170698929442160050000000000000000000000.000000";
windVelocity = "0 0 0";
windEffectPrecipitation = "1";
SkySolidColor = %color;
useSkyTextures = "0";
renderBottomTexture = "1";
noRenderBans = "1";
locked = "true";
};
MissionGroup.add(Sky);
}
function MakeSun(%color, %ambient, %az, %ele)
{
sun.delete();
new Sun(Sun)
{
azimuth = %az;
elevation = %ele;
color = %color;
ambient = %ambient;
rotation = "1 0 0 0";
locked = "true";
scale = "1 1 1";
direction = "0.57735 0.57735 -0.57735";
position = "0 0 0";
};
missionGroup.add(Sun);
}
These are just snips.