Hi,
Is there a way to just restart the StandalonModule.wasm without restarting MSFS, in order to save time?
During testing of wasm code, I now update the wasm in the Community\my wasm\modules\ after making changes to the code. Then I restart MSFS to contine testing.
I want to just update wasm, restart the loading of the wasm to the running MSFS. Is that possible and if yes, how?
I noticed that the WASM module is reloaded by the sim, when you update the filesize value in the manifest.json file (or in the layout.json, don’t know by hearth). The reload is confirmed by the devmode console, it will mention the reload textually. Good luck, hope this helps you speed up your dev.
Best,
Maurice
PS, I just notice this is already a quite old topic, but anyways.
I haven’t developed any code for MSFS for a while now, so chances are that the above mentioned method may simply not work anymore. Sometimes, sim updates may break a non-documented work flow.
Just to clarify, in the above work flow, I first copy all the new files into the Community folder, and only afterwards update the file size in the layout.json.
Your script above is just copying the file on its own, but updating the date/time, right? Something that should even be irrelevant if you copy a new file in the Community folder (implying that you have to update the layout.json file to update the filesize as well). I even build the wasm file directly into the community folder, spares me one copy action.