Build ligo outside the database
This commit is contained in:
parent
38c4b66cce
commit
a519de3e5d
13 changed files with 71 additions and 70 deletions
|
@ -145,18 +145,19 @@ VegetTagExportDirectory = CommonPath + "/veget_tag"
|
|||
VegetSetExportDirectory = CommonPath + "/veget_set"
|
||||
|
||||
# Ligo directories
|
||||
LigoDatabaseExportDirectory = "landscape/ligo/" + EcosystemName
|
||||
LigoDatabaseIgExportDirectory = LigoDatabaseExportDirectory + "/igs"
|
||||
LigoDatabaseZoneExportDirectory = LigoDatabaseExportDirectory + "/zones"
|
||||
LigoDatabaseZoneLigoExportDirectory = LigoDatabaseExportDirectory + "/zoneligos"
|
||||
LigoDatabaseCmbExportDirectory = LigoDatabaseExportDirectory + "/cmb"
|
||||
LigoTagExportDirectory = CommonPath + "/ligo_tag"
|
||||
LigoEcosystemExportDirectory = CommonPath + "/ligo_es"
|
||||
LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
|
||||
LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
|
||||
LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
|
||||
LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
|
||||
LigoEcosystemTagExportDirectory = CommonPath + "/ligo_es_tag"
|
||||
|
||||
# Zone directories
|
||||
ZoneExportDirectory = CommonPath + "/zone"
|
||||
|
||||
# PACS primitives directories
|
||||
PacsPrimExportDirectory = CommonPath + "/pacs_prim"
|
||||
PacsPrimTagExportDirectory = CommonPath + "/pacs_prim_tag"
|
||||
|
||||
|
||||
# *** BUILD DIRECTORIES FOR THE BUILD PIPELINE ***
|
||||
|
|
|
@ -52,12 +52,12 @@ mkPath(log, DatabaseDirectory + "/" + ZoneSourceDirectory[0])
|
|||
# Setup export directories
|
||||
printLog(log, ">>> Setup export directories <<<")
|
||||
mkPath(log, ExportBuildDirectory + "/" + SmallbankExportDirectory)
|
||||
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseExportDirectory)
|
||||
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseIgExportDirectory)
|
||||
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseZoneExportDirectory)
|
||||
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseZoneLigoExportDirectory)
|
||||
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseCmbExportDirectory)
|
||||
mkPath(log, ExportBuildDirectory + "/" + LigoTagExportDirectory)
|
||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemExportDirectory)
|
||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemIgExportDirectory)
|
||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemZoneExportDirectory)
|
||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemZoneLigoExportDirectory)
|
||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemCmbExportDirectory)
|
||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemTagExportDirectory)
|
||||
mkPath(log, ExportBuildDirectory + "/" + ZoneExportDirectory)
|
||||
|
||||
# Setup build directories
|
||||
|
@ -83,11 +83,11 @@ if LigoExportLand != "":
|
|||
cf.write("OutIGDir = \"" + ExportBuildDirectory + "/" + LigoIgLandBuildDirectory + "\";\n")
|
||||
cf.write("AdditionnalIGOutDir = \"" + ExportBuildDirectory + "/" + LigoIgOtherBuildDirectory + "\";\n")
|
||||
cf.write("\n")
|
||||
cf.write("RefZoneDir = \"" + DatabaseDirectory + "/" + LigoDatabaseZoneExportDirectory+ "\";\n") # FIXME
|
||||
cf.write("RefIGDir = \"" + DatabaseDirectory + "/" + LigoDatabaseIgExportDirectory + "\";\n")
|
||||
cf.write("AdditionnalIGInDir = \"" + DatabaseDirectory + "/" + LigoDatabaseIgExportDirectory + "\";\n") # FIXME
|
||||
cf.write("RefZoneDir = \"" + ExportBuildDirectory + "/" + LigoEcosystemZoneExportDirectory+ "\";\n") # FIXME
|
||||
cf.write("RefIGDir = \"" + ExportBuildDirectory + "/" + LigoEcosystemIgExportDirectory + "\";\n")
|
||||
cf.write("AdditionnalIGInDir = \"" + ExportBuildDirectory + "/" + LigoEcosystemIgExportDirectory + "\";\n") # FIXME
|
||||
cf.write("ContinentsDir = \"" + LeveldesignWorldDirectory + "\";\n")
|
||||
cf.write("LigoBankDir = \"" + DatabaseDirectory + "/" + LigoDatabaseZoneLigoExportDirectory + "\";\n") # FIXME
|
||||
cf.write("LigoBankDir = \"" + ExportBuildDirectory + "/" + LigoEcosystemZoneLigoExportDirectory + "\";\n") # FIXME
|
||||
cf.write("\n")
|
||||
cf.write("TileBankFile = \"" + DatabaseDirectory + "/" + LigoTileBankFile + "\";\n")
|
||||
cf.write("\n")
|
||||
|
@ -102,7 +102,7 @@ if LigoExportLand != "":
|
|||
cf.write("Threshold = 1;\n")
|
||||
cf.write("\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("\n")
|
||||
cf.write("ContinentFile = \"" + LeveldesignWorldDirectory + "/" + ContinentFile + "\";\n")
|
||||
|
|
|
@ -55,23 +55,23 @@ if LigoExportLand == "" or LigoExportOnePass == 1:
|
|||
ligoIniPath = MaxUserDirectory + "/plugcfg/nelligo.ini"
|
||||
mkPath(log, ExportBuildDirectory + "/" + SmallbankExportDirectory)
|
||||
mkPath(log, DatabaseDirectory + "/" + LigoMaxSourceDirectory)
|
||||
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseExportDirectory)
|
||||
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseIgExportDirectory)
|
||||
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseZoneExportDirectory)
|
||||
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseZoneLigoExportDirectory)
|
||||
mkPath(log, DatabaseDirectory + "/" + LigoDatabaseCmbExportDirectory)
|
||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemExportDirectory)
|
||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemIgExportDirectory)
|
||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemZoneExportDirectory)
|
||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemZoneLigoExportDirectory)
|
||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemCmbExportDirectory)
|
||||
mkPath(log, DatabaseDirectory + "/" + ZoneSourceDirectory[0])
|
||||
mkPath(log, ExportBuildDirectory + "/" + LigoTagExportDirectory)
|
||||
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + LigoMaxSourceDirectory, ".max", ExportBuildDirectory + "/" + LigoTagExportDirectory, ".max.tag")):
|
||||
mkPath(log, ExportBuildDirectory + "/" + LigoEcosystemTagExportDirectory)
|
||||
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + LigoMaxSourceDirectory, ".max", ExportBuildDirectory + "/" + LigoEcosystemTagExportDirectory, ".max.tag")):
|
||||
printLog(log, "WRITE " + ligoIniPath)
|
||||
ligoIni = open(ligoIniPath, "w")
|
||||
ligoIni.write("[LigoConfig]\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.close()
|
||||
|
||||
outDirTag = ExportBuildDirectory + "/" + LigoTagExportDirectory
|
||||
outDirTag = ExportBuildDirectory + "/" + LigoEcosystemTagExportDirectory
|
||||
logFile = ScriptDirectory + "/processes/ligo/log.log"
|
||||
smallBank = ExportBuildDirectory + "/" + SmallbankExportDirectory + "/" + BankTileBankName + ".smallbank"
|
||||
|
||||
|
|
|
@ -163,12 +163,12 @@ ShapeLightmapNotOptimizedExportDirectory = CommonPath + "/shape_lightmap_not_opt
|
|||
ShapeAnimExportDirectory = CommonPath + "/shape_anim"
|
||||
|
||||
# Ligo directories
|
||||
LigoDatabaseExportDirectory = "landscape/ligo/" + EcosystemName
|
||||
LigoDatabaseIgExportDirectory = LigoDatabaseExportDirectory + "/igs"
|
||||
LigoDatabaseZoneExportDirectory = LigoDatabaseExportDirectory + "/zones"
|
||||
LigoDatabaseZoneLigoExportDirectory = LigoDatabaseExportDirectory + "/zoneligos"
|
||||
LigoDatabaseCmbExportDirectory = LigoDatabaseExportDirectory + "/cmb"
|
||||
LigoTagExportDirectory = "ecosystems/" + EcosystemName + "/ligo_tag"
|
||||
LigoEcosystemExportDirectory = EcosystemPath + "/ligo_es"
|
||||
LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
|
||||
LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
|
||||
LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
|
||||
LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
|
||||
LigoEcosystemTagExportDirectory = EcosystemPath + "/ligo_es_tag"
|
||||
|
||||
# Zone directories
|
||||
ZoneExportDirectory = ContinentPath + "/zone"
|
||||
|
|
|
@ -136,12 +136,12 @@ ShapeLightmapNotOptimizedExportDirectory = CommonPath + "/shape_lightmap_not_opt
|
|||
ShapeAnimExportDirectory = CommonPath + "/shape_anim"
|
||||
|
||||
# Ligo directories
|
||||
LigoDatabaseExportDirectory = "landscape/ligo/" + EcosystemName
|
||||
LigoDatabaseIgExportDirectory = LigoDatabaseExportDirectory + "/igs"
|
||||
LigoDatabaseZoneExportDirectory = LigoDatabaseExportDirectory + "/zones"
|
||||
LigoDatabaseZoneLigoExportDirectory = LigoDatabaseExportDirectory + "/zoneligos"
|
||||
LigoDatabaseCmbExportDirectory = LigoDatabaseExportDirectory + "/cmb"
|
||||
LigoTagExportDirectory = "ecosystems/" + EcosystemName + "/ligo_tag"
|
||||
LigoEcosystemExportDirectory = EcosystemPath + "/ligo_es"
|
||||
LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
|
||||
LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
|
||||
LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
|
||||
LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
|
||||
LigoEcosystemTagExportDirectory = EcosystemPath + "/ligo_es_tag"
|
||||
|
||||
# Zone directories
|
||||
ZoneExportDirectory = ContinentPath + "/zone"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# \file directories.py
|
||||
# \brief Directories configuration
|
||||
# \date 2010-09-19-14-19-GMT
|
||||
# \date 2013-07-27-02-01-GMT
|
||||
# \author Jan Boon (Kaetemi)
|
||||
# \date 2001-2005
|
||||
# \author Nevrax
|
||||
|
@ -194,12 +194,12 @@ VegetTagExportDirectory = CommonPath + "/veget_tag"
|
|||
VegetSetExportDirectory = CommonPath + "/veget_set"
|
||||
|
||||
# Ligo directories
|
||||
LigoDatabaseExportDirectory = "landscape/ligo/" + EcosystemName
|
||||
LigoDatabaseIgExportDirectory = LigoDatabaseExportDirectory + "/igs"
|
||||
LigoDatabaseZoneExportDirectory = LigoDatabaseExportDirectory + "/zones"
|
||||
LigoDatabaseZoneLigoExportDirectory = LigoDatabaseExportDirectory + "/zoneligos"
|
||||
LigoDatabaseCmbExportDirectory = LigoDatabaseExportDirectory + "/cmb"
|
||||
LigoTagExportDirectory = CommonPath + "/ligo_tag"
|
||||
LigoEcosystemExportDirectory = CommonPath + "/ligo_es"
|
||||
LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
|
||||
LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
|
||||
LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
|
||||
LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
|
||||
LigoEcosystemTagExportDirectory = CommonPath + "/ligo_es_tag"
|
||||
|
||||
# Zone directories
|
||||
ZoneExportDirectory = CommonPath + "/zone"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# \file config.py
|
||||
# \brief Process configuration
|
||||
# \date 2010-09-19-14-19-GMT
|
||||
# \date 2013-07-27-02-01-GMT
|
||||
# \author Jan Boon (Kaetemi)
|
||||
# Python port of game data build pipeline.
|
||||
# Process configuration for 'desert' ecosystem.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# \file directories.py
|
||||
# \brief Directories configuration
|
||||
# \date 2010-09-19-14-19-GMT
|
||||
# \date 2013-07-27-02-01-GMT
|
||||
# \author Jan Boon (Kaetemi)
|
||||
# \date 2001-2005
|
||||
# \author Nevrax
|
||||
|
@ -198,12 +198,12 @@ VegetTagExportDirectory = CommonPath + "/veget_tag"
|
|||
VegetSetExportDirectory = CommonPath + "/veget_set"
|
||||
|
||||
# Ligo directories
|
||||
LigoDatabaseExportDirectory = "landscape/ligo/" + EcosystemName
|
||||
LigoDatabaseIgExportDirectory = LigoDatabaseExportDirectory + "/igs"
|
||||
LigoDatabaseZoneExportDirectory = LigoDatabaseExportDirectory + "/zones"
|
||||
LigoDatabaseZoneLigoExportDirectory = LigoDatabaseExportDirectory + "/zoneligos"
|
||||
LigoDatabaseCmbExportDirectory = LigoDatabaseExportDirectory + "/cmb"
|
||||
LigoTagExportDirectory = CommonPath + "/ligo_tag"
|
||||
LigoEcosystemExportDirectory = CommonPath + "/ligo_es"
|
||||
LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
|
||||
LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
|
||||
LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
|
||||
LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
|
||||
LigoEcosystemTagExportDirectory = CommonPath + "/ligo_es_tag"
|
||||
|
||||
# Zone directories
|
||||
ZoneExportDirectory = CommonPath + "/zone"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# \file config.py
|
||||
# \brief Process configuration
|
||||
# \date 2010-09-19-14-19-GMT
|
||||
# \date 2013-07-27-02-01-GMT
|
||||
# \author Jan Boon (Kaetemi)
|
||||
# Python port of game data build pipeline.
|
||||
# Process configuration for 'jungle' ecosystem.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# \file directories.py
|
||||
# \brief Directories configuration
|
||||
# \date 2010-09-19-14-19-GMT
|
||||
# \date 2013-07-27-02-01-GMT
|
||||
# \author Jan Boon (Kaetemi)
|
||||
# \date 2001-2005
|
||||
# \author Nevrax
|
||||
|
@ -206,12 +206,12 @@ VegetTagExportDirectory = CommonPath + "/veget_tag"
|
|||
VegetSetExportDirectory = CommonPath + "/veget_set"
|
||||
|
||||
# Ligo directories
|
||||
LigoDatabaseExportDirectory = "landscape/ligo/" + EcosystemName
|
||||
LigoDatabaseIgExportDirectory = LigoDatabaseExportDirectory + "/igs"
|
||||
LigoDatabaseZoneExportDirectory = LigoDatabaseExportDirectory + "/zones"
|
||||
LigoDatabaseZoneLigoExportDirectory = LigoDatabaseExportDirectory + "/zoneligos"
|
||||
LigoDatabaseCmbExportDirectory = LigoDatabaseExportDirectory + "/cmb"
|
||||
LigoTagExportDirectory = CommonPath + "/ligo_tag"
|
||||
LigoEcosystemExportDirectory = CommonPath + "/ligo_es"
|
||||
LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
|
||||
LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
|
||||
LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
|
||||
LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
|
||||
LigoEcosystemTagExportDirectory = CommonPath + "/ligo_es_tag"
|
||||
|
||||
# Zone directories
|
||||
ZoneExportDirectory = CommonPath + "/zone"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# \file config.py
|
||||
# \brief Process configuration
|
||||
# \date 2010-09-19-14-19-GMT
|
||||
# \date 2013-07-27-02-01-GMT
|
||||
# \author Jan Boon (Kaetemi)
|
||||
# Python port of game data build pipeline.
|
||||
# Process configuration for 'lacustre' ecosystem.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# \file directories.py
|
||||
# \brief Directories configuration
|
||||
# \date 2010-09-19-14-19-GMT
|
||||
# \date 2013-07-27-02-01-GMT
|
||||
# \author Jan Boon (Kaetemi)
|
||||
# \date 2001-2005
|
||||
# \author Nevrax
|
||||
|
@ -191,12 +191,12 @@ VegetTagExportDirectory = CommonPath + "/veget_tag"
|
|||
VegetSetExportDirectory = CommonPath + "/veget_set"
|
||||
|
||||
# Ligo directories
|
||||
LigoDatabaseExportDirectory = "landscape/ligo/" + EcosystemName
|
||||
LigoDatabaseIgExportDirectory = LigoDatabaseExportDirectory + "/igs"
|
||||
LigoDatabaseZoneExportDirectory = LigoDatabaseExportDirectory + "/zones"
|
||||
LigoDatabaseZoneLigoExportDirectory = LigoDatabaseExportDirectory + "/zoneligos"
|
||||
LigoDatabaseCmbExportDirectory = LigoDatabaseExportDirectory + "/cmb"
|
||||
LigoTagExportDirectory = CommonPath + "/ligo_tag"
|
||||
LigoEcosystemExportDirectory = CommonPath + "/ligo_es"
|
||||
LigoEcosystemIgExportDirectory = LigoEcosystemExportDirectory + "/igs"
|
||||
LigoEcosystemZoneExportDirectory = LigoEcosystemExportDirectory + "/zones"
|
||||
LigoEcosystemZoneLigoExportDirectory = LigoEcosystemExportDirectory + "/zoneligos"
|
||||
LigoEcosystemCmbExportDirectory = LigoEcosystemExportDirectory + "/cmb"
|
||||
LigoEcosystemTagExportDirectory = CommonPath + "/ligo_es_tag"
|
||||
|
||||
# Zone directories
|
||||
ZoneExportDirectory = CommonPath + "/zone"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# \file config.py
|
||||
# \brief Process configuration
|
||||
# \date 2010-09-19-14-19-GMT
|
||||
# \date 2013-07-27-02-01-GMT
|
||||
# \author Jan Boon (Kaetemi)
|
||||
# Python port of game data build pipeline.
|
||||
# Process configuration for 'primes_racines' ecosystem.
|
||||
|
|
Loading…
Reference in a new issue