View difference between Paste ID: wQivwxBn and aUrYEABp
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 @@
5+
@@ -235,6 +235,18 @@
6
             set { vars["VECTORDATA5_OUTPUT_LNKD"].Value = value; }
7
         }
8
 
9-
+        public string SurfaceL0OutputDir
9+
+        public string SurfaceL0Output
10
+        {
11
+            get { return vars["SURFACE_L0_OUTPUT"].StringValue; }
12
+            set { vars["SURFACE_L0_OUTPUT"].Value = value; }
13
+        }
14
+
15
+        public string SurfaceTempDir
16
+        {
17
+            get { return vars["SURFACE_TEMP_DIR"].StringValue; }
18
+            set { vars["SURFACE_TEMP_DIR"].Value = value; }
19
+        }
20
+
21
         public string RrrSceneOutput
22
         {
23
             get { return vars["RRR_SCENE_OUTPUT"].StringValue; }
24
Index: Constructor/Operations/ExportNavigationMesh.cs
25
===================================================================
26
--- Constructor/Operations/ExportNavigationMesh.cs	(revision 6363)
27
+++ Constructor/Operations/ExportNavigationMesh.cs	(working copy)
28
@@ -14,5 +14,20 @@
29
             : base("Navigation Mesh")
30
         {
31
         }
32
+
33-
+            string surfaceL0filename = appEnv.SurfaceL0OutputDir + "surface-L0.ofsh";
33+
34
+        {
35
+
36-
+            command.ErrorsFile = appEnv.SurfaceL0OutputDir + @"export-vector-data_errors.ofsh";
36+
37
+            command.Type = Command.CommandType.EDTU4;
38
+            command.EdtuCommand = "build-navigation-mesh";
39
+            string surfaceL0filename = appEnv.SurfaceL0Output;
40
+            string navMeshfilename = appEnv.terrainConfig.TerrainCfgDir.AbsoluteByRelativeTcons() + "navigationMesh.navmesh";
41
+            command.Args = surfaceL0filename + " " + navMeshfilename;
42
+            command.ErrorsFile = appEnv.SurfaceTempDir + @"export-vector-data_errors.ofsh";
43
+            task.AddCommand(command);
44
+
45
+            return true;
46
+        }
47-
@@ -305,6 +305,7 @@
47+
48
 }
49
Index: Constructor/Operations/TerrainConfig.cs
50
===================================================================
51
--- Constructor/Operations/TerrainConfig.cs	(revision 6363)
52
+++ Constructor/Operations/TerrainConfig.cs	(working copy)
53
@@ -305,6 +305,8 @@
54
             AddNewFileVariableIfNotFound(appEnv.vars, "RRR_OUTPUT");
55-
@@ -403,6 +404,12 @@
55+
56
             AddNewFileVariableIfNotFound(appEnv.vars, "VECTORDATA5_OUTPUT_LNKD");
57
+            AddNewFileVariableIfNotFound(appEnv.vars, "SURFACE_L0_OUTPUT");
58
+            AddNewFileVariableIfNotFound(appEnv.vars, "SURFACE_TEMP_DIR");
59-
+            appEnv.SurfaceL0OutputDir = tempDir;
59+
60
             AddNewFileVariableIfNotFound(appEnv.vars, "RRR_DETAILS_OUTPUT");
61-
+                    appEnv.SurfaceL0OutputDir += @"export-lsa4-with-vector-data-5\";
61+
62
@@ -403,6 +405,13 @@
63-
+                    appEnv.SurfaceL0OutputDir += @"export-surface\";
63+
64
             appEnv.TreePreviewArchive = terrainCfgDir + @"SurfaceDetails\Trees.preview.zip";
65
 
66
+            appEnv.SurfaceTempDir = tempDir;
67
+            if (VectorData5)
68
+                    appEnv.SurfaceTempDir += @"export-lsa4-with-vector-data-5\";
69
+            else
70
+                    appEnv.SurfaceTempDir += @"export-surface\";
71
+            appEnv.SurfaceL0Output = appEnv.SurfaceTempDir + "surface-L0.ofsh";
72
+
73
             System.IO.DirectoryInfo dirInfo = null;
74
             try
75
             {