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,22 @@ |
| 5 | + | @@ -235,6 +235,12 @@ |
| 6 | set { vars["VECTORDATA5_OUTPUT_LNKD"].Value = value; }
| |
| 7 | } | |
| 8 | ||
| 9 | + public string SurfaceL0OutputDir | |
| 10 | + {
| |
| 11 | - | + get |
| 11 | + | + get { return vars["SURFACE_L0_OUTPUT"].StringValue; }
|
| 12 | - | + {
|
| 12 | + | + set { vars["SURFACE_L0_OUTPUT"].Value = value; }
|
| 13 | - | + if (terrainConfigObj != null) |
| 13 | + | |
| 14 | - | + {
|
| 14 | + | |
| 15 | - | + if (terrainConfig.VectorData5) |
| 15 | + | |
| 16 | - | + return (TempDir + @"export-lsa4-with-vector-data-5\"); |
| 16 | + | |
| 17 | - | + else |
| 17 | + | |
| 18 | - | + return (TempDir + @"export-surface\"); |
| 18 | + | |
| 19 | - | + } |
| 19 | + | |
| 20 | --- Constructor/Operations/ExportNavigationMesh.cs (revision 6363) | |
| 21 | - | + return null; |
| 21 | + | |
| 22 | - | + } |
| 22 | + | |
| 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 | - | } |
| 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 + @"\"; | |
| 60 | + if (appEnv.terrainConfig.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 | { |