BattleCon
A Battlefield / Frostbite engine RCON layer on node.js.
Install / Use
/learn @dcodeIO/BattleConREADME
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.on("login", function() {
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
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。

