Map loading
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.
Map loading
HI there is one thing i don´t understand. I created the basic settings of my campaign with campgen and edited it afterwards. Everything works fine beside the map loading. By default campgen includes the whole map inside the scenario cfg. I would like it much ore, if i could include the mapfile tself, but when i replace it this way
map_data="{campaigns/Deep_down_in_the_sludgy_swamp/maps/01_swamp}"
wesnoth couldn´t load the map anymore.
Can anyone tell me what the problem is.
(campgen 0.17 and wesnoth 1.1.3
map_data="{campaigns/Deep_down_in_the_sludgy_swamp/maps/01_swamp}"
wesnoth couldn´t load the map anymore.
Can anyone tell me what the problem is.
(campgen 0.17 and wesnoth 1.1.3
Re: Map loading
First of all, try writing it as:Mille wrote:map_data="{campaigns/Deep_down_in_the_sludgy_swamp/maps/01_swamp}"
wesnoth couldn´t load the map anymore.
Can anyone tell me what the problem is.
Code: Select all
map_data="{@campaigns/Deep_down_in_the_sludgy_swamp/maps/01_swamp}"
Re: Map loading
HI
Thanks Zookeeper. This works. But can you explain it?
I´m just curious. In "Heirs to the the throne" there is no @ character ?
Thanks Zookeeper. This works. But can you explain it?
I´m just curious. In "Heirs to the the throne" there is no @ character ?
zookeeper wrote:First of all, try writing it as:Mille wrote:map_data="{campaigns/Deep_down_in_the_sludgy_swamp/maps/01_swamp}"
wesnoth couldn´t load the map anymore.
Can anyone tell me what the problem is.And if it still doesn't work, verify that the directory structure is right and that the map file actually exists.Code: Select all
map_data="{@campaigns/Deep_down_in_the_sludgy_swamp/maps/01_swamp}"
Re: Map loading
I think the @ just points to the userdata/data/ directory. Mainline campaigns don't need to use it, since they don't reside in userdata.Mille wrote:I´m just curious. In "Heirs to the the throne" there is no @ character ?
Re: Map loading
ok thankszookeeper wrote:I think the @ just points to the userdata/data/ directory. Mainline campaigns don't need to use it, since they don't reside in userdata.Mille wrote:I´m just curious. In "Heirs to the the throne" there is no @ character ?
The ~ points to the userdata directory. The @ points to both - it looks first in the game directory then the user directory. Before the @ symbol, we used to have to use this construction:
map_data="{CAMPAIGNS/MYCAMPAIGN/MAPS/mapname}{~CAMPAIGNS/MYCAMPAIGN/MAPS/mapname}"
Also, back then people were sometimes installing campaigns into the game data directory, thus the need for the two entries.
map_data="{CAMPAIGNS/MYCAMPAIGN/MAPS/mapname}{~CAMPAIGNS/MYCAMPAIGN/MAPS/mapname}"
Also, back then people were sometimes installing campaigns into the game data directory, thus the need for the two entries.
Hope springs eternal.
Wesnoth acronym guide.
Wesnoth acronym guide.