Google-Earth-Decoder-optimisation-tools icon indicating copy to clipboard operation
Google-Earth-Decoder-optimisation-tools copied to clipboard

Internal compiler error - gltf files in different folders than expected

Open raoultigger opened this issue 3 years ago • 7 comments

Hi,

Trying to use GED optimizer for the first time. When running the optimize-scenary script, I get the following errors. It turns out that MSFS World Update 10 has the gltf files inside extra folders for each LOD. For example, 21604141534360534_LOD00.gltf' would be inside mymodellib**21604141534360534_LOD00**21604141534360534_LOD00.gltf

Please let me know if you need additional info.

Can not find model file: 'D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360534_LOD00.gltf' Can not find model file: 'D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360534_LOD01.gltf' Can not find model file: 'D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360534_LOD02.gltf' INTERNAL COMPILER ERROR: #C2006: Parse failed (0x80004005) INTERNAL COMPILER ERROR: #C2340: Failed to finalize MODEL_DATA! INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows: ERROR: <FSData ERROR: version = 9.0 ERROR: > ERROR: <GLTFData ERROR: sourceFile = D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360534.xml ERROR: > ERROR: INTERNAL COMPILER ERROR: #C2024: Failed to process closing element tag <GLTFData> near line 2! Can not find model file: 'D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360536_LOD00.gltf' Can not find model file: 'D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360536_LOD01.gltf' Can not find model file: 'D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360536_LOD02.gltf' INTERNAL COMPILER ERROR: #C2006: Parse failed (0x80004005) INTERNAL COMPILER ERROR: #C2340: Failed to finalize MODEL_DATA! INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows: ERROR: <FSData ERROR: version = 9.0 ERROR: > ERROR: <GLTFData ERROR: sourceFile = D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360536.xml ERROR: > ERROR: INTERNAL COMPILER ERROR: #C2024: Failed to process closing element tag <GLTFData> near line 3! INTERNAL COMPILER ERROR: #C2607: Compilation errors detected, compilation failed! INTERNAL COMPILER ERROR: #C2006: Parse failed (0x 0) PackageBuilder | Output path does not exist: D:\Projects\MSFS\Models\St-joseph-oratory\Packages\st-joseph-oratory\scenery\mycompany\st-joseph-oratory-modelLib.BGL

raoultigger avatar Oct 23 '22 21:10 raoultigger

H‌ello,

When building your own photogrammetry scenery, i suggest that you use the Initialise the MSFS scenery project script, in order to have the correct project folder structure. If not, the optimization tools, will not work properly.

Can you share to me the content of the 'D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360536_LOD00.gltf file ?

Best regards,

   

De : "raoultigger" A : "Thalixte/Google-Earth-Decoder-optimisation-tools" ,"Subscribed" Envoyé: dimanche 23 Octobre 2022 23:39 Objet : [Thalixte/Google-Earth-Decoder-optimisation-tools] Internal compiler error - gltf files in different folders than expected (Issue #3)  

 

Hi,

Trying to use GED optimizer for the first time. When running the optimize-scenary script, I get the following errors. It turns out that MSFS World Update 10 has the gltf files inside extra folders for each LOD. For example, 21604141534360534_LOD00.gltf' would be inside mymodellib21604141534360534_LOD0021604141534360534_LOD00.gltf

Please let me know if you need additional info.

Can not find model file: 'D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360534_LOD00.gltf' Can not find model file: 'D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360534_LOD01.gltf' Can not find model file: 'D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360534_LOD02.gltf' INTERNAL COMPILER ERROR: #C2006: Parse failed (0x80004005) INTERNAL COMPILER ERROR: #C2340: Failed to finalize MODEL_DATA! INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows: ERROR: ERROR: ERROR: INTERNAL COMPILER ERROR: #C2024: Failed to process closing element tag near line 2! Can not find model file: 'D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360536_LOD00.gltf' Can not find model file: 'D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360536_LOD01.gltf' Can not find model file: 'D:\Projects\MSFS\Models\St-joseph-oratory_PackageInt_tempFiles\st-joseph-oratory\mymodellib\21604141534360536_LOD02.gltf' INTERNAL COMPILER ERROR: #C2006: Parse failed (0x80004005) INTERNAL COMPILER ERROR: #C2340: Failed to finalize MODEL_DATA! INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows: ERROR: ERROR: ERROR: INTERNAL COMPILER ERROR: #C2024: Failed to process closing element tag near line 3! INTERNAL COMPILER ERROR: #C2607: Compilation errors detected, compilation failed! INTERNAL COMPILER ERROR: #C2006: Parse failed (0x 0) PackageBuilder | Output path does not exist: D:\Projects\MSFS\Models\St-joseph-oratory\Packages\st-joseph-oratory\scenery\mycompany\st-joseph-oratory-modelLib.BGL

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Thalixte avatar Oct 26 '22 13:10 Thalixte

Hi Thalixte,

I've attached some of the folders and files under st-joseph-oratory-modelLib, to show you the folder structure. Due to the size limit, I could not zip the entire folder. Please let me know if you need m st-joseph-oratory-modelLib-2160414534360536_LODnn.zip ore information.

Thanks

raoultigger avatar Oct 29 '22 13:10 raoultigger

Today, I've re-run the init_msfs_scenery_project.py and tried to run optimize_scenery.py again. I still get errors like before. I'm attaching the full log, including the content of the _PackageInt folder (produced by Microsoft.FlightSimulator_1.27.21.0_x64_8wekyb3d8bbwe\FlightSimulator.exe, that is automatically launched after running optimize_scenary.py)

Thanks again for looking into this. Best Regards

_PackageInt.zip FullLog.txt

raoultigger avatar Oct 29 '22 14:10 raoultigger

Have the exact same issue, with the latest (main) version of the tools (v2.0). The fspackagetool.exe throws errors all over the place, because it expects the .gltf files directly under the modellib directory. Instead, they are all in individual subdirectories under modellib. Project was created via the Initialise the MSFS scenery project script.

Roucou avatar May 28 '23 06:05 Roucou

‌Hello;

I don't think that the problem comes from the tool update.

When the fspackagetool loonk for the gltf files, it opens the xml file located into the PackageDefinitions folder og the MSFS project, and retrieve the relative path indicated in the AssetDir tag.

I guess in the AssetDir tag you have only <AssetDir>PackageSources</AssetDir>, and not <AssetDir>PackageSources\modelLib</AssetDir>, or <AssetDir>PackageSources\yourproject-modelLib</AssetDir>

That's why i advice to you to use my MSFS project initializattion script, as it will create the appropriate structure and xml files for your project.

You can have a look at this in my WIP new doc:

http://thalixte.github.io/Google-Earth-Decoder-Optimization-Tools/features/initialize_scenery/‌

Best regards,  

De : "Roucou" A : "Thalixte/Google-Earth-Decoder-Optimization-Tools" ,"Thalixte" ,"Comment" Envoyé: dimanche 28 Mai 2023 08:26 Objet : Re: [Thalixte/Google-Earth-Decoder-Optimization-Tools] Internal compiler error - gltf files in different folders than expected (Issue #3)  

 

Have the exact same issue, with the latest (main) version of the tools (v2.0). The fspackagetool.exe throws errors all over the place, because it expects the .gltf files directly under the modellib directory. Instead, they are all in individual subdirectories under modellib. Project was created via the Initialise the MSFS scenery project script.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Thalixte avatar Jun 26 '23 08:06 Thalixte

‌Hello;

I don't think that the problem comes from the tool update.

When the fspackagetool looks for the gltf files, it opens the xml file located into the PackageDefinitions folder of the MSFS project, and retrieve the relative path indicated in the AssetDir tag.

I guess in the AssetDir tag you have only <AssetDir>PackageSources/</AssetDir>, and not <AssetDir>PackageSources/modelLib/</AssetDir>, or <AssetDir>PackageSources/yourproject-modelLib/</AssetDir>

That's why i advice to you to use my MSFS project initializattion script, as it will create the appropriate structure and xml files for your project.

You can have a look at this in my WIP new doc:

http://thalixte.github.io/Google-Earth-Decoder-Optimization-Tools/features/initialize_scenery

Best regards,

Thalixte avatar Jun 26 '23 08:06 Thalixte