Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Difference between revisions of "Quake Map Format"
From Quake Wiki
Line 1: | Line 1: | ||
The Quake .map Format is a plain text file which contains definitions of [[Brush|brushes]] and [[Entity|entities]] to be used by [[QBSP]] and it's related compiling tools to create a [[BSP|.bsp file]] used by Quake as levels. They are generally created by [[Mapping_tools#General_Purpose_Editors|level editing software]]. | The Quake .map Format is a plain text file which contains definitions of [[Brush|brushes]] and [[Entity|entities]] to be used by [[QBSP]] and it's related compiling tools to create a [[BSP|.bsp file]] used by Quake as levels. They are generally created by [[Mapping_tools#General_Purpose_Editors|level editing software]]. | ||
− | = | + | =A simple map= |
{ | { | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
"classname" "worldspawn" | "classname" "worldspawn" | ||
"wad" "/gfx/base.wad" | "wad" "/gfx/base.wad" | ||
Line 36: | Line 18: | ||
"classname" "info_player_start" | "classname" "info_player_start" | ||
"origin" "256 384 160" | "origin" "256 384 160" | ||
+ | } | ||
+ | |||
+ | |||
+ | ==Structure== | ||
+ | { | ||
+ | entity | ||
+ | { | ||
+ | brush (optional) | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | ==Brush definition== | ||
+ | ( 128 0 0 ) ( 128 1 0 ) ( 128 0 1 ) GROUND1_6 0 0 0 1.0 1.0 | ||
+ | |||
+ | |||
+ | |||
+ | ==Entity definition== | ||
+ | { | ||
+ | "classname" "light" | ||
+ | "origin" "0 128 64" | ||
+ | "light" "255" | ||
} | } |
Revision as of 18:01, 26 March 2013
The Quake .map Format is a plain text file which contains definitions of brushes and entities to be used by QBSP and it's related compiling tools to create a .bsp file used by Quake as levels. They are generally created by level editing software.
A simple map
{ "classname" "worldspawn" "wad" "/gfx/base.wad" "worldtype" "0" { ( 128 0 0 ) ( 128 1 0 ) ( 128 0 1 ) GROUND1_6 0 0 0 1.0 1.0 ( 256 0 0 ) ( 256 0 1 ) ( 256 1 0 ) GROUND1_6 0 0 0 1.0 1.0 ( 0 128 0 ) ( 0 128 1 ) ( 1 128 0 ) GROUND1_6 0 0 0 1.0 1.0 ( 0 384 0 ) ( 1 384 0 ) ( 0 384 1 ) GROUND1_6 0 0 0 1.0 1.0 ( 0 0 64 ) ( 1 0 64 ) ( 0 1 64 ) GROUND1_6 0 0 0 1.0 1.0 ( 0 0 128 ) ( 0 1 128 ) ( 1 0 128 ) GROUND1_6 0 0 0 1.0 1.0 } } { "classname" "info_player_start" "origin" "256 384 160" }
Structure
{ entity { brush (optional) } }
Brush definition
( 128 0 0 ) ( 128 1 0 ) ( 128 0 1 ) GROUND1_6 0 0 0 1.0 1.0
Entity definition
{ "classname" "light" "origin" "0 128 64" "light" "255" }