• 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.

error,configuration file not valid

Messages
4
Hi all,
I'm just trying to export an autogen trees layer from a database created from quantum gis.
The files created from Qgis are these:
sardinia.dbf
sardinia.qpj
sardinia.shp
sardinia.shx
sardinia.prj
In the same directory I created the sardinia.spc file with a text editor,this is what I hawe written in:

# Sardinia autogen
IMPORTSHP|sardinia.shp|NOREPROJ
#
SPLITGRID|AGN
#
SETAGNBUILDINGHEIGHT|1.0;0.0;0.0;0.0
CREATEAGNPOLYVEG|FTYPE=POLYGON;type=forest|{e8b937fd-a1f2-4bd5-8548-2c80d30102af}
#
WRITEAGNFILES|C:\test\texture

Once opened with the prompt command,with the line command:

C:\Users\PORTATILE\Desktop\scenproc\Scenproc.exe sardinia.spc

the prompt line say "sardinia.spc is not a valid configuration file"

Where I'm doing wrong?

Thanks in advance for the help
\Ale
 
Pay attention to this paragraph:

IMPORTSHP|sardinia.shp|NOREPROJ

The text may be wrong. Try to add the full path to that part so that it looks like this:

IMPORTSHP|C:\ScenProc\SARD\sardinia.shp|NOREPROJ

Then it should work I think...

Instead of using a command prompt, make a shortcut and place the shortcut into the "Sent To" folder of your system. In order to do this, just click on the Start button in the taskbar and enter "shell:sendto" to the search bar. Open the folder and copy&paste the shortcut to ScenProc. Then you do not need to work with the command prompt. Much easier in my opinion, however I think, if I remember correctly that you will not catch the errors/problems/... from the command prompt.
 
Pay attention to this paragraph:

IMPORTSHP|sardinia.shp|NOREPROJ

The text may be wrong. Try to add the full path to that part so that it looks like this:

IMPORTSHP|C:\ScenProc\SARD\sardinia.shp|NOREPROJ

Then it should work I think...

Instead of using a command prompt, make a shortcut and place the shortcut into the "Sent To" folder of your system. In order to do this, just click on the Start button in the taskbar and enter "shell:sendto" to the search bar. Open the folder and copy&paste the shortcut to ScenProc. Then you do not need to work with the command prompt. Much easier in my opinion, however I think, if I remember correctly that you will not catch the errors/problems/... from the command prompt.

Thanks ScKevin,tried both suggestion,same error displayed..
 
Ok found one mistake:
The GUID has no spaces. Your GUID should be:
{e8b937fd-a1f2-4bd5-8548-2c80d30102af}

Then there seems to be something wrong with your .shp file... I keep getting an error when the .SHP file is read... I do not know from where this problem comes...Everything did right? Maybe take a second look at the wiki article?
 
Ok found one mistake:
The GUID has no spaces. Your GUID should be:
{e8b937fd-a1f2-4bd5-8548-2c80d30102af}

Then there seems to be something wrong with your .shp file... I keep getting an error when the .SHP file is read... I do not know from where this problem comes...Everything did right? Maybe take a second look at the wiki article?


Ok,solved with two steps:

First: adjusted GUID spacing,as you rightly wrote,but this was not enough..
Second: One of the most common tricks with Windows (I use 7 64bit).."Run as administrator" (Right click on scenProc.exe-properties-compatibility- "privilege level" on the bottom of compatibility page-"Run as Administrator".

That's it,now it works fine..

Thank you for your help!!

/Ale
 
Hi, as the topic.
I've tried everything you have written so far and nothing.
The message "is not a valid configuration file".
I wonder how well I write spc file (in notepad save as ... name.spc). Just one more question, do I have to do it on the computer where I have installed FSX? Does it matter?
Regards
 
I think you missed something.

A spc file is not simply a file which is renamed to Something.spc but it is a file which has been newly created by QGIS or something similiar...pay attention to this.. For better understanding I would recommand you this Wiki article to show you how it works..
 
Hi,

No, FSX is not needed by scenProc, so it can be run on another machine.

The message that the configuration file is valid means that the file you specified could not be found. Are you sure you provided the correct path to it as well?
 
Hi, I know this article on memory and it says:
"So now it is time to start creating some autogen. To do this we need to create a configuration file for scenProc That tells the tool what we want to do. So start your text editor and create a file with the content Help Us"
because I thought I could write spc file in notepad and save as name.spc. If not, how do I make this file, I think of something I do not understand ...

Spc file is in the same directory as the scenProc and QGIS files.

I enter the path to the cmd: C:\users\owieczka>sp\scenProc.exe 1.spc
and appears
1.spc is not a valid configuration file
useage:
scenProc configuration.spc ...

I was a fool ...
 
Hi,

Is the current directory of your command prompt the folder where scenproc is? Else you need to provide the full path to the configuration file.

Another thing to check is if notepad did not save your file as spc.txt. Using notepad is fine.
 
Hi, thank you for your help.
I copied the files directly into the directory c:\users\owieczka> (which begins cmd) and all beautifully moved up to a point:
sp1.png

and this is my spc file:
# Lublin autogen
IMPORTSHP|natural1.shp|NOREPROJ
IMPORTSHP|buildings1.shp|NOREPROJ
IMPORTSHP|points1.shp|NOREPROJ
#
SPLITGRID|AGN
#
SETAGNBUILDINGHEIGHT|1.0;0.0;0.0;0.0
CREATEAGNPOLYVEG|FTYPE=POLYGON;type=forest|{e8b937fd-a1f2-4bd5-8548-2c80d30102af}
CREATEAGNGENBUILD|FTYPE=POLYGON;FROMFILE=buildings1.shp;FWIDTH<20|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=2
CREATEAGNGENBUILD|FTYPE=POLYGON;FROMFILE=buildings1.shp;FWIDTH>20|{6089A0BD-CED1-4c47-9A9E-64CDD0E16983}
CREATEAGNLIBOBJ|FTYPE=POINT;type=water_tower|{450e3946-44ec-6111-95e1-56baa89b3d82}
#
WRITEAGNFILES|d:\fsx\autogen\lublin\texture
Thank for help...
 
I put
CREATEAGNGENBUILD|shpfile=buildings1.shp|{00000000-0000-0000-0000-000000000000}
in place
CREATEAGNGENBUILD|FTYPE=POLYGON;FROMFILE=buildings.shp;FWIDTH<20|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=2
CREATEAGNGENBUILD|FTYPE=POLYGON;FROMFILE=buildings.shp;FWIDTH>20|{6089A0BD-CED1-4c47-9A9E-64CDD0E16983}
and still the same...
 
Hi,

Seems the parsing of your values has a problem. I think it might be related to the dot vs. comma for the decimal character, but that is something I have to check.
 
Hi,

I checked, when the decimal character is a comma indeed some values are not read correctly. That will be fix in the next development release.

But I could not reproduce your crash in that case, so not sure what is causing it.
 
Hi, I changed SETAGNBUILDINGHEIGHT|1.0;0.0;0.0;0.0 out of SETAGNBUILDINGHEIGHT|1,0;0,0;0,0;0,0, and everything went well. It created more than 1700 AGN files so I guess fine ... Now I have to just test it.
The question is of whether to run autogen I must have fotoscennery whether with Terrein Ultimate X also works?
Greetings.
 
Hi,

With the current version that is online now the comma will not work, you should change it back to a dot again.

Indeed you will need a photo scenery for the autogen to show.
 
Now I don't understand. With dots it doesn't work, with commas it works, I mean it finished work and I must test it and you say that I have to change commas to dots... It wont work again... I think...
 
I mean after you download the latest version. I made some changes yesterday so that it will work with the dot, independent of computer settings.
 
Hi, I downloaded the latest version yesterday and now goes with dots, but still no autogen of buildings and points. There is only vegetation (natural) autogen.
Any ideas?
This is ma SPC file:
# Lublin autogen
IMPORTSHP|shp\natural1.shp|NOREPROJ
IMPORTSHP|shp\buildings1.shp|NOREPROJ
IMPORTSHP|shp\points1.shp|NOREPROJ
#
SPLITGRID|AGN
#
SETAGNBUILDINGHEIGHT|1.0;0.0;0.0;0.0
CREATEAGNPOLYVEG|FTYPE=POLYGON;type=forest|{e8b937fd-a1f2-4bd5-8548-2c80d30102af}
CREATEAGNGENBUILD|FTYPE=POLYGON;FROMFILE=shp\buildings1.shp;FWIDTH<20|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=2
CREATEAGNGENBUILD|FTYPE=POLYGON;FROMFILE=shp\buildings1.shp;FWIDTH>20|{6089A0BD-CED1-4c47-9A9E-64CDD0E16983}
CREATEAGNLIBOBJ|FTYPE=POINT;type=water_tower|{450e3946-44ec-6111-95e1-56baa89b3d82}
#
WRITEAGNFILES|d:\fsx\autogen\lublin\texture\
 
Back
Top