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

Missing .bgl file

Messages
17
Country
us-california
Please bear with me as I am a complete noob. I wanted to learn how to add scenery to MSFS2020 so I practiced using the 'mycompany-simple-scenery' file and the step by step guides I found here. In short, I imported the little cube, placed it, exported it to FS and dropped it into the community folder and it shows up perfectly near the runway I put it. All well and good. I do this internally and not by the seperate package tool.

Next I imported a small ready made house from Blender (another learning curve) and got it to show up in FS where I scaled it, placed it near another runway, and dropped that in the community folder but it fails to show up.

When I examine the files and file structure of the 'simple' house and the 'blender' house the file structure looks the same but in the scenery folder where I would expect to see 'modelib.bgl' and 'objects.bgl' only the modelib is there. The 'objects.bgl' is missing.

Where does that missing file get made? I've been struggling with this for days. I have the latest updates to everything.

Richard
 
Still can't figure this out. The 'objects.bgl' file isn't getting created in Flight Simulator during the 'create package' creation. Anyone????
 
The missing file is from the BGL asset group that you already created in the Project Editor for the placement of the cube.

It's interesting that the cube showed up fine after compile, but the house doesn't. Nothing but placement information should have been stored in that file. In this case, it may be better to use the external SDK compiler, as it displays errors pertaining to your package build only, making it a bit easier to read than the in-game console. I would start there and post any errors that may pop up. If there are none, if you want you can post a download link for the package and someone else or myself could get a little more hands on.

A little side note: the SDK compiler is just a launcher, all packages are built by the simulator, the SDK version just launches a temporary instance of MSFS to build your package. So, there is no difference in how compiles are handled between the two. It just makes it so that you don't always have to fire up the sim, build a package, and restart just to test something.
 
Thanks for the reply. This is the house (kind of messed up right now) that I can place in FS but won't create the 'objects.bgl' when I build the package. All other files are there but that one. I also noticed an error but don't understand why.
 

Attachments

  • Screenshot 2022-02-25 114210.png
    Screenshot 2022-02-25 114210.png
    522.2 KB · Views: 254
  • Screenshot 2022-02-25 114850.png
    Screenshot 2022-02-25 114850.png
    1.2 MB · Views: 289
If you click on the errors/warnings and do the dropdown at the bottom of the log window, sometimes it will give you some more info. The log is showing 13 skipped, 0 done, and 0 failed, which seems normal. However, looking at that last warning on the list there, it almost seems like your package structure is wrong.

If you would like to send me the project files, I can debug it on my end and figure out the issue with less poking around.
 
If you click on the errors/warnings and do the dropdown at the bottom of the log window, sometimes it will give you some more info. The log is showing 13 skipped, 0 done, and 0 failed, which seems normal. However, looking at that last warning on the list there, it almost seems like your package structure is wrong.

If you would like to send me the project files, I can debug it on my end and figure out the issue with less poking around.
I need to find a way to send large files. Give me a few minutes
 
OK. Your save.xml needed to go into the "PackageSources\Scene" folder. That's why the BGL was not being built.

I also updated the package name, title (Whats shown in the content manager), and creator field. As well as renamed your object libraries folder to prevent conflicts. I just appended your username, but it can be changed to whatever. Just wanted to do that to demonstrate. Scenery and library output paths were also updated to reflect this best practice. "save.xml" should also be renamed eventually, but I did not rename that one.

I have compiled it and repackaged everything for you. I also threw in a sample project that I hope may be a little easier to understand than the Asobo sample.

https://emeraldscenerydesign.com/downloads/smallhouse_fixed.zip

Here's the log from the compile as well. It looks like you have some things you need to resolve with the model. I'm not sure what exporter you are using, but it could be that you are exporting a regular gltf and not using an exporter such as Blender2MSFS2.
All of that node scale stuff an be fixed by selecting your entire model with "A" while in Object Mode, then applying scale or all transforms with Ctrl-A in Blender.
 

Attachments

  • smallhouse_errors.PNG
    smallhouse_errors.PNG
    63.3 KB · Views: 240
OK. Your save.xml needed to go into the "PackageSources\Scene" folder. That's why the BGL was not being built.

I also updated the package name, title (Whats shown in the content manager), and creator field. As well as renamed your object libraries folder to prevent conflicts. I just appended your username, but it can be changed to whatever. Just wanted to do that to demonstrate. Scenery and library output paths were also updated to reflect this best practice. "save.xml" should also be renamed eventually, but I did not rename that one.

I have compiled it and repackaged everything for you. I also threw in a sample project that I hope may be a little easier to understand than the Asobo sample.

https://emeraldscenerydesign.com/downloads/smallhouse_fixed.zip

Here's the log from the compile as well. It looks like you have some things you need to resolve with the model. I'm not sure what exporter you are using, but it could be that you are exporting a regular gltf and not using an exporter such as Blender2MSFS2.
All of that node scale stuff an be fixed by selecting your entire model with "A" while in Object Mode, then applying scale or all transforms with Ctrl-A in Blender.
Thank You very much for your time!!!. I've been messing with this for weeks. I'll have to look at it tomorrow since I have snow to shovel out of the way and hope you don't mind if I have a few more questions later.

Much appreciated!!

Richard.
 
Back again still frustrated. Finally having some time I worked with my package again but still unable to get a scenery object to show in MSFS. Your "fixed" package works fine, and I followed your "save to the scene folder comment" and now the SDK was able to create the file that I always found missing. I now have a 'modelib.bgl' and a 'house.bgl' with no console error.

Also, working strictly from within the sim, whenever I push the 'save scenery' button in the "scenery editor" the dialog box to 'save as' doesn't come up but it does save it in the 'scene' folder. Could you take a quick look at this package and let me know what you spot?

 
Back again.... I got it working... sort of but I was ecstatic anyway. When I go to the airport in the simulator where I placed my house (housethree in the link above) and look out the cockpit window, the house is not there. On a long shot, I started rolling the plane toward the house to see if I could hit something and it popped in as I rolled through it. I shut down the sim and the computer, restarted everything and went back to the airport. Again, it wasn't there. I waited a few minutes thinking it was a loading time issue but still nothing.

So this time I took off, flew around for a few minutes, landed and still didn't see it but again, it popped in when I rolled through it. Now that it was there, I took off again, flew out of the area, came back, and could see it from the air. Once it pops in it stays in until I quit the sim and come back.

Any ideas?

Richard
 
Back
Top