Miles: Dedicated game server for Codeosseum.
Miles is the dedicated game server of the Codeosseum platform. Matches made by Ares can be played on one of the managed Miles instances.
Miles is a event-diven Spark-based monolith running on GraalVM.
Miles can only be run on GraalVM. Thankfully, GraalVM can now run Linux, Mac and Windows! Check out the GraalVM Releases page.
Create an executable JAR:
$ ./mvnw clean install
You can run it using java -jar
in the target
directory.
Miles can be configured through the following properties:
{
"self": {
// The port Miles will listen to.
"port": 3001,
// URI on which Miles can be reached by the players.
"uri": "http://127.0.0.1",
// Unique identifier of the Miles instance.
"identifier": "server-01"
},
"ares": {
// The URI on which Miles can report events to Ares.
"eventUri": "http://127.0.0.1:8000/api/event"
},
"quaestiones": {
// The Quaestiones git repository URI.
"remoteRepositoryUri": "https://github.com/codeosseum/quaestiones.git",
// Path into which the repository will be cloned.
"localRepositoryPath": "challenges",
// The treelike to check out.
"treelike": "master"
},
"faultSeeding": {
// Runtime of a Fault Seeding match.
"runtimeSeconds": 60,
// Time to wait after all players have joined.
"startingCountdownSeconds": 5
}
}
Miles is licensed under the Apache License 2.0.
Supported by the ÚNKP-18-2 New National Excellence Program of the Ministry of Human Capacities.