Coder Social home page Coder Social logo

redflare's Introduction

Red Eclipse Server Browser

This package contains library and executable to access current state of Red Eclipse's game servers. The name was shamelessly stolen from Redflare.

Note: neither the library nor the executable access original Redflare.

Usage

> redflare --help
Usage: redflare COMMAND
Get current state of Red Eclipse game servers.

Available options:
    -h,--help                Show this help text

Available commands:
    master                   Receive list of connected servers from master server
                             and poll them to get their current state.
    single                   Get current state of a specified server.

Master Command

> redflare master --help
Usage: redflare master [HOST] [PORT] [-e|--show-empty] [-f|--show-failed]
Receive list of connected servers from master server and poll them to get
their current state.

Available options:
    -h,--help                Show this help text
    HOST                     Master server's host (default: "play.redeclipse.net")
    PORT                     Master server's port (default: 28800)
    -e,--show-empty          If passed output will include reports from empty
                             servers
    -f,--show-failed         If passed output will include errors for servers that
                             redflare failed to recieve reports from

# Example:
> redflare master
[{"status":"success"
 ,"report":{"serverDesc":"DOOM USA Server (St. Louis)"
           ,"numGameMods":5
           ,"mapName":"Garden5"
           ,"playerNames":["Kal-El"]
           ,"masterMode":"Veto"
           ,"mutators":["FFA","Classic"]
           ,"verInfo":{"versionPatch":3
                      ,"versionArch":64
                      ,"versionPlatform":"LinuxBSD"
                      ,"versionMinor":5
                      ,"versionMajor":1}
           ,"serverClients":16
           ,"version":226
           ,"playerCnt":1
           ,"gameMode":"Edit"
           ,"timeLeft":255
           ,"numGameVars":4267
           ,"handles":["gipsydanger"]
           ,"gameState":"Playing"
           ,"timeRemaining":255}
 ,"host":"173.28.173.201"
 ,"port":28801}]

> redflare master behaservers.zapto.org 28800
[{"status":"success"
 ,"report":{"serverDesc":"Ghosts' Haunt [ghostclanre.tk]"
           ,"numGameMods":0
           ,"mapName":"ghost"
           ,"playerNames":["Django"]
           ,"masterMode":"Open"
           ,"mutators":[]
           ,"serverClients":16
           ,"version":220
           ,"playerCnt":1
           ,"gameMode":"Deathmatch"
           ,"numGameVars":3456
           ,"timeRemaining":312}
 ,"host":"76.179.121.138"
 ,"port":28810}]

Single Command

> redflare single --help
Usage: redflare single HOST [PORT]
Get current state of a specified server.

Available options:
    -h,--help                Show this help text
    HOST                     Server's host.
    PORT                     Server's port. (default: 28801)

# Example
> redflare single aceclan.tk 28800
{"status":"success"
,"report":{"serverDesc":"ACE's server"
          ,"numGameMods":3
          ,"mapName":"affluence"
          ,"playerNames":[]
          ,"masterMode":"Open"
          ,"mutators":[]
          ,"verInfo":{"versionPatch":3
                     ,"versionArch":64
                     ,"versionPlatform":"LinuxBSD"
                     ,"versionMinor":5
                     ,"versionMajor":1}
          ,"serverClients":16
          ,"version":226
          ,"playerCnt":0
          ,"gameMode":"Deathmatch"
          ,"timeLeft":0
          ,"numGameVars":4267
          ,"handles":[]
          ,"gameState":"Waiting"
          ,"timeRemaining":600}
,"host":"aceclan.tk"
,"port":28800}

redflare's People

Contributors

zaquest avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.