View difference between Paste ID: aUrYEABp and SrE88VS9
SHOW: | | - or go back to the newest paste.
1
Index: Constructor/AppEnv.cs
2
===================================================================
3
--- Constructor/AppEnv.cs	(revision 6363)
4
+++ Constructor/AppEnv.cs	(working copy)
5
@@ -235,6 +235,12 @@
6
             set { vars["VECTORDATA5_OUTPUT_LNKD"].Value = value; }
7
         }
8
 
9
+        public string SurfaceL0OutputDir
10
+        {
11
+            get { return vars["SURFACE_L0_OUTPUT"].StringValue; }
12
+            set { vars["SURFACE_L0_OUTPUT"].Value = value; }
13
+        }
14
+
15
         public string RrrSceneOutput
16
         {
17
             get { return vars["RRR_SCENE_OUTPUT"].StringValue; }
18
Index: Constructor/Operations/ExportNavigationMesh.cs
19
===================================================================
20
--- Constructor/Operations/ExportNavigationMesh.cs	(revision 6363)
21
+++ Constructor/Operations/ExportNavigationMesh.cs	(working copy)
22
@@ -14,5 +14,20 @@
23
             : base("Navigation Mesh")
24
         {
25
         }
26
+
27
+        public override bool RunImp(Task task, AppEnv appEnv, bool withChildren)
28
+        {
29
+
30
+            Command command = new Command();
31
+            command.Type = Command.CommandType.EDTU4;
32
+            command.EdtuCommand = "build-navigation-mesh";
33
+            string surfaceL0filename = appEnv.SurfaceL0OutputDir + "surface-L0.ofsh";
34
+            string navMeshfilename = appEnv.terrainConfig.TerrainCfgDir.AbsoluteByRelativeTcons() + "navigationMesh.navmesh";
35
+            command.Args = surfaceL0filename + " " + navMeshfilename;
36
+            command.ErrorsFile = appEnv.SurfaceL0OutputDir + @"export-vector-data_errors.ofsh";
37
+            task.AddCommand(command);
38
+
39
+            return true;
40
+        }
41
     }
42
 }
43
Index: Constructor/Operations/TerrainConfig.cs
44
===================================================================
45
--- Constructor/Operations/TerrainConfig.cs	(revision 6363)
46
+++ Constructor/Operations/TerrainConfig.cs	(working copy)
47
@@ -305,6 +305,7 @@
48
             AddNewFileVariableIfNotFound(appEnv.vars, "RRR_OUTPUT");
49
             AddNewFileVariableIfNotFound(appEnv.vars, "VECTORDATA5_OUTPUT");
50
             AddNewFileVariableIfNotFound(appEnv.vars, "VECTORDATA5_OUTPUT_LNKD");
51
+            AddNewFileVariableIfNotFound(appEnv.vars, "SURFACE_L0_OUTPUT");
52
             AddNewFileVariableIfNotFound(appEnv.vars, "RRR_SCENE_OUTPUT");
53
             AddNewFileVariableIfNotFound(appEnv.vars, "RRR_DETAILS_OUTPUT");
54
             AddNewFileVariableIfNotFound(appEnv.vars, "RRR_POWERLINES_OUTPUT");
55
@@ -403,6 +404,12 @@
56
             appEnv.ReferenceExternals = terrainCfgDir + @"SurfaceDetails\" + appEnv.TerrainName + ".external.ofsh";
57
             appEnv.TreePreviewArchive = terrainCfgDir + @"SurfaceDetails\Trees.preview.zip";
58
 
59-
+            appEnv.SurfaceL0OutputDir = appEnv.TConsPath + @"\Temp\" + appEnv.TerrainName + @"\";
59+
+            appEnv.SurfaceL0OutputDir = tempDir;
60-
+            if (appEnv.terrainConfig.VectorData5)
60+
+            if (VectorData5)
61
+                    appEnv.SurfaceL0OutputDir += @"export-lsa4-with-vector-data-5\";
62
+            else
63
+                    appEnv.SurfaceL0OutputDir += @"export-surface\";
64
+
65
             System.IO.DirectoryInfo dirInfo = null;
66
             try
67
             {