Added: #929 Generators for ecosystem projects, all four ecosystem projects, generators for max exporter scripts, rbank cmb export.
Changed: #929 Improved skipping of exported max files, corrected search paths for some tools configurations.hg/feature/sound
parent
411f2893c8
commit
a3b71cdb3e
@ -0,0 +1,196 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# #################################################################
|
||||||
|
# ## %PreGenWarning%
|
||||||
|
# #################################################################
|
||||||
|
#
|
||||||
|
# \file directories.py
|
||||||
|
# \brief Directories configuration
|
||||||
|
# \date %PreGenDateTimeStamp%
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# \date 2001-2005
|
||||||
|
# \author Nevrax
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Directories configuration for '%PreGenEcosystemName%' ecosystem.
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# *** ECOSYSTEM AND CONTINENT NAMES ***
|
||||||
|
|
||||||
|
EcosystemName = "%PreGenEcosystemName%"
|
||||||
|
EcosystemPath = "ecosystems/" + EcosystemName
|
||||||
|
CommonName = EcosystemName
|
||||||
|
CommonPath = EcosystemPath
|
||||||
|
|
||||||
|
DatabaseRootName = "%PreGenDatabaseRootName%"
|
||||||
|
DatabaseRootPath = "stuff/" + DatabaseRootName
|
||||||
|
|
||||||
|
|
||||||
|
# *** SOURCE DIRECTORIES IN THE DATABASE ***
|
||||||
|
|
||||||
|
# Shape directories
|
||||||
|
ShapeSourceDirectories = [ ]
|
||||||
|
ShapeSourceDirectories += [ DatabaseRootPath + "/decors/vegetations" ]
|
||||||
|
ShapeSourceDirectories += [ "landscape/ligo/" + EcosystemName + "/max" ]
|
||||||
|
|
||||||
|
# Maps directories
|
||||||
|
MapSourceDirectories = [ ]
|
||||||
|
MapSourceDirectories += [ DatabaseRootPath + "/decors/_textures" ]
|
||||||
|
%PreGenMapSubdirectories%MapSourceDirectories += [ "landscape/microveget/" + EcosystemName + "" ]
|
||||||
|
MapSourceDirectories += [ "landscape/water/meshes/" + EcosystemName + "" ]
|
||||||
|
|
||||||
|
MapUncompressedSourceDirectories = [ ]
|
||||||
|
|
||||||
|
# Tiles directories
|
||||||
|
TilesSourceDirectories = [ ]
|
||||||
|
%PreGenTileSourceDirectories%
|
||||||
|
# Tiles root directory
|
||||||
|
TileRootSourceDirectory = "landscape/_texture_tiles/" + EcosystemName
|
||||||
|
|
||||||
|
# Displace directory
|
||||||
|
DisplaceSourceDirectory = "landscape/_texture_tiles/" + EcosystemName + "/displace"
|
||||||
|
|
||||||
|
# Do not use, needs to be removed and fixed in processes
|
||||||
|
DisplaceSourceDirectories = [ ]
|
||||||
|
DisplaceSourceDirectories += [ DisplaceSourceDirectory ]
|
||||||
|
|
||||||
|
# Bank directory
|
||||||
|
BankSourceDirectory = "landscape/_texture_tiles/" + EcosystemName
|
||||||
|
|
||||||
|
# Vegetable set directories
|
||||||
|
VegetSetSourceDirectories = [ ]
|
||||||
|
VegetSetSourceDirectories += [ "landscape/microveget/" + EcosystemName ]
|
||||||
|
|
||||||
|
# Veget directories
|
||||||
|
VegetSourceDirectories = [ ]
|
||||||
|
VegetSourceDirectories += [ "landscape/microveget/" + EcosystemName ]
|
||||||
|
|
||||||
|
# Ligo directories
|
||||||
|
LigoBaseSourceDirectory = "landscape/ligo/" + EcosystemName
|
||||||
|
LigoMaxSourceDirectory = LigoBaseSourceDirectory + "/max"
|
||||||
|
|
||||||
|
# Zone directories
|
||||||
|
ZoneSourceDirectory = [ "landscape/zones/" + EcosystemName ] # For old snowballs style landscape when not using ligo
|
||||||
|
|
||||||
|
# Ig landscape directories
|
||||||
|
IgLandSourceDirectory = "_invalid"
|
||||||
|
|
||||||
|
# Ig other directories
|
||||||
|
IgOtherSourceDirectory = "_invalid"
|
||||||
|
|
||||||
|
# PACS primitives directories
|
||||||
|
PacsPrimSourceDirectories = [ ]
|
||||||
|
PacsPrimSourceDirectories += [ DatabaseRootPath + "/decors/vegetations" ]
|
||||||
|
|
||||||
|
|
||||||
|
# *** EXPORT DIRECTORIES FOR THE BUILD PIPELINE ***
|
||||||
|
|
||||||
|
# Shape directories
|
||||||
|
ShapeTagExportDirectory = CommonPath + "/shape_tag"
|
||||||
|
ShapeNotOptimizedExportDirectory = CommonPath + "/shape_not_optimized"
|
||||||
|
ShapeWithCoarseMeshExportDirectory = CommonPath + "/shape_with_coarse_mesh"
|
||||||
|
ShapeLightmapNotOptimizedExportDirectory = CommonPath + "/shape_lightmap_not_optimized"
|
||||||
|
ShapeAnimExportDirectory = CommonPath + "/shape_anim"
|
||||||
|
|
||||||
|
# Smallbank directories
|
||||||
|
SmallbankExportDirectory = CommonPath + "/smallbank"
|
||||||
|
|
||||||
|
# Tiles directories
|
||||||
|
TilesExportDirectory = CommonPath + "/tiles"
|
||||||
|
|
||||||
|
# Tiles directories
|
||||||
|
DisplaceExportDirectory = CommonPath + "/diplace"
|
||||||
|
|
||||||
|
# Veget directories
|
||||||
|
VegetExportDirectory = CommonPath + "/veget"
|
||||||
|
VegetTagExportDirectory = CommonPath + "/veget_tag"
|
||||||
|
|
||||||
|
# Veget Set directories
|
||||||
|
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"
|
||||||
|
|
||||||
|
# Zone directories
|
||||||
|
ZoneExportDirectory = CommonPath + "/zone"
|
||||||
|
|
||||||
|
# PACS primitives directories
|
||||||
|
PacsPrimExportDirectory = CommonPath + "/pacs_prim"
|
||||||
|
|
||||||
|
|
||||||
|
# *** BUILD DIRECTORIES FOR THE BUILD PIPELINE ***
|
||||||
|
|
||||||
|
# Map directories
|
||||||
|
MapBuildDirectory = CommonPath + "/map"
|
||||||
|
MapPanoplyBuildDirectory = CommonPath + "/map_panoply"
|
||||||
|
|
||||||
|
# Shape directories
|
||||||
|
ShapeClodtexBuildDirectory = CommonPath + "/shape_clodtex_build"
|
||||||
|
ShapeWithCoarseMeshBuildDirectory = CommonPath + "/shape_with_coarse_mesh_builded"
|
||||||
|
ShapeLightmapBuildDirectory = CommonPath + "/shape_lightmap"
|
||||||
|
ShapeLightmap16BitsBuildDirectory = CommonPath + "/shape_lightmap_16_bits"
|
||||||
|
|
||||||
|
# Farbank directories
|
||||||
|
FarbankBuildDirectory = CommonPath + "/farbank"
|
||||||
|
|
||||||
|
# Ig directories ************** TODO CONFIRM IN IG BUILD PROCESS ************ FIX RBANK IF NEEDED ***********
|
||||||
|
IgLandBuildDirectory = "_invalid"
|
||||||
|
IgOtherBuildDirectory = "_invalid"
|
||||||
|
|
||||||
|
# Rbank directories
|
||||||
|
RbankOutputBuildDirectory = "_invalid"
|
||||||
|
RbankMeshBuildDirectory = "_invalid"
|
||||||
|
|
||||||
|
# Ligo directories
|
||||||
|
|
||||||
|
|
||||||
|
# *** INSTALL DIRECTORIES IN THE CLIENT DATA ***
|
||||||
|
|
||||||
|
# Map directory
|
||||||
|
MapClientDirectory = CommonName + "_maps"
|
||||||
|
BitmapClientDirectory = MapClientDirectory
|
||||||
|
|
||||||
|
# Shape directory
|
||||||
|
ShapeClientDirectory = CommonName + "_shapes"
|
||||||
|
|
||||||
|
# Lightmap directory
|
||||||
|
LightmapClientDirectory = CommonName + "_lightmaps"
|
||||||
|
|
||||||
|
# Tile directory
|
||||||
|
TilesClientDirectory = CommonName + "_tiles"
|
||||||
|
|
||||||
|
# Displace directory
|
||||||
|
DisplaceClientDirectory = CommonName + "_displaces"
|
||||||
|
|
||||||
|
# Bank directory
|
||||||
|
BankClientDirectory = CommonName + "_bank"
|
||||||
|
|
||||||
|
# Vegetable set directory
|
||||||
|
VegetSetClientDirectory = CommonName + "_vegetable_sets"
|
||||||
|
|
||||||
|
# Vegetable shape directory
|
||||||
|
VegetClientDirectory = CommonName + "_vegetables"
|
||||||
|
|
||||||
|
# PACS primitives directories
|
||||||
|
PacsPrimClientDirectory = CommonName + "_pacs_prim"
|
@ -0,0 +1,120 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# #################################################################
|
||||||
|
# ## %PreGenWarning%
|
||||||
|
# #################################################################
|
||||||
|
#
|
||||||
|
# \file config.py
|
||||||
|
# \brief Process configuration
|
||||||
|
# \date %PreGenDateTimeStamp%
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Process configuration for '%PreGenEcosystemName%' ecosystem.
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
# *** PROCESS CONFIGURATION ***
|
||||||
|
|
||||||
|
# *** PROCESS CONFIG ***
|
||||||
|
ProcessToComplete = [ ]
|
||||||
|
ProcessToComplete += [ "shape" ]
|
||||||
|
ProcessToComplete += [ "map" ]
|
||||||
|
ProcessToComplete += [ "smallbank" ]
|
||||||
|
ProcessToComplete += [ "farbank" ]
|
||||||
|
ProcessToComplete += [ "tiles" ]
|
||||||
|
ProcessToComplete += [ "displace" ]
|
||||||
|
ProcessToComplete += [ "veget" ]
|
||||||
|
ProcessToComplete += [ "vegetset" ]
|
||||||
|
ProcessToComplete += [ "ligo" ]
|
||||||
|
ProcessToComplete += [ "pacs_prim" ]
|
||||||
|
|
||||||
|
|
||||||
|
# *** ECOSYSTEM AND CONTINENT NAMES ***
|
||||||
|
|
||||||
|
EcosystemName = "%PreGenEcosystemName%"
|
||||||
|
EcosystemPath = "ecosystems/" + EcosystemName
|
||||||
|
CommonName = EcosystemName
|
||||||
|
CommonPath = EcosystemPath
|
||||||
|
|
||||||
|
|
||||||
|
# *** MAP EXPORT OPTIONS ***
|
||||||
|
PanoplyFileList = [ ]
|
||||||
|
HlsBankFileName = ""
|
||||||
|
|
||||||
|
# *** SHAPE EXPORT OPTIONS ***
|
||||||
|
|
||||||
|
# Compute lightmaps ?
|
||||||
|
ShapeExportOptExportLighting = "%PreGenShapeExportOptExportLighting%"
|
||||||
|
|
||||||
|
# Cast shadow in lightmap ?
|
||||||
|
ShapeExportOptShadow = "%PreGenShapeExportOptShadow%"
|
||||||
|
|
||||||
|
# Lighting limits. 0 : normal, 1 : soft shadows
|
||||||
|
ShapeExportOptLightingLimit = %PreGenShapeExportOptLightingLimit%
|
||||||
|
|
||||||
|
# Lightmap lumel size
|
||||||
|
ShapeExportOptLumelSize = "%PreGenShapeExportOptLumelSize%"
|
||||||
|
|
||||||
|
# Oversampling value. Can be 1, 2, 4 or 8
|
||||||
|
ShapeExportOptOversampling = %PreGenShapeExportOptOversampling%
|
||||||
|
|
||||||
|
# Does the lightmap must be generated in 8 bits format ?
|
||||||
|
ShapeExportOpt8BitsLightmap = "%PreGenShapeExportOpt8BitsLightmap%"
|
||||||
|
|
||||||
|
# Does the lightmaps export must generate logs ?
|
||||||
|
ShapeExportOptLightmapLog = "%PreGenShapeExportOptLightmapLog%"
|
||||||
|
|
||||||
|
# Coarse mesh texture mul size
|
||||||
|
TextureMulSizeValue = "%PreGenTextureMulSizeValue%"
|
||||||
|
|
||||||
|
DoBuildShadowSkin = 0
|
||||||
|
|
||||||
|
ClodConfigFile = ""
|
||||||
|
|
||||||
|
# *** COARSE MESH TEXTURE NAME ***
|
||||||
|
CoarseMeshTextureNames = [ ]
|
||||||
|
%PreGenCoarseMeshTextureNames%
|
||||||
|
# *** POSTFIX USED BY THE MULTIPLE TILES SYSTEM ***
|
||||||
|
MultipleTilesPostfix = [ ]
|
||||||
|
%PreGenMultipleTilesPostfix%
|
||||||
|
# *** BANK EXPORT OPTIONS ***
|
||||||
|
|
||||||
|
# Name of the tilebank to use
|
||||||
|
BankTileBankName = EcosystemName
|
||||||
|
|
||||||
|
# *** RBANK EXPORT OPTIONS ***
|
||||||
|
|
||||||
|
# Output names
|
||||||
|
RbankRbankName = "_invalid"
|
||||||
|
|
||||||
|
# *** LIGO OPTIONS ***
|
||||||
|
|
||||||
|
LigoExportLand = ""
|
||||||
|
LigoExportOnePass = 0
|
||||||
|
|
||||||
|
# *** MAPS OPTIONS ***
|
||||||
|
|
||||||
|
ReduceBitmapFactor = 0
|
||||||
|
|
||||||
|
# *** SHAPE BUILD OPTIONS *
|
||||||
|
|
||||||
|
DoBuildShadowSkin = False
|
||||||
|
ClodConfigFile = ""
|
||||||
|
|
||||||
|
# *** PACS_PRIM OPTIONS ***
|
||||||
|
WantLandscapeColPrimPacsList = True
|
@ -0,0 +1,65 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# \file 0_setup.py
|
||||||
|
# \brief Run all setup processes
|
||||||
|
# \date 2009-02-18 15:28GMT
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Run all setup processes
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
|
sys.path.append("../configuration")
|
||||||
|
if os.path.isfile("generate_all.log"):
|
||||||
|
os.remove("generate_all.log")
|
||||||
|
log = open("generate_all.log", "w")
|
||||||
|
from scripts import *
|
||||||
|
from buildsite import *
|
||||||
|
from tools import *
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, "--- Generate all")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
|
try:
|
||||||
|
subprocess.call([ "python", "generate_simple_max_exporters.py" ])
|
||||||
|
except Exception, e:
|
||||||
|
printLog(log, "<" + processName + "> " + str(e))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
|
try:
|
||||||
|
subprocess.call([ "python", "generate_tagged_max_exporters.py" ])
|
||||||
|
except Exception, e:
|
||||||
|
printLog(log, "<" + processName + "> " + str(e))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
|
try:
|
||||||
|
subprocess.call([ "python", "generate_ecosystem_projects.py" ])
|
||||||
|
except Exception, e:
|
||||||
|
printLog(log, "<" + processName + "> " + str(e))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
|
log.close()
|
@ -0,0 +1,278 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# \file generate_ecosystem_projects.py
|
||||||
|
# \brief Run all setup processes
|
||||||
|
# \date 2010-09-02 10:36GMT
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Generate ecosystem projects
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
|
sys.path.append("../configuration")
|
||||||
|
if os.path.isfile("generate_ecosystem_projects.log"):
|
||||||
|
os.remove("generate_ecosystem_projects.log")
|
||||||
|
log = open("generate_ecosystem_projects.log", "w")
|
||||||
|
from scripts import *
|
||||||
|
from buildsite import *
|
||||||
|
from tools import *
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, "--- Generate ecosystem projects")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
templateDir = os.getcwd().replace("\\", "/") + "/ecosystem_project_template"
|
||||||
|
mkPath(log, templateDir)
|
||||||
|
|
||||||
|
os.chdir("..")
|
||||||
|
|
||||||
|
|
||||||
|
# Scroll down to add an ecosystem.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DefaultShapeExportOptExportLighting = "true"
|
||||||
|
DefaultShapeExportOptShadow = "true"
|
||||||
|
DefaultShapeExportOptLightingLimit = "1"
|
||||||
|
DefaultShapeExportOptLumelSize = "0.25"
|
||||||
|
DefaultShapeExportOptOversampling = "1"
|
||||||
|
DefaultShapeExportOpt8BitsLightmap = "true"
|
||||||
|
DefaultShapeExportOptLightmapLog = "true"
|
||||||
|
DefaultTextureMulSizeValue = "1.5"
|
||||||
|
DefaultSeasonSuffixes = [ "sp" ] + [ "su" ] + [ "au" ] + [ "wi" ]
|
||||||
|
DefaultMapSubdirectories = [ ]
|
||||||
|
DefaultTileDirectories = [ ]
|
||||||
|
|
||||||
|
|
||||||
|
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
||||||
|
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
||||||
|
ShapeExportOptLightingLimit = DefaultShapeExportOptLightingLimit
|
||||||
|
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
||||||
|
ShapeExportOptOversampling = DefaultShapeExportOptOversampling
|
||||||
|
ShapeExportOpt8BitsLightmap = DefaultShapeExportOpt8BitsLightmap
|
||||||
|
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
||||||
|
TextureMulSizeValue = DefaultTextureMulSizeValue
|
||||||
|
SeasonSuffixes = DefaultSeasonSuffixes
|
||||||
|
MapSubdirectories = DefaultMapSubdirectories
|
||||||
|
TileDirectories = DefaultTileDirectories
|
||||||
|
|
||||||
|
|
||||||
|
PreGenDateTimeStamp = None
|
||||||
|
PreGenEcosystemName = None
|
||||||
|
PreGenDatabaseRootName = None
|
||||||
|
PreGenCoarseMeshTextureNames = None
|
||||||
|
PreGenMultipleTilesPostfix = None
|
||||||
|
PreGenMapSubdirectories = None
|
||||||
|
PreGenTileSourceDirectories = None
|
||||||
|
|
||||||
|
|
||||||
|
def transformLine(line):
|
||||||
|
newline = line.replace("%PreGenWarning%", "WARNING : this is a generated file, don't change it !")
|
||||||
|
newline = newline.replace("%PreGenDateTimeStamp%", PreGenDateTimeStamp)
|
||||||
|
|
||||||
|
newline = newline.replace("%PreGenEcosystemName%", PreGenEcosystemName)
|
||||||
|
newline = newline.replace("%PreGenDatabaseRootName%", PreGenDatabaseRootName)
|
||||||
|
|
||||||
|
newline = newline.replace("%PreGenCoarseMeshTextureNames%", PreGenCoarseMeshTextureNames)
|
||||||
|
newline = newline.replace("%PreGenMultipleTilesPostfix%", PreGenMultipleTilesPostfix)
|
||||||
|
newline = newline.replace("%PreGenMapSubdirectories%", PreGenMapSubdirectories)
|
||||||
|
newline = newline.replace("%PreGenTileSourceDirectories%", PreGenTileSourceDirectories)
|
||||||
|
|
||||||
|
newline = newline.replace("%PreGenShapeExportOptExportLighting%", ShapeExportOptExportLighting)
|
||||||
|
newline = newline.replace("%PreGenShapeExportOptShadow%", ShapeExportOptShadow)
|
||||||
|
newline = newline.replace("%PreGenShapeExportOptLightingLimit%", ShapeExportOptLightingLimit)
|
||||||
|
newline = newline.replace("%PreGenShapeExportOptLumelSize%", ShapeExportOptLumelSize)
|
||||||
|
newline = newline.replace("%PreGenShapeExportOptOversampling%", ShapeExportOptOversampling)
|
||||||
|
newline = newline.replace("%PreGenShapeExportOpt8BitsLightmap%", ShapeExportOpt8BitsLightmap)
|
||||||
|
newline = newline.replace("%PreGenShapeExportOptLightmapLog%", ShapeExportOptLightmapLog)
|
||||||
|
newline = newline.replace("%PreGenTextureMulSizeValue%", TextureMulSizeValue)
|
||||||
|
newline = newline.replace("%PreGenTileSourceDirectories%", PreGenTileSourceDirectories)
|
||||||
|
|
||||||
|
return newline
|
||||||
|
|
||||||
|
def generateFile(sourceFile, destFile):
|
||||||
|
srcf = open(sourceFile, "r")
|
||||||
|
dstf = open(destFile, "w")
|
||||||
|
printLog(log, "WRITE " + destFile)
|
||||||
|
for line in srcf:
|
||||||
|
dstf.write(transformLine(line))
|
||||||
|
dstf.close()
|
||||||
|
srcf.close()
|
||||||
|
|
||||||
|
def generateEcosystem(ecosystemName, databaseRootName):
|
||||||
|
global PreGenEcosystemName
|
||||||
|
PreGenEcosystemName = ecosystemName
|
||||||
|
global PreGenDatabaseRootName
|
||||||
|
PreGenDatabaseRootName = databaseRootName
|
||||||
|
global PreGenDateTimeStamp
|
||||||
|
PreGenDateTimeStamp = time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time()))
|
||||||
|
|
||||||
|
global PreGenMultipleTilesPostfix
|
||||||
|
PreGenMultipleTilesPostfix = ""
|
||||||
|
global PreGenCoarseMeshTextureNames
|
||||||
|
PreGenCoarseMeshTextureNames = ""
|
||||||
|
global PreGenTileSourceDirectories
|
||||||
|
PreGenTileSourceDirectories = ""
|
||||||
|
for suffix in SeasonSuffixes:
|
||||||
|
PreGenMultipleTilesPostfix += "MultipleTilesPostfix += [ \"_" + suffix + "\" ]\n"
|
||||||
|
PreGenCoarseMeshTextureNames += "CoarseMeshTextureNames += [ \"nel_coarse_mesh_\" + EcosystemName + \"_" + suffix + "\" ]\n"
|
||||||
|
for tiledir in TileDirectories:
|
||||||
|
PreGenTileSourceDirectories += "TilesSourceDirectories += [ \"landscape/_texture_tiles/\" + EcosystemName + \"_" + suffix + "/" + tiledir + "\" ]\n"
|
||||||
|
global PreGenMapSubdirectories
|
||||||
|
PreGenMapSubdirectories = ""
|
||||||
|
for subdir in MapSubdirectories:
|
||||||
|
PreGenMapSubdirectories += "MapSourceDirectories += [ DatabaseRootPath + \"/decors/_textures/" + subdir + "\" ]\n"
|
||||||
|
|
||||||
|
destDir = WorkspaceDirectory + "/ecosystems/" + ecosystemName
|
||||||
|
mkPath(log, destDir)
|
||||||
|
|
||||||
|
generateFile(templateDir + "/process.py", destDir + "/process.py")
|
||||||
|
generateFile(templateDir + "/directories.py", destDir + "/directories.py")
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Add new ecosystems below this line.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# DESERT
|
||||||
|
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
||||||
|
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
||||||
|
ShapeExportOptLightingLimit = DefaultShapeExportOptLightingLimit
|
||||||
|
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
||||||
|
ShapeExportOptOversampling = DefaultShapeExportOptOversampling
|
||||||
|
ShapeExportOpt8BitsLightmap = DefaultShapeExportOpt8BitsLightmap
|
||||||
|
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
||||||
|
TextureMulSizeValue = DefaultTextureMulSizeValue
|
||||||
|
SeasonSuffixes = DefaultSeasonSuffixes
|
||||||
|
MapSubdirectories = [ ]
|
||||||
|
MapSubdirectories += [ "vegetations" ]
|
||||||
|
TileDirectories = [ ]
|
||||||
|
TileDirectories += [ "1.5-marecage_profond" ]
|
||||||
|
TileDirectories += [ "1-marecages" ]
|
||||||
|
TileDirectories += [ "2-citees" ]
|
||||||
|
TileDirectories += [ "3-fond_canyon" ]
|
||||||
|
TileDirectories += [ "4.2-boisbandeclair" ]
|
||||||
|
TileDirectories += [ "4.5-desert2boisbande" ]
|
||||||
|
TileDirectories += [ "4-falaise_bois_bande" ]
|
||||||
|
TileDirectories += [ "5-falaise_normales" ]
|
||||||
|
TileDirectories += [ "6.5-desertalternatif" ]
|
||||||
|
TileDirectories += [ "6-desert" ]
|
||||||
|
TileDirectories += [ "7-routes" ]
|
||||||
|
TileDirectories += [ "8-foretbrule" ]
|
||||||
|
generateEcosystem("desert", "fyros")
|
||||||
|
|
||||||
|
|
||||||
|
# JUNGLE
|
||||||
|
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
||||||
|
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
||||||
|
ShapeExportOptLightingLimit = DefaultShapeExportOptLightingLimit
|
||||||
|
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
||||||
|
ShapeExportOptOversampling = DefaultShapeExportOptOversampling
|
||||||
|
ShapeExportOpt8BitsLightmap = "false"
|
||||||
|
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
||||||
|
TextureMulSizeValue = DefaultTextureMulSizeValue
|
||||||
|
SeasonSuffixes = DefaultSeasonSuffixes
|
||||||
|
MapSubdirectories = [ ]
|
||||||
|
MapSubdirectories += [ "vegetations" ]
|
||||||
|
TileDirectories = [ ]
|
||||||
|
TileDirectories += [ "10-crevassejungle" ]
|
||||||
|
TileDirectories += [ "11-paroisjungle" ]
|
||||||
|
TileDirectories += [ "12-vasejungle" ]
|
||||||
|
TileDirectories += [ "1-junglemousse" ]
|
||||||
|
TileDirectories += [ "2-junglefeuilles" ]
|
||||||
|
TileDirectories += [ "3-jungleherbesseche" ]
|
||||||
|
TileDirectories += [ "4-jungleherbevieille" ]
|
||||||
|
TileDirectories += [ "5-jungleterreaux" ]
|
||||||
|
TileDirectories += [ "6-junglegoo" ]
|
||||||
|
TileDirectories += [ "7-sciurejungle" ]
|
||||||
|
TileDirectories += [ "8-terrejungle" ]
|
||||||
|
TileDirectories += [ "9-falaisejungle" ]
|
||||||
|
TileDirectories += [ "Transitions" ]
|
||||||
|
generateEcosystem("jungle", "jungle")
|
||||||
|
|
||||||
|
|
||||||
|
# PRIMES RACINES
|
||||||
|
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
||||||
|
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
||||||
|
ShapeExportOptLightingLimit = DefaultShapeExportOptLightingLimit
|
||||||
|
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
||||||
|
ShapeExportOptOversampling = DefaultShapeExportOptOversampling
|
||||||
|
ShapeExportOpt8BitsLightmap = "false"
|
||||||
|
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
||||||
|
TextureMulSizeValue = DefaultTextureMulSizeValue
|
||||||
|
SeasonSuffixes = DefaultSeasonSuffixes
|
||||||
|
MapSubdirectories = [ ]
|
||||||
|
MapSubdirectories += [ "vegetations" ]
|
||||||
|
MapSubdirectories += [ "batiments" ]
|
||||||
|
TileDirectories = [ ]
|
||||||
|
TileDirectories += [ "PR-creux" ]
|
||||||
|
TileDirectories += [ "PR-dome-moussu" ]
|
||||||
|
TileDirectories += [ "PR-kitiniere" ]
|
||||||
|
TileDirectories += [ "PR-mousse-licken" ]
|
||||||
|
TileDirectories += [ "PR-mousse-spongieus" ]
|
||||||
|
TileDirectories += [ "PR-parois" ]
|
||||||
|
TileDirectories += [ "PR-sol-mousse" ]
|
||||||
|
TileDirectories += [ "PR-souche" ]
|
||||||
|
TileDirectories += [ "PR-stalagmite" ]
|
||||||
|
TileDirectories += [ "PR-terre" ]
|
||||||
|
TileDirectories += [ "aditif" ]
|
||||||
|
generateEcosystem("primes_racines", "primes_racines")
|
||||||
|
|
||||||
|
|
||||||
|
# LACUSTRE
|
||||||
|
ShapeExportOptExportLighting = DefaultShapeExportOptExportLighting
|
||||||
|
ShapeExportOptShadow = DefaultShapeExportOptShadow
|
||||||
|
ShapeExportOptLightingLimit = "0"
|
||||||
|
ShapeExportOptLumelSize = DefaultShapeExportOptLumelSize
|
||||||
|
ShapeExportOptOversampling = "8"
|
||||||
|
ShapeExportOpt8BitsLightmap = "false"
|
||||||
|
ShapeExportOptLightmapLog = DefaultShapeExportOptLightmapLog
|
||||||
|
TextureMulSizeValue = DefaultTextureMulSizeValue
|
||||||
|
SeasonSuffixes = DefaultSeasonSuffixes
|
||||||
|
MapSubdirectories = [ ]
|
||||||
|
MapSubdirectories += [ "vegetations" ]
|
||||||
|
TileDirectories = [ ]
|
||||||
|
TileDirectories += [ "1a-sable-marin" ]
|
||||||
|
TileDirectories += [ "1-plages" ]
|
||||||
|
TileDirectories += [ "2-iles" ]
|
||||||
|
TileDirectories += [ "2-ilesa" ]
|
||||||
|
TileDirectories += [ "2-iles-marines" ]
|
||||||
|
TileDirectories += [ "3-fondmarin2plage" ]
|
||||||
|
TileDirectories += [ "4-marecages" ]
|
||||||
|
TileDirectories += [ "5-marecages" ]
|
||||||
|
TileDirectories += [ "5-parois-marine" ]
|
||||||
|
TileDirectories += [ "6-fond_marin" ]
|
||||||
|
TileDirectories += [ "7-bassesiles" ]
|
||||||
|
TileDirectories += [ "7-mousseter" ]
|
||||||
|
TileDirectories += [ "7-racines" ]
|
||||||
|
TileDirectories += [ "8-mousse_marine" ]
|
||||||
|
TileDirectories += [ "constructible" ]
|
||||||
|
generateEcosystem("lacustre", "tryker")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
log.close()
|
@ -0,0 +1,104 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# \file 0_setup.py
|
||||||
|
# \brief Run all setup processes
|
||||||
|
# \date 2009-02-18 15:28GMT
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Run all setup processes
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
|
sys.path.append("../configuration")
|
||||||
|
if os.path.isfile("generate_simple_max_exporters.log"):
|
||||||
|
os.remove("generate_simple_max_exporters.log")
|
||||||
|
log = open("generate_simple_max_exporters.log", "w")
|
||||||
|
from scripts import *
|
||||||
|
from buildsite import *
|
||||||
|
from tools import *
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, "--- Generate simple max exporters")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
def processLine(line, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
||||||
|
newline = line.replace("%PreGenWarning%", "WARNING : this is a generated file, don't change it !")
|
||||||
|
newline = newline.replace("%PreGenDateTimeStamp%", dateTimeStamp)
|
||||||
|
newline = newline.replace("%PreGenProcessName%", processName)
|
||||||
|
newline = newline.replace("%PreGenFileExtension%", fileExtension)
|
||||||
|
newline = newline.replace("%PreGenSourceDirectoriesVariable%", sourceDirectoriesVariable)
|
||||||
|
newline = newline.replace("%PreGenExportDirectoryVariable%", exportDirectoryVariable)
|
||||||
|
newline = newline.replace("%PreGenClientDirectoryVariable%", clientDirectoryVariable)
|
||||||
|
return newline
|
||||||
|
|
||||||
|
def generateSimpleMaxExporterFile(sourceFile, destFile, writeMode, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
||||||
|
srcf = open(sourceFile, "r")
|
||||||
|
dstf = open(destFile, writeMode)
|
||||||
|
printLog(log, "WRITE " + destFile + " " + writeMode)
|
||||||
|
for line in srcf:
|
||||||
|
dstf.write(processLine(line, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp))
|
||||||
|
dstf.close()
|
||||||
|
srcf.close()
|
||||||
|
|
||||||
|
def generateSimpleMaxExporter(processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable):
|
||||||
|
dateTimeStamp = time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time()))
|
||||||
|
processDir = ScriptDirectory + "/processes/" + processName
|
||||||
|
mkPath(log, processDir)
|
||||||
|
maxscriptDir = processDir + "/maxscript"
|
||||||
|
mkPath(log, maxscriptDir)
|
||||||
|
templateDir = os.getcwd().replace("\\", "/") + "/simple_max_exporter_template"
|
||||||
|
mkPath(log, templateDir)
|
||||||
|
scriptDir = os.getcwd().replace("\\", "/") + "/max_exporter_scripts"
|
||||||
|
mkPath(log, scriptDir)
|
||||||
|
|
||||||
|
if not os.path.isfile(processDir + "/0_setup.py"):
|
||||||
|
generateSimpleMaxExporterFile(templateDir + "/0_setup.py", processDir + "/0_setup.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
|
generateSimpleMaxExporterFile(templateDir + "/1_export_header.py", processDir + "/1_export.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
generateSimpleMaxExporterFile(scriptDir + "/" + fileExtension + ".py", processDir + "/1_export.py", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
generateSimpleMaxExporterFile(templateDir + "/1_export_footer.py", processDir + "/1_export.py", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
|
if not os.path.isfile(processDir + "/2_build.py"):
|
||||||
|
generateSimpleMaxExporterFile(templateDir + "/2_build.py", processDir + "/2_build.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
if not os.path.isfile(processDir + "/3_install.py"):
|
||||||
|
generateSimpleMaxExporterFile(templateDir + "/3_install.py", processDir + "/3_install.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
|
generateSimpleMaxExporterFile(templateDir + "/export_header.ms", maxscriptDir + "/" + fileExtension + "_export.ms", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
generateSimpleMaxExporterFile(scriptDir + "/" + fileExtension + ".ms", maxscriptDir + "/" + fileExtension + "_export.ms", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
generateSimpleMaxExporterFile(templateDir + "/export_footer.ms", maxscriptDir + "/" + fileExtension + "_export.ms", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
generateSimpleMaxExporter("pacs_prim", "pacs_prim", "PacsPrimSourceDirectories", "PacsPrimExportDirectory", "PacsPrimClientDirectory")
|
||||||
|
|
||||||
|
generateSimpleMaxExporter("anim", "anim", "AnimSourceDirectories", "AnimExportDirectory", "AnimClientDirectory")
|
||||||
|
|
||||||
|
generateSimpleMaxExporter("skel", "skel", "SkelSourceDirectories", "SkelExportDirectory", "SkelClientDirectory")
|
||||||
|
|
||||||
|
generateSimpleMaxExporter("swt", "swt", "SwtSourceDirectories", "SwtExportDirectory", "SwtClientDirectory")
|
||||||
|
|
||||||
|
generateSimpleMaxExporter("zone", "zone", "ZoneSourceDirectory", "ZoneExportDirectory", "ZoneClientDirectory")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
log.close()
|
@ -0,0 +1,114 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# \file 0_setup.py
|
||||||
|
# \brief Run all setup processes
|
||||||
|
# \date 2009-02-18 15:28GMT
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Run all setup processes
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
|
sys.path.append("../configuration")
|
||||||
|
if os.path.isfile("generate_tagged_max_exporters.log"):
|
||||||
|
os.remove("generate_tagged_max_exporters.log")
|
||||||
|
log = open("generate_tagged_max_exporters.log", "w")
|
||||||
|
from scripts import *
|
||||||
|
from buildsite import *
|
||||||
|
from tools import *
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, "--- Generate tagged max exporters")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
templateDir = os.getcwd().replace("\\", "/") + "/tagged_max_exporter_template"
|
||||||
|
mkPath(log, templateDir)
|
||||||
|
scriptDir = os.getcwd().replace("\\", "/") + "/max_exporter_scripts"
|
||||||
|
mkPath(log, scriptDir)
|
||||||
|
|
||||||
|
def processLine(line, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
||||||
|
newline = line.replace("%PreGenWarning%", "WARNING : this is a generated file, don't change it !")
|
||||||
|
newline = newline.replace("%PreGenDateTimeStamp%", dateTimeStamp)
|
||||||
|
newline = newline.replace("%PreGenProcessName%", processName)
|
||||||
|
newline = newline.replace("%PreGenFileExtension%", fileExtension)
|
||||||
|
newline = newline.replace("%PreGenSourceDirectoriesVariable%", sourceDirectoriesVariable)
|
||||||
|
newline = newline.replace("%PreGenExportDirectoryVariable%", exportDirectoryVariable)
|
||||||
|
newline = newline.replace("%PreGenTagExportDirectoryVariable%", tagExportDirectoryVariable)
|
||||||
|
newline = newline.replace("%PreGenClientDirectoryVariable%", clientDirectoryVariable)
|
||||||
|
return newline
|
||||||
|
|
||||||
|
def generateTaggedMaxExporterFile(sourceFile, destFile, writeMode, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
||||||
|
srcf = open(sourceFile, "r")
|
||||||
|
dstf = open(destFile, writeMode)
|
||||||
|
printLog(log, "WRITE " + destFile + " " + writeMode)
|
||||||
|
for line in srcf:
|
||||||
|
dstf.write(processLine(line, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp))
|
||||||
|
dstf.close()
|
||||||
|
srcf.close()
|
||||||
|
|
||||||
|
def generateTaggedMaxScriptFile(processDir, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp):
|
||||||
|
maxscriptDir = processDir + "/maxscript"
|
||||||
|
mkPath(log, maxscriptDir)
|
||||||
|
generateTaggedMaxExporterFile(templateDir + "/export_header.ms", maxscriptDir + "/" + fileExtension + "_export.ms", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
generateTaggedMaxExporterFile(scriptDir + "/" + fileExtension + ".ms", maxscriptDir + "/" + fileExtension + "_export.ms", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
generateTaggedMaxExporterFile(templateDir + "/export_footer.ms", maxscriptDir + "/" + fileExtension + "_export.ms", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
|
def generateTaggedMaxScript(processName, fileExtension):
|
||||||
|
dateTimeStamp = time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time()))
|
||||||
|
processDir = ScriptDirectory + "/processes/" + processName
|
||||||
|
mkPath(log, processDir)
|
||||||
|
|
||||||
|
generateTaggedMaxScriptFile(processDir, processName, fileExtension, "_invalid", "_invalid", "_invalid", "_invalid", dateTimeStamp)
|
||||||
|
|
||||||
|
def generateTaggedMaxExporter(processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable):
|
||||||
|
dateTimeStamp = time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time()))
|
||||||
|
processDir = ScriptDirectory + "/processes/" + processName
|
||||||
|
mkPath(log, processDir)
|
||||||
|
|
||||||
|
if not os.path.isfile(processDir + "/0_setup.py"):
|
||||||
|
generateTaggedMaxExporterFile(templateDir + "/0_setup.py", processDir + "/0_setup.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
|
generateTaggedMaxExporterFile(templateDir + "/1_export_header.py", processDir + "/1_export.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
generateTaggedMaxExporterFile(scriptDir + "/" + fileExtension + ".py", processDir + "/1_export.py", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
generateTaggedMaxExporterFile(templateDir + "/1_export_footer.py", processDir + "/1_export.py", "a", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
|
if not os.path.isfile(processDir + "/2_build.py"):
|
||||||
|
generateTaggedMaxExporterFile(templateDir + "/2_build.py", processDir + "/2_build.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
if not os.path.isfile(processDir + "/3_install.py"):
|
||||||
|
generateTaggedMaxExporterFile(templateDir + "/3_install.py", processDir + "/3_install.py", "w", processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
|
generateTaggedMaxScriptFile(processDir, processName, fileExtension, sourceDirectoriesVariable, exportDirectoryVariable, tagExportDirectoryVariable, clientDirectoryVariable, dateTimeStamp)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
generateTaggedMaxExporter("clodbank", "clod", "ClodSourceDirectories", "ClodExportDirectory", "ClodTagExportDirectory", "ClodClientDirectory")
|
||||||
|
|
||||||
|
generateTaggedMaxScript("ig", "ig")
|
||||||
|
|
||||||
|
generateTaggedMaxExporter("rbank", "cmb", "RBankCmbSourceDirectories", "RBankCmbExportDirectory", "RBankCmbTagExportDirectory", "PacsClientDirectory")
|
||||||
|
|
||||||
|
generateTaggedMaxExporter("veget", "veget", "VegetSourceDirectories", "VegetExportDirectory", "VegetTagExportDirectory", "VegetClientDirectory")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
log.close()
|
@ -0,0 +1,69 @@
|
|||||||
|
|
||||||
|
|
||||||
|
NEL3D_APPDATA_EXPORT_NODE_ANIMATION = 1423062800
|
||||||
|
|
||||||
|
fn runNelMaxExport inputMaxFile =
|
||||||
|
(
|
||||||
|
outputNelFile = ("%OutputDirectory%/" + (getFilenameFile inputMaxFile) + ".%PreGenFileExtension%")
|
||||||
|
tagThisFile = false
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
unhidecategory()
|
||||||
|
|
||||||
|
-- Select Bip01, not very smart
|
||||||
|
if $Bip01 != undefined then
|
||||||
|
(
|
||||||
|
select $Bip01
|
||||||
|
|
||||||
|
-- Always uncheck triangle pelvis
|
||||||
|
if (classof $Bip01) == Biped_Object then
|
||||||
|
(
|
||||||
|
$Bip01.controller.figureMode = true
|
||||||
|
$Bip01.controller.trianglepelvis = false
|
||||||
|
$Bip01.controller.figureMode = false
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
-- For each node
|
||||||
|
for node in objects do
|
||||||
|
(
|
||||||
|
exportNodeAnmation = getappdata node NEL3D_APPDATA_EXPORT_NODE_ANIMATION
|
||||||
|
if (exportNodeAnmation != undefined) then
|
||||||
|
(
|
||||||
|
if (exportNodeAnmation == "1") then
|
||||||
|
(
|
||||||
|
selectmore node
|
||||||
|
|
||||||
|
-- Is it a biped ?
|
||||||
|
if (classof node.controller) == Vertical_Horizontal_Turn then
|
||||||
|
(
|
||||||
|
-- Always uncheck triangle pelvis
|
||||||
|
node.controller.trianglepelvis = false
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
if ((selection as array).count != 0) then
|
||||||
|
(
|
||||||
|
-- Export the animation
|
||||||
|
if (NelExportAnimation (selection as array) outputNelFile false) == false then
|
||||||
|
(
|
||||||
|
nlerror("ERROR exporting animation " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("OK " + outputNelFile)
|
||||||
|
tagThisFile = true
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR exporting animation: no node animated to export in file " + inputMaxFile)
|
||||||
|
)
|
||||||
|
|
||||||
|
return tagThisFile
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,123 @@
|
|||||||
|
|
||||||
|
|
||||||
|
-- Some globals
|
||||||
|
|
||||||
|
NEL3D_APPDATA_DONOTEXPORT = 1423062565 -- do not export me : "undefined" = export me
|
||||||
|
-- "0" = export me
|
||||||
|
-- "1" = DONT export me
|
||||||
|
NEL3D_APPDATA_CHARACTER_LOD = 1423062618 -- "1": I am a character lod if "1". "0" or undefined: I am not.
|
||||||
|
|
||||||
|
|
||||||
|
-- Must export this node ?
|
||||||
|
fn isToBeExported node =
|
||||||
|
(
|
||||||
|
if ((classof node) == RklPatch) then
|
||||||
|
return false
|
||||||
|
|
||||||
|
if ((classof node) == nel_ps) then
|
||||||
|
return false
|
||||||
|
|
||||||
|
if ((classof node) == nel_pacs_cylinder) then
|
||||||
|
return false
|
||||||
|
|
||||||
|
if ((classof node) == nel_pacs_box) then
|
||||||
|
return false
|
||||||
|
|
||||||
|
doNotExport = getappdata node NEL3D_APPDATA_DONOTEXPORT
|
||||||
|
if (doNotExport != undefined) then
|
||||||
|
(
|
||||||
|
if (doNotExport == "1") then
|
||||||
|
return false
|
||||||
|
)
|
||||||
|
return true
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
-- is this node flagged as a LodCharacter ??
|
||||||
|
fn isLodCharacter node =
|
||||||
|
(
|
||||||
|
isCLod = getappdata node NEL3D_APPDATA_CHARACTER_LOD
|
||||||
|
if (isCLod == undefined) then
|
||||||
|
return false
|
||||||
|
if (isCLod == "1") then
|
||||||
|
return true
|
||||||
|
return false
|
||||||
|
)
|
||||||
|
|
||||||
|
fn runNelMaxExport inputMaxFile =
|
||||||
|
(
|
||||||
|
tagThisFile = true
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
unhidecategory()
|
||||||
|
|
||||||
|
-- Unhide
|
||||||
|
max unhide all
|
||||||
|
|
||||||
|
-- unselect
|
||||||
|
max select none
|
||||||
|
|
||||||
|
-- Exported object count
|
||||||
|
exported = 0
|
||||||
|
|
||||||
|
-- For each node
|
||||||
|
for node in geometry do
|
||||||
|
(
|
||||||
|
-- It is root ?
|
||||||
|
if (node.parent == undefined) then
|
||||||
|
(
|
||||||
|
-- Can be exported ?
|
||||||
|
if (isToBeExported node == true) then
|
||||||
|
(
|
||||||
|
-- Is a Lod character?
|
||||||
|
if ((isLodCharacter node) == true) then
|
||||||
|
(
|
||||||
|
-- Output directory
|
||||||
|
outputNelFile = ("%OutputDirectory%/" + (node.name) + ".clod")
|
||||||
|
|
||||||
|
-- Compare file date
|
||||||
|
if (NeLTestFileDate outputNelFile inputMaxFile) == true then
|
||||||
|
(
|
||||||
|
try
|
||||||
|
(
|
||||||
|
-- Export the shape
|
||||||
|
if (NelExportLodCharacter node outputNelFile false) == true then
|
||||||
|
(
|
||||||
|
nlerror("OK " + outputNelFile)
|
||||||
|
exported = exported+1
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR exporting .clod " + node.name + " in file " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
)
|
||||||
|
catch
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR fatal error exporting .clod " + node.name + " in file " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("SKIPPED " + outputNelFile)
|
||||||
|
exported = exported + 1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Something exported
|
||||||
|
if (exported == 0) then
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror ("WARNING no .clod exported from the file " + inputMaxFile)
|
||||||
|
)
|
||||||
|
|
||||||
|
return tagThisFile
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,59 @@
|
|||||||
|
|
||||||
|
|
||||||
|
NEL3D_APPDATA_COLLISION = 1423062613
|
||||||
|
NEL3D_APPDATA_COLLISION_EXTERIOR = 1423062614
|
||||||
|
|
||||||
|
|
||||||
|
-- Must export this node ?
|
||||||
|
fn isToBeExported node =
|
||||||
|
(
|
||||||
|
doNotExport = getappdata node NEL3D_APPDATA_COLLISION
|
||||||
|
if (doNotExport != undefined) then
|
||||||
|
(
|
||||||
|
if (doNotExport == "1") then
|
||||||
|
return true
|
||||||
|
)
|
||||||
|
|
||||||
|
doNotExport = getappdata node NEL3D_APPDATA_COLLISION_EXTERIOR
|
||||||
|
if (doNotExport != undefined) then
|
||||||
|
(
|
||||||
|
if (doNotExport == "1") then
|
||||||
|
return true
|
||||||
|
)
|
||||||
|
|
||||||
|
return false
|
||||||
|
)
|
||||||
|
|
||||||
|
fn runNelMaxExport inputMaxFile =
|
||||||
|
(
|
||||||
|
outputNelDir = "%OutputDirectory%"
|
||||||
|
|
||||||
|
-- Tag this file ?
|
||||||
|
tagThisFile = true
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
unhidecategory()
|
||||||
|
|
||||||
|
-- Select all collision mesh
|
||||||
|
max select none
|
||||||
|
for m in geometry do
|
||||||
|
(
|
||||||
|
if (isToBeExported m) == true then
|
||||||
|
selectmore m
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Export the collision
|
||||||
|
if (NelExportCollision ($selection as array) outputNelDir) == false then
|
||||||
|
(
|
||||||
|
nlerror("ERROR exporting collision " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("OK collision in folder " + outputNelDir)
|
||||||
|
)
|
||||||
|
|
||||||
|
return tagThisFile
|
||||||
|
)
|
||||||
|
|
||||||
|
|
@ -0,0 +1,172 @@
|
|||||||
|
|
||||||
|
|
||||||
|
-- Some globals
|
||||||
|
|
||||||
|
NEL3D_APPDATA_ACCEL = 1423062561 -- type of accelerator : "32" = is not an accelerator and IS clusterized
|
||||||
|
-- "0" = is not an accelerator and IS NOT clusterized (always visible)
|
||||||
|
-- "1" = is an accelerator type PORTAL
|
||||||
|
-- "2" = is an accelerator type CLUSTER
|
||||||
|
-- "6" = is an accelerator type CLUSTER FATHER-VISIBLE
|
||||||
|
-- "10" = is an accelerator type CLUSTER VISIBLE-FROM-FATHER
|
||||||
|
-- "14" = is an accelerator type CLUSTER FATHER-VISIBLE and VISIBLE-FROM-FATHER
|
||||||
|
-- "17" = is an accelerator type PORTAL DYNAMIC
|
||||||
|
|
||||||
|
NEL3D_APPDATA_DONOTEXPORT = 1423062565 -- do not export me : "undefined" = export me
|
||||||
|
-- "0" = export me
|
||||||
|
-- "1" = DONT export me
|
||||||
|
|
||||||
|
NEL3D_APPDATA_IGNAME = 1423062564 -- string : name of the Instance Group
|
||||||
|
|
||||||
|
NEL3D_APPDATA_LOD_NAME_COUNT_MAX = 10
|
||||||
|
NEL3D_APPDATA_LOD = 1423062537
|
||||||
|
NEL3D_APPDATA_LOD_NAME_COUNT = NEL3D_APPDATA_LOD
|
||||||
|
NEL3D_APPDATA_LOD_NAME = NEL3D_APPDATA_LOD_NAME_COUNT+1
|
||||||
|
NEL3D_APPDATA_LOD_BLEND_IN = NEL3D_APPDATA_LOD_NAME+NEL3D_APPDATA_LOD_NAME_COUNT_MAX
|
||||||
|
NEL3D_APPDATA_LOD_BLEND_OUT = NEL3D_APPDATA_LOD_BLEND_IN+1
|
||||||
|
NEL3D_APPDATA_LOD_COARSE_MESH = NEL3D_APPDATA_LOD_BLEND_OUT+1
|
||||||
|
|
||||||
|
NEL_OBJECT_NAME_DATA = 1970
|
||||||
|
|
||||||
|
|
||||||
|
-- This node is n accelerator ?
|
||||||
|
fn isAccelerator node =
|
||||||
|
(
|
||||||
|
accel = getappdata node NEL3D_APPDATA_ACCEL
|
||||||
|
if (accel != undefined) then
|
||||||
|
(
|
||||||
|
if (accel == "0") or (accel == "32") then
|
||||||
|
return false
|
||||||
|
else
|
||||||
|
return true
|
||||||
|
)
|
||||||
|
return false
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Get the ig name of this object
|
||||||
|
fn getIg node =
|
||||||
|
(
|
||||||
|
return (getappdata node NEL3D_APPDATA_IGNAME)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
fn runNelMaxExport inputMaxFile =
|
||||||
|
(
|
||||||
|
tagThisFile = true
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
unhidecategory()
|
||||||
|
|
||||||
|
-- Unhide
|
||||||
|
max unhide all
|
||||||
|
|
||||||
|
-- unselect
|
||||||
|
max select none
|
||||||
|
|
||||||
|
-- Exported object count
|
||||||
|
exported = 0
|
||||||
|
|
||||||
|
-- Ig array
|
||||||
|
ig_array = #()
|
||||||
|
|
||||||
|
-- Scan all the ig in this project
|
||||||
|
for node in objects do
|
||||||
|
(
|
||||||
|
ig = getIg node
|
||||||
|
if ( (ig != undefined) and (ig != "") ) then
|
||||||
|
(
|
||||||
|
-- Found ?
|
||||||
|
found = false
|
||||||
|
|
||||||
|
-- Already found ?
|
||||||
|
for j = 1 to ig_array.count do
|
||||||
|
(
|
||||||
|
if (ig_array[j]==ig) then
|
||||||
|
(
|
||||||
|
found = true
|
||||||
|
exit
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Found ?
|
||||||
|
if (found == false) then
|
||||||
|
(
|
||||||
|
append ig_array ig
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Have some ig ?
|
||||||
|
if (ig_array.count != 0) then
|
||||||
|
(
|
||||||
|
-- For each ig
|
||||||
|
for ig = 1 to ig_array.count do
|
||||||
|
(
|
||||||
|
-- Output filename
|
||||||
|
outputNelFile = ("%OutputDirectory%/" + ig_array[ig] + ".ig")
|
||||||
|
|
||||||
|
-- Check date
|
||||||
|
if (NeLTestFileDate outputNelFile inputMaxFile) == true then
|
||||||
|
(
|
||||||
|
-- Select none
|
||||||
|
max select none
|
||||||
|
|
||||||
|
-- Select all node in this ig
|
||||||
|
for node in geometry do
|
||||||
|
(
|
||||||
|
-- Select it if in the ig
|
||||||
|
if ((getIg node) == ig_array[ig]) then
|
||||||
|
selectmore node
|
||||||
|
)
|
||||||
|
-- Select all lights in this ig
|
||||||
|
for node in lights do
|
||||||
|
(
|
||||||
|
-- Select it if in the ig
|
||||||
|
if ((getIg node) == ig_array[ig]) then
|
||||||
|
selectmore node
|
||||||
|
)
|
||||||
|
-- Select all lights in this ig
|
||||||
|
for node in helpers do
|
||||||
|
(
|
||||||
|
-- Select it if in the ig
|
||||||
|
if ((getIg node) == ig_array[ig]) then
|
||||||
|
selectmore node
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Check export
|
||||||
|
try
|
||||||
|
(
|
||||||
|
-- Export the ig
|
||||||
|
instancegroup2export = $selection as array
|
||||||
|
if (NelExportInstanceGroup instancegroup2export outputNelFile) == true then
|
||||||
|
(
|
||||||
|
nlerror("OK " + outputNelFile)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR exporting ig " + ig_array[ig] + " in file " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
)
|
||||||
|
catch
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR fatal error exporting ig " + ig_array[ig] + " in file " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("SKIPPED " + outputNelFile)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("WARNING nothing exported from ig max file " + inputMaxFile)
|
||||||
|
)
|
||||||
|
|
||||||
|
return tagThisFile
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,47 @@
|
|||||||
|
|
||||||
|
|
||||||
|
fn runNelMaxExport inputMaxFile =
|
||||||
|
(
|
||||||
|
outputNelFile = ("%OutputDirectory%/" + (getFilenameFile inputMaxFile) + ".%PreGenFileExtension%")
|
||||||
|
tagThisFile = false
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
unhidecategory()
|
||||||
|
|
||||||
|
-- Select none
|
||||||
|
max select none
|
||||||
|
|
||||||
|
-- Select all PACS primitives
|
||||||
|
for i in geometry do
|
||||||
|
(
|
||||||
|
if ((classof i) == nel_pacs_cylinder) or ((classof i) == nel_pacs_box) then
|
||||||
|
selectmore i
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Array of node
|
||||||
|
arrayNode = selection as array
|
||||||
|
|
||||||
|
-- Something to export ?
|
||||||
|
if (arrayNode.count != 0) then
|
||||||
|
(
|
||||||
|
-- Export the collision
|
||||||
|
if (NelExportPACSPrimitives arrayNode outputNelFile) == false then
|
||||||
|
(
|
||||||
|
nlerror("ERROR exporting PACS primitives in file " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("OK PACS primitives in file " + inputMaxFile)
|
||||||
|
tagThisFile = true
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("WARNING no PACS primitives in file " + inputMaxFile)
|
||||||
|
tagThisFile = true
|
||||||
|
)
|
||||||
|
|
||||||
|
return tagThisFile
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
|
||||||
|
printLog(log, ">>> List %PreGenFileExtension% <<<")
|
||||||
|
outDirPacsPrim = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%
|
||||||
|
mkPath(log, outDirPacsPrim)
|
||||||
|
listPath = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable% + "/landscape_col_prim_pacs_list.txt"
|
||||||
|
if os.path.isfile(listPath):
|
||||||
|
os.remove(listPath)
|
||||||
|
if WantLandscapeColPrimPacsList:
|
||||||
|
exportedPacsPrims = findFiles(log, outDirPacsPrim, "", ".%PreGenFileExtension%")
|
||||||
|
printLog(log, "WRITE " + listPath)
|
||||||
|
listFile = open(listPath, "w")
|
||||||
|
for exported in exportedPacsPrims:
|
||||||
|
listFile.write(exported + "\n")
|
||||||
|
listFile.close()
|
||||||
|
|
@ -0,0 +1,53 @@
|
|||||||
|
|
||||||
|
|
||||||
|
fn runNelMaxExport inputMaxFile =
|
||||||
|
(
|
||||||
|
outputNelFile = ("%OutputDirectory%/" + (getFilenameFile inputMaxFile) + ".%PreGenFileExtension%")
|
||||||
|
tagThisFile = false
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
unhidecategory()
|
||||||
|
|
||||||
|
-- Select Bip01, not very smart
|
||||||
|
if $Bip01 != undefined then
|
||||||
|
(
|
||||||
|
-- Select Bip01
|
||||||
|
select $Bip01
|
||||||
|
|
||||||
|
if ($ != undefined) then
|
||||||
|
(
|
||||||
|
-- Set figure mode on
|
||||||
|
if ((classof $) == Biped_Object) then
|
||||||
|
(
|
||||||
|
$.controller.figureMode = true
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Export the skeleton template
|
||||||
|
if (NelExportSkeleton $ outputNelFile) == false then
|
||||||
|
(
|
||||||
|
nlerror("ERROR exporting skeleton " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("OK " + outputNelFile)
|
||||||
|
tagThisFile = true
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR exporting skeleton: no Bip01 node in file " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR exporting skeleton: no Bip01 node in file " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
|
||||||
|
return tagThisFile
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
printLog(log, ">>> Export skel directly <<<")
|
||||||
|
mkPath(log, ExportBuildDirectory + "/" + SkelExportDirectory)
|
||||||
|
for dir in SkelSourceDirectories:
|
||||||
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
copyFilesExtNoSubdirIfNeeded(log, DatabaseDirectory + "/" + dir, ExportBuildDirectory + "/" + SkelExportDirectory, ".skel")
|
||||||
|
|
@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
|
||||||
|
fn runNelMaxExport inputMaxFile =
|
||||||
|
(
|
||||||
|
outputNelFile = ("%OutputDirectory%/" + (getFilenameFile inputMaxFile) + ".%PreGenFileExtension%")
|
||||||
|
tagThisFile = false
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
unhidecategory()
|
||||||
|
|
||||||
|
-- Select all the nodes
|
||||||
|
max select all
|
||||||
|
|
||||||
|
-- Export the skeleton template
|
||||||
|
if NelExportSkeletonWeight ($selection as array) outputNelFile == false then
|
||||||
|
(
|
||||||
|
nlerror("ERROR exporting skeleton weight " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("OK " + outputNelFile)
|
||||||
|
tagThisFile = true
|
||||||
|
)
|
||||||
|
|
||||||
|
return tagThisFile
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,113 @@
|
|||||||
|
|
||||||
|
|
||||||
|
-- Some globals
|
||||||
|
|
||||||
|
NEL3D_APPDATA_DONOTEXPORT = 1423062565 -- do not export me : "undefined" = export me
|
||||||
|
-- "0" = export me
|
||||||
|
-- "1" = DONT export me
|
||||||
|
|
||||||
|
NEL3D_APPDATA_VEGETABLE = 1423062580 -- "undefined" = not vegetable
|
||||||
|
-- "0" = not vegetable
|
||||||
|
-- "1" = vegetable
|
||||||
|
|
||||||
|
|
||||||
|
-- Must export this node ?
|
||||||
|
fn isToBeExported node =
|
||||||
|
(
|
||||||
|
if (classof node == nel_ps) then
|
||||||
|
return false
|
||||||
|
|
||||||
|
doNotExport = getappdata node NEL3D_APPDATA_DONOTEXPORT
|
||||||
|
if (doNotExport != undefined) then
|
||||||
|
(
|
||||||
|
if (doNotExport == "1") then
|
||||||
|
return false
|
||||||
|
)
|
||||||
|
|
||||||
|
vegetable = getappdata node NEL3D_APPDATA_VEGETABLE
|
||||||
|
if (vegetable != undefined) then
|
||||||
|
if (vegetable == "1") then
|
||||||
|
return true
|
||||||
|
|
||||||
|
-- Do not export
|
||||||
|
return false
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
fn runNelMaxExport inputMaxFile =
|
||||||
|
(
|
||||||
|
tagThisFile = true
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
unhidecategory()
|
||||||
|
|
||||||
|
-- Unhide
|
||||||
|
max unhide all
|
||||||
|
|
||||||
|
-- unselect
|
||||||
|
max select none
|
||||||
|
|
||||||
|
-- Exported object count
|
||||||
|
exported = 0
|
||||||
|
|
||||||
|
-- For each node
|
||||||
|
for node in geometry do
|
||||||
|
(
|
||||||
|
-- It is root ?
|
||||||
|
if (node.parent == undefined) then
|
||||||
|
(
|
||||||
|
-- Is not a skeleton ?
|
||||||
|
if (node.name != "Bip01") then
|
||||||
|
(
|
||||||
|
-- Can be exported ?
|
||||||
|
if (isToBeExported node == true) then
|
||||||
|
(
|
||||||
|
-- Output directory
|
||||||
|
outputNelFile = ("%OutputDirectory%/" + (node.name) + ".veget")
|
||||||
|
|
||||||
|
-- Compare file date
|
||||||
|
if (NeLTestFileDate outputNelFile inputMaxFile) == true then
|
||||||
|
(
|
||||||
|
try
|
||||||
|
(
|
||||||
|
-- Export the veget
|
||||||
|
if (NelExportVegetable node outputNelFile false) == true then
|
||||||
|
(
|
||||||
|
nlerror("OK "+outputNelFile)
|
||||||
|
exported = exported+1
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR exporting veget " + node.name + " in file " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
)
|
||||||
|
catch
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR fata error exporting veget " + node.name + " in file " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("SKIPPED " + outputNelFile)
|
||||||
|
exported = exported + 1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Something exported
|
||||||
|
if exported == 0 then
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("WARNING no veget exported from the file " + inputMaxFile)
|
||||||
|
)
|
||||||
|
|
||||||
|
return tagThisFile
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,86 @@
|
|||||||
|
|
||||||
|
|
||||||
|
-- Find id
|
||||||
|
Fn findID node =
|
||||||
|
(
|
||||||
|
local
|
||||||
|
|
||||||
|
-- Const
|
||||||
|
alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||||
|
NameTab = filterString node.name "_"
|
||||||
|
Z_ID = -1
|
||||||
|
alpha_letter1 = NameTab[2][1]
|
||||||
|
alpha_letter2 = NameTab[2][2]
|
||||||
|
alpha_letter1_value = findstring alphabet alpha_letter1
|
||||||
|
alpha_letter2_value = findstring alphabet alpha_letter2
|
||||||
|
|
||||||
|
-- Decompose theh name in an array array[1]=numeric string value array[2]=alpha string value
|
||||||
|
-- The index of the engine start at 0 but the script one at 1 so we sub 1 each time
|
||||||
|
alpha_sub_id = (((alpha_letter1_value as integer - 1) * 26 + (alpha_letter2_value as integer)))-1
|
||||||
|
num_sub_id = (NameTab[1] as integer)-1
|
||||||
|
|
||||||
|
-- Array of 256 per 256
|
||||||
|
---------------------------
|
||||||
|
-- 0 1 2 3 ... 255
|
||||||
|
-- 256 257 258 259 ... 511
|
||||||
|
-- 512 513 514 515 ... 767
|
||||||
|
-- ...
|
||||||
|
|
||||||
|
Z_ID = num_sub_id*256 + alpha_sub_id
|
||||||
|
return Z_ID
|
||||||
|
)
|
||||||
|
|
||||||
|
fn runNelMaxExport inputMaxFile =
|
||||||
|
(
|
||||||
|
outputNelFile = ("%OutputDirectory%/" + (getFilenameFile inputMaxFile) + ".%PreGenFileExtension%")
|
||||||
|
tagThisFile = false
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
unhidecategory()
|
||||||
|
|
||||||
|
-- Select none
|
||||||
|
max select none
|
||||||
|
|
||||||
|
-- Found it ?
|
||||||
|
find = false
|
||||||
|
|
||||||
|
-- For each object in the priject
|
||||||
|
for i in geometry do
|
||||||
|
(
|
||||||
|
-- Look for a NeL patch mesh
|
||||||
|
if (classof i) == RklPatch then
|
||||||
|
(
|
||||||
|
-- Error catching
|
||||||
|
try
|
||||||
|
(
|
||||||
|
if (ExportRykolZone i outputNelFile (findID i)) == false then
|
||||||
|
(
|
||||||
|
nlerror("ERROR exporting zone " + i.name + " in file " + inputMaxFile)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("OK " + outputNelFile)
|
||||||
|
tagThisFile = true
|
||||||
|
find = true
|
||||||
|
exit
|
||||||
|
)
|
||||||
|
)
|
||||||
|
catch
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR fatal error exporting zone " + i.name + " in file " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Not found ?
|
||||||
|
if (find == false) then
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("WARNING no zone found in project " + inputMaxFile)
|
||||||
|
tagThisFile = true
|
||||||
|
)
|
||||||
|
|
||||||
|
return tagThisFile
|
||||||
|
)
|
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
printLog(log, ">>> Try to copy ligo zone if any <<<")
|
||||||
|
printLog(log, "********************************")
|
||||||
|
printLog(log, "******** TODO ********")
|
||||||
|
printLog(log, "********************************")
|
||||||
|
printLog(log, "")
|
||||||
|
|
@ -0,0 +1,65 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# \file 0_setup.py
|
||||||
|
# \brief setup %PreGenProcessName%
|
||||||
|
# \date %PreGenDateTimeStamp%
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Setup %PreGenProcessName%
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
|
if os.path.isfile("log.log"):
|
||||||
|
os.remove("log.log")
|
||||||
|
log = open("log.log", "w")
|
||||||
|
from scripts import *
|
||||||
|
from buildsite import *
|
||||||
|
from process import *
|
||||||
|
from tools import *
|
||||||
|
from directories import *
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, "--- Setup %PreGenProcessName%")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
# Setup source directories
|
||||||
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
|
for dir in %PreGenSourceDirectoriesVariable%:
|
||||||
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
|
||||||
|
# Setup export directories
|
||||||
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
|
mkPath(log, ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%)
|
||||||
|
|
||||||
|
# Setup build directories
|
||||||
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
|
|
||||||
|
# Setup client directories
|
||||||
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
|
mkPath(log, ClientDataDirectory + "/" + %PreGenClientDirectoryVariable%)
|
||||||
|
|
||||||
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
|
# end of file
|
@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
|
# end of file
|
@ -0,0 +1,92 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# #################################################################
|
||||||
|
# ## %PreGenWarning%
|
||||||
|
# #################################################################
|
||||||
|
#
|
||||||
|
# \file 1_export.py
|
||||||
|
# \brief Export %PreGenProcessName%
|
||||||
|
# \date %PreGenDateTimeStamp%
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Export %PreGenProcessName%
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
|
if os.path.isfile("log.log"):
|
||||||
|
os.remove("log.log")
|
||||||
|
log = open("log.log", "w")
|
||||||
|
from scripts import *
|
||||||
|
from buildsite import *
|
||||||
|
from process import *
|
||||||
|
from tools import *
|
||||||
|
from directories import *
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, "--- Export %PreGenProcessName%")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
# Find tools
|
||||||
|
# ...
|
||||||
|
|
||||||
|
# Export %PreGenProcessName% 3dsmax
|
||||||
|
if MaxAvailable:
|
||||||
|
# Find tools
|
||||||
|
Max = findMax(log, MaxDirectory, MaxExecutable)
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
printLog(log, ">>> Export %PreGenProcessName% 3dsmax <<<")
|
||||||
|
mkPath(log, ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%)
|
||||||
|
for dir in %PreGenSourceDirectoriesVariable%:
|
||||||
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + dir, ".max", ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%, ".%PreGenFileExtension%")):
|
||||||
|
scriptSrc = "maxscript/%PreGenFileExtension%_export.ms"
|
||||||
|
scriptDst = MaxUserDirectory + "/scripts/%PreGenFileExtension%_export.ms"
|
||||||
|
outputLogfile = ScriptDirectory + "/processes/%PreGenProcessName%/log.log"
|
||||||
|
outputDirectory = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%
|
||||||
|
maxSourceDir = DatabaseDirectory + "/" + dir
|
||||||
|
tagList = findFiles(log, outputDirectory, "", ".%PreGenFileExtension%")
|
||||||
|
tagLen = len(tagList)
|
||||||
|
if os.path.isfile(scriptDst):
|
||||||
|
os.remove(scriptDst)
|
||||||
|
tagDiff = 1
|
||||||
|
sSrc = open(scriptSrc, "r")
|
||||||
|
sDst = open(scriptDst, "w")
|
||||||
|
for line in sSrc:
|
||||||
|
newline = line.replace("%OutputLogfile%", outputLogfile)
|
||||||
|
newline = newline.replace("%MaxSourceDirectory%", maxSourceDir)
|
||||||
|
newline = newline.replace("%OutputDirectory%", outputDirectory)
|
||||||
|
sDst.write(newline)
|
||||||
|
sSrc.close()
|
||||||
|
sDst.close()
|
||||||
|
while tagDiff > 0:
|
||||||
|
printLog(log, "MAXSCRIPT " + scriptDst)
|
||||||
|
subprocess.call([ Max, "-U", "MAXScript", "%PreGenFileExtension%_export.ms", "-q", "-mi", "-vn" ])
|
||||||
|
tagList = findFiles(log, outputDirectory, "", ".%PreGenFileExtension%")
|
||||||
|
newTagLen = len(tagList)
|
||||||
|
tagDiff = newTagLen - tagLen
|
||||||
|
tagLen = newTagLen
|
||||||
|
printLog(log, "Exported " + str(tagDiff) + " .%PreGenFileExtension% files!")
|
||||||
|
os.remove(scriptDst)
|
||||||
|
|
@ -0,0 +1,49 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# \file 2_build.py
|
||||||
|
# \brief Build %PreGenProcessName%
|
||||||
|
# \date %PreGenDateTimeStamp%
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Build %PreGenProcessName%
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
|
if os.path.isfile("log.log"):
|
||||||
|
os.remove("log.log")
|
||||||
|
log = open("log.log", "w")
|
||||||
|
from scripts import *
|
||||||
|
from buildsite import *
|
||||||
|
from process import *
|
||||||
|
from tools import *
|
||||||
|
from directories import *
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, "--- Build %PreGenProcessName%")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
|
# end of file
|
@ -0,0 +1,57 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# \file 3_install.py
|
||||||
|
# \brief Install %PreGenProcessName%
|
||||||
|
# \date %PreGenDateTimeStamp%
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Install %PreGenProcessName%
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
|
if os.path.isfile("log.log"):
|
||||||
|
os.remove("log.log")
|
||||||
|
log = open("log.log", "w")
|
||||||
|
from scripts import *
|
||||||
|
from buildsite import *
|
||||||
|
from process import *
|
||||||
|
from tools import *
|
||||||
|
from directories import *
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, "--- Install %PreGenProcessName%")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
printLog(log, ">>> Install %PreGenProcessName% <<<")
|
||||||
|
exportPath = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%
|
||||||
|
mkPath(log, exportPath)
|
||||||
|
clientPath = ClientDataDirectory + "/" + %PreGenClientDirectoryVariable%
|
||||||
|
mkPath(log, clientPath)
|
||||||
|
copyFilesExtNoSubdirIfNeeded(log, exportPath, clientPath, ".%PreGenFileExtension%")
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
|
# end of file
|
@ -0,0 +1,74 @@
|
|||||||
|
|
||||||
|
|
||||||
|
try
|
||||||
|
(
|
||||||
|
-- Get files in the %MaxSourceDirectory% directory
|
||||||
|
files = getFiles "%MaxSourceDirectory%/*.max"
|
||||||
|
gc()
|
||||||
|
|
||||||
|
-- Sort files
|
||||||
|
sort files
|
||||||
|
gc()
|
||||||
|
|
||||||
|
-- No file ?
|
||||||
|
if files.count != 0 then
|
||||||
|
(
|
||||||
|
-- For each files
|
||||||
|
for i = 1 to files.count do
|
||||||
|
(
|
||||||
|
inputMaxFile = files[i]
|
||||||
|
outputNelFile = ("%OutputDirectory%/" + (getFilenameFile inputMaxFile) + ".%PreGenFileExtension%")
|
||||||
|
|
||||||
|
try
|
||||||
|
(
|
||||||
|
-- Compare file date
|
||||||
|
if (NeLTestFileDate outputNelFile inputMaxFile) == true then
|
||||||
|
(
|
||||||
|
-- Free memory and file handles
|
||||||
|
gc()
|
||||||
|
heapfree
|
||||||
|
|
||||||
|
-- Reset 3dsmax
|
||||||
|
resetMAXFile #noprompt
|
||||||
|
|
||||||
|
-- Open the max project
|
||||||
|
nlerror("Scanning file " + inputMaxFile + " ...")
|
||||||
|
if (loadMaxFile inputMaxFile quiet:true) == true then
|
||||||
|
(
|
||||||
|
runNelMaxExport(inputMaxFile)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR exporting '%PreGenFileExtension%': can't open the file " + inputMaxFile)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("SKIPPED " + inputMaxFile)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
catch
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR error exporting '%PreGenFileExtension%' in files " + inputMaxFile)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("WARNING no *.max file in folder %MaxSourceDirectory%")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
catch
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR fatal error exporting '%PreGenFileExtension%' in folder %MaxSourceDirectory%")
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Bye
|
||||||
|
|
||||||
|
resetMAXFile #noprompt
|
||||||
|
quitMAX #noPrompt
|
||||||
|
quitMAX() #noPrompt
|
||||||
|
|
@ -0,0 +1,63 @@
|
|||||||
|
|
||||||
|
|
||||||
|
-- #################################################################
|
||||||
|
-- ## %PreGenWarning%
|
||||||
|
-- #################################################################
|
||||||
|
|
||||||
|
|
||||||
|
-- Allocate 20 Me for the script
|
||||||
|
heapSize += 15000000
|
||||||
|
|
||||||
|
nlErrorFilename = "%OutputLogfile%"
|
||||||
|
nlErrorStream = openFile nlErrorFilename mode:"a"
|
||||||
|
if nlErrorStream == undefined then
|
||||||
|
nlErrorStream = createFile nlErrorFilename
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
fn unhidecategory =
|
||||||
|
(
|
||||||
|
if (geometry.count > 0) then
|
||||||
|
(
|
||||||
|
unhide geometry[1]
|
||||||
|
if (geometry[1].ishidden == true) then
|
||||||
|
max hide object toggle
|
||||||
|
)
|
||||||
|
if (shapes.count > 0) then
|
||||||
|
(
|
||||||
|
unhide shapes[1]
|
||||||
|
if (shapes[1].ishidden == true) then
|
||||||
|
max hide shape toggle
|
||||||
|
)
|
||||||
|
if (lights.count > 0) then
|
||||||
|
(
|
||||||
|
unhide lights[1]
|
||||||
|
if (lights[1].ishidden == true) then
|
||||||
|
max hide light toggle
|
||||||
|
)
|
||||||
|
if (cameras.count > 0) then
|
||||||
|
(
|
||||||
|
unhide cameras[1]
|
||||||
|
if (cameras[1].ishidden == true) then
|
||||||
|
max hide camera toggle
|
||||||
|
)
|
||||||
|
if (helpers.count > 0) then
|
||||||
|
(
|
||||||
|
unhide helpers[1]
|
||||||
|
if (helpers[1].ishidden == true) then
|
||||||
|
max hide helper toggle
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Log a message
|
||||||
|
fn nlerror message =
|
||||||
|
(
|
||||||
|
if nlErrorStream != undefined then
|
||||||
|
(
|
||||||
|
format "%\n" message to:nlErrorStream
|
||||||
|
flush nlErrorStream
|
||||||
|
)
|
||||||
|
|
||||||
|
-- To the console
|
||||||
|
print message
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,66 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# \file 0_setup.py
|
||||||
|
# \brief setup %PreGenProcessName%
|
||||||
|
# \date %PreGenDateTimeStamp%
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Setup %PreGenProcessName%
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
|
if os.path.isfile("log.log"):
|
||||||
|
os.remove("log.log")
|
||||||
|
log = open("log.log", "w")
|
||||||
|
from scripts import *
|
||||||
|
from buildsite import *
|
||||||
|
from process import *
|
||||||
|
from tools import *
|
||||||
|
from directories import *
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, "--- Setup %PreGenProcessName%")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
# Setup source directories
|
||||||
|
printLog(log, ">>> Setup source directories <<<")
|
||||||
|
for dir in %PreGenSourceDirectoriesVariable%:
|
||||||
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
|
||||||
|
# Setup export directories
|
||||||
|
printLog(log, ">>> Setup export directories <<<")
|
||||||
|
mkPath(log, ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%)
|
||||||
|
mkPath(log, ExportBuildDirectory + "/" + %PreGenTagExportDirectoryVariable%)
|
||||||
|
|
||||||
|
# Setup build directories
|
||||||
|
printLog(log, ">>> Setup build directories <<<")
|
||||||
|
|
||||||
|
# Setup client directories
|
||||||
|
printLog(log, ">>> Setup client directories <<<")
|
||||||
|
mkPath(log, ClientDataDirectory + "/" + %PreGenClientDirectoryVariable%)
|
||||||
|
|
||||||
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
|
# end of file
|
@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
|
# end of file
|
@ -0,0 +1,96 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# #################################################################
|
||||||
|
# ## %PreGenWarning%
|
||||||
|
# #################################################################
|
||||||
|
#
|
||||||
|
# \file 1_export.py
|
||||||
|
# \brief Export %PreGenProcessName%
|
||||||
|
# \date %PreGenDateTimeStamp%
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Export %PreGenProcessName%
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
|
if os.path.isfile("log.log"):
|
||||||
|
os.remove("log.log")
|
||||||
|
log = open("log.log", "w")
|
||||||
|
from scripts import *
|
||||||
|
from buildsite import *
|
||||||
|
from process import *
|
||||||
|
from tools import *
|
||||||
|
from directories import *
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, "--- Export %PreGenProcessName%")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
|
||||||
|
# Find tools
|
||||||
|
# ...
|
||||||
|
|
||||||
|
# Export %PreGenProcessName% 3dsmax
|
||||||
|
if MaxAvailable:
|
||||||
|
# Find tools
|
||||||
|
Max = findMax(log, MaxDirectory, MaxExecutable)
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
printLog(log, ">>> Export %PreGenProcessName% 3dsmax <<<")
|
||||||
|
mkPath(log, ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%)
|
||||||
|
mkPath(log, ExportBuildDirectory + "/" + %PreGenTagExportDirectoryVariable%)
|
||||||
|
for dir in %PreGenSourceDirectoriesVariable%:
|
||||||
|
mkPath(log, DatabaseDirectory + "/" + dir)
|
||||||
|
if (needUpdateDirByTagLog(log, DatabaseDirectory + "/" + dir, ".max", ExportBuildDirectory + "/" + %PreGenTagExportDirectoryVariable%, ".max.tag")):
|
||||||
|
scriptSrc = "maxscript/%PreGenFileExtension%_export.ms"
|
||||||
|
scriptDst = MaxUserDirectory + "/scripts/%PreGenFileExtension%_export.ms"
|
||||||
|
outputLogfile = ScriptDirectory + "/processes/%PreGenProcessName%/log.log"
|
||||||
|
outputDirectory = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%
|
||||||
|
tagDirectory = ExportBuildDirectory + "/" + %PreGenTagExportDirectoryVariable%
|
||||||
|
maxSourceDir = DatabaseDirectory + "/" + dir
|
||||||
|
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
||||||
|
tagLen = len(tagList)
|
||||||
|
if os.path.isfile(scriptDst):
|
||||||
|
os.remove(scriptDst)
|
||||||
|
tagDiff = 1
|
||||||
|
sSrc = open(scriptSrc, "r")
|
||||||
|
sDst = open(scriptDst, "w")
|
||||||
|
for line in sSrc:
|
||||||
|
newline = line.replace("%OutputLogfile%", outputLogfile)
|
||||||
|
newline = newline.replace("%MaxSourceDirectory%", maxSourceDir)
|
||||||
|
newline = newline.replace("%OutputDirectory%", outputDirectory)
|
||||||
|
newline = newline.replace("%TagDirectory%", tagDirectory)
|
||||||
|
sDst.write(newline)
|
||||||
|
sSrc.close()
|
||||||
|
sDst.close()
|
||||||
|
while tagDiff > 0:
|
||||||
|
printLog(log, "MAXSCRIPT " + scriptDst)
|
||||||
|
subprocess.call([ Max, "-U", "MAXScript", "%PreGenFileExtension%_export.ms", "-q", "-mi", "-vn" ])
|
||||||
|
tagList = findFiles(log, tagDirectory, "", ".max.tag")
|
||||||
|
newTagLen = len(tagList)
|
||||||
|
tagDiff = newTagLen - tagLen
|
||||||
|
tagLen = newTagLen
|
||||||
|
printLog(log, "Exported " + str(tagDiff) + " .max files!")
|
||||||
|
os.remove(scriptDst)
|
||||||
|
|
@ -0,0 +1,49 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# \file 2_build.py
|
||||||
|
# \brief Build %PreGenProcessName%
|
||||||
|
# \date %PreGenDateTimeStamp%
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Build %PreGenProcessName%
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
|
if os.path.isfile("log.log"):
|
||||||
|
os.remove("log.log")
|
||||||
|
log = open("log.log", "w")
|
||||||
|
from scripts import *
|
||||||
|
from buildsite import *
|
||||||
|
from process import *
|
||||||
|
from tools import *
|
||||||
|
from directories import *
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, "--- Build %PreGenProcessName%")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
|
# end of file
|
@ -0,0 +1,57 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# \file 3_install.py
|
||||||
|
# \brief Install %PreGenProcessName%
|
||||||
|
# \date %PreGenDateTimeStamp%
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Install %PreGenProcessName%
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
||||||
|
sys.path.append("../../configuration")
|
||||||
|
|
||||||
|
if os.path.isfile("log.log"):
|
||||||
|
os.remove("log.log")
|
||||||
|
log = open("log.log", "w")
|
||||||
|
from scripts import *
|
||||||
|
from buildsite import *
|
||||||
|
from process import *
|
||||||
|
from tools import *
|
||||||
|
from directories import *
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, "--- Install %PreGenProcessName%")
|
||||||
|
printLog(log, "-------")
|
||||||
|
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
|
||||||
|
printLog(log, "")
|
||||||
|
|
||||||
|
printLog(log, ">>> Install %PreGenProcessName% <<<")
|
||||||
|
exportPath = ExportBuildDirectory + "/" + %PreGenExportDirectoryVariable%
|
||||||
|
mkPath(log, exportPath)
|
||||||
|
clientPath = ClientDataDirectory + "/" + %PreGenClientDirectoryVariable%
|
||||||
|
mkPath(log, clientPath)
|
||||||
|
copyFilesNoTreeIfNeeded(log, exportPath, clientPath)
|
||||||
|
|
||||||
|
printLog(log, "")
|
||||||
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
|
# end of file
|
@ -0,0 +1,89 @@
|
|||||||
|
|
||||||
|
|
||||||
|
try
|
||||||
|
(
|
||||||
|
-- Get files in the %MaxSourceDirectory% directory
|
||||||
|
files = getFiles "%MaxSourceDirectory%/*.max"
|
||||||
|
gc()
|
||||||
|
|
||||||
|
-- Sort files
|
||||||
|
sort files
|
||||||
|
gc()
|
||||||
|
|
||||||
|
-- No file ?
|
||||||
|
if files.count != 0 then
|
||||||
|
(
|
||||||
|
-- For each files
|
||||||
|
for i = 1 to files.count do
|
||||||
|
(
|
||||||
|
inputMaxFile = files[i]
|
||||||
|
outputTagFile = ("%TagDirectory%/" + (getFilenameFile inputMaxFile) + (getFilenameType inputMaxFile) + ".tag")
|
||||||
|
|
||||||
|
try
|
||||||
|
(
|
||||||
|
-- Compare file date
|
||||||
|
if (NeLTestFileDate outputTagFile inputMaxFile) == true then
|
||||||
|
(
|
||||||
|
-- Free memory and file handles
|
||||||
|
gc()
|
||||||
|
heapfree
|
||||||
|
|
||||||
|
-- Reset 3dsmax
|
||||||
|
resetMAXFile #noprompt
|
||||||
|
|
||||||
|
-- Open the max project
|
||||||
|
nlerror("Scanning file " + inputMaxFile + " ...")
|
||||||
|
if (loadMaxFile inputMaxFile quiet:true) == true then
|
||||||
|
(
|
||||||
|
tagThisFile = runNelMaxExport(inputMaxFile)
|
||||||
|
|
||||||
|
-- Write a tag file
|
||||||
|
if tagThisFile == true then
|
||||||
|
(
|
||||||
|
tagFile = createFile outputTagFile
|
||||||
|
if tagFile == undefined then
|
||||||
|
(
|
||||||
|
nlerror("WARNING can't create tag file " + outputTagFile)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
print "mukyu" to: tagFile
|
||||||
|
close tagFile
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR exporting '%PreGenFileExtension%': can't open the file " + inputMaxFile)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("SKIPPED BY TAG " + inputMaxFile)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
catch
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR error exporting '%PreGenFileExtension%' in files " + inputMaxFile)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("WARNING no *.max file in folder %MaxSourceDirectory%")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
catch
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR fatal error exporting '%PreGenFileExtension%' in folder %MaxSourceDirectory%")
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Bye
|
||||||
|
|
||||||
|
resetMAXFile #noprompt
|
||||||
|
quitMAX #noPrompt
|
||||||
|
quitMAX() #noPrompt
|
||||||
|
|
@ -0,0 +1,63 @@
|
|||||||
|
|
||||||
|
|
||||||
|
-- #################################################################
|
||||||
|
-- ## %PreGenWarning%
|
||||||
|
-- #################################################################
|
||||||
|
|
||||||
|
|
||||||
|
-- Allocate 20 Me for the script
|
||||||
|
heapSize += 15000000
|
||||||
|
|
||||||
|
nlErrorFilename = "%OutputLogfile%"
|
||||||
|
nlErrorStream = openFile nlErrorFilename mode:"a"
|
||||||
|
if nlErrorStream == undefined then
|
||||||
|
nlErrorStream = createFile nlErrorFilename
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
fn unhidecategory =
|
||||||
|
(
|
||||||
|
if (geometry.count > 0) then
|
||||||
|
(
|
||||||
|
unhide geometry[1]
|
||||||
|
if (geometry[1].ishidden == true) then
|
||||||
|
max hide object toggle
|
||||||
|
)
|
||||||
|
if (shapes.count > 0) then
|
||||||
|
(
|
||||||
|
unhide shapes[1]
|
||||||
|
if (shapes[1].ishidden == true) then
|
||||||
|
max hide shape toggle
|
||||||
|
)
|
||||||
|
if (lights.count > 0) then
|
||||||
|
(
|
||||||
|
unhide lights[1]
|
||||||
|
if (lights[1].ishidden == true) then
|
||||||
|
max hide light toggle
|
||||||
|
)
|
||||||
|
if (cameras.count > 0) then
|
||||||
|
(
|
||||||
|
unhide cameras[1]
|
||||||
|
if (cameras[1].ishidden == true) then
|
||||||
|
max hide camera toggle
|
||||||
|
)
|
||||||
|
if (helpers.count > 0) then
|
||||||
|
(
|
||||||
|
unhide helpers[1]
|
||||||
|
if (helpers[1].ishidden == true) then
|
||||||
|
max hide helper toggle
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Log a message
|
||||||
|
fn nlerror message =
|
||||||
|
(
|
||||||
|
if nlErrorStream != undefined then
|
||||||
|
(
|
||||||
|
format "%\n" message to:nlErrorStream
|
||||||
|
flush nlErrorStream
|
||||||
|
)
|
||||||
|
|
||||||
|
-- To the console
|
||||||
|
print message
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,211 @@
|
|||||||
|
|
||||||
|
|
||||||
|
-- #################################################################
|
||||||
|
-- ## WARNING : this is a generated file, don't change it !
|
||||||
|
-- #################################################################
|
||||||
|
|
||||||
|
|
||||||
|
-- Allocate 20 Me for the script
|
||||||
|
heapSize += 15000000
|
||||||
|
|
||||||
|
nlErrorFilename = "%OutputLogfile%"
|
||||||
|
nlErrorStream = openFile nlErrorFilename mode:"a"
|
||||||
|
if nlErrorStream == undefined then
|
||||||
|
nlErrorStream = createFile nlErrorFilename
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
fn unhidecategory =
|
||||||
|
(
|
||||||
|
if (geometry.count > 0) then
|
||||||
|
(
|
||||||
|
unhide geometry[1]
|
||||||
|
if (geometry[1].ishidden == true) then
|
||||||
|
max hide object toggle
|
||||||
|
)
|
||||||
|
if (shapes.count > 0) then
|
||||||
|
(
|
||||||
|
unhide shapes[1]
|
||||||
|
if (shapes[1].ishidden == true) then
|
||||||
|
max hide shape toggle
|
||||||
|
)
|
||||||
|
if (lights.count > 0) then
|
||||||
|
(
|
||||||
|
unhide lights[1]
|
||||||
|
if (lights[1].ishidden == true) then
|
||||||
|
max hide light toggle
|
||||||
|
)
|
||||||
|
if (cameras.count > 0) then
|
||||||
|
(
|
||||||
|
unhide cameras[1]
|
||||||
|
if (cameras[1].ishidden == true) then
|
||||||
|
max hide camera toggle
|
||||||
|
)
|
||||||
|
if (helpers.count > 0) then
|
||||||
|
(
|
||||||
|
unhide helpers[1]
|
||||||
|
if (helpers[1].ishidden == true) then
|
||||||
|
max hide helper toggle
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Log a message
|
||||||
|
fn nlerror message =
|
||||||
|
(
|
||||||
|
if nlErrorStream != undefined then
|
||||||
|
(
|
||||||
|
format "%\n" message to:nlErrorStream
|
||||||
|
flush nlErrorStream
|
||||||
|
)
|
||||||
|
|
||||||
|
-- To the console
|
||||||
|
print message
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
NEL3D_APPDATA_COLLISION = 1423062613
|
||||||
|
NEL3D_APPDATA_COLLISION_EXTERIOR = 1423062614
|
||||||
|
|
||||||
|
|
||||||
|
-- Must export this node ?
|
||||||
|
fn isToBeExported node =
|
||||||
|
(
|
||||||
|
doNotExport = getappdata node NEL3D_APPDATA_COLLISION
|
||||||
|
if (doNotExport != undefined) then
|
||||||
|
(
|
||||||
|
if (doNotExport == "1") then
|
||||||
|
return true
|
||||||
|
)
|
||||||
|
|
||||||
|
doNotExport = getappdata node NEL3D_APPDATA_COLLISION_EXTERIOR
|
||||||
|
if (doNotExport != undefined) then
|
||||||
|
(
|
||||||
|
if (doNotExport == "1") then
|
||||||
|
return true
|
||||||
|
)
|
||||||
|
|
||||||
|
return false
|
||||||
|
)
|
||||||
|
|
||||||
|
fn runNelMaxExport inputMaxFile =
|
||||||
|
(
|
||||||
|
outputNelDir = "%OutputDirectory%"
|
||||||
|
|
||||||
|
-- Tag this file ?
|
||||||
|
tagThisFile = true
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
unhidecategory()
|
||||||
|
|
||||||
|
-- Select all collision mesh
|
||||||
|
max select none
|
||||||
|
for m in geometry do
|
||||||
|
(
|
||||||
|
if (isToBeExported m) == true then
|
||||||
|
selectmore m
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Export the collision
|
||||||
|
if (NelExportCollision ($selection as array) outputNelDir) == false then
|
||||||
|
(
|
||||||
|
nlerror("ERROR exporting collision " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("OK collision in folder " + outputNelDir)
|
||||||
|
)
|
||||||
|
|
||||||
|
return tagThisFile
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
try
|
||||||
|
(
|
||||||
|
-- Get files in the %MaxSourceDirectory% directory
|
||||||
|
files = getFiles "%MaxSourceDirectory%/*.max"
|
||||||
|
gc()
|
||||||
|
|
||||||
|
-- Sort files
|
||||||
|
sort files
|
||||||
|
gc()
|
||||||
|
|
||||||
|
-- No file ?
|
||||||
|
if files.count != 0 then
|
||||||
|
(
|
||||||
|
-- For each files
|
||||||
|
for i = 1 to files.count do
|
||||||
|
(
|
||||||
|
inputMaxFile = files[i]
|
||||||
|
outputTagFile = ("%TagDirectory%/" + (getFilenameFile inputMaxFile) + (getFilenameType inputMaxFile) + ".tag")
|
||||||
|
|
||||||
|
try
|
||||||
|
(
|
||||||
|
-- Compare file date
|
||||||
|
if (NeLTestFileDate outputTagFile inputMaxFile) == true then
|
||||||
|
(
|
||||||
|
-- Free memory and file handles
|
||||||
|
gc()
|
||||||
|
heapfree
|
||||||
|
|
||||||
|
-- Reset 3dsmax
|
||||||
|
resetMAXFile #noprompt
|
||||||
|
|
||||||
|
-- Open the max project
|
||||||
|
nlerror("Scanning file " + inputMaxFile + " ...")
|
||||||
|
if (loadMaxFile inputMaxFile quiet:true) == true then
|
||||||
|
(
|
||||||
|
tagThisFile = runNelMaxExport(inputMaxFile)
|
||||||
|
|
||||||
|
-- Write a tag file
|
||||||
|
if tagThisFile == true then
|
||||||
|
(
|
||||||
|
tagFile = createFile outputTagFile
|
||||||
|
if tagFile == undefined then
|
||||||
|
(
|
||||||
|
nlerror("WARNING can't create tag file " + outputTagFile)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
print "mukyu" to: tagFile
|
||||||
|
close tagFile
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR exporting 'cmb': can't open the file " + inputMaxFile)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("SKIPPED BY TAG " + inputMaxFile)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
catch
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR error exporting 'cmb' in files " + inputMaxFile)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("WARNING no *.max file in folder %MaxSourceDirectory%")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
catch
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR fatal error exporting 'cmb' in folder %MaxSourceDirectory%")
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Bye
|
||||||
|
|
||||||
|
resetMAXFile #noprompt
|
||||||
|
quitMAX #noPrompt
|
||||||
|
quitMAX() #noPrompt
|
||||||
|
|
@ -0,0 +1,223 @@
|
|||||||
|
|
||||||
|
|
||||||
|
-- #################################################################
|
||||||
|
-- ## WARNING : this is a generated file, don't change it !
|
||||||
|
-- #################################################################
|
||||||
|
|
||||||
|
|
||||||
|
-- Allocate 20 Me for the script
|
||||||
|
heapSize += 15000000
|
||||||
|
|
||||||
|
nlErrorFilename = "%OutputLogfile%"
|
||||||
|
nlErrorStream = openFile nlErrorFilename mode:"a"
|
||||||
|
if nlErrorStream == undefined then
|
||||||
|
nlErrorStream = createFile nlErrorFilename
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
fn unhidecategory =
|
||||||
|
(
|
||||||
|
if (geometry.count > 0) then
|
||||||
|
(
|
||||||
|
unhide geometry[1]
|
||||||
|
if (geometry[1].ishidden == true) then
|
||||||
|
max hide object toggle
|
||||||
|
)
|
||||||
|
if (shapes.count > 0) then
|
||||||
|
(
|
||||||
|
unhide shapes[1]
|
||||||
|
if (shapes[1].ishidden == true) then
|
||||||
|
max hide shape toggle
|
||||||
|
)
|
||||||
|
if (lights.count > 0) then
|
||||||
|
(
|
||||||
|
unhide lights[1]
|
||||||
|
if (lights[1].ishidden == true) then
|
||||||
|
max hide light toggle
|
||||||
|
)
|
||||||
|
if (cameras.count > 0) then
|
||||||
|
(
|
||||||
|
unhide cameras[1]
|
||||||
|
if (cameras[1].ishidden == true) then
|
||||||
|
max hide camera toggle
|
||||||
|
)
|
||||||
|
if (helpers.count > 0) then
|
||||||
|
(
|
||||||
|
unhide helpers[1]
|
||||||
|
if (helpers[1].ishidden == true) then
|
||||||
|
max hide helper toggle
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Log a message
|
||||||
|
fn nlerror message =
|
||||||
|
(
|
||||||
|
if nlErrorStream != undefined then
|
||||||
|
(
|
||||||
|
format "%\n" message to:nlErrorStream
|
||||||
|
flush nlErrorStream
|
||||||
|
)
|
||||||
|
|
||||||
|
-- To the console
|
||||||
|
print message
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- Find id
|
||||||
|
Fn findID node =
|
||||||
|
(
|
||||||
|
local
|
||||||
|
|
||||||
|
-- Const
|
||||||
|
alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||||
|
NameTab = filterString node.name "_"
|
||||||
|
Z_ID = -1
|
||||||
|
alpha_letter1 = NameTab[2][1]
|
||||||
|
alpha_letter2 = NameTab[2][2]
|
||||||
|
alpha_letter1_value = findstring alphabet alpha_letter1
|
||||||
|
alpha_letter2_value = findstring alphabet alpha_letter2
|
||||||
|
|
||||||
|
-- Decompose theh name in an array array[1]=numeric string value array[2]=alpha string value
|
||||||
|
-- The index of the engine start at 0 but the script one at 1 so we sub 1 each time
|
||||||
|
alpha_sub_id = (((alpha_letter1_value as integer - 1) * 26 + (alpha_letter2_value as integer)))-1
|
||||||
|
num_sub_id = (NameTab[1] as integer)-1
|
||||||
|
|
||||||
|
-- Array of 256 per 256
|
||||||
|
---------------------------
|
||||||
|
-- 0 1 2 3 ... 255
|
||||||
|
-- 256 257 258 259 ... 511
|
||||||
|
-- 512 513 514 515 ... 767
|
||||||
|
-- ...
|
||||||
|
|
||||||
|
Z_ID = num_sub_id*256 + alpha_sub_id
|
||||||
|
return Z_ID
|
||||||
|
)
|
||||||
|
|
||||||
|
fn runNelMaxExport inputMaxFile =
|
||||||
|
(
|
||||||
|
outputNelFile = ("%OutputDirectory%/" + (getFilenameFile inputMaxFile) + ".zone")
|
||||||
|
tagThisFile = false
|
||||||
|
|
||||||
|
-- Unhide category
|
||||||
|
unhidecategory()
|
||||||
|
|
||||||
|
-- Select none
|
||||||
|
max select none
|
||||||
|
|
||||||
|
-- Found it ?
|
||||||
|
find = false
|
||||||
|
|
||||||
|
-- For each object in the priject
|
||||||
|
for i in geometry do
|
||||||
|
(
|
||||||
|
-- Look for a NeL patch mesh
|
||||||
|
if (classof i) == RklPatch then
|
||||||
|
(
|
||||||
|
-- Error catching
|
||||||
|
try
|
||||||
|
(
|
||||||
|
if (ExportRykolZone i outputNelFile (findID i)) == false then
|
||||||
|
(
|
||||||
|
nlerror("ERROR exporting zone " + i.name + " in file " + inputMaxFile)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("OK " + outputNelFile)
|
||||||
|
tagThisFile = true
|
||||||
|
find = true
|
||||||
|
exit
|
||||||
|
)
|
||||||
|
)
|
||||||
|
catch
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR fatal error exporting zone " + i.name + " in file " + inputMaxFile)
|
||||||
|
tagThisFile = false
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Not found ?
|
||||||
|
if (find == false) then
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("WARNING no zone found in project " + inputMaxFile)
|
||||||
|
tagThisFile = true
|
||||||
|
)
|
||||||
|
|
||||||
|
return tagThisFile
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
try
|
||||||
|
(
|
||||||
|
-- Get files in the %MaxSourceDirectory% directory
|
||||||
|
files = getFiles "%MaxSourceDirectory%/*.max"
|
||||||
|
gc()
|
||||||
|
|
||||||
|
-- Sort files
|
||||||
|
sort files
|
||||||
|
gc()
|
||||||
|
|
||||||
|
-- No file ?
|
||||||
|
if files.count != 0 then
|
||||||
|
(
|
||||||
|
-- For each files
|
||||||
|
for i = 1 to files.count do
|
||||||
|
(
|
||||||
|
inputMaxFile = files[i]
|
||||||
|
outputNelFile = ("%OutputDirectory%/" + (getFilenameFile inputMaxFile) + ".zone")
|
||||||
|
|
||||||
|
try
|
||||||
|
(
|
||||||
|
-- Compare file date
|
||||||
|
if (NeLTestFileDate outputNelFile inputMaxFile) == true then
|
||||||
|
(
|
||||||
|
-- Free memory and file handles
|
||||||
|
gc()
|
||||||
|
heapfree
|
||||||
|
|
||||||
|
-- Reset 3dsmax
|
||||||
|
resetMAXFile #noprompt
|
||||||
|
|
||||||
|
-- Open the max project
|
||||||
|
nlerror("Scanning file " + inputMaxFile + " ...")
|
||||||
|
if (loadMaxFile inputMaxFile quiet:true) == true then
|
||||||
|
(
|
||||||
|
runNelMaxExport(inputMaxFile)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR exporting 'zone': can't open the file " + inputMaxFile)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("SKIPPED " + inputMaxFile)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
catch
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR error exporting 'zone' in files " + inputMaxFile)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
nlerror("WARNING no *.max file in folder %MaxSourceDirectory%")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
catch
|
||||||
|
(
|
||||||
|
-- Error
|
||||||
|
nlerror("ERROR fatal error exporting 'zone' in folder %MaxSourceDirectory%")
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Bye
|
||||||
|
|
||||||
|
resetMAXFile #noprompt
|
||||||
|
quitMAX #noPrompt
|
||||||
|
quitMAX() #noPrompt
|
||||||
|
|
@ -0,0 +1,245 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# #################################################################
|
||||||
|
# ## WARNING : this is a generated file, don't change it !
|
||||||
|
# #################################################################
|
||||||
|
#
|
||||||
|
# \file directories.py
|
||||||
|
# \brief Directories configuration
|
||||||
|
# \date 2010-09-03-10-06-GMT
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# \date 2001-2005
|
||||||
|
# \author Nevrax
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Directories configuration for 'desert' ecosystem.
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# *** ECOSYSTEM AND CONTINENT NAMES ***
|
||||||
|
|
||||||
|
EcosystemName = "desert"
|
||||||
|
EcosystemPath = "ecosystems/" + EcosystemName
|
||||||
|
CommonName = EcosystemName
|
||||||
|
CommonPath = EcosystemPath
|
||||||
|
|
||||||
|
DatabaseRootName = "fyros"
|
||||||
|
DatabaseRootPath = "stuff/" + DatabaseRootName
|
||||||
|
|
||||||
|
|
||||||
|
# *** SOURCE DIRECTORIES IN THE DATABASE ***
|
||||||
|
|
||||||
|
# Shape directories
|
||||||
|
ShapeSourceDirectories = [ ]
|
||||||
|
ShapeSourceDirectories += [ DatabaseRootPath + "/decors/vegetations" ]
|
||||||
|
ShapeSourceDirectories += [ "landscape/ligo/" + EcosystemName + "/max" ]
|
||||||
|
|
||||||
|
# Maps directories
|
||||||
|
MapSourceDirectories = [ ]
|
||||||
|
MapSourceDirectories += [ DatabaseRootPath + "/decors/_textures" ]
|
||||||
|
MapSourceDirectories += [ DatabaseRootPath + "/decors/_textures/vegetations" ]
|
||||||
|
MapSourceDirectories += [ "landscape/microveget/" + EcosystemName + "" ]
|
||||||
|
MapSourceDirectories += [ "landscape/water/meshes/" + EcosystemName + "" ]
|
||||||
|
|
||||||
|
MapUncompressedSourceDirectories = [ ]
|
||||||
|
|
||||||
|
# Tiles directories
|
||||||
|
TilesSourceDirectories = [ ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/1.5-marecage_profond" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/1-marecages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/2-citees" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/3-fond_canyon" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/4.2-boisbandeclair" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/4.5-desert2boisbande" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/4-falaise_bois_bande" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/5-falaise_normales" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/6.5-desertalternatif" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/6-desert" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/7-routes" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/8-foretbrule" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/1.5-marecage_profond" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/1-marecages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/2-citees" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/3-fond_canyon" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/4.2-boisbandeclair" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/4.5-desert2boisbande" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/4-falaise_bois_bande" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/5-falaise_normales" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/6.5-desertalternatif" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/6-desert" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/7-routes" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/8-foretbrule" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/1.5-marecage_profond" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/1-marecages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/2-citees" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/3-fond_canyon" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/4.2-boisbandeclair" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/4.5-desert2boisbande" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/4-falaise_bois_bande" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/5-falaise_normales" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/6.5-desertalternatif" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/6-desert" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/7-routes" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/8-foretbrule" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/1.5-marecage_profond" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/1-marecages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/2-citees" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/3-fond_canyon" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/4.2-boisbandeclair" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/4.5-desert2boisbande" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/4-falaise_bois_bande" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/5-falaise_normales" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/6.5-desertalternatif" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/6-desert" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/7-routes" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/8-foretbrule" ]
|
||||||
|
|
||||||
|
# Tiles root directory
|
||||||
|
TileRootSourceDirectory = "landscape/_texture_tiles/" + EcosystemName
|
||||||
|
|
||||||
|
# Displace directory
|
||||||
|
DisplaceSourceDirectory = "landscape/_texture_tiles/" + EcosystemName + "/displace"
|
||||||
|
|
||||||
|
# Do not use, needs to be removed and fixed in processes
|
||||||
|
DisplaceSourceDirectories = [ ]
|
||||||
|
DisplaceSourceDirectories += [ DisplaceSourceDirectory ]
|
||||||
|
|
||||||
|
# Bank directory
|
||||||
|
BankSourceDirectory = "landscape/_texture_tiles/" + EcosystemName
|
||||||
|
|
||||||
|
# Vegetable set directories
|
||||||
|
VegetSetSourceDirectories = [ ]
|
||||||
|
VegetSetSourceDirectories += [ "landscape/microveget/" + EcosystemName ]
|
||||||
|
|
||||||
|
# Veget directories
|
||||||
|
VegetSourceDirectories = [ ]
|
||||||
|
VegetSourceDirectories += [ "landscape/microveget/" + EcosystemName ]
|
||||||
|
|
||||||
|
# Ligo directories
|
||||||
|
LigoBaseSourceDirectory = "landscape/ligo/" + EcosystemName
|
||||||
|
LigoMaxSourceDirectory = LigoBaseSourceDirectory + "/max"
|
||||||
|
|
||||||
|
# Zone directories
|
||||||
|
ZoneSourceDirectory = [ "landscape/zones/" + EcosystemName ] # For old snowballs style landscape when not using ligo
|
||||||
|
|
||||||
|
# Ig landscape directories
|
||||||
|
IgLandSourceDirectory = "_invalid"
|
||||||
|
|
||||||
|
# Ig other directories
|
||||||
|
IgOtherSourceDirectory = "_invalid"
|
||||||
|
|
||||||
|
# PACS primitives directories
|
||||||
|
PacsPrimSourceDirectories = [ ]
|
||||||
|
PacsPrimSourceDirectories += [ DatabaseRootPath + "/decors/vegetations" ]
|
||||||
|
|
||||||
|
|
||||||
|
# *** EXPORT DIRECTORIES FOR THE BUILD PIPELINE ***
|
||||||
|
|
||||||
|
# Shape directories
|
||||||
|
ShapeTagExportDirectory = CommonPath + "/shape_tag"
|
||||||
|
ShapeNotOptimizedExportDirectory = CommonPath + "/shape_not_optimized"
|
||||||
|
ShapeWithCoarseMeshExportDirectory = CommonPath + "/shape_with_coarse_mesh"
|
||||||
|
ShapeLightmapNotOptimizedExportDirectory = CommonPath + "/shape_lightmap_not_optimized"
|
||||||
|
ShapeAnimExportDirectory = CommonPath + "/shape_anim"
|
||||||
|
|
||||||
|
# Smallbank directories
|
||||||
|
SmallbankExportDirectory = CommonPath + "/smallbank"
|
||||||
|
|
||||||
|
# Tiles directories
|
||||||
|
TilesExportDirectory = CommonPath + "/tiles"
|
||||||
|
|
||||||
|
# Tiles directories
|
||||||
|
DisplaceExportDirectory = CommonPath + "/diplace"
|
||||||
|
|
||||||
|
# Veget directories
|
||||||
|
VegetExportDirectory = CommonPath + "/veget"
|
||||||
|
VegetTagExportDirectory = CommonPath + "/veget_tag"
|
||||||
|
|
||||||
|
# Veget Set directories
|
||||||
|
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"
|
||||||
|
|
||||||
|
# Zone directories
|
||||||
|
ZoneExportDirectory = CommonPath + "/zone"
|
||||||
|
|
||||||
|
# PACS primitives directories
|
||||||
|
PacsPrimExportDirectory = CommonPath + "/pacs_prim"
|
||||||
|
|
||||||
|
|
||||||
|
# *** BUILD DIRECTORIES FOR THE BUILD PIPELINE ***
|
||||||
|
|
||||||
|
# Map directories
|
||||||
|
MapBuildDirectory = CommonPath + "/map"
|
||||||
|
MapPanoplyBuildDirectory = CommonPath + "/map_panoply"
|
||||||
|
|
||||||
|
# Shape directories
|
||||||
|
ShapeClodtexBuildDirectory = CommonPath + "/shape_clodtex_build"
|
||||||
|
ShapeWithCoarseMeshBuildDirectory = CommonPath + "/shape_with_coarse_mesh_builded"
|
||||||
|
ShapeLightmapBuildDirectory = CommonPath + "/shape_lightmap"
|
||||||
|
ShapeLightmap16BitsBuildDirectory = CommonPath + "/shape_lightmap_16_bits"
|
||||||
|
|
||||||
|
# Farbank directories
|
||||||
|
FarbankBuildDirectory = CommonPath + "/farbank"
|
||||||
|
|
||||||
|
# Ig directories ************** TODO CONFIRM IN IG BUILD PROCESS ************ FIX RBANK IF NEEDED ***********
|
||||||
|
IgLandBuildDirectory = "_invalid"
|
||||||
|
IgOtherBuildDirectory = "_invalid"
|
||||||
|
|
||||||
|
# Rbank directories
|
||||||
|
RbankOutputBuildDirectory = "_invalid"
|
||||||
|
RbankMeshBuildDirectory = "_invalid"
|
||||||
|
|
||||||
|
# Ligo directories
|
||||||
|
|
||||||
|
|
||||||
|
# *** INSTALL DIRECTORIES IN THE CLIENT DATA ***
|
||||||
|
|
||||||
|
# Map directory
|
||||||
|
MapClientDirectory = CommonName + "_maps"
|
||||||
|
BitmapClientDirectory = MapClientDirectory
|
||||||
|
|
||||||
|
# Shape directory
|
||||||
|
ShapeClientDirectory = CommonName + "_shapes"
|
||||||
|
|
||||||
|
# Lightmap directory
|
||||||
|
LightmapClientDirectory = CommonName + "_lightmaps"
|
||||||
|
|
||||||
|
# Tile directory
|
||||||
|
TilesClientDirectory = CommonName + "_tiles"
|
||||||
|
|
||||||
|
# Displace directory
|
||||||
|
DisplaceClientDirectory = CommonName + "_displaces"
|
||||||
|
|
||||||
|
# Bank directory
|
||||||
|
BankClientDirectory = CommonName + "_bank"
|
||||||
|
|
||||||
|
# Vegetable set directory
|
||||||
|
VegetSetClientDirectory = CommonName + "_vegetable_sets"
|
||||||
|
|
||||||
|
# Vegetable shape directory
|
||||||
|
VegetClientDirectory = CommonName + "_vegetables"
|
||||||
|
|
||||||
|
# PACS primitives directories
|
||||||
|
PacsPrimClientDirectory = CommonName + "_pacs_prim"
|
@ -0,0 +1,128 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# #################################################################
|
||||||
|
# ## WARNING : this is a generated file, don't change it !
|
||||||
|
# #################################################################
|
||||||
|
#
|
||||||
|
# \file config.py
|
||||||
|
# \brief Process configuration
|
||||||
|
# \date 2010-09-03-10-06-GMT
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Process configuration for 'desert' ecosystem.
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
# *** PROCESS CONFIGURATION ***
|
||||||
|
|
||||||
|
# *** PROCESS CONFIG ***
|
||||||
|
ProcessToComplete = [ ]
|
||||||
|
ProcessToComplete += [ "shape" ]
|
||||||
|
ProcessToComplete += [ "map" ]
|
||||||
|
ProcessToComplete += [ "smallbank" ]
|
||||||
|
ProcessToComplete += [ "farbank" ]
|
||||||
|
ProcessToComplete += [ "tiles" ]
|
||||||
|
ProcessToComplete += [ "displace" ]
|
||||||
|
ProcessToComplete += [ "veget" ]
|
||||||
|
ProcessToComplete += [ "vegetset" ]
|
||||||
|
ProcessToComplete += [ "ligo" ]
|
||||||
|
ProcessToComplete += [ "pacs_prim" ]
|
||||||
|
|
||||||
|
|
||||||
|
# *** ECOSYSTEM AND CONTINENT NAMES ***
|
||||||
|
|
||||||
|
EcosystemName = "desert"
|
||||||
|
EcosystemPath = "ecosystems/" + EcosystemName
|
||||||
|
CommonName = EcosystemName
|
||||||
|
CommonPath = EcosystemPath
|
||||||
|
|
||||||
|
|
||||||
|
# *** MAP EXPORT OPTIONS ***
|
||||||
|
PanoplyFileList = [ ]
|
||||||
|
HlsBankFileName = ""
|
||||||
|
|
||||||
|
# *** SHAPE EXPORT OPTIONS ***
|
||||||
|
|
||||||
|
# Compute lightmaps ?
|
||||||
|
ShapeExportOptExportLighting = "true"
|
||||||
|
|
||||||
|
# Cast shadow in lightmap ?
|
||||||
|
ShapeExportOptShadow = "true"
|
||||||
|
|
||||||
|
# Lighting limits. 0 : normal, 1 : soft shadows
|
||||||
|
ShapeExportOptLightingLimit = 1
|
||||||
|
|
||||||
|
# Lightmap lumel size
|
||||||
|
ShapeExportOptLumelSize = "0.25"
|
||||||
|
|
||||||
|
# Oversampling value. Can be 1, 2, 4 or 8
|
||||||
|
ShapeExportOptOversampling = 1
|
||||||
|
|
||||||
|
# Does the lightmap must be generated in 8 bits format ?
|
||||||
|
ShapeExportOpt8BitsLightmap = "true"
|
||||||
|
|
||||||
|
# Does the lightmaps export must generate logs ?
|
||||||
|
ShapeExportOptLightmapLog = "true"
|
||||||
|
|
||||||
|
# Coarse mesh texture mul size
|
||||||
|
TextureMulSizeValue = "1.5"
|
||||||
|
|
||||||
|
DoBuildShadowSkin = 0
|
||||||
|
|
||||||
|
ClodConfigFile = ""
|
||||||
|
|
||||||
|
# *** COARSE MESH TEXTURE NAME ***
|
||||||
|
CoarseMeshTextureNames = [ ]
|
||||||
|
CoarseMeshTextureNames += [ "nel_coarse_mesh_" + EcosystemName + "_sp" ]
|
||||||
|
CoarseMeshTextureNames += [ "nel_coarse_mesh_" + EcosystemName + "_su" ]
|
||||||
|
CoarseMeshTextureNames += [ "nel_coarse_mesh_" + EcosystemName + "_au" ]
|
||||||
|
CoarseMeshTextureNames += [ "nel_coarse_mesh_" + EcosystemName + "_wi" ]
|
||||||
|
|
||||||
|
# *** POSTFIX USED BY THE MULTIPLE TILES SYSTEM ***
|
||||||
|
MultipleTilesPostfix = [ ]
|
||||||
|
MultipleTilesPostfix += [ "_sp" ]
|
||||||
|
MultipleTilesPostfix += [ "_su" ]
|
||||||
|
MultipleTilesPostfix += [ "_au" ]
|
||||||
|
MultipleTilesPostfix += [ "_wi" ]
|
||||||
|
|
||||||
|
# *** BANK EXPORT OPTIONS ***
|
||||||
|
|
||||||
|
# Name of the tilebank to use
|
||||||
|
BankTileBankName = EcosystemName
|
||||||
|
|
||||||
|
# *** RBANK EXPORT OPTIONS ***
|
||||||
|
|
||||||
|
# Output names
|
||||||
|
RbankRbankName = "_invalid"
|
||||||
|
|
||||||
|
# *** LIGO OPTIONS ***
|
||||||
|
|
||||||
|
LigoExportLand = ""
|
||||||
|
LigoExportOnePass = 0
|
||||||
|
|
||||||
|
# *** MAPS OPTIONS ***
|
||||||
|
|
||||||
|
ReduceBitmapFactor = 0
|
||||||
|
|
||||||
|
# *** SHAPE BUILD OPTIONS *
|
||||||
|
|
||||||
|
DoBuildShadowSkin = False
|
||||||
|
ClodConfigFile = ""
|
||||||
|
|
||||||
|
# *** PACS_PRIM OPTIONS ***
|
||||||
|
WantLandscapeColPrimPacsList = True
|
@ -0,0 +1,257 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# #################################################################
|
||||||
|
# ## WARNING : this is a generated file, don't change it !
|
||||||
|
# #################################################################
|
||||||
|
#
|
||||||
|
# \file directories.py
|
||||||
|
# \brief Directories configuration
|
||||||
|
# \date 2010-09-03-10-06-GMT
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# \date 2001-2005
|
||||||
|
# \author Nevrax
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Directories configuration for 'lacustre' ecosystem.
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# *** ECOSYSTEM AND CONTINENT NAMES ***
|
||||||
|
|
||||||
|
EcosystemName = "lacustre"
|
||||||
|
EcosystemPath = "ecosystems/" + EcosystemName
|
||||||
|
CommonName = EcosystemName
|
||||||
|
CommonPath = EcosystemPath
|
||||||
|
|
||||||
|
DatabaseRootName = "tryker"
|
||||||
|
DatabaseRootPath = "stuff/" + DatabaseRootName
|
||||||
|
|
||||||
|
|
||||||
|
# *** SOURCE DIRECTORIES IN THE DATABASE ***
|
||||||
|
|
||||||
|
# Shape directories
|
||||||
|
ShapeSourceDirectories = [ ]
|
||||||
|
ShapeSourceDirectories += [ DatabaseRootPath + "/decors/vegetations" ]
|
||||||
|
ShapeSourceDirectories += [ "landscape/ligo/" + EcosystemName + "/max" ]
|
||||||
|
|
||||||
|
# Maps directories
|
||||||
|
MapSourceDirectories = [ ]
|
||||||
|
MapSourceDirectories += [ DatabaseRootPath + "/decors/_textures" ]
|
||||||
|
MapSourceDirectories += [ DatabaseRootPath + "/decors/_textures/vegetations" ]
|
||||||
|
MapSourceDirectories += [ "landscape/microveget/" + EcosystemName + "" ]
|
||||||
|
MapSourceDirectories += [ "landscape/water/meshes/" + EcosystemName + "" ]
|
||||||
|
|
||||||
|
MapUncompressedSourceDirectories = [ ]
|
||||||
|
|
||||||
|
# Tiles directories
|
||||||
|
TilesSourceDirectories = [ ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/1a-sable-marin" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/1-plages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/2-iles" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/2-ilesa" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/2-iles-marines" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/3-fondmarin2plage" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/4-marecages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/5-marecages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/5-parois-marine" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/6-fond_marin" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/7-bassesiles" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/7-mousseter" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/7-racines" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/8-mousse_marine" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/constructible" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/1a-sable-marin" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/1-plages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/2-iles" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/2-ilesa" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/2-iles-marines" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/3-fondmarin2plage" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/4-marecages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/5-marecages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/5-parois-marine" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/6-fond_marin" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/7-bassesiles" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/7-mousseter" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/7-racines" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/8-mousse_marine" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/constructible" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/1a-sable-marin" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/1-plages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/2-iles" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/2-ilesa" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/2-iles-marines" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/3-fondmarin2plage" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/4-marecages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/5-marecages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/5-parois-marine" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/6-fond_marin" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/7-bassesiles" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/7-mousseter" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/7-racines" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/8-mousse_marine" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/constructible" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/1a-sable-marin" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/1-plages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/2-iles" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/2-ilesa" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/2-iles-marines" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/3-fondmarin2plage" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/4-marecages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/5-marecages" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/5-parois-marine" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/6-fond_marin" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/7-bassesiles" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/7-mousseter" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/7-racines" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/8-mousse_marine" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/constructible" ]
|
||||||
|
|
||||||
|
# Tiles root directory
|
||||||
|
TileRootSourceDirectory = "landscape/_texture_tiles/" + EcosystemName
|
||||||
|
|
||||||
|
# Displace directory
|
||||||
|
DisplaceSourceDirectory = "landscape/_texture_tiles/" + EcosystemName + "/displace"
|
||||||
|
|
||||||
|
# Do not use, needs to be removed and fixed in processes
|
||||||
|
DisplaceSourceDirectories = [ ]
|
||||||
|
DisplaceSourceDirectories += [ DisplaceSourceDirectory ]
|
||||||
|
|
||||||
|
# Bank directory
|
||||||
|
BankSourceDirectory = "landscape/_texture_tiles/" + EcosystemName
|
||||||
|
|
||||||
|
# Vegetable set directories
|
||||||
|
VegetSetSourceDirectories = [ ]
|
||||||
|
VegetSetSourceDirectories += [ "landscape/microveget/" + EcosystemName ]
|
||||||
|
|
||||||
|
# Veget directories
|
||||||
|
VegetSourceDirectories = [ ]
|
||||||
|
VegetSourceDirectories += [ "landscape/microveget/" + EcosystemName ]
|
||||||
|
|
||||||
|
# Ligo directories
|
||||||
|
LigoBaseSourceDirectory = "landscape/ligo/" + EcosystemName
|
||||||
|
LigoMaxSourceDirectory = LigoBaseSourceDirectory + "/max"
|
||||||
|
|
||||||
|
# Zone directories
|
||||||
|
ZoneSourceDirectory = [ "landscape/zones/" + EcosystemName ] # For old snowballs style landscape when not using ligo
|
||||||
|
|
||||||
|
# Ig landscape directories
|
||||||
|
IgLandSourceDirectory = "_invalid"
|
||||||
|
|
||||||
|
# Ig other directories
|
||||||
|
IgOtherSourceDirectory = "_invalid"
|
||||||
|
|
||||||
|
# PACS primitives directories
|
||||||
|
PacsPrimSourceDirectories = [ ]
|
||||||
|
PacsPrimSourceDirectories += [ DatabaseRootPath + "/decors/vegetations" ]
|
||||||
|
|
||||||
|
|
||||||
|
# *** EXPORT DIRECTORIES FOR THE BUILD PIPELINE ***
|
||||||
|
|
||||||
|
# Shape directories
|
||||||
|
ShapeTagExportDirectory = CommonPath + "/shape_tag"
|
||||||
|
ShapeNotOptimizedExportDirectory = CommonPath + "/shape_not_optimized"
|
||||||
|
ShapeWithCoarseMeshExportDirectory = CommonPath + "/shape_with_coarse_mesh"
|
||||||
|
ShapeLightmapNotOptimizedExportDirectory = CommonPath + "/shape_lightmap_not_optimized"
|
||||||
|
ShapeAnimExportDirectory = CommonPath + "/shape_anim"
|
||||||
|
|
||||||
|
# Smallbank directories
|
||||||
|
SmallbankExportDirectory = CommonPath + "/smallbank"
|
||||||
|
|
||||||
|
# Tiles directories
|
||||||
|
TilesExportDirectory = CommonPath + "/tiles"
|
||||||
|
|
||||||
|
# Tiles directories
|
||||||
|
DisplaceExportDirectory = CommonPath + "/diplace"
|
||||||
|
|
||||||
|
# Veget directories
|
||||||
|
VegetExportDirectory = CommonPath + "/veget"
|
||||||
|
VegetTagExportDirectory = CommonPath + "/veget_tag"
|
||||||
|
|
||||||
|
# Veget Set directories
|
||||||
|
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"
|
||||||
|
|
||||||
|
# Zone directories
|
||||||
|
ZoneExportDirectory = CommonPath + "/zone"
|
||||||
|
|
||||||
|
# PACS primitives directories
|
||||||
|
PacsPrimExportDirectory = CommonPath + "/pacs_prim"
|
||||||
|
|
||||||
|
|
||||||
|
# *** BUILD DIRECTORIES FOR THE BUILD PIPELINE ***
|
||||||
|
|
||||||
|
# Map directories
|
||||||
|
MapBuildDirectory = CommonPath + "/map"
|
||||||
|
MapPanoplyBuildDirectory = CommonPath + "/map_panoply"
|
||||||
|
|
||||||
|
# Shape directories
|
||||||
|
ShapeClodtexBuildDirectory = CommonPath + "/shape_clodtex_build"
|
||||||
|
ShapeWithCoarseMeshBuildDirectory = CommonPath + "/shape_with_coarse_mesh_builded"
|
||||||
|
ShapeLightmapBuildDirectory = CommonPath + "/shape_lightmap"
|
||||||
|
ShapeLightmap16BitsBuildDirectory = CommonPath + "/shape_lightmap_16_bits"
|
||||||
|
|
||||||
|
# Farbank directories
|
||||||
|
FarbankBuildDirectory = CommonPath + "/farbank"
|
||||||
|
|
||||||
|
# Ig directories ************** TODO CONFIRM IN IG BUILD PROCESS ************ FIX RBANK IF NEEDED ***********
|
||||||
|
IgLandBuildDirectory = "_invalid"
|
||||||
|
IgOtherBuildDirectory = "_invalid"
|
||||||
|
|
||||||
|
# Rbank directories
|
||||||
|
RbankOutputBuildDirectory = "_invalid"
|
||||||
|
RbankMeshBuildDirectory = "_invalid"
|
||||||
|
|
||||||
|
# Ligo directories
|
||||||
|
|
||||||
|
|
||||||
|
# *** INSTALL DIRECTORIES IN THE CLIENT DATA ***
|
||||||
|
|
||||||
|
# Map directory
|
||||||
|
MapClientDirectory = CommonName + "_maps"
|
||||||
|
BitmapClientDirectory = MapClientDirectory
|
||||||
|
|
||||||
|
# Shape directory
|
||||||
|
ShapeClientDirectory = CommonName + "_shapes"
|
||||||
|
|
||||||
|
# Lightmap directory
|
||||||
|
LightmapClientDirectory = CommonName + "_lightmaps"
|
||||||
|
|
||||||
|
# Tile directory
|
||||||
|
TilesClientDirectory = CommonName + "_tiles"
|
||||||
|
|
||||||
|
# Displace directory
|
||||||
|
DisplaceClientDirectory = CommonName + "_displaces"
|
||||||
|
|
||||||
|
# Bank directory
|
||||||
|
BankClientDirectory = CommonName + "_bank"
|
||||||
|
|
||||||
|
# Vegetable set directory
|
||||||
|
VegetSetClientDirectory = CommonName + "_vegetable_sets"
|
||||||
|
|
||||||
|
# Vegetable shape directory
|
||||||
|
VegetClientDirectory = CommonName + "_vegetables"
|
||||||
|
|
||||||
|
# PACS primitives directories
|
||||||
|
PacsPrimClientDirectory = CommonName + "_pacs_prim"
|
@ -0,0 +1,128 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# #################################################################
|
||||||
|
# ## WARNING : this is a generated file, don't change it !
|
||||||
|
# #################################################################
|
||||||
|
#
|
||||||
|
# \file config.py
|
||||||
|
# \brief Process configuration
|
||||||
|
# \date 2010-09-03-10-06-GMT
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Process configuration for 'lacustre' ecosystem.
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
# *** PROCESS CONFIGURATION ***
|
||||||
|
|
||||||
|
# *** PROCESS CONFIG ***
|
||||||
|
ProcessToComplete = [ ]
|
||||||
|
ProcessToComplete += [ "shape" ]
|
||||||
|
ProcessToComplete += [ "map" ]
|
||||||
|
ProcessToComplete += [ "smallbank" ]
|
||||||
|
ProcessToComplete += [ "farbank" ]
|
||||||
|
ProcessToComplete += [ "tiles" ]
|
||||||
|
ProcessToComplete += [ "displace" ]
|
||||||
|
ProcessToComplete += [ "veget" ]
|
||||||
|
ProcessToComplete += [ "vegetset" ]
|
||||||
|
ProcessToComplete += [ "ligo" ]
|
||||||
|
ProcessToComplete += [ "pacs_prim" ]
|
||||||
|
|
||||||
|
|
||||||
|
# *** ECOSYSTEM AND CONTINENT NAMES ***
|
||||||
|
|
||||||
|
EcosystemName = "lacustre"
|
||||||
|
EcosystemPath = "ecosystems/" + EcosystemName
|
||||||
|
CommonName = EcosystemName
|
||||||
|
CommonPath = EcosystemPath
|
||||||
|
|
||||||
|
|
||||||
|
# *** MAP EXPORT OPTIONS ***
|
||||||
|
PanoplyFileList = [ ]
|
||||||
|
HlsBankFileName = ""
|
||||||
|
|
||||||
|
# *** SHAPE EXPORT OPTIONS ***
|
||||||
|
|
||||||
|
# Compute lightmaps ?
|
||||||
|
ShapeExportOptExportLighting = "true"
|
||||||
|
|
||||||
|
# Cast shadow in lightmap ?
|
||||||
|
ShapeExportOptShadow = "true"
|
||||||
|
|
||||||
|
# Lighting limits. 0 : normal, 1 : soft shadows
|
||||||
|
ShapeExportOptLightingLimit = 0
|
||||||
|
|
||||||
|
# Lightmap lumel size
|
||||||
|
ShapeExportOptLumelSize = "0.25"
|
||||||
|
|
||||||
|
# Oversampling value. Can be 1, 2, 4 or 8
|
||||||
|
ShapeExportOptOversampling = 8
|
||||||
|
|
||||||
|
# Does the lightmap must be generated in 8 bits format ?
|
||||||
|
ShapeExportOpt8BitsLightmap = "false"
|
||||||
|
|
||||||
|
# Does the lightmaps export must generate logs ?
|
||||||
|
ShapeExportOptLightmapLog = "true"
|
||||||
|
|
||||||
|
# Coarse mesh texture mul size
|
||||||
|
TextureMulSizeValue = "1.5"
|
||||||
|
|
||||||
|
DoBuildShadowSkin = 0
|
||||||
|
|
||||||
|
ClodConfigFile = ""
|
||||||
|
|
||||||
|
# *** COARSE MESH TEXTURE NAME ***
|
||||||
|
CoarseMeshTextureNames = [ ]
|
||||||
|
CoarseMeshTextureNames += [ "nel_coarse_mesh_" + EcosystemName + "_sp" ]
|
||||||
|
CoarseMeshTextureNames += [ "nel_coarse_mesh_" + EcosystemName + "_su" ]
|
||||||
|
CoarseMeshTextureNames += [ "nel_coarse_mesh_" + EcosystemName + "_au" ]
|
||||||
|
CoarseMeshTextureNames += [ "nel_coarse_mesh_" + EcosystemName + "_wi" ]
|
||||||
|
|
||||||
|
# *** POSTFIX USED BY THE MULTIPLE TILES SYSTEM ***
|
||||||
|
MultipleTilesPostfix = [ ]
|
||||||
|
MultipleTilesPostfix += [ "_sp" ]
|
||||||
|
MultipleTilesPostfix += [ "_su" ]
|
||||||
|
MultipleTilesPostfix += [ "_au" ]
|
||||||
|
MultipleTilesPostfix += [ "_wi" ]
|
||||||
|
|
||||||
|
# *** BANK EXPORT OPTIONS ***
|
||||||
|
|
||||||
|
# Name of the tilebank to use
|
||||||
|
BankTileBankName = EcosystemName
|
||||||
|
|
||||||
|
# *** RBANK EXPORT OPTIONS ***
|
||||||
|
|
||||||
|
# Output names
|
||||||
|
RbankRbankName = "_invalid"
|
||||||
|
|
||||||
|
# *** LIGO OPTIONS ***
|
||||||
|
|
||||||
|
LigoExportLand = ""
|
||||||
|
LigoExportOnePass = 0
|
||||||
|
|
||||||
|
# *** MAPS OPTIONS ***
|
||||||
|
|
||||||
|
ReduceBitmapFactor = 0
|
||||||
|
|
||||||
|
# *** SHAPE BUILD OPTIONS *
|
||||||
|
|
||||||
|
DoBuildShadowSkin = False
|
||||||
|
ClodConfigFile = ""
|
||||||
|
|
||||||
|
# *** PACS_PRIM OPTIONS ***
|
||||||
|
WantLandscapeColPrimPacsList = True
|
@ -0,0 +1,242 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# #################################################################
|
||||||
|
# ## WARNING : this is a generated file, don't change it !
|
||||||
|
# #################################################################
|
||||||
|
#
|
||||||
|
# \file directories.py
|
||||||
|
# \brief Directories configuration
|
||||||
|
# \date 2010-09-03-10-06-GMT
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# \date 2001-2005
|
||||||
|
# \author Nevrax
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Directories configuration for 'primes_racines' ecosystem.
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# *** ECOSYSTEM AND CONTINENT NAMES ***
|
||||||
|
|
||||||
|
EcosystemName = "primes_racines"
|
||||||
|
EcosystemPath = "ecosystems/" + EcosystemName
|
||||||
|
CommonName = EcosystemName
|
||||||
|
CommonPath = EcosystemPath
|
||||||
|
|
||||||
|
DatabaseRootName = "primes_racines"
|
||||||
|
DatabaseRootPath = "stuff/" + DatabaseRootName
|
||||||
|
|
||||||
|
|
||||||
|
# *** SOURCE DIRECTORIES IN THE DATABASE ***
|
||||||
|
|
||||||
|
# Shape directories
|
||||||
|
ShapeSourceDirectories = [ ]
|
||||||
|
ShapeSourceDirectories += [ DatabaseRootPath + "/decors/vegetations" ]
|
||||||
|
ShapeSourceDirectories += [ "landscape/ligo/" + EcosystemName + "/max" ]
|
||||||
|
|
||||||
|
# Maps directories
|
||||||
|
MapSourceDirectories = [ ]
|
||||||
|
MapSourceDirectories += [ DatabaseRootPath + "/decors/_textures" ]
|
||||||
|
MapSourceDirectories += [ DatabaseRootPath + "/decors/_textures/vegetations" ]
|
||||||
|
MapSourceDirectories += [ DatabaseRootPath + "/decors/_textures/batiments" ]
|
||||||
|
MapSourceDirectories += [ "landscape/microveget/" + EcosystemName + "" ]
|
||||||
|
MapSourceDirectories += [ "landscape/water/meshes/" + EcosystemName + "" ]
|
||||||
|
|
||||||
|
MapUncompressedSourceDirectories = [ ]
|
||||||
|
|
||||||
|
# Tiles directories
|
||||||
|
TilesSourceDirectories = [ ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/PR-creux" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/PR-dome-moussu" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/PR-kitiniere" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/PR-mousse-licken" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/PR-mousse-spongieus" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/PR-parois" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/PR-sol-mousse" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/PR-souche" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/PR-stalagmite" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/PR-terre" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_sp/aditif" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/PR-creux" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/PR-dome-moussu" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/PR-kitiniere" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/PR-mousse-licken" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/PR-mousse-spongieus" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/PR-parois" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/PR-sol-mousse" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/PR-souche" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/PR-stalagmite" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/PR-terre" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_su/aditif" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/PR-creux" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/PR-dome-moussu" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/PR-kitiniere" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/PR-mousse-licken" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/PR-mousse-spongieus" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/PR-parois" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/PR-sol-mousse" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/PR-souche" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/PR-stalagmite" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/PR-terre" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_au/aditif" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/PR-creux" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/PR-dome-moussu" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/PR-kitiniere" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/PR-mousse-licken" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/PR-mousse-spongieus" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/PR-parois" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/PR-sol-mousse" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/PR-souche" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/PR-stalagmite" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/PR-terre" ]
|
||||||
|
TilesSourceDirectories += [ "landscape/_texture_tiles/" + EcosystemName + "_wi/aditif" ]
|
||||||
|
|
||||||
|
# Tiles root directory
|
||||||
|
TileRootSourceDirectory = "landscape/_texture_tiles/" + EcosystemName
|
||||||
|
|
||||||
|
# Displace directory
|
||||||
|
DisplaceSourceDirectory = "landscape/_texture_tiles/" + EcosystemName + "/displace"
|
||||||
|
|
||||||
|
# Do not use, needs to be removed and fixed in processes
|
||||||
|
DisplaceSourceDirectories = [ ]
|
||||||
|
DisplaceSourceDirectories += [ DisplaceSourceDirectory ]
|
||||||
|
|
||||||
|
# Bank directory
|
||||||
|
BankSourceDirectory = "landscape/_texture_tiles/" + EcosystemName
|
||||||
|
|
||||||
|
# Vegetable set directories
|
||||||
|
VegetSetSourceDirectories = [ ]
|
||||||
|
VegetSetSourceDirectories += [ "landscape/microveget/" + EcosystemName ]
|
||||||
|
|
||||||
|
# Veget directories
|
||||||
|
VegetSourceDirectories = [ ]
|
||||||
|
VegetSourceDirectories += [ "landscape/microveget/" + EcosystemName ]
|
||||||
|
|
||||||
|
# Ligo directories
|
||||||
|
LigoBaseSourceDirectory = "landscape/ligo/" + EcosystemName
|
||||||
|
LigoMaxSourceDirectory = LigoBaseSourceDirectory + "/max"
|
||||||
|
|
||||||
|
# Zone directories
|
||||||
|
ZoneSourceDirectory = [ "landscape/zones/" + EcosystemName ] # For old snowballs style landscape when not using ligo
|
||||||
|
|
||||||
|
# Ig landscape directories
|
||||||
|
IgLandSourceDirectory = "_invalid"
|
||||||
|
|
||||||
|
# Ig other directories
|
||||||
|
IgOtherSourceDirectory = "_invalid"
|
||||||
|
|
||||||
|
# PACS primitives directories
|
||||||
|
PacsPrimSourceDirectories = [ ]
|
||||||
|
PacsPrimSourceDirectories += [ DatabaseRootPath + "/decors/vegetations" ]
|
||||||
|
|
||||||
|
|
||||||
|
# *** EXPORT DIRECTORIES FOR THE BUILD PIPELINE ***
|
||||||
|
|
||||||
|
# Shape directories
|
||||||
|
ShapeTagExportDirectory = CommonPath + "/shape_tag"
|
||||||
|
ShapeNotOptimizedExportDirectory = CommonPath + "/shape_not_optimized"
|
||||||
|
ShapeWithCoarseMeshExportDirectory = CommonPath + "/shape_with_coarse_mesh"
|
||||||
|
ShapeLightmapNotOptimizedExportDirectory = CommonPath + "/shape_lightmap_not_optimized"
|
||||||
|
ShapeAnimExportDirectory = CommonPath + "/shape_anim"
|
||||||
|
|
||||||
|
# Smallbank directories
|
||||||
|
SmallbankExportDirectory = CommonPath + "/smallbank"
|
||||||
|
|
||||||
|
# Tiles directories
|
||||||
|
TilesExportDirectory = CommonPath + "/tiles"
|
||||||
|
|
||||||
|
# Tiles directories
|
||||||
|
DisplaceExportDirectory = CommonPath + "/diplace"
|
||||||
|
|
||||||
|
# Veget directories
|
||||||
|
VegetExportDirectory = CommonPath + "/veget"
|
||||||
|
VegetTagExportDirectory = CommonPath + "/veget_tag"
|
||||||
|
|
||||||
|
# Veget Set directories
|
||||||
|
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"
|
||||||
|
|
||||||
|
# Zone directories
|
||||||
|
ZoneExportDirectory = CommonPath + "/zone"
|
||||||
|
|
||||||
|
# PACS primitives directories
|
||||||
|
PacsPrimExportDirectory = CommonPath + "/pacs_prim"
|
||||||
|
|
||||||
|
|
||||||
|
# *** BUILD DIRECTORIES FOR THE BUILD PIPELINE ***
|
||||||
|
|
||||||
|
# Map directories
|
||||||
|
MapBuildDirectory = CommonPath + "/map"
|
||||||
|
MapPanoplyBuildDirectory = CommonPath + "/map_panoply"
|
||||||
|
|
||||||
|
# Shape directories
|
||||||
|
ShapeClodtexBuildDirectory = CommonPath + "/shape_clodtex_build"
|
||||||
|
ShapeWithCoarseMeshBuildDirectory = CommonPath + "/shape_with_coarse_mesh_builded"
|
||||||
|
ShapeLightmapBuildDirectory = CommonPath + "/shape_lightmap"
|
||||||
|
ShapeLightmap16BitsBuildDirectory = CommonPath + "/shape_lightmap_16_bits"
|
||||||
|
|
||||||
|
# Farbank directories
|
||||||
|
FarbankBuildDirectory = CommonPath + "/farbank"
|
||||||
|
|
||||||
|
# Ig directories ************** TODO CONFIRM IN IG BUILD PROCESS ************ FIX RBANK IF NEEDED ***********
|
||||||
|
IgLandBuildDirectory = "_invalid"
|
||||||
|
IgOtherBuildDirectory = "_invalid"
|
||||||
|
|
||||||
|
# Rbank directories
|
||||||
|
RbankOutputBuildDirectory = "_invalid"
|
||||||
|
RbankMeshBuildDirectory = "_invalid"
|
||||||
|
|
||||||
|
# Ligo directories
|
||||||
|
|
||||||
|
|
||||||
|
# *** INSTALL DIRECTORIES IN THE CLIENT DATA ***
|
||||||
|
|
||||||
|
# Map directory
|
||||||
|
MapClientDirectory = CommonName + "_maps"
|
||||||
|
BitmapClientDirectory = MapClientDirectory
|
||||||
|
|
||||||
|
# Shape directory
|
||||||
|
ShapeClientDirectory = CommonName + "_shapes"
|
||||||
|
|
||||||
|
# Lightmap directory
|
||||||
|
LightmapClientDirectory = CommonName + "_lightmaps"
|
||||||
|
|
||||||
|
# Tile directory
|
||||||
|
TilesClientDirectory = CommonName + "_tiles"
|
||||||
|
|
||||||
|
# Displace directory
|
||||||
|
DisplaceClientDirectory = CommonName + "_displaces"
|
||||||
|
|
||||||
|
# Bank directory
|
||||||
|
BankClientDirectory = CommonName + "_bank"
|
||||||
|
|
||||||
|
# Vegetable set directory
|
||||||
|
VegetSetClientDirectory = CommonName + "_vegetable_sets"
|
||||||
|
|
||||||
|
# Vegetable shape directory
|
||||||
|
VegetClientDirectory = CommonName + "_vegetables"
|
||||||
|
|
||||||
|
# PACS primitives directories
|
||||||
|
PacsPrimClientDirectory = CommonName + "_pacs_prim"
|
@ -0,0 +1,128 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
#
|
||||||
|
# #################################################################
|
||||||
|
# ## WARNING : this is a generated file, don't change it !
|
||||||
|
# #################################################################
|
||||||
|
#
|
||||||
|
# \file config.py
|
||||||
|
# \brief Process configuration
|
||||||
|
# \date 2010-09-03-10-06-GMT
|
||||||
|
# \author Jan Boon (Kaetemi)
|
||||||
|
# Python port of game data build pipeline.
|
||||||
|
# Process configuration for 'primes_racines' ecosystem.
|
||||||
|
#
|
||||||
|
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
||||||
|
# Copyright (C) 2010 Winch Gate Property Limited
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
# *** PROCESS CONFIGURATION ***
|
||||||
|
|
||||||
|
# *** PROCESS CONFIG ***
|
||||||
|
ProcessToComplete = [ ]
|
||||||
|
ProcessToComplete += [ "shape" ]
|
||||||
|
ProcessToComplete += [ "map" ]
|
||||||
|
ProcessToComplete += [ "smallbank" ]
|
||||||
|
ProcessToComplete += [ "farbank" ]
|
||||||
|
ProcessToComplete += [ "tiles" ]
|
||||||
|
ProcessToComplete += [ "displace" ]
|
||||||
|
ProcessToComplete += [ "veget" ]
|
||||||
|
ProcessToComplete += [ "vegetset" ]
|
||||||
|
ProcessToComplete += [ "ligo" ]
|
||||||
|
ProcessToComplete += [ "pacs_prim" ]
|
||||||
|
|
||||||
|
|
||||||
|
# *** ECOSYSTEM AND CONTINENT NAMES ***
|
||||||
|
|
||||||
|
EcosystemName = "primes_racines"
|
||||||
|
EcosystemPath = "ecosystems/" + EcosystemName
|
||||||
|
CommonName = EcosystemName
|
||||||
|
CommonPath = EcosystemPath
|
||||||
|
|
||||||
|
|
||||||
|
# *** MAP EXPORT OPTIONS ***
|
||||||
|
PanoplyFileList = [ ]
|
||||||
|
HlsBankFileName = ""
|
||||||
|
|
||||||
|
# *** SHAPE EXPORT OPTIONS ***
|
||||||
|
|
||||||
|
# Compute lightmaps ?
|
||||||
|
ShapeExportOptExportLighting = "true"
|
||||||
|
|
||||||
|
# Cast shadow in lightmap ?
|
||||||
|
ShapeExportOptShadow = "true"
|
||||||
|
|
||||||
|
# Lighting limits. 0 : normal, 1 : soft shadows
|
||||||
|
ShapeExportOptLightingLimit = 1
|
||||||
|
|
||||||
|
# Lightmap lumel size
|
||||||
|
ShapeExportOptLumelSize = "0.25"
|
||||||
|
|
||||||
|
# Oversampling value. Can be 1, 2, 4 or 8
|
||||||
|
ShapeExportOptOversampling = 1
|
||||||
|
|
||||||
|
# Does the lightmap must be generated in 8 bits format ?
|
||||||
|
ShapeExportOpt8BitsLightmap = "false"
|
||||||
|
|
||||||
|
# Does the lightmaps export must generate logs ?
|
||||||
|
ShapeExportOptLightmapLog = "true"
|
||||||
|
|
||||||
|
# Coarse mesh texture mul size
|
||||||
|
TextureMulSizeValue = "1.5"
|
||||||
|
|
||||||
|
DoBuildShadowSkin = 0
|
||||||
|
|
||||||
|
ClodConfigFile = ""
|
||||||
|
|
||||||
|
# *** COARSE MESH TEXTURE NAME ***
|
||||||
|
CoarseMeshTextureNames = [ ]
|
||||||
|
CoarseMeshTextureNames += [ "nel_coarse_mesh_" + EcosystemName + "_sp" ]
|
||||||
|
CoarseMeshTextureNames += [ "nel_coarse_mesh_" + EcosystemName + "_su" ]
|
||||||
|
CoarseMeshTextureNames += [ "nel_coarse_mesh_" + EcosystemName + "_au" ]
|
||||||
|
CoarseMeshTextureNames += [ "nel_coarse_mesh_" + EcosystemName + "_wi" ]
|
||||||
|
|
||||||
|
# *** POSTFIX USED BY THE MULTIPLE TILES SYSTEM ***
|
||||||
|
MultipleTilesPostfix = [ ]
|
||||||
|
MultipleTilesPostfix += [ "_sp" ]
|
||||||
|
MultipleTilesPostfix += [ "_su" ]
|
||||||
|
MultipleTilesPostfix += [ "_au" ]
|
||||||
|
MultipleTilesPostfix += [ "_wi" ]
|
||||||
|
|
||||||
|
# *** BANK EXPORT OPTIONS ***
|
||||||
|
|
||||||
|
# Name of the tilebank to use
|
||||||
|
BankTileBankName = EcosystemName
|
||||||
|
|
||||||
|
# *** RBANK EXPORT OPTIONS ***
|
||||||
|
|
||||||
|
# Output names
|
||||||
|
RbankRbankName = "_invalid"
|
||||||
|
|
||||||
|
# *** LIGO OPTIONS ***
|
||||||
|
|
||||||
|
LigoExportLand = ""
|
||||||
|
LigoExportOnePass = 0
|
||||||
|
|
||||||
|
# *** MAPS OPTIONS ***
|
||||||
|
|
||||||
|
ReduceBitmapFactor = 0
|
||||||
|
|
||||||
|
# *** SHAPE BUILD OPTIONS *
|
||||||
|
|
||||||
|
DoBuildShadowSkin = False
|
||||||
|
ClodConfigFile = ""
|
||||||
|
|
||||||
|
# *** PACS_PRIM OPTIONS ***
|
||||||
|
WantLandscapeColPrimPacsList = True
|
Loading…
Reference in New Issue