Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

battlecon

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

battlecon

A Battlefield / Frostbite engine RCON layer on node.js

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

BattleCon - BATTLEFIELD layer on node.js

BattleCon is a Battlefield / Frostbite engine RCON layer built on top of nothing less than the excellent node.js platform.

With BattleCon it's easy to create your very own server management interface, like automatic map votings, auto team balancing, live player stats and more.

Usage

Executing commands:
var BattleCon = require("battlecon"),
    bc = new BattleCon("host", port, "pass").use("core");
    
bc.exec("version", function(err, res) {
    if (err) {
        console.log("Error: "+err);
        return;
    }
    console.log("version:", res);
});

bc.connect(); // Connects and logs in
Processing (raw) server events:
...
bc.on("event", function(evt) {
    console.log("Event:", evt);
});

Core

The core module implements common commands used between Frostbite-driven games, like logging in and out, version and server info querying.

Modules

Additionally, BattleCon supports game-specific modules, like the BF3 and BF4 modules. Loading modules is simple:

...
var bc = new BattleCon("host", port, "pass").use("BF4");

...your logic...

bc.connect();

Currently, the game modules are quite basic and provide basic functionality only. Feel free to extend them and send me a pull request!

Examples

There is a simple example of how to use BattleCon, like reacting to server events and issuing commands:

License

Apache License, Version 2.0

Keywords

FAQs

Package last updated on 06 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc