This is used when you have a game start button in your web, and your web is created for STOVE only.
Note: Game will be launched in a following step
⇒ Web (Game Start) ⇒ STOVE PC Client comes up ⇒ Game Client runs
1. SEED Public Library
•
STOVE provides SEED Public Library to start the game from web.
Environment | Desciption | Note |
Sandbox | https://static-new.gate8.com/sl-4.0.0/stove-launcher.js | |
Live | https://static-new.onstove.com/sl-4.0.0/stove-launcher.js |
2. SEED Public Library Head
•
Place the script containing SEED Public Library under head tag.
<head>
<meta charset="UTF-8" />
<title>stove launcher</title>
<script src="https://static-new.gate8.com/sl-4.0.0/stove-launcher.js" async defer></script>
</head>
JavaScript
복사
3. Open Launcher (LauncherService.open)
•
Call LauncherService.open (provided by SEED Public) to run STOVE PC Client.
LauncherService.open(
{
// Launcher Option
gameId: 'STOVE_TTO',
isAgent: true,
inflow_path: 'TTO',
exearg: 'arg1 arg2'
},
() => {
successCallBack(); // Callback when successfully run
},
(errorCode) => {
failCallBack(errorCode); // Callback when failed
}
JavaScript
복사
3.1 LauncherService.open Desciptions
Option | Value(type) | Requirement | Default Value | Description |
gameId | String | Y | - | Game ID value |
isAgent | Boolean | Y | - | use false value |
inflow_path | String | N | false | |
successCallBack | Function | STOVE PC Client has succesfully launched. | ||
failCallBack | Function (Number) |
3-2. failCallBack Error Codes
ErrorCode | Description | ETC |
601 | STOVE PC Client is not installed. | |
602 | Game is under maintenance. | |
603 | Contact STOVE Onboarding Manager |