Skip to content

Kinds of level

A levellevel: A file of entities: a map, or a smaller piece placed inside one. is always the same thing: a tree of entities. What makes one a “map” and another a “prop” is only how it’s used. A big level places smaller ones, which place smaller ones still, using the prefab component.

So a map like Back Alley is a handful of levels, each with one job.

  • backalley_standard_playablewhat the game loads for the map
    • masterprefabplaces backalley_master
      • parkingprefaba prop prefab: cars, bins, crates
      • drainageprefabanother prop prefab
      • collisionprefabthe invisible walls and floors
      • lightingprefabsun, fog, reflections
      • audioprefabambient sound
      • catch_worldcatch_worldmap-wide rules: kill height, intro shots
    • variantprefabplaces the gameplay layout: spawns for players and balls
The shape of a map, simplified. The real Back Alley master places over eighty prefabs.
Kind What’s in it Open it to…
Master The map’s root: places every piece of the map, plus the map-wide rules. Move or swap a whole piece of the map.
Prop prefab Placed props: buildings, cars, crates, signs. Change the scenery itself.
Collision One invisible mesh everything stands on and bumps into. (Rarely: it’s a baked mesh.)
Lighting The sun, fog, colour grading, and the baked light data. One per time of day and platform. Change the mood.
VFX and audio The map’s effects and ambient sound. Add sparks, change a hum.
Variant The gameplay layout: where players spawn, where balls appear. One per mode. Change spawns for a mode.
Playable Just two entities: one places the master, one the variant. Nothing. It’s what the game loads.

There are also data levels with no geometry at all, just singleton entities holding settings, such as the level behind the store’s catalogue.

The game doesn’t load files by searching for them. It loads a map through its playable level’s packagepackage: A bundle of files the game loads together, such as everything one map needs. Studio keeps the lists of what is in each package for you.: a list of every file that map needs, in the order to load them. The Back Alley list has almost eight thousand entries: every level, model, material, animation and sound the map uses.

So:

  • Changing a level that’s already on the list (any level the map ships with) works as it is. Your copy replaces the original at the same place on the list.
  • Adding something new, such as a new prefab or a new model inside one, means it must join the list, ahead of whatever needs it. Studio does this when you save: it follows what your level now uses and adds it to the right lists.

When you saved your first change, Studio reported “1 package list updated”: it had added what your change needed to the hideout’s list.

Adding a map the game has never heard of means new entries in the game’s own catalogues and a new kind of map in its match settings, and nobody has shown yet that the game accepts that. Changing and dressing up the existing maps is well understood and is what these docs cover.

For programmers

All levels share one format; “master”, “prefab”, “variant” and “playable” are roles. A map is reachable only through a chain: a .map_def names the playable level’s .package, whose .package_list is the full load order for the map. A changed file at an existing path needs no list change; a new one must be added to the list ahead of whatever references it, which Studio’s save does from the reference graph.

Prefabs and instances: how one file becomes fifty props, each a little different.