GameParticipantSyntax
, ReplaySyntax
, StartGameSyntax
public interface SettingsSyntax extends GameParticipantSyntax, ReplaySyntax
Modifier and Type | Method | Description |
---|---|---|
SettingsSyntax |
loadLadderSettings(java.lang.String[] args) |
Used to load ladder settings.
|
SettingsSyntax |
loadSettings(java.lang.String[] args) |
Used to load settings.
|
SettingsSyntax |
setDataDir(java.nio.file.Path dataDirPath) |
Override the path to find the data package.
|
SettingsSyntax |
setDataVersion(java.lang.String version) |
Set the correct data version of a replay to allow faster replay loading.
|
SettingsSyntax |
setEglPath(java.nio.file.Path eglPath) |
Sets the path the to hardare rendering library.
|
SettingsSyntax |
setFeatureLayers(SpatialCameraSetup settings) |
Indicates whether feature layers should be provided in the observation.
|
SettingsSyntax |
setMultithreaded(java.lang.Boolean value) |
Specifies whether bots or replays onStep function should be run in parallel.
|
SettingsSyntax |
setOsMesaPath(java.nio.file.Path osMesaPath) |
Sets the path the to software rendering library.
|
SettingsSyntax |
setPortStart(java.lang.Integer portStart) |
Sets the first port number to use.
|
SettingsSyntax |
setProcessPath(java.nio.file.Path path) |
Sets the path to the StarCraft II binary.
|
SettingsSyntax |
setRealtime(java.lang.Boolean value) |
Specifies whether the game should run in realtime or not.
|
SettingsSyntax |
setRender(SpatialCameraSetup settings) |
Indicates whether render layers should be provided in the observation.
|
SettingsSyntax |
setStepSize(java.lang.Integer stepSize) |
Sets the number of game loops to run for each step.
|
SettingsSyntax |
setTimeoutMS(java.lang.Integer timeoutInMillis) |
Sets the timeout for network operations.
|
SettingsSyntax |
setTmpDir(java.nio.file.Path tmpDirPath) |
Overrides the directory that temp files are created in.
|
SettingsSyntax |
setTraced(java.lang.Boolean value) |
Enables logging on client of all protocol requests/responses to com.github.ocraft.s2client.api.log.DataFlowTracer
logger on level TRACE (JSON format).
|
SettingsSyntax |
setUseGeneralizedAbilityId(java.lang.Boolean value) |
Uses generalized abilities where possible.
|
SettingsSyntax |
setVerbose(java.lang.Boolean value) |
Enables logging on game server of all protocol requests/responses to std::err.
|
SettingsSyntax |
setWindowLocation(java.lang.Integer x,
java.lang.Integer y) |
Sets the game window location.
|
SettingsSyntax |
setWindowSize(java.lang.Integer width,
java.lang.Integer height) |
Sets the game window dimensions.
|
setParticipants
addReplayObserver, loadReplayList, setReplayPath, setReplayRecovery
connect, connectToLadder, launchStarcraft
SettingsSyntax loadSettings(java.lang.String[] args)
args
- Provided in main signature.SettingsSyntax loadLadderSettings(java.lang.String[] args)
args
- Provided in main signature.SettingsSyntax setMultithreaded(java.lang.Boolean value)
value
- True to multi-thread, false otherwise.SettingsSyntax setRealtime(java.lang.Boolean value)
value
- True to be realtime, false otherwise.SettingsSyntax setStepSize(java.lang.Integer stepSize)
stepSize
- Number of game loops to run for each step.SettingsSyntax setProcessPath(java.nio.file.Path path)
path
- Absolute file path.SettingsSyntax setDataVersion(java.lang.String version)
version
- Look in "ocraft-s2client-protocol/src/main/resources/versions.json" for the property
"data-hash". Or read it from
ReplayInfo.dataVersion
.SettingsSyntax setTimeoutMS(java.lang.Integer timeoutInMillis)
timeoutInMillis
- timeout in milliseconds.SettingsSyntax setPortStart(java.lang.Integer portStart)
portStart
- First port number.SettingsSyntax setFeatureLayers(SpatialCameraSetup settings)
settings
- Configuration of feature layer settings.SpatialCameraSetup
SettingsSyntax setRender(SpatialCameraSetup settings)
settings
- Configuration of render layer settings.SpatialCameraSetup
SettingsSyntax setWindowSize(java.lang.Integer width, java.lang.Integer height)
width
- Width of game window.height
- Height of game window.SettingsSyntax setWindowLocation(java.lang.Integer x, java.lang.Integer y)
x
- X position of game window.y
- y position of game window.SettingsSyntax setUseGeneralizedAbilityId(java.lang.Boolean value)
Example: BUILD_TECHLAB_BARRACKS, BUILD_TECHLAB_FACTORY, BUILD_TECHLAB_STARPORT ability ids are generalized to BUILD_TECHLAB ability id in the observation.
SettingsSyntax setVerbose(java.lang.Boolean value)
SettingsSyntax setTraced(java.lang.Boolean value)
SettingsSyntax setTmpDir(java.nio.file.Path tmpDirPath)
Defaults to: /tmp/
tmpDirPath
- Path to tmp dir.SettingsSyntax setDataDir(java.nio.file.Path dataDirPath)
Defaults to: ../../
dataDirPath
- Path to data dir.SettingsSyntax setOsMesaPath(java.nio.file.Path osMesaPath)
Example: /usr/lib/x86_64-linux-gnu/libOSMesa.so
osMesaPath
- Path to OsMesa library.SettingsSyntax setEglPath(java.nio.file.Path eglPath)
Example: /usr/lib/nvidia-384/libEGL.so
eglPath
- Path to egl library.Copyright © 2017–2018 Ocraft Project. All rights reserved.