The chainloader is a small SWF file that loads the ProTanki's library.swf
.
It skips the loading of StandaloneLoader.swf
, Prelauncher.swf
and Loader.swf
.
Various game options can be set in the query string.
Key | Description | Available options |
---|---|---|
library |
The library.swf game file |
Absolute local or remote URL. Example: D:/ProTanki/library.swf , https://example.org/library.swf . |
locale |
Game language | ru , en , pt_BR .Note: pt_BR is not supported by protanki-server . |
server |
Game server endpoint | TCP endpoint with port. Example: 127.0.0.1:1337 , game.example.org:1337 . |
resources |
Resource server base URL | HTTP(S) URL. Example: http://127.0.0.1:8080/resource , https://resources.example.org . |
Example query string: library=D:/ProTanki/library.swf&locale=en&server=127.0.0.1:1337&resources=http://127.0.0.1:8080/resource
.
Prebuilt binaries are available at GitHub Releases.
# Build to default location (without debug information)
./scripts/build.ps1 -SdkPath 'Path/to/Adobe/AIR/SDK'
# Build to default location (with debug information)
./scripts/build.ps1 -SdkPath 'Path/to/Adobe/AIR/SDK' -DebugBuild $true
# Build to custom location (without debug information)
./scripts/build.ps1 -SdkPath 'Path/to/Adobe/AIR/SDK' -OutputFile './build/custom-chainloader.swf'