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.

In the upcoming flighting, we've changed the behaviour of the content.xml file. If your addon uses this file, please read this article!

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


question

Simbol avatar image
Simbol asked N6722C edited

Javascript Store Data location

Dear Asobo,

Where is the location of the data stored by SetStoredData, and GetStoredData? used in JavaScript modules? I am writing some code and wanted to reset the data to check something.. but can't find for the live of me where it is hahahah..

I must be blind.. or perhaps too much lack of sleep :)

Thanks in advance,
Raul

aircraft
10 |10000

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

saschl avatar image
saschl answered Simbol commented

That file cannot be edited manually to my knowledge. Seems like you need Sim Apis to delete/reset keys.


DeleteStoredData(keystring): any;

Might be your friend here.

(if you really want to know, the stuff is stored here AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\SystemAppData\wgs together with some sim settings)

1 comment
10 |10000

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

Simbol avatar image Simbol commented ·
I don't have this path...
0 Likes 0 ·
N6722C avatar image
N6722C answered N6722C edited

The whole "wgs" folder and its sub-folders and files are a good thing to backup occasionally, as I "believe" they also contain your Logbook, that for some, has a nasty tendency of getting wiped.

With a Backup, you stand some chance of Logbook recovery.


10 |10000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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