First game launch (WoT) and setRequiredFeatures(): failure

Issue Description:
After installation process, we launch OW(+ Flexer Recorder plugin).
Then launch the Game (World Of Tanks) immediately and do the kills.
If we open Flexer editor we don’t see any video.
In our logs we see:
setRequiredFeatures(): failure after 11 tries{
“success”: false,
“status”: “error”,
“reason”: “Provider did not set features yet.”
}
Then if we unload OW from tray and close Flexer Editor and then re-launch Flexer Editor (OW starts automatically) and try to reproduce it we got:
setRequiredFeatures(): success: {
“success”: true,
“status”: “success”,
“supportedFeatures”: [
“kill”,
“death”,
“match_info”
]
}
And game video will be appear in Flexer Editor.

First launch log:
Log\Apps\Flexer\background.html.1.log
Second launch log:
Log\Apps\Flexer\background.html.log

Steps to reproduce:

  1. Installation Flexer App (OW download automatically)
  2. Launch Flexer App and OW (+ Flexer Recorder plugin)
  3. Start a game - World Of Tanks
  4. Created events (Do the Kills)
  5. Leave a game
  6. Check Flexer Editor “Gameplay” tab. Empty video folder.
  7. Unload OW and close Flexer Editor. Re-launch Flexer Editor (OW started automatically)
  8. Launch the game World Of Tanks
  9. Created events (Do the Kills)
  10. Close the game
  11. Go to Flexer Editor and video appear.

Impact for my app: high

Do you currently have a workaround?
No

OverwolfLogs_2020-08-04_19-51-03.zip (174.0 KB)

Are you retrying (the setRequiredFeatures call?) - see: events-sample-apps/main.js at master · overwolf/events-sample-apps · GitHub

Yes, we using OWGamesEvents class from this sample (call start() function):
https://github.com/overwolf/sample-app/blob/master/ts/odk-ts/ow-games-events.ts

Ok - apparently Overwolf couldn’t detect the game on your machine (until you ran it for the first time) - this is usually when you run a portable version of the game (i.e. not from a regular installation or manually moving the folder of the game).
Then, when you run the game for the first time, Overwolf records it’s location.

But I use regular original version of game, that have been downloaded from official site (https://worldoftanks.com/)

Please contact us on slack so we can try to figure why it wasn’t identified

@enterpredator can you please add here the path of your installation?

D:\Games\Wargaming.net\World_of_Tanks_RU

@enterpredator Did you install it, conventionally? In general, on a fresh OW installation, we find all the game installation path. In some scenarios, we don’t see it. In that case, we are waiting for the first run of the game and then locating it. Also, for some games, like WoT, it is a must for the API to function and find the game location. From technical reasons.

This is why after your install OW, it started to work only if the game was relaunched. Because only then, we identify the location of the game installation.

But anyway - I suggest this workaround:
if you identify the “failed after 11 tries” error - on that case, notify the user that he has to relaunch the game. Not ideal - but working. And cover those cases.

@eransharv, ok. I’ll discuss with team about how implement workarond that you propose.
Thanks!
how many games in OW have that risk of first launch problem?

@enterpredator I think it’s WoT, DOTA, and CS: GO.
I don’t have a full confirmation for that though.
I will have to get back to you with that after a deeper check with our R&D if it’s critical.
Thanks.