Overview

When the Launcher plugin is enabled, accounts that players log in with in the Launcher are saved on their computer (only the account name and a temporary login code called a token are stored, the password is never saved). Next time they pick a saved account, click Start, choose a server and go straight to the character selection screen without typing a password in the game.

  • Each account has only one token: logging in to the Launcher on another computer replaces the old token (the old computer must log in again).
  • Changing the password deletes the saved token.
  • The token expires after the configured number of days (TokenDays).

Server behavior

When quick login is enabled, GameServer rejects manually typed logins: it only accepts a password of the form "~" + token (20 characters) filled in by the Launcher. A player who types an account and password in the game will see: "Quick login is enabled. Please log in from the Launcher.". If you want to allow manual login, set Enable = 0.

Conversely, when quick login is disabled but the client still sends a Launcher token (for example, the client already had a saved account), the server reports: "Auto login is disabled on this server. Please open the game again and log in with your account and password." and makes the player exit the game so it can be reopened.

Requirements

  • The Launcher plugin is purchased and [Plugin] Launcher = 1 in Data\Plugin\Plugin.ini.
  • [QuickLogin] Enable = 1 in Data\Plugin\Launcher\Launcher.ini.
  • The START Launcher port is running (it issues tokens to the Launcher); see the START / Launcher tool setup section.
  • Client: a recent Main.dll (fills in the account and token password automatically after connecting) and the TSWMU version of the Launcher.

Configuration Data\Plugin\Launcher\Launcher.ini

Section [QuickLogin]:

KeyValueDefault (code / shipped file)Meaning
Enable0 / 10 (GameServer when the key is missing) / 11 = the Launcher saves accounts and allows quick login; 0 = the Launcher does not save, everyone logs in inside the game as usual. GameServer reads this key directly from the file every time someone logs in.
MaxAccounts1 to 203 (START when the key is missing) / 5Maximum number of accounts saved per computer. Read by START, not by GameServer.
TokenDays1 to 36530 / 30Number of days the token stays valid. Read by START.
START also writes these three keys to Launcher.ini when you save the Launcher configuration in START (if the file already exists only the values are changed and comments are kept; the old file is backed up to Data\Plugin\Launcher\Backup before writing). So it is best to edit these three values in the START interface and save, so that START and the file stay in sync.
[QuickLogin]
Enable=1
MaxAccounts=5
TokenDays=30

Messages (Lang)

Group Type="0" (System) in Data\Lang\*.xml:

IDContent (English.xml)When
38WarningDialog title
48Login token does not match. Please log in again from the Launcher.Token mismatch
50Quick login is enabled. Please log in from the Launcher.Manual login while quick login is enabled
53Auto login is disabled on this server. Please open the game again and log in with your account and password.Client sends a token while quick login is disabled

Reloading the configuration

No reload is needed: GameServer reads Enable directly from Launcher.ini on every login. The [Plugin] Launcher flag in Plugin.ini is changed with the Reload plugin button. MaxAccounts and TokenDays are applied according to START.

[TO VERIFY: whether START re-reads Launcher.ini as soon as the file changes or only when saving / restarting START; the current START code reads it through the ReadLauncherIni function, and the call timing has not been confirmed.]