• 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 Can't make water any more

Messages
539
Country
us-missouri
When I load a shapefile into ScenProc it reads and loads several thousand shapes. On the ExportTVecBGL step I get "unable to open shapefile .\pkx_TN Waterbody_0.shp" and it writes a 1kb file with no shapes. Projection is right, I tried remaking a shapefile, in case one of the accompanying files went missing or was corrupt. Anyone have any ideas?

ImportOGR|path\to\.shp|*|*|NOREPROJ
#
CreateTVecPark|*|{5835459A-4B8B-41F2-ADC1-DEE721573B28}
#
ExportTVecBGL|path\to\Scenery|_CA Waterbody

I've never had problems with this script before, so I wonder if an update made my "TVecPark" process not work or something.
 
I guess there's the possibility of getting rid of statewide hydro shapefiles and processing TVecWaterPolys along with 1-degree tiles of elevation data (my statewide NHD water sets from USGS don't come with elevation data)
 
Did you specify a dot for the path? Not sure if that works well. Else you might want to check if no other application has the shp open.

Not sure if I understand your second post. You can sample elevation data for the hydro polygons.
 
Did you specify a dot for the path? Not sure if that works well. Else you might want to check if no other application has the shp open.

Not sure if I understand your second post. You can sample elevation data for the hydro polygons.
Hello Arno.
What do you mean by "a dot for the path?"
And I use USGS data which I filter and turn into a shapefile, which is statewide. The elevation data I have is in one-degree tiles (such as 38N89W), so I would have to have many gigabytes and several files to have elevation data raster files to accompany the water polygons... unless there is a better way I am unaware of.
 
Well, the error says that it can not open the file .\pkx_TN Waterbody_0.shp. There is a dot for the path at the start there, which path did you specify in the ExportTVec step?

Why would you not just process the elevation and vector data per 1x1 tile? You load one elevation file and the matching vector data and process that to a BGL file.
 
Well, the error says that it can not open the file .\pkx_TN Waterbody_0.shp. There is a dot for the path at the start there, which path did you specify in the ExportTVec step?

Why would you not just process the elevation and vector data per 1x1 tile? You load one elevation file and the matching vector data and process that to a BGL file.
Not sure where the dot is coming from. Here's a screenshot:
Screenshot 2022-07-15 072036.jpg


I had been compiling water one state at a time since the process takes about ten minutes total. Tennessee, for example, would require 24 tiles and is bordered by several other states whose data would also have to be added. Maybe that would yield better results, but the TVecPark method was very simple and had worked very well for me for quite a while for a couple years until recently.

Thanks for looking into it!
 
Ah, the error comes from shp2vec when trying to compile the bgl file.

Could it be the space in the name is an issue or did you use that before as well?
 
The underscore ( _ )? It has always worked previously. Tried without the underscore in ScenProc just in case.
Opened up SceneryBuilderX and I tried seeing if shp2vec.exe had trouble creating the statewide water vectors. It worked just fine in SBX.
 
I meant the space between TN and waterbody.
 
Yes, I've always had a space between the state abbreviation and waterbody. Looks like the last time I successfully made vector scenery on ScenProc was before Sept. 2021. I wonder if that somehow coincides with upgrading to P3D 5.3 SDK? BGLComp, Shp2Vec, and Resample are all pointed at the correct locations.
 
Does scenproc make the right files for shp2vec? Were you able to check that?
 
I don't know what to check for beyond analyzing the information that ScenProc generates as it works, like I posted in the image above. I am not sure what the .\pkx_TN Waterbody_0.shp is that the export step is unable to locate comes from and the only file that remains after processing is complete is a <1kb cvx_TN Waterbody.bgl file. Also I am using the latest version/update of the program.
 
That you get a small BGL file after shp2vec fails is normal, the compiler threw an error and stopped.

scenProc writes the intermediate SHP and XML files for shp2vec in the temp folder (C:\Users\{username}\AppData\Local\Temp\SceneryDesign.org\scenProc_{PID}). But the files are removed when compiling is done. Since you write quite some features you might have a little time to see if the right output is written there.
 
Scenproc does write a handful of files to the temp folder, which begin as 1kb, but for a split second all look to be appropriate sizes just before they are wiped out when it can't open the shapefile.
 
Would it be possible to send some files so that I can try to reproduce?
 
Yes, thank you. The files I am working with are too large to post here so in about five minutes they will be uploaded to
Code:
http://untothebreach.net/dump/scenery/TN Waterbody.zip
 
Hi,

It took a little testing, but it seems to be an issue in combination with the P3D v5.3 SDK. With the P3D v1 and P3D v5.2 SDK it worked fine. Only when I installed the v5.3 SDK I got the error. Let me see if I can find out what is wrong.
 
I have the impression the shp2vec in the v5.3 SDK is just broken. Even with a simple test scenery I use to test scenProc it gives the same error, and that doesn't have as many features as your file. It throws the same error there.

Maybe somebody else can try to compile some terrain scenery with this SDK (preferable not made with scenProc) to confirm if this is really the issue.
 
I noticed that P3D is having trouble with (what I think I have narrowed down to) hydro poly exclusions -- the bgl seems to be excluding everything.

I had been using v4's shp2vec since the v5 version wasn't working, so I tried updating my SDK to 5.3.17.28160. Still not able to process my shapefiles, but the v4 could. I read that one reason could be that shp2vec can't process multipart polygons so I made sure my shapefile was singlepart.

I don't think it is a problem on my end as I've never had this issue before. Could it be a problem on Lockheed Martin's end?
 
Back
Top