• 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 wehen using CreateAGNRectVeg

MatthiasKNU

Resource contributor
Messages
962
Country
germany
Hi Arno, hi everybody!

I have a little problem when using Scenproc.
I want to create vegetation, just for test purposes a simple shapefile with a few Vegetation Polygons in it.
My script looks like that:
Code:
ImportOGR|C:\Users\Matthias\Desktop\HKIA\Shapefile\RawData_a.shp|*|*|AUTODETECT
SplitGrid|AGN|*
ReplacePolygonByVegetationRectangles|*|0.001|0|1
CreateAGNRectVeg|*|{0BAF57F5-97F8-4CE2-98DD-18D389AE8559}
ExportAGN|P3D v2|C:\Users\Matthias\Desktop\HKIA\Processed

When starting Scenproc it is running until "Creating autogen rectangular vegetation with filter *..."
Then Scenproc stops with the following error message:

Code:
15:31    SceneryProcessor    Error           bei System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   bei System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   bei System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   bei System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   bei System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
   bei ASToFra.scenProc.Steps.CreateAGNRectVeg.Process(List`1 cells, String[] arguments)
   bei ASToFra.scenProc.Processor.SceneryProcessor.Process()
   bei ASToFra.scenProc.Processor.SceneryProcessor.ProcessConfig(String filename, List`1 commands, Boolean errorReporting)

15:31    SceneryProcessor    Error           bei ASToFra.scenProc.Steps.CreateAGNRectVeg.<>c__DisplayClass1.<Process>b__0(GridCell cell)
   bei System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   bei System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   bei System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )

I am using the latest ScenProc Development Release.

Do you have an idea what is going wrong here?
Thank you in advance!
Kind regards

Matthias
 
Hi,

Does the stack trace go further? I can't see where exactly the problem is now.
 
Could you send me the shp so I can try to reproduce it here?
 
Thanks, I'll check tonight.
 
Hi,

Which version of scenProc are you using? I tested with the latest build here and the file can be processed without any error or crash.
 
Hmm, tried it today with the development release version I have downloaded today afternoon...
 
Humm, that's weird. Do you also get 1205 rectangles after replacing the polygons?
 
That's about the same. Let me think what else could be different.
 
Don't know why, but by creating a new script the problem is solved now.
Maybe a kind of unreadable and unvisible sign has been in the script...

Anyway, I've got another little problem now, but I will create a new thread to keep it clear
 
Back
Top