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

XML2BGL Will Not Compile and Shows Error Message

Messages
951
I made a correction to a control tower in a placement file and when I tried to compile it back to bgl, I get this error message that says that it "could not find a part of the path." And the problem is that the message only remains on the screen for a split second and disappears. It doesn't give me the chance to even look at the details of the error. All I know is that it says, "Could not find a part of the path." All of the paths for the SDKs are correct and I don't understand why I'm getting this error message.

Ken.
 
Last edited:
Probably my fault. Xml2Bgl is no longer supported and I can't remember the last time I looked at it. Let me see. What sim version? what Xml2Bgl version?
 
Probably my fault. Xml2Bgl is no longer supported and I can't remember the last time I looked at it. Let me see. What sim version? what Xml2Bgl version?

Hi Jon,

The sim version, which is FSX, is 10.0.61637.0 and the SDK is the same. The version for the XML2BGL is version 1.0 modified on March 20, 2011. And I'm running Windows 10 Pro.

Ken.
 
Is this what you are using? (The GUI version)

1622975697923.png
 
Is this what you are using? (The GUI version)

View attachment 73935


I'm not sure if it's the GUI. When using the BGL2XML there are 2 applications, a BGL2XML and a BGL2XML_GUI. In the XML2BGL, there's only one application which says XML2BGL. It does not say XML2BGL_GUI. But when the XML 2 BGL menu box comes up, that's the way it looks, just like the one you posted.

Ken.
 
Hey Jon,

Here's the xml I used to re-compile to bgl, and you can check and see if it does the same thing on yours. Guenther, you can test it out also, and anyone who wants to test it. The coordinates on the very top line is what I've changed. I'm going to test the original xml and see if it does the same thing.

Ken.
 

Attachments

  • Birmingham_Ez.bgl.zip
    1.8 KB · Views: 136
I dragged your xml file over BGLComp.exe and it compiled into a BGL file just fine.
 

Attachments

  • Birmingham_Ez.bgl.BGL
    3.6 KB · Views: 132
Hey Jon,

Just wanted to let you know that I found the problem, and it was not your fault. I forgot about the fact that I've bought a custom built computer with Windows 10 Pro installed. In the error message, it stated that it could not find part of the path. Well, the paths for the SDKs for both FSX and P3D were correct, and I knew they were. The path problem was where it says "Compile To. The path was set to what it was on my old previous computer. Now, it will compile. But, there's another problem. When I place the modified bgl in the scenery folder and load the simulator, all the scenery objects, such as the terminal, the control tower, and other buildings are gone and no longer show up in the sim. Here are 2 images:


The image below shows the original file and you can see that the terminal, the control tower, and other buildings are there.

KBHM_1.jpg





The image below shows what it looks like after changing, only the location of the control tower. It was off by about 100 feet and the terminal and the other buildings are gone, and I've never changed them. By the way Tom, I also placed your bgl in the scenery folder and it gives the same exact problem.


KBHM_2.jpg



The coordinates I've entered was correct and got it from google earth pro, using the older image. It's strange to me why they're not showing up now simply because I've changed the location of the control tower. Or it may be something else.
Would the format of the xml have anything to do with this?

Ken.
 
Does anyone know why my scenery objects is not showing up in the sim after modifying just the location of the control tower? This does not make any sense as to why my scenery has disappeared. One should be able to change the xml without some other issue, and as far as I know, I've done everything correctly, and it compiled successfully. See my 2 images above.

Ken.
 
How large is the original BGL file before this conversion process? If it included the MDL files and now it doesn't, then they won't appear.
 
How large is the original BGL file before this conversion process? If it included the MDL files and now it doesn't, then they won't appear.

Hi Tom,

The original BGL file was 4 KB. But after the changes have been made, the BGL is 5 KB. It does have the terminal/tower model but it doesn't show any data on that at the bottom of both the original and my xml where it says </FSData>. See the xml below:

Ken.
 

Attachments

  • Birmingham_Ez.bgl.zip
    1.8 KB · Views: 130
Hey Tom,

I also need to mention that there is already a BGL file with the name Birmingham1962_Lib.BGL that has the xml model information. The file I'm using I believe is the placement file and they're both separate files. It seems to me that since there's already a xml file with the model information and the placement file being separate from the other, changing the location of the tower should not make the entire model disappear. By the way, in the model bgl file, the terminal and the tower are 2 separate scenery objects.

Ken.
 
Last edited:
Hi,

Open the library BGL file in ModelConverterX and make sure the GUID of the models is the same as the GUID in your xml file.
 
Hi,

Open the library BGL file in ModelConverterX and make sure the GUID of the models is the same as the GUID in your xml file.

I don't think this is the problem. The model Guids in MCX are different from the xml and I've tried to match them. I've tried it both ways. I've matched the Guid MDL with the XML and that did not work. So I've matched the XML with the Guid MDL and that still did not work. The reason I say I don't think this is the problem is because, even before I made the changes to the coordinates, the Guid MDL and the XML were different in the original files, and yet it still shows in the simulator. So, before I made the changes, the guid mdl and the xml were different, yet everything showed up in the sim. If this is the problem, I must be doing something wrong. But since the guid mdl and the guid xml were different from the beginning and everything was working fine, I just don't think this is the issue.

Ken.
 
Back
Top