Packages not building in SDK

Hi all!
Today i was editing an airport. Is not the first time, but i have some problem building the packages… The scenery save, and i can reopen it all the time as i edit, but ones i click on build pakage i have this errors:

Any deal will be apprentissage…
Thanks in advance,
Filippo and @Frafire05

1 Like

Your first error is saying that there is something wrong with the output path you have in your Artproj. In the Project Editor window, click on “Aosta BGL” and then take a look at what is shown in the Inspector window. The output path should be set to "Scenery" without the quotes. Fix this, recompile and report back on your results.

Something odd. When I posted this, the backslash after “Scenery” doesn’t show. Just type it in like the error message tells you.

1 Like

I was going to add a new topic so as not to hijack flippo’s post. But, as it seems to be pretty identical issue, maybe for the time being, they can live together unless a mod thinks they should be separate.

I have created several bush airstrips with no great issues. BUT, after the recent UK update and the ver 10 SDK, I can’t get the SDK to play nice at all.

My file structure is very basic(maybe too basic?)

Documents>myfsprojects>[project name]
PackageSources>data

When I complete the ’ create the new project box’, I am asked two things.
… Project Folder-
… Project name-

But the third line I often see in tutorials, Output dir (?) is always missing from my ‘Create New Project’ box?

The ‘Add Package box’, I name it the project name, and change Type to a BGL.

In the Inspector window I name the package 'airport-[ICAO]-name.
for the thumbnail, I go to my MSFS SDK\Samples\SimpleAirport\PackageDefinitions\mycompany-
airport\ContentInfo”) double click to place the tiny pic.

Where is says scene, I click the three dots, and point it at my PackageSources>data.

I always choose ‘Airport’ as my first action. I notice though, i never see a blue ring around the area when I have added the airport!
I next add the runway, and its configuration. I save the project and scenery, making sure the scenery file is pointing at my data folder.

When I do the first build, I always get the same errors(see attached)

It looks like it all starts to crumble when the SDK says |

output path does not exist etc ?? It seems to want to go to the thumbnail??

I look at my previous working builds, xml files and they look the same, but maybe not?

Anyway, to some one wiser than I in SDK matters, what is it asking me to do, as I need to do something, as several small fields await.

Further with my trying to remedy my SDK errors, I created the following comments of a test I did using the SDK provided sample airport tutorial, within the SDK docs. Because I received 6 errors on the Console, I did not proceed further until these are solved.

I am using the following information for my test of the SDK structure.
https://docs.flightsimulator dot com/html/Samples_And_Tutorials/SimpleAirport.htm

The instructions are not complete in many areas, and you have to “guess” in between steps.
I have flagged the SDK instructions given with " #".

#In order to load and build the project in Microsoft Flight Simulator, you must have previously enabled Developer Mode (see here for more information). Once enabled, simply follow these steps:

Load MSFS, select MYNN as the airport and arrive there. (The airport used in the example)
I have previously enabled Developer Mode. I am using v 10. DONE
Create in my Documents folder, a folder called, SDK SIMPLE AIRPORT SAMPLE.
Copy from the SDK folder the’ SimpleAirport’ folder into the above SDK SIMPLE AIRPORT SAMPLE documents folder. It now has three items inside this folder: [note. The three Items denoted in my text with a *]
*PackageDefinitions>
-----mycompany-airport
---------Contentinfo
-------------PLACEHOLDER
---------Business.json
-----mycompany-airport.xml

*PackageSources>
-----data
--------mynn.xml
-----materials
--------Textures
-----------Aspalt01_Albedo.png
-----------Aspalt01_Albedo.png.FLAGS
-----------Asphalt01_COMP.png
-----------Asphalt01_COMP.png.FLAGS
-------myasphalt.material[MATERIAL File]

*AirportProject.xml

[Note] I have not renamed any file, and will leave as per sample project.

# Use the Open project… command from the [DevMode] menu. [I have to navigate to my Documents>SDK SIMPLE AIRPORT SAMPLE>simpleairport>AirportProject.xml]

# Select the file AirportProject.xml from the SimpleAirport sample project, and click open.
[The Project Editor and Inspector windows opened].

#The Project Editor should open automatically and show you the project mycompany-airport (if the Project Editor doesn’t open, then you can open it from the Developer Mode Tools menu)
Click on the Project Editor window, mycompany-airport this will open the structure as follows:
mycompany-airport
mymaterials MaterialLib
myairport BGL

# Clicking on the project in the Project Editor will open the Inspector Window, and here you need to click the Build Package button (if the Inspector Window does not open automatically, go to the View menu in the Project Editor and open it from there).

*** #This will build a package from the files specified in your project. This package will be named mycompany-airport and will be output in the Packages folder created in the same directory as AirportProject.xml:**

*** #To get to the airport location, you need to first click on the Edit button beside the myairport (BGL) Asset Group, in the Inspector window:**

*** #The inspector window will then change to show the details of the BGL file from the package, and there will be a button marked Load In Editor:**

*# Clicking this will load the airport in the Scenery Editor and take you to it: I never got this far, due to the errors in the console after build.

Before I clicked the Build Package button, I used the eraser to remove all old entries from the console to make sure no “history” items appeared.

When I clicked the Build Package, straight away, errors appeared (see attached pics) indicating there are issues either with the file format and or more detailed instructions are required as to more config is required.

I did notice that when I clicked myairport (BGL) Edit button, the AssetDir was not correctly pointing at the data folder. I realigned it and cleared the console, then I first saved the project. This immediately presented the Console, with 2 save warnings. I really have no idea what I am supposed to do about the output Dir. (maybe why I am having the issues??) The AssetDir is pretty straight forward.

I then again re-cleared the console, and re-ran the Build Package. I get 6 errors, in this order. Maybe one error causes another?

AssetBuilder Failed to copy file from…error
AssetBuilder Access is denied error?
PackageBuilder Output path does not exist… error
[Manifest Validation] mycompany-airport error
Layout Validation mycompany-airport error
Package Validation failed for Packages error

I realise a pipedream, but it would be great if one of the MS Devs actually used their own publically released SDK and built an entire sample airport/scenery, start to finish with no errors the way the SDK intended. Or, even better on Youtube. Looking on the web, there are several methods of file structure, all appearing to work !!

Pics taken during the process:





I have earlier versions of the SDK. When I removed and reinstalled previous versions, the actual SDK did not change, only the docs appeared earlier. Looks like a one way street, as MSFS updates, so does the SDK under the hood so to speak. I eventually reinstalled ver 10 of the SDK

Geoff

Have you tried setting those thumbnails it mentions so the image is a PNG file and not JPG?

Thanks Dorrager, I will have a go at changing the thumbnail from a jpg to a png. Not sure how, as at the moment, I click on the offered thumbnail, and it appears in a format of its choosing.

Something must have happened to my project build process. Before the latest uk updates to msfs and the sdk to v 10. the v 8 SDK worked great. Now it does not. I do not hear any screams from others, so I must presume it a localised issue with my computer and I need to either intercede with an .xml file structure or ?? I am always totally confused about the “output” config.

I have been looking at the fspackagetool, though, have no idea what it does or how to use it for airport creation. It seems from my research, if it is airport scenery it isn’t very helpful , but if it is adding objects to the objects library it is very helpful. As I do not have any objects I have in a library, then I guess it is back to using the SDK

My bad i didn’t realise it was the sample thumbnail can make your own think it needs to be 412 x 170 when you save the image you just set the file type to png.

I think the output directory is wrong Think Output should be scenery\ for all asset types apart from Airport services.
This is where it will create inside the packages folder, the scenery folder which also contains the manifest and layout.json files, a texture file if you add textures, content info and airport services file if you have one. Imagine materials one if you have that.
Inside the scenery folder it will show all of your BGL files. These are the ones set up by the output directory called scenery\

hope this helps.

Dorrager, thanks for the reply. I got the sample thumbnail sorted, but still the same issue.

My output directory, I always do the same, scenery\ I think my structure is ok, it is just that the new sdk version is pretty tight on how it handles words, and is now demanding a format. If you wander from it requirement, all over..
I am in the process of greatly simplifying a project, with very simple naming.

I have also put a ticket into zendesk to ask them what the format is.

Got the same problem over here, the files have been the same for months now and always was able to export. But since the last update I have this problem.

Unfortunately, the reply to my ticket was not too helpful. basically, they said ask my questions on the forums and read the official SDK docs. I had been hoping for a more hands on reply.

I had the same problem with 0.12.0 and rolled back to 0.9; its now working as before (save for the "not casting shadows from point lights and the inability to use the polygon which is the only way to remove trees). I’m building U.S. Lighthouses with fairly good results. (Virginia's Assateague Lighthouse at Microsoft Flight Simulator Nexus - Mods and community)

Hi @Dagonhart and welcome to the forum! Thanks also for the answer. I check this out soon. Many thanks!

Sincerely
Filippo