Version: 1.4.20.0
Frequency: Consistently
Severity: Blocker - prevents from working on the project, prevents from releasing the product
Context:
In a toolbar panel, I want to load a list of installed packages. This is used to check for installed mission packs.
Bug description:
In the 2020 version, I can use the JS_LISTENER_CONTENTMANAGER to retrieve a list of installed packages. Specifically, I rely on the class and functions defined in /JS/Services/ContentManager.js.
In 2020, the method .onSetDownloadablePackages(callback) successfully triggers the callback with the list of packages.
In the 2024 version, the listener no longer triggers the callback, and no errors are thrown or logged.
Is there an updated method or alternative approach to retrieve the list of installed or streamed packages—either via JS or WASM?
Repro steps:
Add the following code to a toolbar panel:
const contentManagerlistener = RegisterContentManagerListener();
contentManagerlistener.onSetDownloadablePackages( (_packages) => {
console.log("Package list:", _packages);
});
And include the content manager dependency in the HTML:
<script type="text/javascript" src="/JS/Services/ContentManager.js"></script>
1 Like
Hello @Jayshrike
This listener is obsolete after all the changes made to the marketplace on 2024.
Whether we want to reinstate some of its features or propose an alternative will be reviewed.
If anyone else was relying on this listener, please let us know what you were using so we can make sure this is covered.
Regards,
Sylvain
1 Like
Yeah, it would be great to have a replacement, so we can see which packages are available (streamed or downloaded).
It could also be fine if it was part of the base.bundle.js file instead of a listener. Here is what I tried already to get the library list:
import('/Global/pkg/base.bundle.js').then(async module => {
const libraryContainerManipulator = new module.LibraryContainerManipulator();
await libraryContainerManipulator.onActivation();
const libraryArray = libraryContainerManipulator.libraryArray;
console.info(libraryArray);
});
But that whole class is so intertwined with the UI elements that I couldn’t get it to work.
We would greatly benefit from this as well, thank you for considering an alternative!
1 Like
@FlyingRaccoon Is it planned to offer a replacement way to get a list of the available packages in MSFS 2024?
1 Like
Yes, although I don’t have any ETA at the moment.
Regards,
Sylvain
3 Likes
Should we hold our breath or find alternatives?
Thanks!
Hello @runshotgun
Given our current bandwidth, I don’t expect a short term solution for this.
Definitely not SU3, and unlikely in SU4.
Regards,
Sylvain
1 Like
Thank you for clarifying!