A system for managing ladder profiles for AI, bot and human Starcraft 2 matches.
Project description
sc2ladderMgmt
Define available servers for Starcraft 2 AI & bot matches.
About
A ladder system that allows you to play Starcraft2 outside of battle.net on your local machine or across the internet playing as a human, AI or scripted bot.
Purpose
The ladderMgmt package primarily ensures that the scgameLobby understands which ladder servers that are available. It should also be the basic definitions for any actual ladder server implementation. If there is a ladder server that allows human and AI Starcraft 2 matches over a network, that definition ishould be made here.
Rationale
Because this package is tied to the sc2gameLobby, its rationale for existing is also for the same reason that sc2gaemLobby is developed. Also, sc2ladderMgmt is separated into its own package for the sake of being more modular and extensible by other packages independently from the sc2gameLobby.
Functional Overview
A simple interface is provided to add, retrieve and remove available ladders. The package then accesses its own internal storage system (a json file) to perform the specified action without requiring manual edits. That's it. Not much to it.
Installation
Reference this package hosted on pypi.org which is installed via pip.
EXAMPLE:
pip install sc2ladderMgmt
A Note to Bot and AI developers or human players
If your primary interest is in playing on the ladders either as yourself or with an AI / bot you developed, this package should install automatically with the sc2gameLobby. There really isn't anything you should need to do with this package.
Usage
For general use, unless incorporated into external python code, the command-line interface is the primary means to acquire player information. After specifying the command to invoke this package, the remaining parameters specify the operation to be performed and any parameters for that operation. Only the --add option accepts additional parameters to define the properties of the to-be-added ladder. (NOTE: specifying no arguments after the package name simply displays all known ladders.)
EXAMPLE:
python -m sc2ladderMgmt <operation <parameters>
EXAMPLE:
python -m sc2ladderMgmt --help
Locality
By default, all get/add/remove actions are performed on the user's local installation. If changes are made, they affect no other users. To ensure these changes are available for other users or publically available packages, the sc2ladderMgmt GitHub source project must be updated. Kindly make your change and submit a pull request.
Create your own ladder server
-
Create and host the ladder functionality on the internet.
- This new ladder server implementation must follow the protocol established by sc2gameLobby connections to the server.
-
Create the ladder definition. Each possible criteria definition is shown below. Only specify items that are applicable to the new server. The parameters
name
,ipAddress
andserverPort
are required. The rest are optionally defined. If undefined, they acquire default values.
name the name of the ladder server.
ipAddress the IPV4 or IPV6 address where the ladder server exists and is publically accessible.
serverPort the TCP port the server listens on.
allowNewPlayers whether previously unknown players specified in the ladder request may be accepted and created on the remote server. (Default: enabled)
maxLocalGamesAllowed the maximum number of games that the server can host at any given time. (Default: 0)
inactivePurge whether players that haven't played in a while are automatically forgotten. (Default: disabled)
inactiveScan whether inactive player detection is enabled. (Default: enabled)
EXAMPLE:
python -m sc2ladderMgmt --add name=stairs ipAddress=1.2.3.4 serverPort=27182
- Publicize your new ladder by issuing a pull request at sc2ladderMgmt.
Modify or delete a ladder definition
Feel free to modify the definitions as you like. This effectively only changes your own system's knowledge of the Starcraft 2 AI/human ladder ecosystem. If these changes should be available publicly, a pull request must be made. The currently available ladder definitions are available here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file sc2ladderMgmt-0.1.5.tar.gz
.
File metadata
- Download URL: sc2ladderMgmt-0.1.5.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b471ff13d90dad3739f3882aefb79108407de380253403435e81d8811bab08e3 |
|
MD5 | 5ea3e2f5d1fb36390da9d4fc52eb94a0 |
|
BLAKE2b-256 | 4ab56905e65975d07e22ac8536e20049243b28c60ac34784250fad4851370228 |
File details
Details for the file sc2ladderMgmt-0.1.5-py3.6.egg
.
File metadata
- Download URL: sc2ladderMgmt-0.1.5-py3.6.egg
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f25991b96a2daac0600ef2518acc073493b512466757888aa36f544ddb1d0b8a |
|
MD5 | 011b9c898250680ee3e1f21e6e593541 |
|
BLAKE2b-256 | 91fff145add1c2e04cd6e18f12462a157203eaac43e5561234f8066f842ba0a3 |
File details
Details for the file sc2ladderMgmt-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: sc2ladderMgmt-0.1.5-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3af3452eda781669343de1356c59bbca72812b3d7e34c83bfd03af56dc01b3c7 |
|
MD5 | fdf98cfb8a53e36980e8d4c1284228a2 |
|
BLAKE2b-256 | f64eed947826382d71b8983e830f9e0931784d66f15ace9b93ee73376d311d1c |