Difference between revisions of "BinaryPathWML"
From The Battle for Wesnoth Wiki
m (→the toplevel [binary_path] tag) |
ShikadiQueen (talk | contribs) (→the toplevel [binary_path] tag: Mention the [binary_path] vs. MULTIPLAYER issue) |
||
Line 5: | Line 5: | ||
* '''path''': a directory. When an image is not found it the normal ''images'' directory, it will be looked for in '''''path'''/images''. Similarly, music will be looked for in '''''path'''/music'', and sound in '''''path'''/sound''. | * '''path''': a directory. When an image is not found it the normal ''images'' directory, it will be looked for in '''''path'''/images''. Similarly, music will be looked for in '''''path'''/music'', and sound in '''''path'''/sound''. | ||
Notice that '''''path''''' is still relative to the main Wesnoth directory. | Notice that '''''path''''' is still relative to the main Wesnoth directory. | ||
+ | |||
+ | In Wesnoth 1.4 and earlier releases, [binary_path] was ignored when used inside a MULTIPLAYER symbol conditional, leading to awkward solutions such as: | ||
+ | |||
+ | [binary_path] | ||
+ | path=data/campaigns/Era_of_Myths/ | ||
+ | [/binary_path] | ||
+ | |||
+ | #ifdef MULTIPLAYER | ||
+ | ... | ||
+ | #endif | ||
+ | |||
+ | {{DevFeature}}: [binary_path] can be used in the MULTIPLAYER conditional in the development versions, to avoid possible clashes with single-player content. | ||
== See Also == | == See Also == |
Revision as of 00:19, 24 January 2009
the toplevel [binary_path] tag
This tag is used to recognize more than one directory as containing images, music, and sound. It only has one key:
- path: a directory. When an image is not found it the normal images directory, it will be looked for in path/images. Similarly, music will be looked for in path/music, and sound in path/sound.
Notice that path is still relative to the main Wesnoth directory.
In Wesnoth 1.4 and earlier releases, [binary_path] was ignored when used inside a MULTIPLAYER symbol conditional, leading to awkward solutions such as:
[binary_path] path=data/campaigns/Era_of_Myths/ [/binary_path] #ifdef MULTIPLAYER ... #endif
Template:DevFeature: [binary_path] can be used in the MULTIPLAYER conditional in the development versions, to avoid possible clashes with single-player content.