# Configuration

> Choose the source of global settings, configure integrations, and understand which changes affect existing activities.

Paths on this page are relative to the installed `sky_activities` resource.

## Choose the settings source

`Config.UseActivitiesConfig` in `config/config.lua` selects the source of **global operator settings**:

<table>
<thead>
  <tr>
    <th>
      Value
    </th>
    
    <th>
      Effective settings
    </th>
    
    <th>
      How to change them
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        true
      </code>
      
       — default
    </td>
    
    <td>
      Saved database values over the shipped defaults
    </td>
    
    <td>
      <code>
        /activitiesconfig
      </code>
      
       → Operation
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        false
      </code>
    </td>
    
    <td>
      Operator values in <code>
        config/config.lua
      </code>
    </td>
    
    <td>
      Edit Lua and restart the resource
    </td>
  </tr>
</tbody>
</table>

In editor mode, the operator values lower down in `config/config.lua` are ignored. In Lua mode, global settings in the editor are read-only and stored global settings are left intact. Switching back to editor mode uses those stored values again. Restart after changing the source switch.

**The activity, arena and track editor remains available in both modes.** Each saved activity has its own rules. Changing defaults for new activities does not change existing definitions; edit those definitions directly.

## Configuration files

<table>
<thead>
  <tr>
    <th>
      File
    </th>
    
    <th>
      What to configure
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        config/config.lua
      </code>
    </td>
    
    <td>
      Settings source, startup options and Lua-mode operator values
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        config/bowling.lua
      </code>
    </td>
    
    <td>
      Bowling venue geometry, required map resources and resource-name overrides
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        config/karting_server.lua
      </code>
    </td>
    
    <td>
      Optional server-only kart results Discord integration
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        config/locales/*.lua
      </code>
    </td>
    
    <td>
      Player-facing text; the active language comes from Sky Base
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        editable-textures/signage/catalogue.csv
      </code>
    </td>
    
    <td>
      Sign text, texture names and the YTD files to edit
    </td>
  </tr>
</tbody>
</table>

Keep Discord webhook credentials in the server-only configuration. Fixed Sky models and authored course data are part of the supplied implementation; use the editor or the documented bowling configuration for customer locations.

## Options that always come from Lua

These startup/integration options remain in `config/config.lua` regardless of the settings source:

- `AdminCommand`, `PlayerCommand`, `LeaveCommand`, `TestCommand`.
- `AdminGroups` and `AdminAce`.
- `BucketStart` and `BucketCount`.
- `VenueScreens.iceServers`.

Restart after editing them. Language and inventory-provider selection belong to Sky Base. `DisableInventory` in Activities controls whether the supported inventory may be used during the relevant games.

The shipped `VenueScreens.iceServers` block uses `{ urls = "stun:stun.l.google.com:19302" }` for spectator peer discovery. Keep an existing working custom STUN/TURN configuration. An empty list limits discovery to connections that work without those servers; use client-safe TURN credentials if your network needs a relay. These connection settings always come from Lua, including in editor mode.

## Global operator settings

General settings include activity switches, default match rules, allowed arena props and kart models, weapon behavior, paint grenades, powerups, kart options, audio and venue screens. `Sports.automatic` controls discovery of supported existing billiard tables, dartboards and air-hockey tables.

For table tennis, open `/activitiesconfig` → Operation → Sports → Table tennis camera. Choose **Third-person** for the angled player-side view or **Top-down** for the earlier overhead view, then save. In Lua mode only, set `Config.PingPongCamera = "thirdperson"` or `"topdown"` after `Config.PoolAimAssist` in `config/config.lua`, then restart. The default is `thirdperson`.

`EnableBowling` controls bowling as a whole. `BowlingLocations.<id>` controls each hall. In editor mode these are saved through the Bowling settings group; in Lua mode they come from `config/config.lua`. The geometry and `resources` lists in `config/bowling.lua` are installation data in both modes. See [Bowling MLOs](../mapping/bowling-mlos).

Most saved global settings apply after saving. `InstallVenuePresets` takes effect on the next resource start. Existing matches use their session rules; test changed rules in a newly started game.

## Weather and time

Sky Base owns the local weather/time integration. Select the provider with `Config.weather` in `sky_base/config/config.lua`. `"auto"` detects `esx_weather`, Kibook's `weathersync`, `Renewed-Weathersync`, `qb-weathersync` or `cd_easytime`, and uses natives when no supported provider is found. QB and CD need the provider changes in the [Sky Base weather tutorial](/docs/base/weather-integrations).

Activities requests local **CLEAR** weather for its combat, karting and minigolf sessions. Lasertag and minigolf use **00:00**; paintball and karting keep the current clock hour. Leaving releases the owned override through Sky Base. The current operator settings do not include an `Environment.enabled` switch.

When updating, move the former Activities `Environment.provider` selection to Base's `Config.weather` and any customer adapter to `sky_base/config/integration/weather/custom.lua`. Activities no longer loads `config/environment.lua`. Update Base and Activities together; check restoration as well as entry.

## Updates and backups

Keep copies of your configuration, database tables, custom map resources, edited YTDs and any [bowling map exclusions](../mapping/bowling-mlos#replace-the-sky-del-perro-building). Merge configuration changes when updating instead of overwriting new fields with an old file.

Activities uses `/activitiesconfig`; there is no Activities `/jobconfig` section.
