How to make scenario playable?(in single player atleast)

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

How to make scenario playable?(in single player atleast)

Post by alluton »

answer question plz.

Thank you for all 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: How to make scenario playable?(in single player atleast)

Post by zookeeper »

How to make scenario playable?
By doing it right.
Thank you for all answers.
You're welcome!

P.S. Ask better.
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: How to make scenario playable?(in single player atleast)

Post by alluton »

okey how where to put files and what files are needed
"This game cured me of my real life addiction."
-Flameslash
monochromatic
Posts: 1549
Joined: June 18th, 2009, 1:45 am

Re: How to make scenario playable?(in single player atleast)

Post by monochromatic »

You could try reading the documentation in the big 'Create' at the top of the page.
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: How to make scenario playable?(in single player atleast)

Post by Anonymissimus »

Download "Campaign-How-To" from the 1.8 server and look how it's done.

Btw @zookeeper maybe it's a good idea if you look at that too, in case I wrote some bad description or so...
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml startersPlan Your Advancements: mp mod
The Earth's Gut: sp campaignSettlers of Wesnoth: mp scenarioWesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
User avatar
SkyOne
Posts: 1310
Joined: January 3rd, 2009, 7:23 pm

Re: How to make scenario playable?(in single player atleast)

Post by SkyOne »

Okay, this is a blank campaign. You can install your files in there.
I recommend to take a look at A Simple Campaign to refer the code. It is downloadable here: http://wiki.wesnoth.org/BuildingCampaignsTutorial
Or the last post (although Anon posted ahead).
Attachments
campaign.zip
(10.57 KiB) Downloaded 107 times
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: How to make scenario playable?(in single player atleast)

Post by alluton »

i got stuff in mygames/wesnoth1.8/data/add-ons/Rebellion

there i got files maps
and scenarios



map:border_size=1
usage=map

Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg
Gg , Gg , Gs^Fp , Gg , Gs^Fp , Gg , Gs^Fp , Gg , Gs^Fp , Gg , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gs^Fp , Gg , Gs^Fp , Gg , Gg , Gs^Fp , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gg
Gg , Gg , Gg , Gs^Fp , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gs^Fp , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg
Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gg , Gs^Fp , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gg , Gg
Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gg , Gg , Gg , G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p , Gg , Gg , Gg , Gg , Gg
Gg , Gg , Gs^Fp , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gs^Fp , Gg , Gs^Fp , Gg , Gg
Gg , Gg , Gg , Gs^Fp , Gg , Gs^Fp , Gg , Gg , Gg , Gg^Ve , Gg , Gg , Gs^Fp , Gs^Fp , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gg
Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gg , Gg , Gg , Gs^Fp , Gg , Gg
Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gs^Fp , Gs^Fp , Gg , Gg , Gg , Gg , Gg^Ve , Gg , Gg , Gs^Fp , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gs^Fp , Gg , Gg
Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gs^Fp , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg
Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gs^Fp , Gg , Gs^Fp , Gs^Fp , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gg , Gs^Fp , Gg , Gs^Fp , Gs^Fp , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gg^Ve , Gg , Gg , Gg
Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gs^Fp , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gg
Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg^Wm , Gg , Gg , Gs^Fp , Gg , Gs^Fp , Gg , Gg , Gg
Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Ch , Gg , Gg , Gs^Fp , Gg , Gg , Gs^Fp , Gg , Gg
Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Ch , Ch , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Ch , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gg
Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Ch , Rd , Rd , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Ch , Gg , Gg , Gs^Fp , Gs^Fp , Gg , Gg , Gg
Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Gg^Ve , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Rd , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg
Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gg , Gg , Gs^Fp , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Rd , Rd , Gg , Gg , Ch , Gg , Gg , Gg^Ve , Rd , Rd , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gg , Gg
Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Rd , Gg , Rd , Ch , 2 Kh , Ch , Rd , Rd , Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gg , Gg , Gg
Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg^Wm , Gg , Gg , Gg^Ve , Gg , Rd , Gg , Ch , Ch , Ch , Gg , Rd , Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gs^Fp , Gg , Gg
Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Rd , Gg , Gg , Gg , Gg , Gg , Rd , Rd , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg
Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gg^Ve , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Rd , Rd , Gg , Gg , Gg , Gg , Gg , Gg^Ve , Rd , Gg , Gg , Re^Gvs , Gg , Gs^Fp , Gs^Fp , Gg , Gg
Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Rd , Gg^Ve , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Rd , Gg , Gg , Re^Gvs , Gg , Gg , Gg , Gs^Fp , Gg
Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Re^Gvs , Gg , Gg , Gg , Gg , Gg , Ch , Gg , Rd , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Ch , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gg
Gg , Gg , Gs^Fp , Gs^Fp , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg , Gg , Ch , Ch , Rd , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Ch , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg
Gg , Gg , Gg , Gg , Gg , Gg , Gg^Ve , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Ch , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gs^Fp , Gg , Gg
Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Re^Gvs , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Re^Gvs , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gg , Gg
Gg , Gg , Ce , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg^Ve , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg
Gg , 1 Ke , Ce , Ce , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gg , Gg , Gg
Gg , Ce , Ce , Ce , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg



and scenario:#textdomain wesnoth-anl
[multiplayer]
id=multiplayer_A_Test_Map
name= _ "2p - A Test Map"
map_data="{add-ons/Rebellion/maps/TEST.map}"

{DEFAULT_SCHEDULE}
{DEFAULT_MUSIC_PLAYLIST}



[side]
[ai]
villages_per_scout=12
[/ai]
side=1
canrecruit=yes
controller=human
team_name=north
user_team_name= _ "teamname^North"
fog=no
[/side]
[side]
[ai]
villages_per_scout=12
[/ai]
side=2
canrecruit=yes
controller=computer
team_name=east
user_team_name= _ "teamname^East"
fog=no
[/side]

[event]
name="prestart"
[unit]
name=spearman
side=1
x,y=10,10
[/unit]
[/event

[/multiplayer]


it doesent show on wesnoth multiplayer list still.

So what ineed to do next?
"This game cured me of my real life addiction."
-Flameslash
User avatar
Dixie
Posts: 1757
Joined: February 10th, 2010, 1:06 am
Location: $x1,$y1

Re: How to make scenario playable?(in single player atleast)

Post by Dixie »

You might probably need a "main.cfg" file. Also: you can write code in

Code: Select all

 tags on the forum. Placing those in [spoiler] tags can also be quite user friendly :)
Jazz is not dead, it just smells funny - Frank Zappa
Current projects: Internet meme Era, The Settlers of Wesnoth
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: How to make scenario playable?(in single player atleast)

Post by alluton »

okey lets try
Spoiler:
okey thnx.
"This game cured me of my real life addiction."
-Flameslash
User avatar
boru
Posts: 788
Joined: November 19th, 2009, 11:02 pm

Re: How to make scenario playable?(in single player atleast)

Post by boru »

You will want a [side] tag at the very top.

Also, specify what units the sides can recruit, using recruit=
“It is written in my life-blood, such as that is, thick or thin; and I can no other.” - J.R.R. Tolkien

My campaign: Swamplings - Four centuries before the founding of Wesnoth, the first wolf rider emerges from a tribe of lowly swamp goblins.
User avatar
SkyOne
Posts: 1310
Joined: January 3rd, 2009, 7:23 pm

Re: How to make scenario playable?(in single player atleast)

Post by SkyOne »

boru wrote:You will want a [side] tag at the very top.
He actually did not copy well from the original code. He just tried to use the

Code: Select all

 + [spoiler] tag by following Dixie's advise. 
It was not really necessary actually in this case. Dixie probably means for the next time, or editing the previous post.


By the way, alluton, you should post clearly to tell us what you would like to do. On the subject, it seems you like to create a SP campaign, but the code shows a MP campaign. Either cases, you need at least unit type in the side tag as your leader unit, and <add-ons> should be <~add-ons> on the map_data. But I think they do not help you at this moment. So attaching your folder on this thread will probably give you the fastest solution, I think. Zipping up the folder will be needed in the case.

P.S. the map file is fine though.
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: How to make scenario playable?(in single player atleast)

Post by alluton »

well okey here is my main.cfg(i have tried to copy it from flight to freedom and modify it better for my suits)
Spoiler:

and here is the scenario file
Spoiler:
and ps. i want single player campaing
"This game cured me of my real life addiction."
-Flameslash
User avatar
Pentarctagon
Project Manager
Posts: 5564
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to make scenario playable?(in single player atleast)

Post by Pentarctagon »

1. for the main.cfg the icon=units/Outlaw_Highwayman (and all image paths) require the .png ending.
2. victory_when_enemyes_defeated=yes, this is misspelled and I think that 'yes' is the default value anyway.
3. expriencemodifer should be experience_modifier
4. controller=computer, I don't know if wesnoth recognizes 'computer' as a valid value as a controller, usually it would be controller=ai.
5. it should be type=Spearman, not name=spearman.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
SkyOne
Posts: 1310
Joined: January 3rd, 2009, 7:23 pm

Re: How to make scenario playable?(in single player atleast)

Post by SkyOne »

6. Missing a closing quote on the main file at the campaign description.
7. Missing {~add-ons/Rebellion/scenarios} on the main file inside of #ifdef and #endif. It is very important to define your scenario.
8. {TURNS 20} on the scenario should be "turns=20" in your case. Or {TURNS 20 20 20}. It causes to the missing closing tag error on current BfW.
9. As I said, you need "type=any unit-type" in the both [side] tags. (you might need "id" and "name" also.)

If you fix those 1-9 correctly and install your campaign folder with the right folder name in the right folder, it will probably work, but what boru said is also important to recruit units. You ought to install the objectives for the game-play in the prestart [event] that you have had already, but missing it does not make any errors.

Hopefully, those will help you.
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: How to make scenario playable?(in single player atleast)

Post by alluton »

SkyOne wrote: 7. Missing {~add-ons/Rebellion/scenarios} on the main file inside of #ifdef and #endif. It is very important to define your scenario.

9. As I said, you need "type=any unit-type" in the both [side] tags. (you might need "id" and "name" also.)

If you fix those 1-9 correctly and install your campaign folder with the right folder name in the right folder, it will probably work, but what boru said is also important to recruit units. You ought to install the objectives for the game-play in the prestart [event] that you have had already, but missing it does not make any errors.

Hopefully, those will help you.
these 3 i didnt get yet.( i fexed the others tought.)
"This game cured me of my real life addiction."
-Flameslash
Post Reply