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

changed needed to cfg file?

Messages
481
Hello,

This is my cfg file:

# Schiermonnikoog autogen test
IMPORTSHP|forest.shp|NOREPROJ
IMPORTSHP|area.shp|NOREPROJ
#
SPLITGRID|AGN
#
SETAGNBUILDINGHEIGHT|0.4;0.2;0.2;0.2
# SETAGNBUILDINGTEXTURE|autogen_NL
#
CREATEAGNPOLYVEG|FTYPE=POLYGON;FROMFILE=forest.shp|{e8b937fd-a1f2-4bd5-8548-2c80d30102af}
CREATEAGNGENBUILD|FTYPE=POLYGON;FROMFILE=area.shp;FWIDTH>0|{00000000-0000-0000-0000-000000000000}
#
WRITEAGNFILES|.


It works fine with scenproc.dll dated 6/16/2012 and scenproc.exe dated 11/19/2011, but on recent development release, the same files and cfg ran through scenproc hangs at splitting grid time with that typical windows "scenproc has stopped working".

Do I need to change the split option in the cfg?

Kindly,

Blazer
 
Hi,

No, this CFG file looks fine. After you close the windows error you should probably see a stack trace in the command prompt. Does that give any information what kind of error happened?
 
Hi,

Here it is:

Reading SHP file forest.shp
Reading SHP file area.shp
Splitting features in 0.0146484375 x 0.010986328125 grid...

Unhandled Exception: System.DivideByZeroException: Attempted to divide by zero.
at ASToFra.ObjectModel3D.Polygon.GetVertex(Int32 index)
at ASToFra.ObjectModel3D.Polygon.GetMinVector()
at ASToFra.ObjectModel3D.Polygon.GetBoundingBox()
at ASToFra.scenProc.PolygonFeature.GetBoundingBox()
at ASToFra.scenProc.GridCell.GetBoundingBox()
at ASToFra.scenProc.SplitGrid.SplitCell(GridCell cell, Double gridSizeX, Doub
le gridSizeY)
at ASToFra.scenProc.SplitGrid.Process(List`1 cells, String[] arguments)
at ASToFra.scenProc.SceneryProcessor.Process()
at ASToFra.scenProc.SceneryProcessor..ctor(String[] args)
at ASToFra.Launcher_scenProc.Program.Main(String[] args)

Strange as when ran through older scenproc it processed fine and in FS all looked good with both trees and buildings.

Kindly,

Blazer
 
Hi,

Sounds like a bug. I made some changes to make the splitgrid command faster, so that explains the difference.

I think the problem might be a polygon with no vertices, I'll see if I can make it more robust.
 
Do you have the shapefiles so that I can try to reproduce it here?
 
Back
Top