binary_path not working
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
binary_path not working
Hi, when I make my _main.cfg, I have to put the binary_path that's outside the #ifdef pointing to the folder, not to the external_binary_data folder, or it can't find the images.
Help would be appreciated.
WYRMY.
Code: Select all
#textdomain wesnoth-sotgs
[textdomain]
name="wesnoth-sotgs"
[/textdomain]
##### if I have this, the image won't show up
[binary_path]
path="data/campaigns/Swords_of_the_Golden_Sands/external_binary_data"
[/binary_path]
##### if I have this, the image will show up
##### of course I would have to change the path inside [campaign][/campaign]
[binary_path]
path="data/campaigns/Swords_of_the_Golden_Sands"
[/binary_path]
[campaign]
id=Swords_of_the_Golden_Sands
rank=300
icon=raider.png~RC(magenta>black)
name= _ "<255,204,0>Swords of the Golden Sands"
abbrev= _ "SotGS"
define=CAMPAIGN_SOTGS
first_scenario=01_Dawn_Raid
difficulties=EASY,NORMAL,HARD
difficulty_descriptions={MENU_IMG_TXT2 "fighter.png~RC(magenta>black)" _"Fighter" _"(Easy)"} +
";*" + {MENU_IMG_TXT2 "raider.png~RC(magenta>black)" _"Raider" _"(Normal)"} + ";" +
{MENU_IMG_TXT2 "elite.png~RC(magenta>black)" _"Elite" _"(Hard)"}
description= _ "A desert chieftan must fight to save his tribe from mysterious happenings. Will he succeed, or will the shadow of chaos descend upon the men of the desert and rent them asunder?
Set after the fall of wesnoth.
Version 0.1.0
Report bugs to WYRMY."
# image=portraits/.png
[/campaign]
#ifdef CAMPAIGN_SOTGS
[binary_path]
path=data/campaigns/Swords_of_the_Golden_Sands
[/binary_path]
[+units]
{@campaigns/Swords_of_the_Golden_Sands/units}
[/units]
[+images]
{@campaigns/Swords_of_the_Golden_Sands/images}
[/images]
{@campaigns/Swords_of_the_Golden_Sands/macros}
{@campaigns/Swords_of_the_Golden_Sands/scenarios}
{@campaigns/Swords_of_the_Golden_Sands/about.cfg}
#endif
WYRMY.
Re: binary_path not working
I'm not sure what your problem is, but I do know that the following code does nothing at all:
There is no [image] tag, nor does including a folder containing no *.cfg files do anything.
Code: Select all
[+images]
{@campaigns/Swords_of_the_Golden_Sands/images}
[/images]
Re: binary_path not working
Maybe you should actually tell where you have those images of yours, like raider.png.
Re: binary_path not working
I had a suspicion about this, after after finishing my campaign it had the [image] path wrong. I'll delete it.AI wrote:I'm not sure what your problem is, but I do know that the following code does nothing at all:There is no [image] tag, nor does including a folder containing no *.cfg files do anything.Code: Select all
[+images] {@campaigns/Swords_of_the_Golden_Sands/images} [/images]
In the toplevel directory, I have a folder called external_binary_data.zookeeper wrote:Maybe you should actually tell where you have those images of yours, like raider.png.
Inside I have raider.png etc.
Re: binary_path not working
Images are looked in the images/ subdirs of all binary paths. Move them to external_binary_data/images/ and they'll work.WYRMY wrote:In the toplevel directory, I have a folder called external_binary_data.zookeeper wrote:Maybe you should actually tell where you have those images of yours, like raider.png.
Inside I have raider.png etc.