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

Problem starting from a ScenProc tutorial:

Messages
150
Country
italy
Hey Arno! Thanks for the great tools and info you gave and constantly give, as first :)

By the way, I've been using ScenProc lately from about 1 week (never had a clue about what scenproc was or the way it works, so i had to start from scratch).

I've been watching
this video.

Done everything and sorted it out trying to figure out how to make it work with *.shp shapefiles instead of OSM datafiles.

This is my first try:

Code:
CODICE
# Ossola_Autogen
IMPORTOGR|E:\Gamez\MFSX\Scenari\Ossola_autogens\Ossola_lago\buildings.shp|*|*|NOREPROJ
IMPORTOGR|E:\Gamez\MFSX\Scenari\Ossola_autogens\Ossola_lago\landuse.shp|*|*|NOREPROJ
IMPORTOGR|E:\Gamez\MFSX\Scenari\Ossola_autogens\Ossola_lago\roads.shp|*|*|NOREPROJ

SPLITGRID|AGN|buildings=*
#ATTRIBUTI
# 1- Rettangolari
# 2- Quasi rettangolari
# 3- Forme Regolari
# 4- Convessi
# 5- Concavi
ADDATTRIBUTE|FTYPE=POLYGON;buildings=*;FNUMVERT=4;FNUMPERPANG=4|BUILDTYPE|1
ADDATTRIBUTE|BUILDTYPE!1;FTYPE=POLYGON;buildings=*;FAREARAT=0.70|BUILDTYPE|2
ADDATTRIBUTE|BUILDTYPE!1;BUILDTYPE!2;FTYPE=POLYGON;buildings=*;FNUMPERPANG>3;FNUMNOTPAR<2;FNUMVERT<10|BUILDTYPE|3
ADDATTRIBUTE|BUILDTYPE!1;BUILDTYPE!2;BUILDTYPE!3;FTYPE=POLYGON;buildings=*;FCONVEX=1|BUILDTYPE|4
ADDATTRIBUTE|BUILDTYPE!1;BUILDTYPE!2;BUILDTYPE!3;BUILDTYPE!4;FTYPE=POLYGON;buildings=*|BUILDTYPE|5
#
#Aggiungi attributi in base alla tipologia di edificio
# 1- Rurale
# 2- Residenziale
# 3- Industriale

ADDATTRIBUTE|FTYPE=POLYGON;buildings=*|BUILDCAT|1
ADDATTRIBUTEIFINSIDE|FTYPE=POLYGON;buildings=*|FTYPE=POLYGON;landuse=residential|BUILDCAT|2
ADDATTRIBUTEIFINSIDE|FTYPE=POLYGON;buildings=*|FTYPE=POLYGON;landuse=industrial|BUILDCAT|3
#
#Crea nuove caratteristiche
REPLACEPOLYGONBYBUILDINGRECTANGLES|BUILDTYPE=3
#
PLACEPOINTSALONGLINE|FTYPE=LINE;roads=secondary|150;150|5;5|type|light|hdg
#
#Proprietà
SETAGNBUILDINGHEIGHT|*|0,7;0,3;0,0;0,0
#
#Edifici
CREATEAGNGENBUILD|BUILDCAT=1;BUILDTYPE<3|{5ae04eb6-934c-4f63-bb48-5e7dee601212}
CREATEAGNGENBUILD|BUILDCAT=2;BUILDTYPE<3;FWIDTH<20|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=2
CREATEAGNGENBUILD|BUILDCAT=2;BUILDTYPE<3;FWIDTH>20|{311de8c7-e596-4e28-a94d-da09d0252ce4}
CREATEAGNGENBUILD|BUILDCAT=3;BUILDTYPE<3|{4eb68be7-2f1f-4cd2-920e-becfa2d8c888}
#
#Library Obj.
CREATEAGNLIBOBJ|FTYPE=POINT;type=light|{0017a263-464f-14fd-f77f-2996fed44864}|hdg|0|8;8
#
#SALVA
EXPORTAGN|FSX|E:\Gamez\MFSX\Scenari\Ossola_autogens\Results


BUT it resulted in 0 attributes applied and 0 AutoGen created.


After that not working I've been talking on an Italian forum with his admin, and also a FSDeveloper User, Anto80.

Talking, and trying to solve it, has been useful somehow, since we sorted out how to make it partially work.

So we ended up with this code (Thanks to Anto80, again, you gotta be proud of your users dehee!):

Code:
# Ossola_Autogen
IMPORTOGR|buildings.shp|*|*|NOREPROJ

SPLITGRID|AGN

#ATTRIBUTI
# 1- Rettangolari
# 2- Quasi rettangolari
# 3- Forme Regolari
# 4- Convessi
# 5- Concavi
ADDATTRIBUTE|FTYPE=POLYGON;FROMFILE=buildings.shp;FNUMVERT=4;FNUMPERPANG=4|BUILDTYPE|1
ADDATTRIBUTE|BUILDTYPE!1;FROMFILE=buildings.shp;FTYPE=POLYGON;FAREARAT=0.70|BUILDTYPE|2
ADDATTRIBUTE|BUILDTYPE!1;BUILDTYPE!2;FROMFILE=buildings.shp;FTYPE=POLYGON;FNUMPERPANG>3;FNUMNOTPAR<2;FNUMVERT<10|BUILDTYPE|3
ADDATTRIBUTE|BUILDTYPE!1;BUILDTYPE!2;BUILDTYPE!3;FROMFILE=buildings.shp;FTYPE=POLYGON;FCONVEX=1|BUILDTYPE|4
ADDATTRIBUTE|BUILDTYPE!1;BUILDTYPE!2;BUILDTYPE!3;BUILDTYPE!4;FTYPE=POLYGON;FROMFILE=buildings.shp|BUILDTYPE|5
#
#Aggiungi attributi in base alla tipologia di edificio
# 1- Rurale
# 2- Residenziale
# 3- Industriale

ADDATTRIBUTE|FROMFILE=buildings.shp;FTYPE=POLYGON;buildings=*|BUILDCAT|1
#ADDATTRIBUTEIFINSIDE|FROMFILE=buildings.shp;FTYPE=POLYGON;buildings=*|FTYPE=POLYGON;landuse=residential|BUILDCAT|2
#ADDATTRIBUTEIFINSIDE|FROMFILE=buildings.shp;FTYPE=POLYGON;buildings=*|FTYPE=POLYGON;landuse=industrial|BUILDCAT|3
#
#Crea nuove caratteristiche
#REPLACEPOLYGONBYBUILDINGRECTANGLES|BUILDTYPE=3
#
#PLACEPOINTSALONGLINE|FTYPE=LINE;roads=secondary|150;150|5;5|type|light|hdg
#
#Proprietà
SETAGNBUILDINGHEIGHT|*|0.7;0.3;0.0;0.0
#
#Edifici

CREATEAGNGENBUILD|FROMFILE=buildings.shp;FWIDTH<20|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=2
CREATEAGNGENBUILD|FROMFILE=buildings.shp;FWIDTH>20|{311de8c7-e596-4e28-a94d-da09d0252ce4}

#

#
#SALVA
EXPORTAGN|FSX|D:\aa\domodossola\texture


BUT as you can see, giving attributes now work, but it doesn't take them in consideration when creating the autogen.

And also, creating categories has made the script totally not working, so we're kinda both in a stall situation.
What I am asking now is, can you give me a working code and maybe an explanation of what was wrong with the previously mentioned script? (knowing the result without knowing where the mistakes were has no use if you want to learn something XD)

Best regards dude, and go on this way, you made "World" (and it ain't a way to say :p) easier, to be created eheheheh!

Much respect, from Italy ;)
 
Ehehehe no prob dude, that's still nice that someone made me notice 'bout his vacations :)
Hope he's getting some fun out there teheeee :)
By the way, anyone who knows anything 'bout this issue could answer :D
That wasn't a person-aimed thread ;)
 
Arno is very connected with his community
allot has changed since the tutorial initialy created

the concept hasn't;
some command have been retired; and new ones introduced instead
you should read the new manual that now arrives in the root of scenProc installation dir
you will find most of the new command documented and explained
its all still very logic; also brows the forum the last two pages you will find most of the changes announced

once you get caught up; im sure you will be able to sort out your script
 
Thanks for your suggestions!
Really appreciate your help :) Gotta give it a try, just wondering how hard getting up-to-date from a "first release tutorial" to all the improvement made 'til now will be ahahahaah
Thanks again!
 
Btw, I've just tried updating ScenProc, but it seems like the link doesn't work for me :D
Could you please direct me to the lastest scenProc folder or download link so I can get up-to-date?
Thanks again

Chris
 
You can download here, in Scenproc section, the second Thread, "Download ScenProc", at least worked for me.
You are right when you say it's difficult to be up to date, Arno should make new tutorials every week.
 
Ahahaha that sounds excessive to me :)
It would be fine to update tutorials once every 2 months, and application manuals on every release, but consider this...
From what I know, and I dunno if I am right or wrong, Arno is keeping alive ScenProc by himself (don't blame me if I said something wrong xD) so that's kinda difficult to do all the things alone :)

By the way, THANKSSSSS! :)
 
of course, it's incredible the work with Scenproc and modelcovertex and in this website itself, helping to design scenries. Anyway you can track a Little the new updates in the site "scenerydesign.org, I think.
 
I actually don't think this kind of "hidden pubblicity" is nicely awarded but thanks for the suggestion and I'll take a look at that website you mentioned :)
Kinda glad to find this nice people in here :)

Thanks! :)
 
Hi,

Back from my vacation now.

Did you solve your problem?

I think the first script didn't work because it was supposed for OSM files, not SHP files. These have often different attributes. So you need to check the attributes in your data and align the script to that.

I'm working on updating the manual and then keeping it up to date. That should contain working examples always. But I have to balance my time between making the manual and making new features (the last is usually more fun :))
 
Back
Top