- Last Updated
Game Launch Integration (Updated July 22, 2025)
This guide explains how to launch the STOVE launcher (client) from the web, such as an official game website.
All STOVE games are launched through the STOVE launcher.
For launching from the web, use the packaged integration method (launcher-pack.js) described in this guide.
If you need to integrate the terms of service before launching, follow the guide below.
Integrated Terms Integration (July 22 Update)
01. CDN Libraries
- CDN domains by environment
| Environment | Domain |
|---|---|
| Sandbox | https://js-cdn.gate8.com |
| Live | https://js-cdn.onstove.com |
- CDN library paths
The packaged approach is recommended for quick integration.
| Type | Library Path |
|---|---|
| Packaged | - Packaged library (launcher/maintenance/whitelisted users): /libs/stove-js service/latest/launcher-pack.js |
| Individual | - Launcher library: /libs/stove-js-service/latest/launcher.js |
- Maintenance library: /libs/stove-js-service/latest/maintenance.js
- Whitelist library: /libs/stove-js-service/latest/white-user.js |
02. Loading the Libraries
- Script tag placement
- Place the script in the
headtag or at the bottom of thebodytag.
- Place the script in the
defer option
Set the script tag's defer option so the script runs after all content has finished downloading.
02.A. In the head Tag
- Example code
<html>
<head>
<meta charset="UTF-8">
<title>stove launcher</title>
<script src="https://js-cdn.gate8.com/libs/stove-js-service/latest/launcher.js" defer />
<script>
function runLauncher() {
// Launcher execution code
}
</script>
</head>
<body onload="initLauncher">
<button onclick="runLauncher">Launch Game</button>
</body>
</html>
02.B. At the Bottom of body
- Example code
<html>
<head>
<meta charset="UTF-8">
<title>stove launcher</title>
<script>
function runLauncher() {
// Launcher execution code
}
</script>
</head>
<body>
<button onclick="runLauncher">Launch Game</button>
<script src="https://js-cdn.gate8.com/libs/stove-js-service/latest/launcher.js" defer />
</body>
</html>
03. Integration Methods
- Choose the packaged or individual approach according to your requirements and policies.
03.A. Packaged Integration
- The packaged approach integrates launcher execution, maintenance checks, and whitelist checks together.
<html>
<head>
<meta charset="UTF-8">
<title>stove launcher</title>
</head>
<body>
// ...Content omitted
<script src="https://js-cdn.gate8.com/libs/stove-js-service/latest/launcher-pack.js" defer />
</body>
</html>
03.B. Individual Integration
- The individual approach loads the library for each required feature (launcher, maintenance, or whitelist).
<html>
<head>
<meta charset="UTF-8">
<title>stove launcher</title>
</head>
<body>
// ...Content omitted
<script src="https://js-cdn.gate8.com/libs/stove-js-service/latest/white-user.js" defer />
<script src="https://js-cdn.gate8.com/libs/stove-js-service/latest/maintenance.js" defer />
<script src="https://js-cdn.gate8.com/libs/stove-js-service/latest/launcher.js" defer />
</body>
</html>
04. Launching the Launcher
- Launch the STOVE launcher using the
launcher.run({})method.
04.A. Parameter
| Parameter | Type | Requirement | Default Value | Description |
|---|---|---|---|---|
| gameId | String | Y | - | Game ID or game number |
| nation | String | N | KR | NNTO cookie value; defaults to 'KR' when the cookie is missing. |
| lang | String | N | EN | LOCALE cookie value; defaults to 'EN' when the cookie is missing. |
| inflow_path | String | N | - | Same as the game ID. |
| isSkipMaintenance | Boolean | N | false | Whether to check for maintenance; checked by default. |
| gameMarketName | String | N | PC_MARKET | Defaults to 'PC_MARKET' when launching from the web. |
| executeWaitingTime | Number | N | 5 | Timeout for checking a launch delay, in seconds. |
isSkipMaintenance : false
Set this to false if you do not use game maintenance checks on the web.
Setting this parameter also skips the whitelist check.
04.B. Example
- Calling
launcher.run({})returns a Promise. Handle the result with its then and catch methods.
window.stoveJsService.launcher.run({
gameId: 'STOVE_EPIC7',
nation: 'KR',
lang: 'KO',
isSkipMaintenance: true
})
.then(data => {
console.log('Handle successful launcher execution', data);
})
.catch(error => {
console.log('Handle failed launcher execution', error);
});
- Usage example
<html>
<head>
<meta charset="UTF-8">
<title>stove launcher</title>
<script src="https://js-cdn.gate8.com/libs/stove-js-service/latest/launcher-pack.js" defer />
<script>
function initializeJsService() {
window.stoveJsService = window.stoveJsService || {};
}
function startLoadingForLauncher() {
// Update the UI when launcher loading starts.
}
function stopLoadingForLauncher() {
// Update the UI when launcher loading ends.
}
function errorHandler( errorCode ) {
switch (errorCode) {
case 601:
// Launcher is not installed. Download and install the launcher. break;
case 602:
// Returned when the launcher URI is missing. break;
case 'API return error code':
// Add cases for errors from launcher, maintenance, and whitelisted-user API calls as needed. break;
default:
// Handle other errors. break;
}
}
function runLauncher() {
if (!window.stoveJsService.launcher) {
alert('The launcher is not ready to run!')
return;
}
startLoadingForLauncher();
window.stoveJsService.launcher.run({
gameId: 'STOVE_EPIC7'
}).then(() => {
// Handle successful launcher execution.
}).catch(error => {
// Handle failed launcher execution. errorHandler(error.code)
}).finally(() => {
stopLoadingForLauncher();
});
}
</script>
</head>
<body onload="initializeJsService">
<button onclick="runLauncher">Launch Game</button>
</body>
</html>
C. Error Code
| Error Code | Constant | Description |
|---|---|---|
| 601 | NOT_FOUND_LAUNCHER | Returned when the launcher is not installed on the client. |
| 602 | NOT_FOUND_PROTOCOL_URI | Launcher URL is missing. |
| 503100 | GAME_MAINTENANCE | Returned when the game service being launched is under maintenance. |
| - | - | Handle other response codes for each API; see Error Status Handling List. |
Contact Us
If you have any questions, please contact us on Discord or by email at store.support@smilegate.com.