|
| 1 | +--- |
| 2 | +id: once-human |
| 3 | +image: "/img/embed/games/once-human.jpg" |
| 4 | +title: Once Human Game events |
| 5 | +hide_title: truepages/api/live-game-data/supported-games/once-human.mdx |
| 6 | +sidebar_label: Once Human |
| 7 | +draft: true |
| 8 | +sidebar_position: 0 |
| 9 | +sidebar_custom_props: |
| 10 | + tags: |
| 11 | + overwolf_platform: true |
| 12 | + electron_platform: true |
| 13 | +--- |
| 14 | + |
| 15 | +<!-- GENERATED USING /scripts/generate.js --> |
| 16 | + |
| 17 | +<head> |
| 18 | + <meta name="keywords" content="API for Once Human, Once Human API, SDK for Once Human, Once Human SDK"/> |
| 19 | +</head> |
| 20 | + |
| 21 | +<GameInfo gameId={23930} page="docs" /> |
| 22 | + |
| 23 | +Please read the [overwolf.games.events](/api/live-game-data) documentation page to learn how to use Overwolf game events. |
| 24 | + |
| 25 | +## Sample Apps |
| 26 | +* [Once Human game events sample app](https://github.com/overwolf/events-sample-app) |
| 27 | + |
| 28 | +## Available Features |
| 29 | + |
| 30 | +* [gep_internal](#gep_internal) |
| 31 | +* [game_info](#game_info) |
| 32 | +* [match_info](#match_info) |
| 33 | + |
| 34 | +## Game event status |
| 35 | + |
| 36 | +It is highly recommended to communicate errors and warnings to app users. |
| 37 | + |
| 38 | +Check the current game event status [here](/status/). Alternatively, you can easily check that status from your app itself, [using our API](/topics/using-events/how-to-check-events-status-from-app). |
| 39 | + |
| 40 | +## `gep_internal` |
| 41 | + |
| 42 | +### Info Updates |
| 43 | + |
| 44 | +key | Category | Values | Notes | Since GEP Ver. | |
| 45 | +------------ | ------------| ------------------------- | --------------------- | ------------- | |
| 46 | +gep_internal | gep_internal| Local + Public version number|See [notes](#gep_internal-note)| 258.0 | |
| 47 | + |
| 48 | +#### *gep_internal* note |
| 49 | + |
| 50 | +Data Example: |
| 51 | + |
| 52 | +```json |
| 53 | +{"info":{"gep_internal":{"version_info":"{"local_version":"244.0.0","public_version":"258.0.0","is_updated":true}"}},"feature":"gep_internal"} |
| 54 | +``` |
| 55 | + |
| 56 | +## `game_info` |
| 57 | + |
| 58 | +### Info Updates |
| 59 | + |
| 60 | +key | Category | Values | Notes | Since GEP Ver. | |
| 61 | +------------ | ------------| ------------------------- | --------------------- | ------------- | |
| 62 | +scene | game_info | The current scene-state |See [notes](#scene-note) | 258.0 | |
| 63 | + |
| 64 | +#### *scene* note |
| 65 | + |
| 66 | +Possible Scene values: |
| 67 | + |
| 68 | +* lobby |
| 69 | +* ingame |
| 70 | +* mission_failed |
| 71 | + |
| 72 | +Data Example: |
| 73 | + |
| 74 | +```json |
| 75 | +{"feature": "game_info", "category": "game_info", "key": "scene", "data": "lobby"} |
| 76 | +``` |
| 77 | + |
| 78 | +## `match_info` |
| 79 | + |
| 80 | +### Events |
| 81 | + |
| 82 | +Event | Event Data | Fired When | Notes | Since GEP Ver. | |
| 83 | +------------| -------------| --------------| -------------------------------------- | ---------------| |
| 84 | +match_start | nulll | In the beginning of each match| See [notes](#match_start-note) |258.0| |
| 85 | +match_end | nulll | At the end of each match| See [notes](#match_end-note) |258.0| |
| 86 | + |
| 87 | +#### *match_start* note |
| 88 | + |
| 89 | +Data Example: |
| 90 | + |
| 91 | +```json |
| 92 | +{"events":[{"name":"match_start","data":null}]} |
| 93 | +``` |
| 94 | + |
| 95 | +#### *match_end* note |
| 96 | + |
| 97 | +Data Example: |
| 98 | + |
| 99 | +```json |
| 100 | +{"events":[{"name":"match_end","data":null}]} |
| 101 | +``` |
0 commit comments