This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "Include"

From BZFlagWiki
Jump to: navigation, search
m (Re-worded an overly presumptuous statement,)
(added category)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Include''' is an option in bzflag mapping that allows you to specify a second bzw file that will be included in the first bzw. Both files are then loaded by bzfs as a single bzw. It is very easy to use, just put this in the first bzw.
+
'''Include''' is an option in bzflag mapping that allows you to specify a second bzw file that will be included in the first bzw. Both files are then loaded by bzfs as a single bzw. It is very easy to use, just put this in the first bzw. Unfortunately spaces in the path do not work, and other errors may occur.
  
 
<code>include /path/to/file.bzw</code>
 
<code>include /path/to/file.bzw</code>
  
Include can be used in many ways. When several mappers are all working on a single map, it has proved very useful. Mappers using Wings3D have found it useful to maintaining a separate materials file, as Wings3D overwrites any image URLs at export.
+
Include can be used in many ways. It has proved very useful when several mappers are all working on a single map, and mappers frequently exporting from applications such as Wings3D have found it useful to maintain a separate materials file, as these can often overwrite any image URLs at export. Some people have used includes to isolate regularly modified parts of a map file, for ease of changing. As an example, the material definitions for the Planet MoFo Billboards are stored in a separate file so they can be changed quickly.
  
 
[[Category:Map Making]]
 
[[Category:Map Making]]
 +
[[Category:Map Objects]]

Latest revision as of 04:07, 22 November 2016

Include is an option in bzflag mapping that allows you to specify a second bzw file that will be included in the first bzw. Both files are then loaded by bzfs as a single bzw. It is very easy to use, just put this in the first bzw. Unfortunately spaces in the path do not work, and other errors may occur.

include /path/to/file.bzw

Include can be used in many ways. It has proved very useful when several mappers are all working on a single map, and mappers frequently exporting from applications such as Wings3D have found it useful to maintain a separate materials file, as these can often overwrite any image URLs at export. Some people have used includes to isolate regularly modified parts of a map file, for ease of changing. As an example, the material definitions for the Planet MoFo Billboards are stored in a separate file so they can be changed quickly.