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

P3D v5 Changes in writing steps from scenProc v2.xx to v3.xx.

Messages
1,635
Country
unitedstates
Hey Arno, I am in the process of converting an old (very old), v2 scenProc script and update it for v3.3. In particular, the step CreateAGNLibObject. Looking for my past v2 scenProc manuals to compare changes to v3.3 but mnaybe you can interject. Was there ever a doc or thread that talked about the changes? I know... so long ago, ha! Here my issue, here is the old way I would write to create a library object (using a default P3D barn for example),

CreateAGNLibObj|FROMFILE=XX_ZZZZ_barn.shp;id=45|{2F95CE6A-FB34-4c6f-8D5D-64D1E1AC08ED}|45|0|0;0

The 45 in the |45|0|0:0 was the degree to turn the heading of the object by that many degrees. The "0|0:0I" part I cannot remember offhand without finding my old manuals and what the are referring to? So if I use the 3.3 version it appears the correct way to write the above step is:

CreateAGNLibObject|FROMFILE="XX_ZZZZ_barn.shp" AND id="45"|{2F95CE6A-FB34-4c6f-8D5D-64D1E1AC08ED} or as

CreateAGNLibObject|FROMFILE="XX_ZZZZ_barn.shp" AND id="45"|{2F95CE6A-FB34-4c6f-8D5D-64D1E1AC08ED}|45

My concern is I need to have in there the heading of the obect (and the last two variables if needed I think). But leaving those in at the end of the step results in an error messge only allowing 2-3 arguments.

Can you enlighten me? (of course anyone else that can shed light on this is most welecomed) :)

Marcus
 
Ok, making some progress finding an old scenProc v1! Appears the last three attributes were heading of the object, offset of the object(?) and the size of the object; |HDG|0|0.0. Back then scenProc used points instead of polys. I think one now needs to convert the points to a poly, then create the object? Still need o reads up and do a few tests to see if my objects are facing the direction I desire.
 
Yes, the agn library step has been modified to take polygons as input instead of points. So you might need to add a PointToPolygon step before to get it working.

If you still have the old scenproc working you can also hover over the libe in the script to see the tooltip with all the help about the attributes.
 
So it the heading now created/determined at the step PointToPolygon or when one uses CreateAGNLibObject?
 
You need to give the polygon the heading already. So you can use it in the PointToPolygon step
 
Back
Top