Skip to content
Store Dev
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
  • CDN library paths

The packaged approach is recommended for quick integration.

TypeLibrary 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 head tag or at the bottom of the body tag.

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
<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
<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
<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
<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


ParameterTypeRequirementDefault ValueDescription
gameIdStringY-Game ID or game number
nationStringNKRNNTO cookie value; defaults to 'KR' when the cookie is missing.
langStringNENLOCALE cookie value; defaults to 'EN' when the cookie is missing.
inflow_pathStringN-Same as the game ID.
isSkipMaintenanceBooleanNfalseWhether to check for maintenance; checked by default.
gameMarketNameStringNPC_MARKETDefaults to 'PC_MARKET' when launching from the web.
executeWaitingTimeNumberN5Timeout 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.
jsx
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
<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 CodeConstantDescription
601NOT_FOUND_LAUNCHERReturned when the launcher is not installed on the client.
602NOT_FOUND_PROTOCOL_URILauncher URL is missing.
503100GAME_MAINTENANCEReturned 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.