• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Batch config

Messages
219
Country
italy
What filename format did u use in your scenario at http://www.scenerydesign.org/2014/01/scenproc-batch-processing ?
Where is the 0 in the filename "input*.shp" like input0.shp, input1.shp… input13.shp?

I tried with

Code:
IMPORTOGR|E:\Autogen\Buildings-Flat-Roof\SHP\@0@|*|*|NOREPROJ

for the following files

test_A0.shp
test_A1.shp

but ScenProc creates autogen only for the test_A0.shp file

thanks Arno!
 
Hi Gabriele,

The SPC file looks fine. You replaced the entire filename by the variable, so in that case your batch file should be like this:

scenproc myconfig.spc /run test_A1.shp
scenproc myconfig.spc /run test_A2.shp
 
Well, this makes the new function unusable for me. Too many files in separate dirs. I will open a new thread to explain my production environment to see if you can develop a batch feature for it.
 
Hi,

But it should work for the screenshot you send me before. Like I mentioned before you don't have to replace the whole filename, you could also write it like this in your config file:

IMPORTSHP|c:\path\vegetation_@0@|*|NOREPROJ
IMPORTSHP|c:\path\buildings_@0@|*|NOREPROJ
IMPORTSHP|c:\path\landuse_@0@|*|NOREPROJ

And then your batch file would just be:

Scenproc myconfig.spc \run A1
Scenproc myconfig.spc \run A2
Scenproc myconfig.spc \run A3
...
 
Hi Arno.

The problem is that my files are names in the same way for each group (A1, A2, A3,... Z1, Z2, Z3...) and they are in separate dirs. See my screenshots.

Anyway I tried to use

IMPORTOGR|E:\Autogen\TESTS\test_@0@|*|*|NOREPROJ

and

\...\scenProc.exe config.spc /run A0
\...\scenProc.exe config.spc /run A1

for

test__A0.SHP
test_A1.SHP

but I get an error (file doesn't exist).

PS: in your last post you wrote

Scenproc myconfig.spc \run A1
Scenproc myconfig.spc \run A2
Scenproc myconfig.spc \run A3

but I thought we were supposed to name our files starting with 0

You should always start counting from zero and the number is the order in which you provide the variable from the command prompt.

Is this correct?
 
Hi,

The user variables (@0@, @1@, etc) should start counting from zero. But it's completely up to you how you number your files. They can be named how you like.

I thought you said you had all vegetation in one folder and then buildings in another, etc. Or did I misunderstand that?
 
Yes that's what I meant for the zero. Ok.

You misunderstood. See the image atteched.

thanks
 

Attachments

  • workingdirs.jpg
    workingdirs.jpg
    69.1 KB · Views: 538
  • spcs.jpg
    spcs.jpg
    56.8 KB · Views: 570
but for the test we are discussing here I have both SHP files in the same dir together
 
Can you show your test configuration and the batch file you use with it?
 
BATCH FILE:

Code:
C:\Users\Gabriele\Work\VERO\autogen\scenproc_latest_development_release_x64\scenProc.exe config.spc /run A0 /log mylog.txt
C:\Users\Gabriele\Work\VERO\autogen\scenproc_latest_development_release_x64\scenProc.exe config.spc /run A1 /log mylog.txt

Config file

Code:
IMPORTOGR|E:\Autogen\TESTS\portland_@0@|*|*|NOREPROJ
 #
 SPLITGRID|AGN
 #
 CREATEAGNPOLYVEG|FTYPE=POLYGON;LAYER=Decidious-Forest|{0a7dd9ef-9e7f-4140-9ae8-5d1d5047176b}
 CREATEAGNPOLYVEG|FTYPE=POLYGON;LAYER=Evergreen-Forest|{618bfc6b-4642-4035-931e-a422ed357605}
 CREATEAGNPOLYVEG|FTYPE=POLYGON;LAYER=Grassland-Herbaceous|{2a917db0-e752-4431-9b55-26aabf75e53e}
 CREATEAGNPOLYVEG|FTYPE=POLYGON;LAYER=Mixed-Forest|{e1a6390c-2339-4baf-8a5a-53bde05d134a}
 CREATEAGNPOLYVEG|FTYPE=POLYGON;LAYER=Woody-Wetlands|{e1a6390c-2339-4baf-8a5a-53bde05d134a}
 CREATEAGNGENBUILD|FTYPE=POLYGON;LAYER=Houses|{214e9e1c-6f98-4ced-9667-0cd57592cea1}
 CREATEAGNPOLYVEG|FTYPE=POLYGON;LAYER=City-Trees|{aedf6a47-3a98-4913-9538-bd4579d79594}
 CREATEAGNGENBUILD|FTYPE=POLYGON;LAYER=Buildings-Flat-Roof;FWIDTH>10|{b597ddc9-4aa1-4391-8383-231620161427}|MAXRATIO=6
 #
 WRITEAGNFILES|FSX|.

Files in the same dir (to test)

portland_A0.SHP
portland_A1.SHP
 
The first line of your configuration should be like below. You are missing the file extension now.

Code:
IMPORTOGR|E:\Autogen\TESTS\portland_@0@.shp|*|*|NOREPROJ
 
So what's the exact message you get in your logfile when running this configuration?
 
20.59 IMPORTOGR Error File specified does not exist
20.59 SceneryProcessor Error Failed to find processing step #
20.59 SceneryProcessor Error Failed to find processing step SPLITGRID
20.59 SceneryProcessor Error Failed to find processing step #
20.59 SceneryProcessor Error Failed to find processing step CREATEAGNPOLYVEG
20.59 SceneryProcessor Error Failed to find processing step CREATEAGNPOLYVEG
20.59 SceneryProcessor Error Failed to find processing step CREATEAGNPOLYVEG
20.59 SceneryProcessor Error Failed to find processing step CREATEAGNPOLYVEG
20.59 SceneryProcessor Error Failed to find processing step CREATEAGNPOLYVEG
20.59 SceneryProcessor Error Failed to find processing step CREATEAGNGENBUILD
20.59 SceneryProcessor Error Failed to find processing step CREATEAGNPOLYVEG
20.59 SceneryProcessor Error Failed to find processing step CREATEAGNGENBUILD
20.59 SceneryProcessor Error Failed to find processing step #
20.59 SceneryProcessor Error Failed to find processing step WRITEAGNFILES
20.59 IMPORTOGR Error File specified does not exist
 
Please remove all the spaces from the beginning of the different lines. At the moment scenProc doesn't expect them there (I'll try to make that a bit more robust).
 
Success!

The message you have entered is too short. Please lengthen your message to at least 10 characters.
 
Back
Top