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

MSFS Package Tool and Steam Version

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,800
Country
unitedkingdom
I must copy bglcomp.xsd, bglcomp_gltfv1_1xsx, fsdevmodelauncher.exe, fspackgettool.exe and fspackagettol_overrideExePath.txt in MicrosoftFlightSimulator?

Don't move anything out of the SDK
 
Messages
9
Country
germany
I am able to compile with a batch file (CompilePackage.bat) and double-click it to run, rather than as a powerscript PS1 file.

Code:
SET __COMPAT_LAYER = WINXP
SETLOCAL
SET PATH=%PATH%;D:\Programs\Steam

Steam.exe -noverifyfiles -silent -applaunch 1250410 -I ";" BuildAssetPackages "C:\Users\dickl\Desktop\SimpleAerial\SimpleAerialProject.xml" "C:\Users\dickl\Desktop\SimpleAerial" "C:\Users\dickl\Desktop\SimpleAerial"

ENDLOCAL

SETLOCAL and ENDLOCAL keep the Path addition as temporary, ending when the batch ends. SET __COMPAT_LAYER = WINXP should run the remaining batch commands as WINXP compatibility and avoiding the UAC (perhaps).

This one works like a charm! Thanks to @rhumbaflappy and @Szpike !!
Is there a way to make it also work when the game is open? Like for example the built-in "Build All" function which works within the Dev-Mode. Unfortunately when you build packages within the game they are sometimes buggy and can destroy hours of work. I think everybody knows the problem with the "unknown" objects or disappearing LODs. That's the reason!

So it would be fantastic if it would be possible to work on the project in Dev-Mode in the game and be albe to build the package with this Batch file. Therafter just reload the project in the game and continue with the work. Unfortunately at the time you have to close the sim each time you want to build the package with this Batch file. Or am I missing something???

Just for Info, Steam Version.

Would be fantastic if somebody could give me a hint!
Thank you very much guys!
 

rhumbaflappy

Administrator
Staff member
Resource contributor
Messages
5,725
Country
us-wisconsin
So it would be fantastic if it would be possible to work on the project in Dev-Mode in the game and be albe to build the package with this Batch file. Therafter just reload the project in the game and continue with the work. Unfortunately at the time you have to close the sim each time you want to build the package with this Batch file. Or am I missing something???

Just for Info, Steam Version.

Would be fantastic if somebody could give me a hint!
Thank you very much guys!
I made a C# program to build a batchfile... just drag'n'drop the project XML onto the program icon. You then just double-click the created bat file to compile the project.
https://www.fsdeveloper.com/forum/t...building-package-since-su6.453865/post-892759

It does compile while the sim is in DevMode with the same project, and you should be able to compile multiple projects at the same time using batchfiles.
Untitled.png

The command window in the above image is the external batchfile.
 
Messages
9
Country
germany
I made a C# program to build a batchfile... just drag'n'drop the project XML onto the program icon. You then just double-click the created bat file to compile the project.
https://www.fsdeveloper.com/forum/t...building-package-since-su6.453865/post-892759

It does compile while the sim is in DevMode with the same project, and you should be able to compile multiple projects at the same time using batchfiles.
View attachment 80772
The command window in the above image is the external batchfile.


Oh wow! Thank you for the effort! Unfortunately it does not work on my side as it is supposed to (I think). And I think I might know the reason.
On my PC, MSFS is not on the same drive like Steam, it is in a SteamLibrary on another drive. Starting "CreateCompileBatch.exe" creates a batchfile with all correct directory entries except the one for Steam. So I typed the correct directory in the genereated batch file (where the "FlightSimulator.exe" is), all other project directories are correct.
Then starting the generated batch file seems to work correct at the beginning but after it delets "_PackageInt" and "Packages" nothing happens for about 15 - 20 seconds or so and the code ends (press any key... ).

Could it be that somehow the different MSFS directory interferes with the building code?
Would be very happy if you have an idea of what's causing that issue.

BTW, do you have a "Donation" button or something like that? I think community members who take so much effort should be honored with a couple of bucks at least!

1646936018643.png
 

rhumbaflappy

Administrator
Staff member
Resource contributor
Messages
5,725
Country
us-wisconsin
Just as a test, use:

J:\SteamLibrary\steamapps\common\MicrosoftFlightSimulator\FlightSimultor.exe

either as a bat file or from the command terminal. It should start flight simulator for you. If it doesn't, then that is not the path to MSFS.
 
Messages
9
Country
germany
Just as a test, use:

J:\SteamLibrary\steamapps\common\MicrosoftFlightSimulator\FlightSimultor.exe

either as a bat file or from the command terminal. It should start flight simulator for you. If it doesn't, then that is not the path to MSFS.

Ok, that's an interesting test. I checked the directory again and as you see on the screenshot it is the correct folder with the "FlightSimulator.exe" in it. When I doubleclick it in windows explorer it starts just fine the game.


1646940031698.png


BUT when I put this

Code:
start "" "J:\SteamLibrary\steamapps\common\MicrosoftFlightSimulator\FlightSimultor.exe"

in my "test.bat" and doubleklick it (no matter if with or without damin rights) it doesn't start?! Am I totaly crazy now or what did I miss here??? I'm confused :rolleyes:
 

rhumbaflappy

Administrator
Staff member
Resource contributor
Messages
5,725
Country
us-wisconsin
Just try:
Code:
J:\SteamLibrary\steamapps\common\MicrosoftFlightSimulator\FlightSimultor.exe
 
Messages
9
Country
germany
Thanks I tried several ways, with quotation marks and without, didn't work. Then eventually it started MSFS and I don't even know what I did differently? Didn't make sense at all to me.

This is how the code looks like at the moment.
Code:
rmdir "F:\3D-Design\MSFS20\EDEP\MSFS\edep-heppenheim\_PackageInt" /q /s
rmdir "F:\3D-Design\MSFS20\EDEP\MSFS\edep-heppenheim\Packages" /q /s

J:\SteamLibrary\steamapps\common\MicrosoftFlightSimulator\FlightSimulator.exe "-I" ; BuildAssetPackages "F:\3D-Design\MSFS20\EDEP\MSFS\edep-heppenheim\edep-heppenheim.xml" "F:\3D-Design\MSFS20\EDEP\MSFS\edep-heppenheim" "F:\3D-Design\MSFS20\EDEP\MSFS\edep-heppenheim"

pause

But, it still doesn't compile / build the package when the SIM is open. It only works, when it's closed. Was there maybe an update or something, that changed the behaviour?
 

Rotornut44

Resource contributor
Messages
593
Country
us-florida
But, it still doesn't compile / build the package when the SIM is open. It only works, when it's closed. Was there maybe an update or something, that changed the behaviour?
As far as I can remember, it's never built a package for me if the sim was already open when using the external package tool. Although, I see above that it looks like it has in the past for others.
 
Messages
7,434
Country
us-illinois
Hello:

I casually scanned this thread late tonight, and noticed this spelling used above:

FlightSimultor.exe


Was this intended ? :scratchch

Just curious; sorry if I missed the fact that it may have been purposely spelled that way.

GaryGB
 
Top