How to make own terrains?

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.
Dyplorus
Posts: 20
Joined: December 6th, 2013, 5:28 am

Re: How to make own terrains?

Post by Dyplorus »

beetlenaut wrote:The scenario file they are talking about is the cfg file that came with the add-on. It starts and ends with [multiplayer]. It's the one that has the map_data= line in it. If you put the name of your map in there, it should already partly work. The add-on, which will show up in the multiplayer scenario list, will run with your map (but with whatever units and sides were defined by the original add-on.) If there is an error because something doesn't match up, we can take care of it. The only other thing you need to do is add the editor-generated cfg file into the scenario file. The easiest way is to put its name in {culry braces} underneath the map_date= line.

You should have a folder with your map file, your editor-generated map.cfg file, the .cfg file for the add-on (now modified) and a _main.cfg file that adds it to the multiplayer scenario list. The only one you need to mess with is the .cfg file (also called the scenario file). If you don't change its name, the _main.cfg should still add it.
Thank you! Now we're gettin' somewhere! >:-D

Now in response to the bold part of the above quote...
All in the same folder? Because with the add-ons I see that there is a separate map and scenario folder. Or is the folder you're talking about the actual whole folder containing the map and scenario folders which contain the map and scenario files? I ask for verification.
User avatar
beetlenaut
Developer
Posts: 2867
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: How to make own terrains?

Post by beetlenaut »

The normal way is to put them all in one folder. Do it that way. It's easier. I suppose you could have a separate map and scenario folder for a MP scenario, but there is no reason for it. Are you sure you didn't download a campaign instead of a MP scenario?
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Dyplorus
Posts: 20
Joined: December 6th, 2013, 5:28 am

Re: How to make own terrains?

Post by Dyplorus »

beetlenaut wrote:The normal way is to put them all in one folder. Do it that way. It's easier. I suppose you could have a separate map and scenario folder for a MP scenario, but there is no reason for it. Are you sure you didn't download a campaign instead of a MP scenario?
Yeah. Actually I was able to make it all work without needing the add-on :]

I may have the scenario, the units I placed still didn't show up! :[
User avatar
beetlenaut
Developer
Posts: 2867
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: How to make own terrains?

Post by beetlenaut »

Did you load your scenario from the scenario list in the MP menu? That is where it should be if it comes from the add-on folder. If you did, show me the scenario file. If not, try it from there.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Dyplorus
Posts: 20
Joined: December 6th, 2013, 5:28 am

Re: How to make own terrains?

Post by Dyplorus »

beetlenaut wrote:Did you load your scenario from the scenario list in the MP menu? That is where it should be if it comes from the add-on folder. If you did, show me the scenario file. If not, try it from there.
Yeah i did :[ I loaded it from the scenario list
I took some of the sample text from the website

Code: Select all

[multiplayer]

id="desert_country_2"
name="desert_country_2"
map_data="{~add-ons/desert_country_2/maps/desert_country_2.map}"
description="Write a description for your map as you would like to see it on Wesnoth's map selection screen."

{DEFAULT_SCHEDULE}
{DEFAULT_MUSIC_PLAYLIST}

[side]
side=1
gold=100
team_name=North
controller=human
canrecruit=yes
 [ai]
  villages_per_scout=8
 [/ai]
[/side]

[side]
side=2
gold=100
team_name=South
controller=human
canrecruit=yes
income=1
 [ai]
  villages_per_scout=8
 [/ai]
[/side]

[/multiplayer] 
User avatar
beetlenaut
Developer
Posts: 2867
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: How to make own terrains?

Post by beetlenaut »

You never included the map.cfg file! That was the whole point of making a scenario file in the first place. Probably like this: {~add-ons/desert_country_2/maps/desert_country_2.map.cfg}
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Dyplorus
Posts: 20
Joined: December 6th, 2013, 5:28 am

Re: How to make own terrains?

Post by Dyplorus »

beetlenaut wrote:You never included the map.cfg file! That was the whole point of making a scenario file in the first place. Probably like this: {~add-ons/desert_country_2/maps/desert_country_2.map.cfg}
Yeah you mean the computer generated cfg file right? I was wondering what to do with that..

oh man...so this is what happens when I change it to .map.cfg

Image
User avatar
beetlenaut
Developer
Posts: 2867
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: How to make own terrains?

Post by beetlenaut »

You shouldn't have changed anything, but added a line below the "map_data=" line. Anyway, it says the map.cfg file is missing. Is it? Did you move it into the folder, and is its name correct?
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Post Reply