New World real-time location

Hi! I’m playing with overwolf to implement my own map plugin for New World and I have some questions.
I started from the official sample app provided here:

Using the event listener i’m not able to get character position, also tried to add “location” to the requested features. I guess the feature is not yet supported…?
The only way i have been able to get character location is via overwolf.games.events.getInfo(), but here I noticed that coordinates returned by the API are not really real-time, in fact, they are up to 1 second late with respect to real coordinates. Am I doing something wrong? Is there a way to get more precise location info?
Thanks a lot!

Hey @ark3us,

When you request for the game_info, you are getting all the containing game info’s and events like:
location, map, player_name, world_name.

All the events are returned correctly, as you can see in the sample app dev console.
So I guess it’s related to the code change you did in your app. Have you read this guide on how to use the game events?

Thanks.

Hi, thanks for your reply!
So i loaded to new world sample app as unpacked extension (just had to change name to Sample App in the manifest to allow it, no further changes), but these are the only info i can see in the console log:

2021-12-23 19:31:12,399 (INFO) ================== new session ==================
2021-12-23 19:31:12,399 (INFO) </main.js> (:87) - New World running
2021-12-23 19:31:12,400 (INFO) </main.js> (:124) - getRunningGameInfo: {"isInFocus":false,"isRunning":true,"allowsVideoCapture":true,"title":"New World","displayName":"","shortTitle":"","id":218161,"classId":21816,"width":1536,"height":864,"logicalWidth":1920,"logicalHeight":1080,"renderers":["D3D11"],"detectedRenderer":"D3D11","executionPath":"C:/Program Files (x86)/Steam/steamapps/common/New World/Bin64/NewWorld.exe","sessionId":"ba8aa666b4e247278cf64e7bcda04633","commandLine":"\"\"","type":0,"typeAsString":"Game","overlayInputHookError":false,"windowHandle":{"value":329334},"monitorHandle":{"value":65537},"processId":13688,"oopOverlay":false,"terminationUnixEpochTime":null,"overlayInfo":{"oopOverlay":false,"coexistingApps":[],"inputFailure":false,"hadInGameRender":true,"isCursorVisible":true,"exclusiveModeDisabled":false,"isFullScreenOptimizationDisabled":false},"success":true}
2021-12-23 19:31:13,416 (INFO) </main.js> (:103) - Set required features:
2021-12-23 19:31:13,417 (INFO) </main.js> (:104) - {"success":true,"status":"success","supportedFeatures":["gep_internal","game_info"]}
2021-12-23 19:31:26,576 (INFO) </main.js> (:116) - onGameInfoUpdated: {"gameInfo":{"isInFocus":true,"isRunning":true,"allowsVideoCapture":true,"title":"New World","displayName":"","shortTitle":"","id":218161,"classId":21816,"width":1536,"height":864,"logicalWidth":1920,"logicalHeight":1080,"renderers":["D3D11"],"detectedRenderer":"D3D11","executionPath":"C:/Program Files (x86)/Steam/steamapps/common/New World/Bin64/NewWorld.exe","sessionId":"ba8aa666b4e247278cf64e7bcda04633","commandLine":"\"\"","type":0,"typeAsString":"Game","overlayInputHookError":false,"windowHandle":{"value":329334},"monitorHandle":{"value":65537},"processId":13688,"oopOverlay":false,"terminationUnixEpochTime":null,"overlayInfo":{"oopOverlay":false,"coexistingApps":[],"inputFailure":false,"hadInGameRender":true,"isCursorVisible":true,"exclusiveModeDisabled":false,"isFullScreenOptimizationDisabled":false}},"resolutionChanged":true,"focusChanged":false,"runningChanged":false,"gameChanged":false,"gameOverlayChanged":false,"reason":["gameResolutionChanged"]}
...
2021-12-23 19:31:29,136 (INFO) </main.js> (:116) - onGameInfoUpdated: {"gameInfo":{"isInFocus":false,"isRunning":true,"allowsVideoCapture":true,"title":"New World","displayName":"","shortTitle":"","id":218161,"classId":21816,"width":1536,"height":864,"logicalWidth":1920,"logicalHeight":1080,"renderers":["D3D11"],"detectedRenderer":"D3D11","executionPath":"C:/Program Files (x86)/Steam/steamapps/common/New World/Bin64/NewWorld.exe","sessionId":"ba8aa666b4e247278cf64e7bcda04633","commandLine":"\"\"","type":0,"typeAsString":"Game","overlayInputHookError":false,"windowHandle":{"value":329334},"monitorHandle":{"value":65537},"processId":13688,"oopOverlay":false,"terminationUnixEpochTime":null,"overlayInfo":{"oopOverlay":false,"coexistingApps":[],"inputFailure":false,"hadInGameRender":true,"isCursorVisible":true,"exclusiveModeDisabled":false,"isFullScreenOptimizationDisabled":false}},"resolutionChanged":false,"focusChanged":true,"runningChanged":false,"gameChanged":false,"gameOverlayChanged":false,"reason":["gameFocusChanged"]}

So as you can see there is no “location” data in the “gameInfo” structure… What am i missing? :smiley:

Thanks!

@ark3us,

  1. Download the new world sample app.
  2. Make sure that your dev tools are enabled. (run the attached zipped reg key).
  3. Open the sample app and launch the game.
  4. Open the dev tools of the sample app background window (explained here)

dev.zip (266 Bytes)

You should see all the events for this game.

Thanks

Hi and thank you again for your reply.
I reinstalled the Overwolf client and followed your instructions from scratch, but unfortunately I get the same result:

2021-12-27 08:17:48,443 (INFO) ================== new session ==================
2021-12-27 08:17:48,443 (INFO) </main.js> (:87) - New World running
2021-12-27 08:17:48,444 (INFO) </main.js> (:124) - getRunningGameInfo: {"isInFocus":true,"isRunning":true,"allowsVideoCapture":true,"title":"New World","displayName":"","shortTitle":"","id":218161,"classId":21816,"width":2048,"height":1152,"logicalWidth":2560,"logicalHeight":1440,"renderers":["D3D11"],"detectedRenderer":"Unknown","executionPath":"C:/Program Files (x86)/Steam/steamapps/common/New World/Bin64/NewWorld.exe","sessionId":"96c6b529a0c640fea22e0da77416938c","commandLine":"\"\"","type":0,"typeAsString":"Game","overlayInputHookError":false,"windowHandle":{"value":0},"monitorHandle":{"value":0},"processId":93220,"oopOverlay":false,"terminationUnixEpochTime":null,"overlayInfo":{"oopOverlay":false,"coexistingApps":[],"inputFailure":false,"hadInGameRender":false,"isCursorVisible":null,"exclusiveModeDisabled":false,"isFullScreenOptimizationDisabled":false},"success":true}
2021-12-27 08:18:02,890 (INFO) </main.js> (:116) - onGameInfoUpdated: {"gameInfo":{"isInFocus":true,"isRunning":true,"allowsVideoCapture":true,"title":"New World","displayName":"","shortTitle":"","id":218161,"classId":21816,"width":1536,"height":864,"logicalWidth":1920,"logicalHeight":1080,"renderers":["D3D11"],"detectedRenderer":"Unknown","executionPath":"C:/Program Files (x86)/Steam/steamapps/common/New World/Bin64/NewWorld.exe","sessionId":"96c6b529a0c640fea22e0da77416938c","commandLine":"\"\"","type":0,"typeAsString":"Game","overlayInputHookError":false,"windowHandle":{"value":0},"monitorHandle":{"value":0},"processId":93220,"oopOverlay":false,"terminationUnixEpochTime":null,"overlayInfo":{"oopOverlay":false,"coexistingApps":[],"inputFailure":false,"hadInGameRender":false,"isCursorVisible":null,"exclusiveModeDisabled":false,"isFullScreenOptimizationDisabled":false}},"resolutionChanged":true,"focusChanged":false,"runningChanged":false,"gameChanged":false,"gameOverlayChanged":false,"reason":["gameResolutionChanged"]}
2021-12-27 08:18:02,921 (INFO) </main.js> (:67) - New World Launched
2021-12-27 08:18:02,921 (INFO) </main.js> (:116) - onGameInfoUpdated: {"gameInfo":{"isInFocus":true,"isRunning":true,"allowsVideoCapture":true,"title":"New World","displayName":"","shortTitle":"","id":218161,"classId":21816,"width":1536,"height":864,"logicalWidth":1920,"logicalHeight":1080,"renderers":["D3D11"],"detectedRenderer":"D3D11","executionPath":"C:/Program Files (x86)/Steam/steamapps/common/New World/Bin64/NewWorld.exe","sessionId":"96c6b529a0c640fea22e0da77416938c","commandLine":"\"\"","type":0,"typeAsString":"Game","overlayInputHookError":false,"windowHandle":{"value":722374},"monitorHandle":{"value":65537},"processId":93220,"oopOverlay":false,"terminationUnixEpochTime":null,"overlayInfo":{"oopOverlay":false,"coexistingApps":[],"inputFailure":false,"hadInGameRender":true,"isCursorVisible":null,"exclusiveModeDisabled":false,"isFullScreenOptimizationDisabled":false}},"resolutionChanged":false,"focusChanged":false,"runningChanged":false,"gameChanged":true,"gameOverlayChanged":false,"reason":["gameRendererDetected"]}
2021-12-27 08:18:03,545 (INFO) </main.js> (:103) - Set required features:
2021-12-27 08:18:03,546 (INFO) </main.js> (:104) - {"success":true,"status":"success","supportedFeatures":["gep_internal","game_info"]}
2021-12-27 08:18:03,927 (INFO) </main.js> (:103) - Set required features:
2021-12-27 08:18:03,927 (INFO) </main.js> (:104) - {"success":true,"status":"success","supportedFeatures":["gep_internal","game_info"]}
2021-12-27 08:20:55,715 (INFO) </main.js> (:116) - onGameInfoUpdated: {"gameInfo":{"isInFocus":true,"isRunning":true,"allowsVideoCapture":true,"title":"New World","displayName":"","shortTitle":"","id":218161,"classId":21816,"width":1536,"height":864,"logicalWidth":1920,"logicalHeight":1080,"renderers":["D3D11"],"detectedRenderer":"D3D11","executionPath":"C:/Program Files (x86)/Steam/steamapps/common/New World/Bin64/NewWorld.exe","sessionId":"96c6b529a0c640fea22e0da77416938c","commandLine":"\"\"","type":0,"typeAsString":"Game","overlayInputHookError":false,"windowHandle":{"value":722374},"monitorHandle":{"value":65537},"processId":93220,"oopOverlay":false,"terminationUnixEpochTime":null,"overlayInfo":{"oopOverlay":false,"coexistingApps":[],"inputFailure":false,"hadInGameRender":true,"isCursorVisible":true,"exclusiveModeDisabled":false,"isFullScreenOptimizationDisabled":false}},"resolutionChanged":false,"focusChanged":false,"runningChanged":false,"gameChanged":false,"gameOverlayChanged":true,"reason":["gameOverlayCursorVisibility"]}
...
2021-12-27 08:34:14,280 (INFO) </main.js> (:116) - onGameInfoUpdated: {"gameInfo":{"isInFocus":false,"isRunning":true,"allowsVideoCapture":true,"title":"New World","displayName":"","shortTitle":"","id":218161,"classId":21816,"width":1536,"height":864,"logicalWidth":1920,"logicalHeight":1080,"renderers":["D3D11"],"detectedRenderer":"D3D11","executionPath":"C:/Program Files (x86)/Steam/steamapps/common/New World/Bin64/NewWorld.exe","sessionId":"96c6b529a0c640fea22e0da77416938c","commandLine":"\"\"","type":0,"typeAsString":"Game","overlayInputHookError":false,"windowHandle":{"value":722374},"monitorHandle":{"value":65537},"processId":93220,"oopOverlay":false,"terminationUnixEpochTime":null,"overlayInfo":{"oopOverlay":false,"coexistingApps":[],"inputFailure":false,"hadInGameRender":true,"isCursorVisible":true,"exclusiveModeDisabled":false,"isFullScreenOptimizationDisabled":false}},"resolutionChanged":false,"focusChanged":true,"runningChanged":false,"gameChanged":false,"gameOverlayChanged":false,"reason":["gameFocusChanged"]}

Basically it seems the events are never generated.
Any other suggestions?

Thanks

The screenshot that you attached - from where is it? It does not look like the developer’s console output.

Hi, it’s from Overwolf Task Manager → Logs.
The dev console output looks the same, no game_info events:

I’m having a server error currently when trying to connect to the game. I will recheck it tomorrow morning.

Thanks.

The New World game events listener doesn’t work, however you can fetch the game info with overwolf.games.events API · Overwolf every 0.5 seconds and it should do the same thing. Not quite as efficient but it works.

I’m trying overwolf.games.events.getInfo() but even if i call it every 0.1 seconds sometimes it takes almost 1 second to update to the current position, i.e., the location info is not really real-time. I was hoping there was a better way to accomplish that.

Hey. We are checking the issue, and we will update you here ASAP.

Thanks for your patience.

@ark3us We tested the new world events sample app, and we got the available events as expected(currently, only one feature is available - game_info).

We checked in on the latest OW client (0.188, Developers channel).

Please reproduce them and send us your logs package if you have any issues.

Thanks