From 1599f7c9ecbb9db67b7b9a3677a07d8d6cb2ecda Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 8 Feb 2014 00:03:56 +0100 Subject: [PATCH] Add translation directory to pipeline setup --- code/nel/tools/build_gamedata/0_setup.py | 7 +++++++ code/nel/tools/build_gamedata/configuration/tools.py | 1 + 2 files changed, 8 insertions(+) diff --git a/code/nel/tools/build_gamedata/0_setup.py b/code/nel/tools/build_gamedata/0_setup.py index d5a0d4269..b1d858460 100644 --- a/code/nel/tools/build_gamedata/0_setup.py +++ b/code/nel/tools/build_gamedata/0_setup.py @@ -147,6 +147,10 @@ if not args.noconf: LeveldesignDataCommonDirectory except NameError: LeveldesignDataCommonDirectory = "L:/data_common" + try: + TranslationDirectory + except NameError: + TranslationDirectory = "L:/translation" try: WorldEditorFilesDirectory except NameError: @@ -204,6 +208,7 @@ if not args.noconf: GamedevDirectory = askVar(log, "Gamedev Directory", GamedevDirectory).replace("\\", "/") DataShardDirectory = askVar(log, "Data Shard Directory", DataShardDirectory).replace("\\", "/") DataCommonDirectory = askVar(log, "Data Common Directory", DataCommonDirectory).replace("\\", "/") + TranslationDirectory = askVar(log, "Translation Directory", TranslationDirectory).replace("\\", "/") LeveldesignDataShardDirectory = askVar(log, "Leveldesign Data Shard Directory", LeveldesignDataShardDirectory).replace("\\", "/") LeveldesignDataCommonDirectory = askVar(log, "Leveldesign Data Common Directory", LeveldesignDataCommonDirectory).replace("\\", "/") WorldEditorFilesDirectory = askVar(log, "World Editor Files Directory", WorldEditorFilesDirectory).replace("\\", "/") @@ -287,6 +292,7 @@ if not args.noconf: sf.write("PrimitivesDirectory = \"" + str(PrimitivesDirectory) + "\"\n") sf.write("LeveldesignDataCommonDirectory = \"" + str(LeveldesignDataCommonDirectory) + "\"\n") sf.write("LeveldesignDataShardDirectory = \"" + str(LeveldesignDataShardDirectory) + "\"\n") + sf.write("TranslationDirectory = \"" + str(TranslationDirectory) + "\"\n") sf.write("\n") sf.write("# Misc data directories\n") sf.write("GamedevDirectory = \"" + str(GamedevDirectory) + "\"\n") @@ -391,6 +397,7 @@ if not args.noverify: findTool(log, ToolDirectories, AiBuildWmapTool, ToolSuffix) findTool(log, ToolDirectories, TgaCutTool, ToolSuffix) findTool(log, ToolDirectories, PatchGenTool, ToolSuffix) + findTool(log, ToolDirectories, TranslationToolsTool, ToolSuffix) log.close() if os.path.isfile("0_setup.log"): diff --git a/code/nel/tools/build_gamedata/configuration/tools.py b/code/nel/tools/build_gamedata/configuration/tools.py index 34242af68..ae205db43 100644 --- a/code/nel/tools/build_gamedata/configuration/tools.py +++ b/code/nel/tools/build_gamedata/configuration/tools.py @@ -89,3 +89,4 @@ BnpMakeTool = "bnp_make" AiBuildWmapTool = "ai_build_wmap" TgaCutTool = "tga_cut" PatchGenTool = "patch_gen" +TranslationToolsTool = "translation_tools"