How to make own terrains?
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.
Re: How to make own terrains?
Thank you! Now we're gettin' somewhere! >:-Dbeetlenaut 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.
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.
- beetlenaut
- Developer
- Posts: 2867
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: How to make own terrains?
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
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Re: How to make own terrains?
Yeah. Actually I was able to make it all work without needing the add-on :]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?
I may have the scenario, the units I placed still didn't show up! :[
- beetlenaut
- Developer
- Posts: 2867
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: How to make own terrains?
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
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Re: How to make own terrains?
Yeah i did :[ I loaded it from the scenario listbeetlenaut 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.
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]
- beetlenaut
- Developer
- Posts: 2867
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: How to make own terrains?
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
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Re: How to make own terrains?
Yeah you mean the computer generated cfg file right? I was wondering what to do with that..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}
oh man...so this is what happens when I change it to .map.cfg

- beetlenaut
- Developer
- Posts: 2867
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: How to make own terrains?
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
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide