- Messages
- 34,800
- Country
-
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
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.
I must copy bglcomp.xsd, bglcomp_gltfv1_1xsx, fsdevmodelauncher.exe, fspackgettool.exe and fspackagettol_overrideExePath.txt in MicrosoftFlightSimulator?
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).
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.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.
View attachment 80772
The command window in the above image is the external batchfile.
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.
start "" "J:\SteamLibrary\steamapps\common\MicrosoftFlightSimulator\FlightSimultor.exe"
J:\SteamLibrary\steamapps\common\MicrosoftFlightSimulator\FlightSimultor.exe
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
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.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?