I have a user with a problem with TFT Game Events. The launcher events are set correctly and respond with this:
launcher setRequiredFeatures success {"success":true,"status":"success","supportedFeatures":["end_game","game_info","lobby_info","game_flow"]}
The game events say they are set correctly and respond with this:
game setRequiredFeatures success: undefined
but no game events actually fire during the match.
Here’s the code that sets both features:
// Set Launcher Features
function setFeatures() {
console.log('setFeatures')
overwolf.games.launchers.events.setRequiredFeatures(
10902,
g_interestedInFeatures,
function(info) {
if (info.status === "error") {
console.log("launcher setRequiredFeatures error, retrying: " + info.reason);
window.setTimeout(setFeatures, 2000);
return;
}
else {
console.log("launcher setRequiredFeatures success: " + JSON.stringify(info));
registerEvents();
}
}
);
}
// Set Game Features
function setGameFeatures() {
console.log('setGameFeatures')
overwolf.games.events.setRequiredFeatures(g_interestedInGameFeatures, function(info) {
if (info.status === "error") {
console.log("game setRequiredFeatures error, retrying: " + info.reason);
window.setTimeout(setGameFeatures, 2000);
return;
}
else if (info.status === 'success') {
console.log("game setRequiredFeatures success: " + info.reason);
}
});
}