Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


server-pinger for ActionFPS

Ping ActionFPS servers via UDP, rebuild the game state from these responses, output as JSON.

Two types of outputs: 'server state' and 'game state' (looks similar to ActionFPS JsonGame).

Using as a library

Only published for Scala 2.11 right now. Put in your build.sbt:

libraryDependencies += "com.actionfps" %% "server-pinger" % "5.4.1"
resolvers += Resolver.bintrayRepo("scalawilliam", "maven")

Using as an app

The app will output a stream of NDJSON to standard output.

Download a ZIP

Go to Releases.

Create a ZIP

$ sbt 'show dist'
[info] .../target/universal/server-pinger-5.4.0-SNAPSHOT.zip

Create an extracted distribution

$ sbt 'show stage'
[info] .../target/universal/stage

Running the binary

$ ./bin/server-pinger
[INFO] [01/14/2017 07:41:44.451] [default-akka.actor.default-dispatcher-2] [akka://default/user/pinger] Starting listener actor for pinger service...
[INFO] [01/14/2017 07:41:44.457] [default-akka.actor.default-dispatcher-4] [akka://default/user/pinger/pinger] Starting pinger actor
{"server":"","connectName":"califa.actionfps.com 28763","canonicalName":"califa.actionfps.com:28763","shortName":"Califa 28763","description":"\fPCalifa - www.actionfps.com","maxClients":16,"updatedTime":"2017-01-13T23:41:50Z"}
{"when":"right now","reasonablyActive":false,"now":{"server":{"server":"califa.actionfps.com:28763","connectName":"califa.actionfps.com 28763","shortName":"Califa 28763","description":"\fPCalifa - www.actionfps.com"}},"hasFlags":false,"mode":"team deathmatch","minRemain":10,"teams":[],"updatedTime":"2017-01-13T23:41:50Z"}

Customizing the server list

Use -Dservers.csv=<url>.

Currently it's set to https://actionfps.com/servers/?format=csv.

Running the tests

$ sbt test fun:test


$ git tag <tag>
$ sbt publish