Specifying locations of binary files
Moderator: Forum Moderators
Specifying locations of binary files
In order to allow campaign developers to provide entire campaigns that go under a single directory, I've added a new feature to WML which allows specification of a path to look for binary files.
At the top level, you can add a tag as follows:
Then, whenever Wesnoth loads images, it will look in the directories
[wesnoth-path]/data/mycampaign/binary/images/
$HOME/.wesnoth/data/mycampaign/binary/images/ (or equivalent on non-Unix systems)
Likewise, when looking for sound effects, it will look in the directories
[wesnoth-path]/data/mycampaign/binary/sounds/
$HOME/.wesnoth/data/mycampaign/binary/sounds/ (or equivalent on non-Unix systems)
This should enable campaign makers to package their entire campaign below one directory.
David
At the top level, you can add a tag as follows:
Code: Select all
[binary_path]
path=data/mycampaign/binary
[/binary_path]
[wesnoth-path]/data/mycampaign/binary/images/
$HOME/.wesnoth/data/mycampaign/binary/images/ (or equivalent on non-Unix systems)
Likewise, when looking for sound effects, it will look in the directories
[wesnoth-path]/data/mycampaign/binary/sounds/
$HOME/.wesnoth/data/mycampaign/binary/sounds/ (or equivalent on non-Unix systems)
This should enable campaign makers to package their entire campaign below one directory.
David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming