Skip to content

Latest commit

 

History

History
150 lines (129 loc) · 2.73 KB

EXPORTED_STATS.md

File metadata and controls

150 lines (129 loc) · 2.73 KB

Structure of exported stats

Overall server stats are in admin utils and will not be handled by this mod.

{
    "activeUsers": "number",
    "objects": {
        "all": "number"
        "creeps": "number"
    },
    "activeRooms": "number",
    "totalRooms": "number",
    "ownedRooms": "number",
    "gametime": "number",
    "users": { 
        "username": "User (no preview)"
    },
}

Overview

{
    "gcl": {
        "level": "number",
        "progress": "number",
        "progressTotal": "number" 
    },
    "combinedRCL": "number",
    "structureCounts": { "type": "number" },
    "constructionSitesCount": "number",
    "creepCount": "number",
    "sourceCapacityTotal": "number",
    "droppedEnergyTotal": "number",
}

Users

  • Level 0: Username (key)
  • Level 1:
{
    "cpu": "number",
    "gcl": "number",
    "cpuAvailable": "number",
    "roomsCount": "number"
}
  • Level 2:
{
    "bot": "string",
    "badge": {
        "type": "number",
        "color1": "string",
        "color2": "string",
        "color3": "string",
        "flip": "boolean",
        "param": "number"
    },
    "lastUsedCpu": "number",
    "lastUsedDirtyTime": "number",
}

Rooms Objects

All

  • Level 1:
{
    "constructionSites": {
        "count": "number",
        "progress": "number",
        "progressTotal": "number" },
    "creepCount": "number",
    "droppedEnergy": "number",
    "sources": {
        "count": "number",
        "energy": "number",
        "energyCapacity": "number" },
    "structureCounts": { "type": "number" },
}
  • Level 2:
{
    "creepParts": { "type": {
        "count": "number",
        "activeParts": "number" } },
    "creepStore": { "type": "number" },
    "tombstoneStore": { "type": "number" },
    "ruinStore": { "type": "number" },
    "structureStore": { "structureType": { "resourceType": "number" } },
    "structureHits": { "type": "number" },
}

Owned

  • Level 1:
{
    "controller": {
        "level": "number",
        "progress": "number",
        "progressTotal": "number",
        "safeModeAvailable": "number",
        "safeModeCooldown": "number",
        "ticksToDowngrade": "number" },
    "mineral": {
        "type": "string",
        "density": "number",
        "amount": "number" },
    "spawning (uptime %)": "number",
}

Rooms intents

  • Level 1:
{
    "energyOutflow": {
        "upgradeController": "number",
        "build": "number",
        "repair": "number",
        "withdraw": { "type": "number" },
    },
    "energyInflow": {
        "harvest": "number",
        "transfer": { "type": "number" },
    },
    "fatigueDecreased": "number",
    "spawnCost": "number",
    "intentCounts": { "type": "number" },
}