nel-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nel] build_rbank.exe


From: Andi 'Debug' Allen
Subject: Re: [Nel] build_rbank.exe
Date: Wed, 18 Feb 2004 18:06:31 -0000

ive gone thru the cfg file and added variables for everything
 
is the zone list in the config file even used by build_rbank.exe
 
 
 
//
// rbank settings
//
 

Verbose    = 1;
 
OutputRootPath   = "C:\Documents and Settings\Andi\Desktop\Build Landscape\";
LevelDesignWorldPath  = "C:\Documents and Settings\Andi\Desktop\Build Landscape\";
 
ZonePath   = "zone_welded\";
 
IgLandPath   = "exported_ig\";
IgVillagePath   = "exported_ig\";
TessellationPath  = "tesselation\";
 
SmoothDirectory   = "smooth\";
RawDirectory   = "raw\";
PreprocessDirectory  = "preproc\";
 
IGBoxes    = "ig_boxes\ig_boxes.bbox";
 
ZoneExt    = ".zonew";
ZoneNHExt   = ".zonenhw";
 
WaterThreshold   = 2.0000;
 
ZoneUL    = "3_AC";
ZoneDR    = "10_AJ";
 
GlobalRetriever   = "forest.gr";
RetrieverBank   = "forest.rbank";
 
GlobalUL   = "3_AC";
GlobalDR   = "10_AJ";
 
TessellateLevel   = 1;
TessellateZones   = 1;
MoulineZones   = 1;
ProcessRetrievers  = 1;
ProcessGlobal   = 1;
ProcessAllPasses  = 1;
CheckPrims   = 1;
ReduceSurfaces   = 1;
SmoothBorders   = 1;
ComputeElevation  = 1;
ComputeLevels   = 1;
LinkElements   = 1;
UseZoneSquare   = 1;
 
TessellateAndMoulineZones = 1;
 

//
// zone list
//
 

Zones = {
"3_AC.zonew",
"3_AD.zonew",
"3_AE.zonew",
"3_AF.zonew",
"3_AG.zonew",
"3_AH.zonew",
"3_AI.zonew",
"3_AJ.zonew",
"4_AA.zonew",
"4_AB.zonew",
"4_AC.zonew",
"4_AD.zonew",
"4_AE.zonew",
"4_AF.zonew",
"4_AG.zonew",
"4_AH.zonew",
"4_AI.zonew",
"4_AJ.zonew",
"5_AA.zonew",
"5_AB.zonew",
"5_AC.zonew",
"5_AD.zonew",
"5_AE.zonew",
"5_AF.zonew",
"5_AG.zonew",
"5_AH.zonew",
"5_AI.zonew",
"5_AJ.zonew",
"6_AA.zonew",
"6_AB.zonew",
"6_AC.zonew",
"6_AD.zonew",
"6_AE.zonew",
"6_AF.zonew",
"6_AG.zonew",
"6_AH.zonew",
"6_AI.zonew",
"6_AJ.zonew",
"7_AA.zonew",
"7_AB.zonew",
"7_AC.zonew",
"7_AD.zonew",
"7_AE.zonew",
"7_AF.zonew",
"7_AG.zonew",
"7_AH.zonew",
"7_AI.zonew",
"7_AJ.zonew",
"8_AA.zonew",
"8_AB.zonew",
"8_AC.zonew",
"8_AD.zonew",
"8_AE.zonew",
"8_AF.zonew",
"8_AG.zonew",
"8_AH.zonew",
"8_AI.zonew",
"8_AJ.zonew",
"9_AA.zonew",
"9_AB.zonew",
"9_AC.zonew",
"9_AD.zonew",
"9_AE.zonew",
"9_AF.zonew",
"9_AG.zonew",
"9_AH.zonew",
"9_AI.zonew",
"9_AJ.zonew",
"10_AA.zonew",
"10_AB.zonew",
"10_AC.zonew",
"10_AD.zonew",
"10_AE.zonew",
"10_AF.zonew",
"10_AG.zonew",
"10_AH.zonew",
"10_AI.zonew",
"10_AJ.zonew"
};
 
ive remade the script closer to the one in the full build process
 
 
#!./bin/bash
 
build_rbank='bin/build_rbank.exe'
get_neighbors='bin/get_neighbors.exe'
zone_path='zone_welded/'
 
cd $zone_path
list_zone=`../bin/ls -1 *.[zZ][oO][nN][eE][wW]`
cd ..
 
echo $list_zone
echo
echo $list_zone >> log.txt
echo >> log.txt
 
for i in $list_zone ; do
 
 echo In : $i
 echo $i >> log.txt
 
 zone=`echo $i | sed -e 's/.zonew//'`
 
 echo Zone : $zone
 echo $zone >> log.txt
 
 lr1=`echo "./smooth/"$zone".lr"`
 
 echo LR : $lr1
 echo $lr1 >> log.txt
 
 near_zone=`$get_neighbors $zone`
 
 echo Near Zones : $near_zone
 echo $near_zone >> log.txt
 
 zone_to_build=`echo ""`
 
 if ( ! test -e $lr1 )
 then
  zone_to_build=`echo $zone_path$i`
 else
  for j in $near_zone ; do
   if ( test $zone_path$j.zonew -nt $lr1 )
   then
    zone_to_build=`echo $zone_path$i`
   else
    echo Failed test $zone_path$j.zonew -nt $lr1
    echo " "
    echo Failed test $zone_path$j.zonew -nt $lr1 >> log.txt
    echo " " >> log.txt
   fi
  done
 fi
 
 echo ZoneToBuild : $zone_to_build
 echo
 echo $zone_to_build >> log.txt
 echo >> log.txt
 
 if ( test "$zone_to_build" )
 then
  $build_rbank -C -p -g $i
  echo " "
 else
  echo Skipped $lr1
  echo " "
  echo Skipped $lr1 >> log.txt
  echo " " >> log.txt
 fi
 
done
this combined with the release_debug build and verbose being set to 1
spews lots of log information which i sent previously but here is an example
 
log.log
 
Log Starting [2004/02/18 18:02:57]
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 144 : Read ProcessAllPasses = true
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 144 : Read CheckPrims = true
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 144 : Read TessellateZones = true
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 144 : Read MoulineZones = true
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 144 : Read TessellateAndMoulineZones = true
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 144 : Read ProcessRetrievers = true
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 144 : Read ProcessGlobal = true
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read OutputRootPath = 'C:\Documents and Settings\Andi\Desktop\Build Landscape\'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 144 : Read UseZoneSquare = true
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 118 : Read WaterThreshold = 2.000000
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read ZoneExt = '.zonew'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read ZoneNHExt = '.zonenhw'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read ZonePath = 'zone_welded\'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read TessellationPath = 'tesselation\'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 105 : Read TessellateLevel = 1
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read LevelDesignWorldPath = 'C:\Documents and Settings\Andi\Desktop\Build Landscape\'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read IgLandPath = 'exported_ig\'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read IgVillagePath = 'exported_ig\'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read IGBoxes = 'ig_boxes\ig_boxes.bbox'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 144 : Read ReduceSurfaces = true
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 144 : Read ComputeElevation = true
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 144 : Read ComputeLevels = true
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 144 : Read SmoothBorders = true
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read PreprocessDirectory = 'preproc\'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read SmoothDirectory = 'smooth\'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read GlobalRetriever = 'forest.gr'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read RetrieverBank = 'forest.rbank'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read GlobalUL = '3_AC'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read GlobalDR = '10_AJ'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read ZoneUL = '3_AC'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 131 : Read ZoneDR = '10_AJ'
2004/02/18 18:02:57 INF 2176 build_rbank.exe prim_checker.cpp 74 : Checking pacs.packed_prims consistency
2004/02/18 18:02:57 WRN 2176 build_rbank.exe ligo_config.cpp 355 : Can't open the file world_editor_classes.xml for reading.
2004/02/18 18:02:57 WRN 2176 build_rbank.exe prim_checker.cpp 82 : Can't load ligo primitive config file world_editor_classes.xml
2004/02/18 18:02:57 WRN 2176 build_rbank.exe prim_checker.cpp 220 : Couldn't load pacs.packed_prims file './pacs.packed_prims'
2004/02/18 18:02:57 INF 2176 build_rbank.exe main.cpp 378 : total computation time: 0 days, 0 hours, 0 minutes and 0 seconds
log.txt
 
10_AC.zonew 10_AD.zonew 10_AE.zonew 10_AF.zonew 10_AG.zonew 10_AH.zonew 10_AI.zonew 10_AJ.zonew 3_AC.zonew 3_AD.zonew 3_AE.zonew 3_AF.zonew 3_AG.zonew 3_AH.zonew 3_AI.zonew 3_AJ.zonew 4_AC.zonew 4_AD.zonew 4_AE.zonew 4_AF.zonew 4_AG.zonew 4_AH.zonew 4_AI.zonew 4_AJ.zonew 5_AC.zonew 5_AD.zonew 5_AE.zonew 5_AF.zonew 5_AG.zonew 5_AH.zonew 5_AI.zonew 5_AJ.zonew 6_AC.zonew 6_AD.zonew 6_AE.zonew 6_AF.zonew 6_AG.zonew 6_AH.zonew 6_AI.zonew 6_AJ.zonew 7_AC.zonew 7_AD.zonew 7_AE.zonew 7_AF.zonew 7_AG.zonew 7_AH.zonew 7_AI.zonew 7_AJ.zonew 8_AC.zonew 8_AD.zonew 8_AE.zonew 8_AF.zonew 8_AG.zonew 8_AH.zonew 8_AI.zonew 8_AJ.zonew 9_AC.zonew 9_AD.zonew 9_AE.zonew 9_AF.zonew 9_AG.zonew 9_AH.zonew 9_AI.zonew 9_AJ.zonew
 
10_AC.zonew
10_AC
./smooth/10_AC.lr
9_AB 10_AB 11_AB 9_AC 10_AC 11_AC 9_AD 10_AD 11_AD
zone_welded/10_AC.zonew
 
10_AD.zonew
10_AD
./smooth/10_AD.lr
9_AC 10_AC 11_AC 9_AD 10_AD 11_AD 9_AE 10_AE 11_AE
zone_welded/10_AD.zonew
 
 
still i  get no .lr files output
 
----- Original Message -----
Sent: Wednesday, February 18, 2004 5:21 PM
Subject: Re: [Nel] build_rbank.exe

if i echo output of some of the variables in the process
this list is the following
 
the paths are correct for where the output directories are
and the filenames also appear to be correct
 
$i
$zone
$zone
$near_zone
$zone_to_build

10_AC.zonew

10_AC

./smooth/10_AC.lr

9_AB 10_AB 11_AB 9_AC 10_AC 11_AC 9_AD 10_AD 11_AD

zone_welded/10_AC.zonew

 
----- Original Message -----
Sent: Wednesday, February 18, 2004 4:10 PM
Subject: Re: [Nel] build_rbank.exe

im now running rbank on its own from a little bash script to isolate the problem
each call to build_rbank.exe completes with the Generating final .lr message
but the file doesnt appear in the designated output directory.
 
i set up the CFG for build_rbank like this
 
ZonePath = "C:\Documents and Settings\Andi\Desktop\Build Landscape\zone_lighted\";
BanksPath = "C:\Documents and Settings\Andi\Desktop\Build Landscape\exported_bank\";
Bank = "forest.bank";
ZoneExt = ".zonel";
IGBoxes = "C:\Documents and Settings\Andi\Desktop\Build Landscape\ig_boxes\ig_boxes.bbox";
 
TessellationPath = "tesselation\";
TessellateLevel = 1;
 
OutputRootPath = "";
SmoothDirectory = "smooth\";
RawDirectory = "raw\";
 
ReduceSurfaces = 1;
SmoothBorders = 1;
 
ComputeElevation = 1;
ComputeLevels = 1;
 
LinkElements = 1;
 
CutEdges = 1;
 
UseZoneSquare = 1;

ZoneUL = "3_AC";
ZoneDR = "10_AJ";
 
PreprocessDirectory = "preproc\";
 
// the global retriever processing settings
GlobalRetriever = "forest.gr";
RetrieverBank = "forest.rbank";
 
GlobalUL  = "3_AC";
GlobalDR  = "10_AJ";
 
// which kind of stuff to do...
TessellateZones = 1;
MoulineZones = 1;
ProcessRetrievers = 1;
ProcessGlobal = 1;
 

//
 

Zones = {
"3_AC.zonel",
"3_AD.zonel",
"3_AE.zonel",
"3_AF.zonel",
"3_AG.zonel",
"3_AH.zonel",
"3_AI.zonel",
"3_AJ.zonel",
"4_AA.zonel",
"4_AB.zonel",
"4_AC.zonel",
"4_AD.zonel",
"4_AE.zonel",
"4_AF.zonel",
"4_AG.zonel",
"4_AH.zonel",
"4_AI.zonel",
"4_AJ.zonel",
"5_AA.zonel",
"5_AB.zonel",
"5_AC.zonel",
"5_AD.zonel",
"5_AE.zonel",
"5_AF.zonel",
"5_AG.zonel",
"5_AH.zonel",
"5_AI.zonel",
"5_AJ.zonel",
"6_AA.zonel",
"6_AB.zonel",
"6_AC.zonel",
"6_AD.zonel",
"6_AE.zonel",
"6_AF.zonel",
"6_AG.zonel",
"6_AH.zonel",
"6_AI.zonel",
"6_AJ.zonel",
"7_AA.zonel",
"7_AB.zonel",
"7_AC.zonel",
"7_AD.zonel",
"7_AE.zonel",
"7_AF.zonel",
"7_AG.zonel",
"7_AH.zonel",
"7_AI.zonel",
"7_AJ.zonel",
"8_AA.zonel",
"8_AB.zonel",
"8_AC.zonel",
"8_AD.zonel",
"8_AE.zonel",
"8_AF.zonel",
"8_AG.zonel",
"8_AH.zonel",
"8_AI.zonel",
"8_AJ.zonel",
"9_AA.zonel",
"9_AB.zonel",
"9_AC.zonel",
"9_AD.zonel",
"9_AE.zonel",
"9_AF.zonel",
"9_AG.zonel",
"9_AH.zonel",
"9_AI.zonel",
"9_AJ.zonel",
"10_AA.zonel",
"10_AB.zonel",
"10_AC.zonel",
"10_AD.zonel",
"10_AE.zonel",
"10_AF.zonel",
"10_AG.zonel",
"10_AH.zonel",
"10_AI.zonel",
"10_AJ.zonel"
};
 
Pathes = {
"C:\Documents and Settings\Andi\Desktop\Build Landscape\",
"exported_ig",
"exported_shape",
};
 

it creates an empty eval_log.txt file whenever it runs
the bash script i call to create runs froma parent batch script they are set up below
 
build_rbank.bat
 
@echo off
bin\build_ig_boxes.exe
bin\bash build_rbank.sh
bin\build_rbank.exe -c -p -G
bin\build_indoor_rbank.exe
pause
 
build_rbank.sh
#!./bin/bash
 
build_rbank='bin/build_rbank.exe'
 
for i in ./zone_lighted/*.[zZ][oO][nN][eE][lL]; do
  $build_rbank -C -P -g $i
  echo $i
done
 
echo ` `
 
ive tried it with the zonel and the zonew files neither produce any
intermediate .lr files the last call creates a small .rbank and .gr file
 
.rbank 6 bytes
.gr 30 bytes
 
ive tried passing it the smallbank and the bank also
again same result and no negative output from build_rbank
 
ive tested with zome zones and banks i made previously and it
didnt work also im using the latest cvs compile of build_rbank.exe
as of saturday
 
----- Original Message -----
Sent: Wednesday, February 18, 2004 3:05 PM
Subject: Re: [Nel] build_rbank.exe

 
The build_rbank process has changed a bit, so if you updated it, perhaps there are some things you should fix.
First, in the processes/rbank/cfg/template_(draft|final).cfg, put the line Verbose = 1; This will make the process
log everything it doesright and wrong. Try this, and if it still hangs, please send me a log of the process
while doing a build game data process, build_rbank is not
outputting any .lr files and thus the .gr and .rbank are 30 or
so bytes when it has finished.
Ben
 


_______________________________________________
Nel mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/nel-all


_______________________________________________
Nel mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/nel-all


_______________________________________________
Nel mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/nel-all

reply via email to

[Prev in Thread] Current Thread [Next in Thread]