This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

Include: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
Mr Burns (talk | contribs)
Zehra (talk | contribs)
added category
 
(3 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 essential in 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.