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

What am I doing wrong here?

Messages
247
Country
netherlands
Hello all,

This is my first venture into scenProc, and using the manual I've tried to piece together some code to process road and add different light poles depending on what kind of road it is. I see in the code it's creating points, but then no polygons or objects are created, and subsequently no autogen files are created... Form the manual I'm, not getting the sense that I'm doing anything wrong, so I'm pretty stumped on what my error is. Any ideas? See my code below.

Code:
ImportOGR|C:\Users\Benjamin van Soldt\Documents\Airport Projects\Chattanooga_KCHA\KCHA_Large_GISdata.osm|*|*|AUTODETECT
#
SplitGrid|AGN|*|building="*"
#Make doublelights on bigger road
PlacePointsAlongLine|FTYPE="LINE" AND highway="motorway"|CONTINUOUS|150;150|0;0|0|String;doublelight1|LIGHT|HDG1
PlacePointsAlongLine|FTYPE="LINE" AND highway="primary"|CONTINUOUS|150;150|0;0|0|String;doublelight2|LIGHT|HDG2
PlacePointsAlongLine|FTYPE="LINE" AND highway="secondary"|CONTINUOUS|150;150|0;0|0|String;doublelight3|LIGHT|HDG3
#
PointToPolygon|type="doublelight1"|8.107347;0.386563|HDG1|String;type|doublelightpoly1
PointToPolygon|type="doublelight2"|8.107347;0.386563|HDG2|String;type|doublelightpoly2
PointToPolygon|type="doublelight3"|8.107347;0.386563|HDG3|String;type|doublelightpoly3
#
CreateAGNLibObject|type="doublelightpoly1"|{7d30ef69-40b0-3f63-6abf-5a950ebe84b3}
CreateAGNLibObject|type="doublelightpoly2"|{7d30ef69-40b0-3f63-6abf-5a950ebe84b3}
CreateAGNLibObject|type="doublelightpoly3"|{7d30ef69-40b0-3f63-6abf-5a950ebe84b3}
#Make single lights on smaller roads
PlacePointsAlongLine|FTYPE="LINE" AND highway="residential"|CONTINUOUS|150;150|5;5|0|String;singlelight|LIGHT|HDG
#
PointToPolygon|type="singlelight"|4.179772;0.375349|HDG|String;type|singlelightpoly
#
CreateAGNLibObject|type="singlelightpoly"|{43ca0530-4a04-9ff0-f40c-9283a7083267}
#
ExportAGN|FSX|C:\Users\Benjamin van Soldt\Documents\Airport Projects\Chattanooga_KCHA\scenProc AGN

I was trying to attached the log file, but have no idea of how to export the event log... At any rate, it shows the creation of points along the roads as specified, but never creates the actual polygons and all subsequent steps don't produce any results.

Any pointers would be greatly appreciated!
 
Hi,

In the PlacePointsAlongLine step you are adding an attribute:

doublelight1=LIGHT

But later you are checking for:

type=doublelight1

So nothing will be found there. So set the right attribute and it should work.
 
Oof, I can't believe I made such a sloppy mistake and then didn't even notice it -.- I suppose that teaches me not to learn these things after midnight! Thanks Arno, as always you're a lifesaver. I changed it and it works flawlessly now...

I do have another question though. I notice in the manual that describes this code that a GUID is used for a lightpole, but when I look it up in the Autgen Editor, this GUID seems to belong to a telephone pole? So when I look into streetlights (the GUIDs I already have in the code posted above), it gives me the depth and width that are also in the code, but it doesn't seem to be able to actually place a polygon of this size... So I'm not too sure how to proceed. How can I place something that seems to be too small to be placed...? Can I change the depth and width to be bigger than the actual requirement as stated in the Autogen Editor?

EDIT: Actually never mind. I can't seem to place the light poles manually in the annotator, but ScenProc has no problem doing it!
 
Last edited:
Back
Top