dmitrysenkovich

Untitled

Aug 26th, 2014
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: Constructor/AppEnv.cs
  2. ===================================================================
  3. --- Constructor/AppEnv.cs   (revision 6363)
  4. +++ Constructor/AppEnv.cs   (working copy)
  5. @@ -235,6 +235,18 @@
  6.              set { vars["VECTORDATA5_OUTPUT_LNKD"].Value = value; }
  7.          }
  8.  
  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. +        public override bool RunImp(Task task, AppEnv appEnv, bool withChildren)
  34. +        {
  35. +
  36. +            Command command = new Command();
  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.      }
  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.              AddNewFileVariableIfNotFound(appEnv.vars, "VECTORDATA5_OUTPUT");
  56.              AddNewFileVariableIfNotFound(appEnv.vars, "VECTORDATA5_OUTPUT_LNKD");
  57. +            AddNewFileVariableIfNotFound(appEnv.vars, "SURFACE_L0_OUTPUT");
  58. +            AddNewFileVariableIfNotFound(appEnv.vars, "SURFACE_TEMP_DIR");
  59.              AddNewFileVariableIfNotFound(appEnv.vars, "RRR_SCENE_OUTPUT");
  60.              AddNewFileVariableIfNotFound(appEnv.vars, "RRR_DETAILS_OUTPUT");
  61.              AddNewFileVariableIfNotFound(appEnv.vars, "RRR_POWERLINES_OUTPUT");
  62. @@ -403,6 +405,13 @@
  63.              appEnv.ReferenceExternals = terrainCfgDir + @"SurfaceDetails\" + appEnv.TerrainName + ".external.ofsh";
  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.              {
Advertisement
Add Comment
Please, Sign In to add comment