dont see my single player campaign in campaign list.

The place to post your WML questions and answers.

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.
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

dont see my single player campaign in campaign list.

Post by alluton »

I got campaign file in mygames/wesnoth.1.8/data/add-ons/Rebellion

there is files maps and scenarios and main.cfg

maim.cfg
Spoiler:
scenario(this still needs talking and objectives.)
Spoiler:
so why it dont show on campaigns list on wesnoth?
"This game cured me of my real life addiction."
-Flameslash
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: dont see my single player campaign in campaign list.

Post by zookeeper »

alluton wrote:main.cfg
alluton wrote:maim.cfg
It's supposed to be _main.cfg.
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: dont see my single player campaign in campaign list.

Post by alluton »

okey _main.cfg

put you doesent answers quiestion:why it doesent show on campaign list?

Edit:it does shows now. Thank you very very much :D :D :D :D :D :D
"This game cured me of my real life addiction."
-Flameslash
User avatar
SkyOne
Posts: 1310
Joined: January 3rd, 2009, 7:23 pm

Re: dont see my single player campaign in campaign list.

Post by SkyOne »

Good! Your campaign almost works.

Just a quick note: "type" on the scenario is equal to "id" on the unit file. So you need to correct:
spearman-->Spearman
peasant-->Peasant
swordman-->Swordsman
to avoid the unknown unit type error.

Actually, before that, you might hit the unknown scenario error because of "controller=AI", instead of controller=ai. Wesnoth cares small letters<-->capital letters in the most of cases (not all). So be careful.


Another a little thing:
Pentarctagon on another thread means your campaign i-con should be: icon=units/human-outlaws/highwayman.png


EDIT: controller=AI does not make an error on current BfW. Sorry about it. Just ignore the part please.
Fate of a Princess/feedback thread: "What is in own heart that is the most important, not who you are."
Drake Campaign: Brave Wings/feedback thread, Naga Campaign: Return of the Monster, Saurian Campaign: Across the Ocean
Northern Forces - now on 1.12 server
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: dont see my single player campaign in campaign list.

Post by alluton »

Actually i figuer it out myself that how to write units. Well actually i still got problem i will post it here in couple hours if cannot fix it.

here is my new _main.cfg
Spoiler:
and here is first scenario file
Spoiler:
Any ideas why it shows message when i try start it.
Message is unknown scenario= "Test"

what i do wrong?

ps.Icon is working now.

pss.you guys are really helpfull. Thank you.

Edit: also tell if you saw bad english or mispelling or anything like that:D (english is not my first langue)
"This game cured me of my real life addiction."
-Flameslash
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: dont see my single player campaign in campaign list.

Post by zookeeper »

Exactly because of what the message said; there's no scenario with the id "Test":
alluton wrote: first_scenario=Test
alluton wrote:id=Rebellion
You also have at least 4 unclosed quotes in the scenario file.
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: dont see my single player campaign in campaign list.

Post by alluton »

could tell me where these unclosed quetes are?

ps.thank you for answers .

Edit: i changed name and id to Test

put still it says unknown scenario.

there is scenario file once more
Spoiler:
"This game cured me of my real life addiction."
-Flameslash
User avatar
Pentarctagon
Project Manager
Posts: 5734
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: dont see my single player campaign in campaign list.

Post by Pentarctagon »

the story/part is missing a closing quote.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: dont see my single player campaign in campaign list.

Post by alluton »

Okey i fixced that.
"This game cured me of my real life addiction."
-Flameslash
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: dont see my single player campaign in campaign list.

Post by alluton »

can you tell me where does define scenario excatly belongs.
Spoiler:
plz repost this code whit define scenario added there.

Fixced story/part closing quete.

ps. thansk for help/answers
"This game cured me of my real life addiction."
-Flameslash
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: dont see my single player campaign in campaign list.

Post by zookeeper »

alluton wrote:can you tell me where does define scenario excatly belongs.
Exactly where you correctly had it in your first post.
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: dont see my single player campaign in campaign list.

Post by alluton »

now i got some kind error message what says closing tag missing for tag scenario.

in my opinion there is closing tag for that :D
Spoiler:
so how it can say you are missign closing tag for scenario?

i feel little stubid to aks but are you sure define scenario is right in my first post?
"This game cured me of my real life addiction."
-Flameslash
monochromatic
Posts: 1549
Joined: June 18th, 2009, 1:45 am

Re: dont see my single player campaign in campaign list.

Post by monochromatic »

alluton wrote:now i got some kind error message what says closing tag missing for tag scenario.

in my opinion there is closing tag for that :D
When the computer says you are missing a tag for a certain tag, it usually means that a tag within that tag is not done correctly. Anyhow, the problem is this:
alluton wrote:
Spoiler:
so how it can say you are missign closing tag for scenario?
You are missing quotes, as already mentioned before. Please look out for obvious errors like these. And enclose your code in

Code: Select all

 tags. It's easier to read with indentation. 

[quote="alluton"]i feel little stubid to aks but are you sure define scenario is right in my first post?[/quote]
Hey, do you know who you were dealing with? zookeeper! He's probably the most knowledgeable 'WML Wizard' around. If he tells you something and it doesn't work, you're probably doing something wrong.
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: dont see my single player campaign in campaign list.

Post by alluton »

elvish_sovereign wrote:
alluton wrote: Hey, do you know who you were dealing with? zookeeper! He's probably the most knowledgeable 'WML Wizard' around. If he tells you something and it doesn't work, you're probably doing something wrong.
Hey i know that!. Anyway thnx for help sovereign
Spoiler:

ps.sovereign i know im doing something wrong. Otherwise i would be doing it. Not just asking help around here:D

Edit: closing tags should be okey now. But error message is still excatly same.
"This game cured me of my real life addiction."
-Flameslash
User avatar
SkyOne
Posts: 1310
Joined: January 3rd, 2009, 7:23 pm

Re: dont see my single player campaign in campaign list.

Post by SkyOne »

alluton wrote:Edit: closing tags should be okey now. But error message is still excatly same.
Yes, because you still have:

Code: Select all

            [modifications]
                {TRAIT_LOYAL]
            [/modifications]
for an unit, named soldier1.

After fixing it, the campaign will probably work, but you will lose it after the first turn because of "Turns=20". It should be "turns=20".
Fate of a Princess/feedback thread: "What is in own heart that is the most important, not who you are."
Drake Campaign: Brave Wings/feedback thread, Naga Campaign: Return of the Monster, Saurian Campaign: Across the Ocean
Northern Forces - now on 1.12 server
Post Reply