Cannot get campaign to post
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.
Cannot get campaign to post
Hey all, I'm super new to this and I've been trying to take things one step at a time. I thought everything was going good, but I couldn't figure out why my campaign isn't posting. I try making the main.cfg as simple a clear-cut as possible, but I still can't find the problem.
By posting, I mean it's not showing up.
Thanks for reviewing it!
By posting, I mean it's not showing up.
Code: Select all
#textdomain wesnoth-FT
[textdomain]
name="wesnoth-FT"
[/textdomain]
[campaign]
name= _ "A Friendship Tested"
id=aFriendshipTested
define=CAMPAIGN_FRIENDSHIPTESTED
icon="data\add-ons\AFriendshipTested\images\campaignicon.png"
description= _ "With increasing pressure from invaders, an old alliance is pushed to its limits."
first_scenario="01_savinglocket"
difficulties=NORMAL
[difficulty]
define=NORMAL
image=units/dwarves/explorer.png
label=_"Normal"
[/difficulty]
[/campaign]
#ifdef CAMPAIGN_FRIENDSHIPTESTED
[binary_path]
path="data/add-ons/AFriendshipTested"
[/binary_path]
{~add-ons/AFriendshipTested/scenarios}
{~add-ons/AFriendshipTested/maps}
{~add-ons/AFriendshipTested/images}
#endif
Re: Cannot get campaign to post
Did you also make a _server.pbl file? https://wiki.wesnoth.org/PblWML
After you make one, you should be able to scroll to the bottom of the add-ons list and see a "Publish" option.
EDIT: Oh wait maybe it's the icon? I think only icons from core will show up on the addon server. Not sure why the campaign itself wouldn't show up though.
After you make one, you should be able to scroll to the bottom of the add-ons list and see a "Publish" option.
EDIT: Oh wait maybe it's the icon? I think only icons from core will show up on the addon server. Not sure why the campaign itself wouldn't show up though.
Screenshot playthroughs: Let's Play Dead Water, Let's Play Invasion from the Unknown and Let's Play After the Storm
Re: Cannot get campaign to post
Use / not \ and ensure you have named your file _main.cfg.
Re: Cannot get campaign to post
Thanks, I have made the change and substituted the backslashes for the forward slashes, as well as renamed the file to _main.cfg.
I'm not trying to publish it, as it's not ready yet. Appreciate the advice though!
Unfortunately, with these changes, it's still not showing up in the campaign menu.
_main.cfg
I'm not trying to publish it, as it's not ready yet. Appreciate the advice though!
Unfortunately, with these changes, it's still not showing up in the campaign menu.
_main.cfg
Code: Select all
#textdomain wesnoth-FT
[textdomain]
name="wesnoth-FT"
[/textdomain]
[campaign]
name= _ "A Friendship Tested"
id=aFriendshipTested
define=CAMPAIGN_FRIENDSHIPTESTED
image="data/add-ons/AFriendshipTested/images/campaignicon.png"
description= _ "With increasing pressure from invaders, an old alliance is pushed to its limits."
first_scenario="01_savinglocket"
difficulties=NORMAL
[difficulty]
define=NORMAL
image=units/dwarves/explorer.png
label=_"Normal"
[/difficulty]
[/campaign]
#ifdef CAMPAIGN_FRIENDSHIPTESTED
[binary_path]
path="data/add-ons/AFriendshipTested"
[/binary_path]
{~add-ons/AFriendshipTested/scenarios}
{~add-ons/AFriendshipTested/maps}
{~add-ons/AFriendshipTested/images}
#endif
Re: Cannot get campaign to post
Is your campaign folder in the same directory as other Wesnoth add-ons?
I made a folder with your _main.cfg posted above and it showed up in my campaign menu.
I made a folder with your _main.cfg posted above and it showed up in my campaign menu.
Screenshot playthroughs: Let's Play Dead Water, Let's Play Invasion from the Unknown and Let's Play After the Storm
Re: Cannot get campaign to post
Haha! I found the issue. The file was doubly named, _main.cfg.cfg by mistake.
Thanks for the help guys!
Thanks for the help guys!