EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

ruleset

Session-wide inventory, survival, respawn and actor limits.

Signature

{ combat_motion: (CombatMotionRules)?, drop_lifetime_ticks: PositiveTicks, encounters: Encounters, factions: ({Faction})?, farming: (FarmingRules)?, fishing: (FishingRules)?, hotbar_slots: PositiveCount, house_destroyed_notice: TextKey, id: ContentId, interaction: InteractionRules, inventory_slots: PositiveCount, kind: "ruleset", max_actors: PositiveCount, ore_regrowth_days: (PositiveCount)?, pickup_radius_mm: PositiveDistance, poise: (Poise)?, progression: (Progression)?, quest_amounts: ({PartyAmount})?, quick_use: {TagId}, respawn_delay_ticks: PositiveTicks, respawn_health: PositiveHitPoints, scene_players: (PlayerSlot)?, sign_inputs: {ItemStack}, spawn_chests: ({ChestPlacement})?, spawn_view: (SpawnViewRules)?, squad: (SquadRules)?, stash: StructureId, strike_facing_ms: StrikeFacing, tall_grass: (TallGrassRules)?, tree_scale_ppm: ScalePpm, village_status: (VillageStatusRules)?, village_storehouse: (StructureId)?, villager_provisions: (VillagerProvisions)?, villagers: {NpcId} }

Fields

NameTypeMeaning
combat_motionCombatMotionRulesHow a fight moves bodies: a player who walks away from their aim or draws a ranged weapon goes slower, an enemy closes in on a distant foe at a sprint; absent: full speed every way, enemies close in at their own speed and lunge at 60 % of it, bodies turn at once, arrows turn up to 0.6 rad on release and 1.2 rad/s in flight.
drop_lifetime_ticksPositiveTicksLifetime of an uncollected ground item in simulation ticks.
Range: 1…2147483647; Unit: tick
encountersEncountersEncounters of the wilds.
factions{Faction}Factions and symmetric alliances of actors in this world.
Items: 1…256; Unique entries
farmingFarmingRulesHow fields grow and give; absent: the defaults (half again as long out of season, two and a half times as long unwatered, bare soil lasts three days, one unit per harvest).
fishingFishingRulesFishing skill levels; absent keeps every angler at level 1.
hotbar_slotsPositiveCountAccessible hotbar slots; cannot exceed inventory capacity.
Range: 1…2147483647; Unit: count
house_destroyed_noticeTextKeyNotice to a player put out at the door of a house that fell, was taken down or vanished.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text
idContentIdPackage-qualified identity; unique within its declaring namespace.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$
interactionInteractionRulesReach and choice of the Interact action.
inventory_slotsPositiveCountPositive maximum number of inventory slots.
Range: 1…2147483647; Unit: count
kind"ruleset"Discriminant
max_actorsPositiveCountMaximum actor population admitted by this ruleset.
Range: 1…2147483647; Unit: count
ore_regrowth_daysPositiveCountClock days after which a terrain column whose ore (crystal) was mined is whole again, at the next dawn nobody stands in it; absent: ore does not grow back.
Range: 1…2147483647; Unit: count
pickup_radius_mmPositiveDistanceMaximum distance for collecting ground items.
Range: 1…2147483647; Unit: mm
poisePoisePoise of every body without its own; absent: such a body never staggers.
progressionProgressionLevels, skill points and mana of the players; absent keeps every player at level 1 without mana.
quest_amounts{PartyAmount}Quest amounts by the number of players online, ascending by players: gathering, crafting and handing over ask for this share of the written count; absent: always the written count.
Items: 1…8
quick_use{TagId}Tags of the quick-use keys in key order; a key uses the first owned item carrying its tag.
Items: 0…8; Unique entries
respawn_delay_ticksPositiveTicksPositive delay before a dead player may respawn.
Range: 1…2147483647; Unit: tick
respawn_healthPositiveHitPointsPositive health assigned when a player respawns.
Range: 1…2147483647; Unit: hp
scene_playersPlayerSlotPlayers a cutscene shows at most (its player slots); absent: 8.
Range: 1…8; Unit: count
sign_inputs{ItemStack}Items a building's sign costs.
Items: 0…16; Unique entries
spawn_chests{ChestPlacement}Filled chests placed once in every world, relative to the spawn point.
Items: 1…16
spawn_viewSpawnViewRulesWhat keeps roaming encounters and wild animals out of every player's view; absent: a 4 m margin, 3 m tall figures, groups up to 90 m from a player.
squadSquadRulesHow squads take turns at a foe and march; absent: 2 melee and 1 ranged token per foe, handed on after 2.5 s, waiting 1.5 m beyond reach, flanking for at most 1 s, marching in a column without formations.
stashStructureIdStructure that keeps the stock of a fallen or dismantled house.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: structure
strike_facing_msStrikeFacingHow long a player's stroke holds the body facing its aim, by aim mode; prediction and authority hold it alike.
tall_grassTallGrassRulesProcedural tall grass, growth and spread; absent disables tall grass.
tree_scale_ppmScalePpmSize of every generated and planted forest tree against its species' model.
Range: 1…10000000; Unit: ppm
village_statusVillageStatusRulesThe village's mood and level (food, housing, safety, community); absent: no village status.
village_storehouseStructureIdShared storehouse building. Once intact in the village, its room receives villager deliveries and is the sole source of village food and morning meals.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: structure
villager_provisionsVillagerProvisionsVillagers with a task take a dish from the provisions chest in the morning and work faster that day; absent: no provisions.
villagers{NpcId}The world's residents: each spawns once at the anchor of its routine's first plan and lives there by its routine.
Items: 0…64; Unique entries

Validated example

{
  "combat_motion": {
    "backpedal_mdeg": 120000,
    "backpedal_permille": 600,
    "chase_sprint_from_mm": 2000,
    "chase_sprint_permille": 1500,
    "draw_permille": 500,
    "lunge_permille": 600,
    "shot_assist_mdeg": 10000,
    "shot_homing_mdeg_per_tick": 1000,
    "strike_facing_mdeg": 30000,
    "turn_mdeg_per_tick": 28800
  },
  "drop_lifetime_ticks": 22500,
  "encounters": {
    "wildlife": "core:wildlife"
  },
  "factions": [
    {
      "allies": [
        "core:wanderers"
      ],
      "id": "core:village"
    },
    {
      "allies": [],
      "id": "core:wanderers"
    },
    {
      "allies": [],
      "id": "core:wild"
    },
    {
      "allies": [
        "core:wild",
        "core:spiders"
      ],
      "id": "core:raiders"
    },
    {
      "allies": [
        "core:wild"
      ],
      "id": "core:spiders"
    },
    {
      "allies": [],
      "id": "core:wildlife",
      "neutral": [
        "core:raiders",
        "core:wild",
        "core:spiders"
      ]
    },
    {
      "allies": [
        "core:village",
        "core:wanderers"
      ],
      "healable": false,
      "id": "core:livestock",
      "neutral": [
        "core:raiders",
        "core:wild",
        "core:spiders"
      ]
    },
    {
      "allies": [],
      "defeat_status": "core:shaken",
      "id": "core:bandits",
      "neutral": [
        "core:wild",
        "core:raiders",
        "core:spiders",
        "core:wildlife",
        "core:livestock"
      ]
    },
    {
      "allies": [],
      "id": "core:camp_folk",
      "neutral": [
        "core:village",
        "core:wanderers",
        "core:raiders",
        "core:wildlife",
        "core:livestock",
        "core:bandits"
      ]
    }
  ],
  "farming": {
    "dry_percent": 250,
    "fallow_days": 3,
    "off_season_percent": 150,
    "seeds_back": {
      "max": 2,
      "min": 1
    },
    "yields": [
      {
        "units": 1,
        "watered_permille": 0
      },
      {
        "units": 2,
        "watered_permille": 500
      },
      {
        "units": 3,
        "watered_permille": 800
      }
    ]
  },
  "fishing": {
    "levels": [
      3,
      7,
      12,
      18,
      26,
      36,
      50,
      70,
      95
    ],
    "skill": "core:fishing_skill"
  },
  "hotbar_slots": 9,
  "house_destroyed_notice": "core:house_destroyed",
  "id": "core:default_rules",
  "interaction": {
    "door_reach_mm": 2000,
    "facing_mm": 1000,
    "reach_mm": 2500
  },
  "inventory_slots": 27,
  "kind": "ruleset",
  "max_actors": 1024,
  "ore_regrowth_days": 4,
  "pickup_radius_mm": 1350,
  "poise": {
    "push_mm_per_tick": 800,
    "recover_ticks": 100,
    "stagger_ticks": 9
  },
  "progression": {
    "base_mana": 50,
    "level_variable": "core:player_level",
    "level_xp": [
      100,
      140,
      180,
      230,
      280,
      340,
      400,
      470,
      550,
      640,
      740,
      850,
      970,
      1100,
      1250,
      1400,
      1600,
      1800,
      2000
    ],
    "mana_regen_permille": 60,
    "points_per_level": 1
  },
  "quest_amounts": [
    {
      "players": 1,
      "share_permille": 600
    },
    {
      "players": 2,
      "share_permille": 800
    },
    {
      "players": 3,
      "share_permille": 1000
    }
  ],
  "quick_use": [
    "core:quick_heal",
    "core:light_source",
    "core:recall_charm"
  ],
  "respawn_delay_ticks": 300,
  "respawn_health": 100,
  "scene_players": 8,
  "sign_inputs": [
    {
      "count": 2,
      "item": "core:wood"
    }
  ],
  "spawn_view": {
    "height_mm": 3000,
    "margin_mm": 4000,
    "reach_mm": 90000
  },
  "squad": {
    "flank_ms": 1000,
    "formations": [
      {
        "id": "core:wedge",
        "slots": [
          {
            "x_mm": -1800,
            "z_mm": -1800
          },
          {
            "x_mm": 1800,
            "z_mm": -1800
          },
          {
            "x_mm": -3600,
            "z_mm": -3600
          },
          {
            "x_mm": 3600,
            "z_mm": -3600
          },
          {
            "x_mm": 0,
            "z_mm": -3600
          },
          {
            "x_mm": 0,
            "z_mm": -5400
          }
        ]
      },
      {
        "id": "core:column",
        "slots": [
          {
            "x_mm": 0,
            "z_mm": -2000
          },
          {
            "x_mm": 0,
            "z_mm": -4000
          },
          {
            "x_mm": 0,
            "z_mm": -6000
          },
          {
            "x_mm": 0,
            "z_mm": -8000
          },
          {
            "x_mm": 0,
            "z_mm": -10000
          },
          {
            "x_mm": 0,
            "z_mm": -12000
          }
        ]
      }
    ],
    "handoff_ms": 2500,
    "march": "core:wedge",
    "melee_tokens": 2,
    "ranged_tokens": 1,
    "wait_gap_mm": 1500
  },
  "stash": "core:stash_structure",
  "strike_facing_ms": {
    "melee": 400,
    "ranged": 720
  },
  "tall_grass": {
    "cut_yield": {
      "columns_per_unit": 3,
      "item": "core:hay"
    },
    "entrance_clearance_mm": 1800,
    "grow_days": 5,
    "high_clumps": 8,
    "lawn_cap_permille": 150,
    "lawn_patch_permille": 45,
    "low_clumps": 2,
    "medium_clumps": 2,
    "medium_days": 2,
    "spread_permille": 100,
    "trunk_ring_mm": 1800,
    "wall_band_mm": 1400
  },
  "tree_scale_ppm": 780000,
  "village_status": {
    "community": [
      {
        "points": 5,
        "structure": "core:bench_structure"
      },
      {
        "points": 3,
        "structure": "core:chair_structure"
      },
      {
        "points": 20,
        "structure": "core:fireplace_structure"
      },
      {
        "points": 35,
        "structure": "core:old_house_structure"
      },
      {
        "points": 4,
        "structure": "core:signpost_structure"
      },
      {
        "points": 15,
        "structure": "core:stone_stove_structure"
      },
      {
        "points": 3,
        "structure": "core:stool_structure"
      },
      {
        "points": 15,
        "structure": "core:workbench_structure"
      }
    ],
    "home_points": 40,
    "larders": [
      "core:pantry_chest_structure"
    ],
    "levels": [
      {
        "mood": 35,
        "residents": 4
      },
      {
        "mood": 55,
        "residents": 7
      },
      {
        "mood": 75,
        "residents": 7
      }
    ],
    "safety": [
      {
        "points": 60,
        "structure": "core:fireplace_structure"
      },
      {
        "points": 20,
        "structure": "core:lantern_structure"
      }
    ],
    "satiety_per_day": 4,
    "shown": true,
    "sleeping": [
      {
        "points": 100,
        "structure": "core:bed_structure"
      },
      {
        "points": 70,
        "structure": "core:sleeping_bag_structure"
      }
    ],
    "supply_days": 3,
    "variety": 4
  },
  "village_storehouse": "core:storehouse_structure",
  "villager_provisions": {
    "bonus_permille": 500,
    "chest": "core:pantry_chest_structure",
    "minute": 60,
    "tag": "core:dish"
  },
  "villagers": [
    "core:sonja",
    "core:juana",
    "core:david",
    "core:nico",
    "core:marek",
    "core:wilma",
    "core:milo_brandt",
    "core:fenn",
    "core:ida",
    "core:camp_corvin",
    "core:camp_daw",
    "core:magpie",
    "core:camp_jay",
    "core:camp_raven",
    "core:camp_rook",
    "core:camp_chough",
    "core:camp_hooded_crow",
    "core:camp_nutcracker"
  ]
}