Build ligo outside the database

--HG--
branch : build_pipeline_py
This commit is contained in:
kaetemi 2013-07-27 04:03:05 +02:00
parent 55a00fd518
commit 5ad6373f61
13 changed files with 71 additions and 70 deletions

View file

@ -145,18 +145,19 @@ VegetTagExportDirectory = CommonPath + "/veget_tag"
VegetSetExportDirectory = CommonPath + "/veget_set" VegetSetExportDirectory = CommonPath + "/veget_set"
# Ligo directories # Ligo directories
LigoDatabaseExportDirectory = "landscape/ligo/" + EcosystemName LigoEcosystemExportDirectory = CommonPath + "/ligo_es"
LigoDatabaseIgExportDirectory = LigoDatabaseExportDirectory + "/igs" LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
LigoDatabaseZoneExportDirectory = LigoDatabaseExportDirectory + "/zones" LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
LigoDatabaseZoneLigoExportDirectory = LigoDatabaseExportDirectory + "/zoneligos" LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
LigoDatabaseCmbExportDirectory = LigoDatabaseExportDirectory + "/cmb" LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
LigoTagExportDirectory = CommonPath + "/ligo_tag" LigoEcosystemTagExportDirectory = CommonPath + "/ligo_es_tag"
# Zone directories # Zone directories
ZoneExportDirectory = CommonPath + "/zone" ZoneExportDirectory = CommonPath + "/zone"
# PACS primitives directories # PACS primitives directories
PacsPrimExportDirectory = CommonPath + "/pacs_prim" PacsPrimExportDirectory = CommonPath + "/pacs_prim"
PacsPrimTagExportDirectory = CommonPath + "/pacs_prim_tag"
# *** BUILD DIRECTORIES FOR THE BUILD PIPELINE *** # *** BUILD DIRECTORIES FOR THE BUILD PIPELINE ***

View file

@ -52,12 +52,12 @@ mkPath(log, DatabaseDirectory + "/" + ZoneSourceDirectory[0])
# Setup export directories # Setup export directories
printLog(log, ">>> Setup export directories <<<") printLog(log, ">>> Setup export directories <<<")
mkPath(log, ExportBuildDirectory + "/" + SmallbankExportDirectory) mkPath(log, ExportBuildDirectory + "/" + SmallbankExportDirectory)
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseExportDirectory) mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemExportDirectory)
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseIgExportDirectory) mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemIgExportDirectory)
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseZoneExportDirectory) mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemZoneExportDirectory)
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseZoneLigoExportDirectory) mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemZoneLigoExportDirectory)
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseCmbExportDirectory) mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemCmbExportDirectory)
mkPath(log, ExportBuildDirectory + "/" + LigoTagExportDirectory) mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemTagExportDirectory)
mkPath(log, ExportBuildDirectory + "/" + ZoneExportDirectory) mkPath(log, ExportBuildDirectory + "/" + ZoneExportDirectory)
# Setup build directories # Setup build directories
@ -83,11 +83,11 @@ if LigoExportLand != "":
cf.write("OutIGDir = \"" + ExportBuildDirectory + "/" + LigoIgLandBuildDirectory + "\";\n") cf.write("OutIGDir = \"" + ExportBuildDirectory + "/" + LigoIgLandBuildDirectory + "\";\n")
cf.write("AdditionnalIGOutDir = \"" + ExportBuildDirectory + "/" + LigoIgOtherBuildDirectory + "\";\n") cf.write("AdditionnalIGOutDir = \"" + ExportBuildDirectory + "/" + LigoIgOtherBuildDirectory + "\";\n")
cf.write("\n") cf.write("\n")
cf.write("RefZoneDir = \"" + DatabaseDirectory + "/" + LigoDatabaseZoneExportDirectory+ "\";\n") # FIXME cf.write("RefZoneDir = \"" + ExportBuildDirectory + "/" + LigoEcosystemZoneExportDirectory+ "\";\n") # FIXME
cf.write("RefIGDir = \"" + DatabaseDirectory + "/" + LigoDatabaseIgExportDirectory + "\";\n") cf.write("RefIGDir = \"" + ExportBuildDirectory + "/" + LigoEcosystemIgExportDirectory + "\";\n")
cf.write("AdditionnalIGInDir = \"" + DatabaseDirectory + "/" + LigoDatabaseIgExportDirectory + "\";\n") # FIXME cf.write("AdditionnalIGInDir = \"" + ExportBuildDirectory + "/" + LigoEcosystemIgExportDirectory + "\";\n") # FIXME
cf.write("ContinentsDir = \"" + LeveldesignWorldDirectory + "\";\n") cf.write("ContinentsDir = \"" + LeveldesignWorldDirectory + "\";\n")
cf.write("LigoBankDir = \"" + DatabaseDirectory + "/" + LigoDatabaseZoneLigoExportDirectory + "\";\n") # FIXME cf.write("LigoBankDir = \"" + ExportBuildDirectory + "/" + LigoEcosystemZoneLigoExportDirectory + "\";\n") # FIXME
cf.write("\n") cf.write("\n")
cf.write("TileBankFile = \"" + DatabaseDirectory + "/" + LigoTileBankFile + "\";\n") cf.write("TileBankFile = \"" + DatabaseDirectory + "/" + LigoTileBankFile + "\";\n")
cf.write("\n") cf.write("\n")
@ -102,7 +102,7 @@ if LigoExportLand != "":
cf.write("Threshold = 1;\n") cf.write("Threshold = 1;\n")
cf.write("\n") cf.write("\n")
cf.write("DFNDir = \"" + LeveldesignDfnDirectory + "\";\n") cf.write("DFNDir = \"" + LeveldesignDfnDirectory + "\";\n")
cf.write("RefCMBDir = \"" + DatabaseDirectory + "/" + LigoDatabaseCmbExportDirectory + "\";\n") # FIXME cf.write("RefCMBDir = \"" + ExportBuildDirectory + "/" + LigoEcosystemCmbExportDirectory + "\";\n") # FIXME
cf.write("OutCMBDir = \"" + ExportBuildDirectory + "/" + RBankCmbExportDirectory + "\";\n") cf.write("OutCMBDir = \"" + ExportBuildDirectory + "/" + RBankCmbExportDirectory + "\";\n")
cf.write("\n") cf.write("\n")
cf.write("ContinentFile = \"" + LeveldesignWorldDirectory + "/" + ContinentFile + "\";\n") cf.write("ContinentFile = \"" + LeveldesignWorldDirectory + "/" + ContinentFile + "\";\n")

View file

@ -55,23 +55,23 @@ if LigoExportLand == "" or LigoExportOnePass == 1:
ligoIniPath = MaxUserDirectory + "/plugcfg/nelligo.ini" ligoIniPath = MaxUserDirectory + "/plugcfg/nelligo.ini"
mkPath(log, ExportBuildDirectory + "/" + SmallbankExportDirectory) mkPath(log, ExportBuildDirectory + "/" + SmallbankExportDirectory)
mkPath(log, DatabaseDirectory + "/" + LigoMaxSourceDirectory) mkPath(log, DatabaseDirectory + "/" + LigoMaxSourceDirectory)
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseExportDirectory) mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemExportDirectory)
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseIgExportDirectory) mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemIgExportDirectory)
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseZoneExportDirectory) mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemZoneExportDirectory)
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseZoneLigoExportDirectory) mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemZoneLigoExportDirectory)
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseCmbExportDirectory) mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemCmbExportDirectory)
mkPath(log, DatabaseDirectory + "/" + ZoneSourceDirectory[0]) mkPath(log, DatabaseDirectory + "/" + ZoneSourceDirectory[0])
mkPath(log, ExportBuildDirectory + "/" + LigoTagExportDirectory) mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemTagExportDirectory)
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + LigoMaxSourceDirectory, ".max", ExportBuildDirectory + "/" + LigoTagExportDirectory, ".max.tag")): if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + LigoMaxSourceDirectory, ".max", ExportBuildDirectory + "/" + LigoEcosystemTagExportDirectory, ".max.tag")):
printLog(log, "WRITE " + ligoIniPath) printLog(log, "WRITE " + ligoIniPath)
ligoIni = open(ligoIniPath, "w") ligoIni = open(ligoIniPath, "w")
ligoIni.write("[LigoConfig]\n") ligoIni.write("[LigoConfig]\n")
ligoIni.write("LigoPath=" + DatabaseDirectory + "/" + LigoMaxSourceDirectory + "/\n") ligoIni.write("LigoPath=" + DatabaseDirectory + "/" + LigoMaxSourceDirectory + "/\n")
ligoIni.write("LigoExportPath=" + DatabaseDirectory + "/" + LigoDatabaseExportDirectory + "/\n") ligoIni.write("LigoExportPath=" + ExportBuildDirectory + "/" + LigoEcosystemExportDirectory + "/\n")
ligoIni.write("LigoOldZonePath=" + DatabaseDirectory + "/" + ZoneSourceDirectory[0] + "/\n") ligoIni.write("LigoOldZonePath=" + DatabaseDirectory + "/" + ZoneSourceDirectory[0] + "/\n")
ligoIni.close() ligoIni.close()
outDirTag = ExportBuildDirectory + "/" + LigoTagExportDirectory outDirTag = ExportBuildDirectory + "/" + LigoEcosystemTagExportDirectory
logFile = ScriptDirectory + "/processes/ligo/log.log" logFile = ScriptDirectory + "/processes/ligo/log.log"
smallBank = ExportBuildDirectory + "/" + SmallbankExportDirectory + "/" + BankTileBankName + ".smallbank" smallBank = ExportBuildDirectory + "/" + SmallbankExportDirectory + "/" + BankTileBankName + ".smallbank"

View file

@ -163,12 +163,12 @@ ShapeLightmapNotOptimizedExportDirectory = CommonPath + "/shape_lightmap_not_opt
ShapeAnimExportDirectory = CommonPath + "/shape_anim" ShapeAnimExportDirectory = CommonPath + "/shape_anim"
# Ligo directories # Ligo directories
LigoDatabaseExportDirectory = "landscape/ligo/" + EcosystemName LigoEcosystemExportDirectory = EcosystemPath + "/ligo_es"
LigoDatabaseIgExportDirectory = LigoDatabaseExportDirectory + "/igs" LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
LigoDatabaseZoneExportDirectory = LigoDatabaseExportDirectory + "/zones" LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
LigoDatabaseZoneLigoExportDirectory = LigoDatabaseExportDirectory + "/zoneligos" LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
LigoDatabaseCmbExportDirectory = LigoDatabaseExportDirectory + "/cmb" LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
LigoTagExportDirectory = "ecosystems/" + EcosystemName + "/ligo_tag" LigoEcosystemTagExportDirectory = EcosystemPath + "/ligo_es_tag"
# Zone directories # Zone directories
ZoneExportDirectory = ContinentPath + "/zone" ZoneExportDirectory = ContinentPath + "/zone"

View file

@ -136,12 +136,12 @@ ShapeLightmapNotOptimizedExportDirectory = CommonPath + "/shape_lightmap_not_opt
ShapeAnimExportDirectory = CommonPath + "/shape_anim" ShapeAnimExportDirectory = CommonPath + "/shape_anim"
# Ligo directories # Ligo directories
LigoDatabaseExportDirectory = "landscape/ligo/" + EcosystemName LigoEcosystemExportDirectory = EcosystemPath + "/ligo_es"
LigoDatabaseIgExportDirectory = LigoDatabaseExportDirectory + "/igs" LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
LigoDatabaseZoneExportDirectory = LigoDatabaseExportDirectory + "/zones" LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
LigoDatabaseZoneLigoExportDirectory = LigoDatabaseExportDirectory + "/zoneligos" LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
LigoDatabaseCmbExportDirectory = LigoDatabaseExportDirectory + "/cmb" LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
LigoTagExportDirectory = "ecosystems/" + EcosystemName + "/ligo_tag" LigoEcosystemTagExportDirectory = EcosystemPath + "/ligo_es_tag"
# Zone directories # Zone directories
ZoneExportDirectory = ContinentPath + "/zone" ZoneExportDirectory = ContinentPath + "/zone"

View file

@ -6,7 +6,7 @@
# #
# \file directories.py # \file directories.py
# \brief Directories configuration # \brief Directories configuration
# \date 2010-09-19-14-19-GMT # \date 2013-07-27-02-01-GMT
# \author Jan Boon (Kaetemi) # \author Jan Boon (Kaetemi)
# \date 2001-2005 # \date 2001-2005
# \author Nevrax # \author Nevrax
@ -194,12 +194,12 @@ VegetTagExportDirectory = CommonPath + "/veget_tag"
VegetSetExportDirectory = CommonPath + "/veget_set" VegetSetExportDirectory = CommonPath + "/veget_set"
# Ligo directories # Ligo directories
LigoDatabaseExportDirectory = "landscape/ligo/" + EcosystemName LigoEcosystemExportDirectory = CommonPath + "/ligo_es"
LigoDatabaseIgExportDirectory = LigoDatabaseExportDirectory + "/igs" LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
LigoDatabaseZoneExportDirectory = LigoDatabaseExportDirectory + "/zones" LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
LigoDatabaseZoneLigoExportDirectory = LigoDatabaseExportDirectory + "/zoneligos" LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
LigoDatabaseCmbExportDirectory = LigoDatabaseExportDirectory + "/cmb" LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
LigoTagExportDirectory = CommonPath + "/ligo_tag" LigoEcosystemTagExportDirectory = CommonPath + "/ligo_es_tag"
# Zone directories # Zone directories
ZoneExportDirectory = CommonPath + "/zone" ZoneExportDirectory = CommonPath + "/zone"

View file

@ -6,7 +6,7 @@
# #
# \file config.py # \file config.py
# \brief Process configuration # \brief Process configuration
# \date 2010-09-19-14-19-GMT # \date 2013-07-27-02-01-GMT
# \author Jan Boon (Kaetemi) # \author Jan Boon (Kaetemi)
# Python port of game data build pipeline. # Python port of game data build pipeline.
# Process configuration for 'desert' ecosystem. # Process configuration for 'desert' ecosystem.

View file

@ -6,7 +6,7 @@
# #
# \file directories.py # \file directories.py
# \brief Directories configuration # \brief Directories configuration
# \date 2010-09-19-14-19-GMT # \date 2013-07-27-02-01-GMT
# \author Jan Boon (Kaetemi) # \author Jan Boon (Kaetemi)
# \date 2001-2005 # \date 2001-2005
# \author Nevrax # \author Nevrax
@ -198,12 +198,12 @@ VegetTagExportDirectory = CommonPath + "/veget_tag"
VegetSetExportDirectory = CommonPath + "/veget_set" VegetSetExportDirectory = CommonPath + "/veget_set"
# Ligo directories # Ligo directories
LigoDatabaseExportDirectory = "landscape/ligo/" + EcosystemName LigoEcosystemExportDirectory = CommonPath + "/ligo_es"
LigoDatabaseIgExportDirectory = LigoDatabaseExportDirectory + "/igs" LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
LigoDatabaseZoneExportDirectory = LigoDatabaseExportDirectory + "/zones" LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
LigoDatabaseZoneLigoExportDirectory = LigoDatabaseExportDirectory + "/zoneligos" LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
LigoDatabaseCmbExportDirectory = LigoDatabaseExportDirectory + "/cmb" LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
LigoTagExportDirectory = CommonPath + "/ligo_tag" LigoEcosystemTagExportDirectory = CommonPath + "/ligo_es_tag"
# Zone directories # Zone directories
ZoneExportDirectory = CommonPath + "/zone" ZoneExportDirectory = CommonPath + "/zone"

View file

@ -6,7 +6,7 @@
# #
# \file config.py # \file config.py
# \brief Process configuration # \brief Process configuration
# \date 2010-09-19-14-19-GMT # \date 2013-07-27-02-01-GMT
# \author Jan Boon (Kaetemi) # \author Jan Boon (Kaetemi)
# Python port of game data build pipeline. # Python port of game data build pipeline.
# Process configuration for 'jungle' ecosystem. # Process configuration for 'jungle' ecosystem.

View file

@ -6,7 +6,7 @@
# #
# \file directories.py # \file directories.py
# \brief Directories configuration # \brief Directories configuration
# \date 2010-09-19-14-19-GMT # \date 2013-07-27-02-01-GMT
# \author Jan Boon (Kaetemi) # \author Jan Boon (Kaetemi)
# \date 2001-2005 # \date 2001-2005
# \author Nevrax # \author Nevrax
@ -206,12 +206,12 @@ VegetTagExportDirectory = CommonPath + "/veget_tag"
VegetSetExportDirectory = CommonPath + "/veget_set" VegetSetExportDirectory = CommonPath + "/veget_set"
# Ligo directories # Ligo directories
LigoDatabaseExportDirectory = "landscape/ligo/" + EcosystemName LigoEcosystemExportDirectory = CommonPath + "/ligo_es"
LigoDatabaseIgExportDirectory = LigoDatabaseExportDirectory + "/igs" LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
LigoDatabaseZoneExportDirectory = LigoDatabaseExportDirectory + "/zones" LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
LigoDatabaseZoneLigoExportDirectory = LigoDatabaseExportDirectory + "/zoneligos" LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
LigoDatabaseCmbExportDirectory = LigoDatabaseExportDirectory + "/cmb" LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
LigoTagExportDirectory = CommonPath + "/ligo_tag" LigoEcosystemTagExportDirectory = CommonPath + "/ligo_es_tag"
# Zone directories # Zone directories
ZoneExportDirectory = CommonPath + "/zone" ZoneExportDirectory = CommonPath + "/zone"

View file

@ -6,7 +6,7 @@
# #
# \file config.py # \file config.py
# \brief Process configuration # \brief Process configuration
# \date 2010-09-19-14-19-GMT # \date 2013-07-27-02-01-GMT
# \author Jan Boon (Kaetemi) # \author Jan Boon (Kaetemi)
# Python port of game data build pipeline. # Python port of game data build pipeline.
# Process configuration for 'lacustre' ecosystem. # Process configuration for 'lacustre' ecosystem.

View file

@ -6,7 +6,7 @@
# #
# \file directories.py # \file directories.py
# \brief Directories configuration # \brief Directories configuration
# \date 2010-09-19-14-19-GMT # \date 2013-07-27-02-01-GMT
# \author Jan Boon (Kaetemi) # \author Jan Boon (Kaetemi)
# \date 2001-2005 # \date 2001-2005
# \author Nevrax # \author Nevrax
@ -191,12 +191,12 @@ VegetTagExportDirectory = CommonPath + "/veget_tag"
VegetSetExportDirectory = CommonPath + "/veget_set" VegetSetExportDirectory = CommonPath + "/veget_set"
# Ligo directories # Ligo directories
LigoDatabaseExportDirectory = "landscape/ligo/" + EcosystemName LigoEcosystemExportDirectory = CommonPath + "/ligo_es"
LigoDatabaseIgExportDirectory = LigoDatabaseExportDirectory + "/igs" LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
LigoDatabaseZoneExportDirectory = LigoDatabaseExportDirectory + "/zones" LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
LigoDatabaseZoneLigoExportDirectory = LigoDatabaseExportDirectory + "/zoneligos" LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
LigoDatabaseCmbExportDirectory = LigoDatabaseExportDirectory + "/cmb" LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
LigoTagExportDirectory = CommonPath + "/ligo_tag" LigoEcosystemTagExportDirectory = CommonPath + "/ligo_es_tag"
# Zone directories # Zone directories
ZoneExportDirectory = CommonPath + "/zone" ZoneExportDirectory = CommonPath + "/zone"

View file

@ -6,7 +6,7 @@
# #
# \file config.py # \file config.py
# \brief Process configuration # \brief Process configuration
# \date 2010-09-19-14-19-GMT # \date 2013-07-27-02-01-GMT
# \author Jan Boon (Kaetemi) # \author Jan Boon (Kaetemi)
# Python port of game data build pipeline. # Python port of game data build pipeline.
# Process configuration for 'primes_racines' ecosystem. # Process configuration for 'primes_racines' ecosystem.