plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


article

FlyingRaccoon avatar image
FlyingRaccoon posted jensbrak commented

[UPDATED][FSPACKAGETOOL] Workaround to display debug console

Here's a zip file with a patched fspackagetool.exe to allow you to get the debug messages back: fspackagetool.zip

- Replace your fspackagetool.exe by the one in the archive and copy the ConsoleDLL.dll in that same directory

MSXVC version users:

Use the fspackagetool.exe just you usually do, a console showing the debug messages should show up after a few seconds.

1634994094363.png

Steam version users:
(Note: Make sure there are no spaces in your project file path)

In order to have the console on steam version (using -forcesteam command with fspackagetool.exe):

- Download steamcmd.exe from https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip

- Extract and move steamcmd.exe into your steam install folder next to steam.exe, C:\Program Files (x86)\Steam\

- Launch Steam and connect to your account (the console will not open if Steam is not already running)

- When launching fspackagetool.exe in addition to your usual command line argument you will have to add: -usesteamcmd -steamuser <YOUR STEAM USERNAME>


1634923150634.png


- launch fspackagetool.exe with these argument and you should see steamcmd.exe executing

1634923468798.png


Sorry for the inconvenience.
Let us know if some of you are encountering problems with this workaround.

Regards,
Asobo

default
1634923150634.png (5.9 KiB)
1634923468798.png (93.2 KiB)
1634994094363.png (61.9 KiB)
fspackagetool.zip (33.5 KiB)
fspackagetool.zip (33.4 KiB)
35 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Thalixte avatar image Thalixte commented ·

Thks a lot ! Work perfectly for me (Steam version). The only problem is that Windows Defender consider your fspackagetools version as a false positive, with the Program:Win32/Uwamsom.A!ml signature. Are you a hacker, Sylvain ? ;-)

2 Likes 2 ·
FlyingRaccoon avatar image FlyingRaccoon ♦♦ commented ·

We've updated the archive once again to handle the case you mentioned with the command returning before the package build is done.

2 Likes 2 ·
FlyingRaccoon avatar image FlyingRaccoon ♦♦ commented ·

Ok it appears there's a difference with the dev environment we used to test the MS Store version workaround. We haven't figured it out yet but we are still looking for a solution.
We're very sorry and know how frustrating it can be, it is frustrating for us as well.
We'll come back to you if we find another solution.

1 Like 1 ·
FlyingRaccoon avatar image FlyingRaccoon ♦♦ commented ·

A new archive has been uploaded containing a new exe and a dll, fixing the behavior for MS Store version.
Extract it at your usual fspackagetool.exe location.
Waiting for your feedback.
Thank you for your patience.

1 Like 1 ·
NorthernSkyStudio avatar image NorthernSkyStudio FlyingRaccoon ♦♦ commented ·

Well done! Thanks!

explorer-jfi1z9u4cc.png

0 Likes 0 ·
1634998348666.png (135.3 KiB)
mamudesign avatar image mamudesign FlyingRaccoon ♦♦ commented ·

ms store version, win10, and it eventually works!

Thanks sooo much Sylvain, this is what I call a GREAT dedication and customer support!


screenshot-208.png

0 Likes 0 ·
screenshot-208.png (212.7 KiB)
FlyingRaccoon avatar image FlyingRaccoon ♦♦ commented ·

Hello.
We just added a new version of the fspackagetool with a console that closes automatically after a few seconds to prevent your program from hanging.
Regards,
Asobo.

1 Like 1 ·
Thalixte avatar image Thalixte FlyingRaccoon ♦♦ commented ·

Great ;-) It works now without having to type manually exit in the steamcmd shell.

But one issue still remains: as soon as i use the new fspackagetool version, and the steamcmd, my steam account is automatically disconnected from the main steam process. So, when i launch MSFS, i cannot access any server.

I have to reconnect my account to steam with the steam client app to be able to run MSFS again without any server connection error.

best regards,

0 Likes 0 ·
virtuali avatar image virtuali FlyingRaccoon ♦♦ commented ·

This version finally produce an output so, thank you for fixing this.

However, it's still a bit clunky to use, because it spawns a new proccess in another console, which make it difficult to use from a batch file.

My batch file is quite simple: I used to to start fspackage tool and the next line I do a "robocopy" to mirror the package folder in the Community folder for testing. Before SU6, this worked as expected, with the fspackagetool running in the same console as the batch file, that did't continue until the flightsimulator.exe process ended. Now, since the process starts in a separate console, the batch file continues without waiting for the scenery to be compiled, and the other process is waiting a key to close.

0 Likes 0 ·
ScruffyDuck avatar image ScruffyDuck FlyingRaccoon ♦♦ commented ·

Thank you - this seems to work fine in that the build runs and completes and also the console window closes without causing a hang

I do see a process exit code of 259. Not sure what that means - presumably not a bad code since everything works

0 Likes 0 ·
Show more comments

Article

Contributors

FlyingRaccoon contributed to this article