This is a guideline for starting STOVE Client from STOVE
Every game on STOVE is played through STOVE Client.
Note
•
Below guideline explains how to use SEED Public Library to run STOVE Client on Web
1. SEED Public Library
Environment | Address | Note |
Live | https://static-new.onstove.com/sl-4.0.0/stove-launcher.js | |
Sandbox | https://static-new.gate8.com/sl-4.0.0/stove-launcher.js |
2. SEED Public Library in head
•
Like below, enter Script Tag which contains SEED Public Library js file within the head tag
<head>
<meta charset="UTF-8" />
<title>stove launcher</title>
<script src="https://static-new.onstove.com/sl-4.0.0/stove-launcher.js" async defer></script>
</head>
JavaScript
복사
3. Running STOVE Client (LauncherService.open)
•
Use LauncherService.open in SEED Public Library to open STOVE Client
LauncherService.open(
{
// STOVE Client Option
gameId: 'STOVE_TTO',
isAgent: true,
inflow_path: 'TTO',
exearg: 'arg1 arg2'
},
() => {
successCallBack(); // Success callback
},
(errorCode) => {
failCallBack(errorCode); // Error callback
}
);
JavaScript
복사
3.1 LauncherService.open 옵션 명세
Option | Value(type) | Requirement | Default Value | Description |
gameId | String | Y | 없음 | GameID |
isAgent | Boolean | Y | 없음 | set as False |
inflow_path | String | N | false | |
exearg | String | Y | 없음 | exe argument when running client |
successCallBack | Function | Register callback function called when running STOVE Client is successful
- If there is anything to be done additionally register the callback function.
- If there is none, leave it empty | ||
failCallBack | Function (Number) | Register callback function called when running STOVE Client is unsuccessful
- If there is anything to be done additionally register the callback function.
- If there is none, leave it empty |
3.2. Error Code
ErrorCode | Description | ETC |
601 | STOVE Client is not installed | |
602 | Game is under maintenance (maintenance setting done separately on STOVE platform, to use this, contact STOVE) | |
603 | API is returning an error, contact STOVE. |
4. Sample Code
환경 | 내용 | 비고 |
Sandbox | https://static-new.gate8.com/sl-4.0.0/index.html |
•
If sample page is not running, remove browser cache and try again
