Some plugins break v6.0.0 beta-2 #132
Replies: 2 comments
-
This bug is caused by the plugins. Both of the reported plugins add campaigns, and they do not correctly call the function to generate mission data. This function has type This is not a result of API changes in v6 because the API existed before v5. The reason why this is only recently an issue is that the game version passed by this function has been unused before v6 introduced mastery data. Since plugin developers tend to use each other's works as templates, it is likely that this problem will occur to other plugins which add campaigns. Attached are related code snippets. Custom Mission Pack plugin: controller.hooks.contributeCampaigns.tap("CustomMissions-Campaign", (campaigns, gsmFunc, gsvFunc, gameVersion) => {
if (RuddyCampaign.StoryData.length == 0) {
contracts.forEach((mission) =>
RuddyCampaign.StoryData.push(gsmFunc(mission.Metadata.Id))
)
} TS6 plugin: controller.hooks.contributeCampaigns.tap("TheSarajevoSix-Campaign", (campaigns, gsmFunc, gsvFunc, gameVersion) => {
if (ts6Campaign.StoryData.length == 0) {
ts6Missions.forEach((mission) =>
// Should be ts6Campaign.StoryData.push(gsmFunc(mission.id, gameVersion))
ts6Campaign.StoryData.push(gsmFunc(mission.id))
)
} Peacock/components/controller.ts Lines 354 to 360 in a297973 Peacock/components/types/types.ts Lines 1266 to 1269 in a297973 |
Beta Was this translation helpful? Give feedback.
-
The Hub cannot load if some plugins are installed:
Beta Was this translation helpful? Give feedback.
All reactions