Skip to main content

Old maps

Maps made for SBO 1.38 load and play in SBO 2.0.0 and later without a new compile, and a compatibility file that comes with the game keeps custom maps playing as they did in SBO 1.38. SBO 2.0.0 reads some keys SBO 1.38 ignored, and some custom maps have such a key by accident.

The compatibility file​

Some custom maps have a key SBO 1.38 ignored and SBO 2.0.0 reads, for example a key the editor showed and the mapper filled in, but which did nothing at that time. On those maps, the key would change how the map plays, so the game comes with the file maps/map_compat.txt, which removes or changes such keys while the map loads.

Each line of the file is one entry, like this:

// <map> <crc32> drop <classname> <selector> <key>
// <map> <crc32> set <classname> <selector> <key> <value>
co_aneki 31a9fe30 drop env_shooter fleshshot scale
PartValue
mapThe map name, without maps/ and .bsp, in upper or lower case
crc32The CRC-32 of the whole .bsp file, in 8 hexadecimal digits
dropRemoves the key, so the entity uses its default
setGives the key the value at the end of the line
classnameThe class of the entities to change
selectorWhich entities of the class to change: * for all of them, #N for the entity at position N of the map's entity list, where 0 is worldspawn, or a name for every entity of the class with that name
keyThe key to remove or change

An entry only applies to the .bsp file with its checksum, so when an author updates a map, the new file has a different checksum and the entry doesn't apply to it. An entry also only acts while the map loads, so it doesn't change a key that changes later, for example through a trigger_changevalue. With developer 1 set in the console, the console shows each change. A server can turn the file off with mp_map_compat.

Server setting (in server.cfg or the server console): mp_map_compat

What SBO 2.0.0 does to every map​

Two changes apply to old and new maps alike:

  • Footsteps, bullet hit sounds and impact effects follow the materials of the textures, and this includes the SBO textures
  • Models with a scale key show at that scale (see Model scale)

SBO 1.38 entities​

SBO 2.0.0 replaced the SBO 1.38 rain and snow entity. If an old map has it, the game puts an env_rain or env_snow with its default settings in its place, so rain stays rain and snow stays snow, and with developer 1 set in the console, a console message tells you so. See Weather and fog for more details.

See also​